rollup 0.66.2 → 0.66.6

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,12 +1,12 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v0.66.2
4
- Fri, 21 Sep 2018 04:18:59 GMT - commit d8a4d7ba8cb6fabce7a254acfa3b2d9486467510
3
+ Rollup.js v0.66.6
4
+ Wed, 10 Oct 2018 14:49:51 GMT - commit aa68a8cd6d363681ec1df60df63e05f6b53c4277
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
9
9
  Released under the MIT License.
10
10
  */
11
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.rollup={})}(this,function(t){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,n)};function n(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=s;function s(t,e){if(!t)throw new Error(e||"Assertion failed")}s.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function o(t,e){return t(e={exports:{}},e.exports),e.exports}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function h(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}var c={inherits:o(function(t){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}),toArray:function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r<t.length;r+=2)n.push(parseInt(t[r]+t[r+1],16))}else for(var r=0;r<t.length;r++){var i=t.charCodeAt(r),s=i>>8,o=255&i;s?n.push(s,o):n.push(o)}else for(r=0;r<t.length;r++)n[r]=0|t[r];return n},toHex:function(t){for(var e="",n=0;n<t.length;n++)e+=h(t[n].toString(16));return e},htonl:a,toHex32:function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];"little"===e&&(i=a(i)),n+=u(i.toString(16))}return n},zero2:h,zero8:u,join32:function(t,e,n,r){var s=n-e;i(s%4==0);for(var o=new Array(s/4),a=0,h=e;a<o.length;a++,h+=4){var u;u="big"===r?t[h]<<24|t[h+1]<<16|t[h+2]<<8|t[h+3]:t[h+3]<<24|t[h+2]<<16|t[h+1]<<8|t[h],o[a]=u>>>0}return o},split32:function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var s=t[r];"big"===e?(n[i]=s>>>24,n[i+1]=s>>>16&255,n[i+2]=s>>>8&255,n[i+3]=255&s):(n[i+3]=s>>>24,n[i+2]=s>>>16&255,n[i+1]=s>>>8&255,n[i]=255&s)}return n},rotr32:function(t,e){return t>>>e|t<<32-e},rotl32:function(t,e){return t<<e|t>>>32-e},sum32:function(t,e){return t+e>>>0},sum32_3:function(t,e,n){return t+e+n>>>0},sum32_4:function(t,e,n,r){return t+e+n+r>>>0},sum32_5:function(t,e,n,r,i){return t+e+n+r+i>>>0},sum64:function(t,e,n,r){var i=t[e],s=r+t[e+1]>>>0,o=(s<r?1:0)+n+i;t[e]=o>>>0,t[e+1]=s},sum64_hi:function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},sum64_lo:function(t,e,n,r){return e+r>>>0},sum64_4_hi:function(t,e,n,r,i,s,o,a){var h=0,u=e;return h+=(u=u+r>>>0)<e?1:0,h+=(u=u+s>>>0)<s?1:0,t+n+i+o+(h+=(u=u+a>>>0)<a?1:0)>>>0},sum64_4_lo:function(t,e,n,r,i,s,o,a){return e+r+s+a>>>0},sum64_5_hi:function(t,e,n,r,i,s,o,a,h,u){var c=0,p=e;return c+=(p=p+r>>>0)<e?1:0,c+=(p=p+s>>>0)<s?1:0,c+=(p=p+a>>>0)<a?1:0,t+n+i+o+h+(c+=(p=p+u>>>0)<u?1:0)>>>0},sum64_5_lo:function(t,e,n,r,i,s,o,a,h,u){return e+r+s+a+u>>>0},rotr64_hi:function(t,e,n){return(e<<32-n|t>>>n)>>>0},rotr64_lo:function(t,e,n){return(t<<32-n|e>>>n)>>>0},shr64_hi:function(t,e,n){return t>>>n},shr64_lo:function(t,e,n){return(t<<32-n|e>>>n)>>>0}};function p(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var l=p;p.prototype.update=function(t,e){if(t=c.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=c.join32(t,0,t.length-n,this.endian);for(var r=0;r<t.length;r+=this._delta32)this._update(t,r,r+this._delta32)}return this},p.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},p.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,s=8;s<this.padLength;s++)r[i++]=0;return r};var f={BlockHash:l},d=c.rotr32;function m(t,e,n){return t&e^~t&n}function g(t,e,n){return t&e^t&n^e&n}function y(t,e,n){return t^e^n}var v={ft_1:function(t,e,n,r){return 0===t?m(e,n,r):1===t||3===t?y(e,n,r):2===t?g(e,n,r):void 0},ch32:m,maj32:g,p32:y,s0_256:function(t){return d(t,2)^d(t,13)^d(t,22)},s1_256:function(t){return d(t,6)^d(t,11)^d(t,25)},g0_256:function(t){return d(t,7)^d(t,18)^t>>>3},g1_256:function(t){return d(t,17)^d(t,19)^t>>>10}},x=c.sum32,_=c.sum32_4,E=c.sum32_5,b=v.ch32,A=v.maj32,S=v.s0_256,w=v.s1_256,P=v.g0_256,I=v.g1_256,k=f.BlockHash,C=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function N(){if(!(this instanceof N))return new N;k.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=C,this.W=new Array(64)}c.inherits(N,k);var R=N;N.blockSize=512,N.outSize=256,N.hmacStrength=192,N.padLength=64,N.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=_(I(n[r-2]),n[r-7],P(n[r-15]),n[r-16]);var s=this.h[0],o=this.h[1],a=this.h[2],h=this.h[3],u=this.h[4],c=this.h[5],p=this.h[6],l=this.h[7];for(i(this.k.length===n.length),r=0;r<n.length;r++){var f=E(l,w(u),b(u,c,p),this.k[r],n[r]),d=x(S(s),A(s,o,a));l=p,p=c,c=u,u=x(h,f),h=a,a=o,o=s,s=x(f,d)}this.h[0]=x(this.h[0],s),this.h[1]=x(this.h[1],o),this.h[2]=x(this.h[2],a),this.h[3]=x(this.h[3],h),this.h[4]=x(this.h[4],u),this.h[5]=x(this.h[5],c),this.h[6]=x(this.h[6],p),this.h[7]=x(this.h[7],l)},N.prototype._digest=function(t){return"hex"===t?c.toHex32(this.h,"big"):c.split32(this.h,"big")};for(var O={},M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",L=0;L<M.length;L++)O[M.charCodeAt(L)]=L;function T(t){for(var e=0,n=0,r=0,i=0,s=0,o=[],a=[],h=[],u=0,c=0,p=0,l=0;u<t.length;u++){var f=t.charCodeAt(u);if(44===f)h.length&&a.push(h),h=[],c=0;else if(59===f)h.length&&a.push(h),h=[],c=0,o.push(a),a=[],e=0;else{var d=O[f];if(void 0===d)throw new Error("Invalid character ("+String.fromCharCode(f)+")");var m=32&d;if(l+=(d&=31)<<p,m)p+=5;else{var g=1&l;l>>=1;var y=g?-l:l;0==c?(e+=y,h.push(e)):1===c?(n+=y,h.push(n)):2===c?(r+=y,h.push(r)):3===c?(i+=y,h.push(i)):4===c&&(s+=y,h.push(s)),c++,l=p=0}}}return h.length&&a.push(h),o.push(a),o}function D(t){var e="";t=t<0?-t<<1|1:t<<1;do{var n=31&t;(t>>=5)>0&&(n|=32),e+=M[n]}while(t>0);return e}var V=function(t,e,n){this.start=t,this.end=e,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};V.prototype.appendLeft=function(t){this.outro+=t},V.prototype.appendRight=function(t){this.intro=this.intro+t},V.prototype.clone=function(){var t=new V(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t},V.prototype.contains=function(t){return this.start<t&&t<this.end},V.prototype.eachNext=function(t){for(var e=this;e;)t(e),e=e.next},V.prototype.eachPrevious=function(t){for(var e=this;e;)t(e),e=e.previous},V.prototype.edit=function(t,e,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=e,this.edited=!0,this},V.prototype.prependLeft=function(t){this.outro=t+this.outro},V.prototype.prependRight=function(t){this.intro=t+this.intro},V.prototype.split=function(t){var e=t-this.start,n=this.original.slice(0,e),r=this.original.slice(e);this.original=n;var i=new V(t,this.end,r);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},V.prototype.toString=function(){return this.intro+this.content+this.outro},V.prototype.trimEnd=function(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var e=this.content.replace(t,"");return e.length?(e!==this.content&&this.split(this.start+e.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),!!this.intro.length||void 0)},V.prototype.trimStart=function(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var e=this.content.replace(t,"");return e.length?(e!==this.content&&(this.split(this.end-e.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),!!this.outro.length||void 0)};var z=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?z=window.btoa:"function"==typeof Buffer&&(z=function(t){return new Buffer(t).toString("base64")});var B=function(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=function(t){for(var e=0,n=0,r=0,i=0,s="",o=0;o<t.length;o++){var a=t[o];if(o>0&&(s+=";"),0!==a.length){for(var h=0,u=[],c=0,p=a;c<p.length;c++){var l=p[c],f=D(l[0]-h);h=l[0],l.length>1&&(f+=D(l[1]-e)+D(l[2]-n)+D(l[3]-r),e=l[1],n=l[2],r=l[3]),5===l.length&&(f+=D(l[4]-i),i=l[4]),u.push(f)}s+=u.join(",")}}return s}(t.mappings)};function W(t,e){var n=t.split(/[\/\\]/),r=e.split(/[\/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length)for(var i=n.length;i--;)n[i]="..";return n.concat(r).join("/")}B.prototype.toString=function(){return JSON.stringify(this)},B.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+z(this.toString())};var j=Object.prototype.toString;function U(t){return"[object Object]"===j.call(t)}function F(t){for(var e=t.split("\n"),n=[],r=0,i=0;r<e.length;r++)n.push(i),i+=e[r].length+1;return function(t){for(var e=0,r=n.length;e<r;){var i=e+r>>1;t<n[i]?r=i:e=i+1}var s=e-1;return{line:s,column:t-n[s]}}}var q=function(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};q.prototype.addEdit=function(t,e,n,r){if(e.length){var i=[this.generatedCodeColumn,t,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(e),this.pending=null},q.prototype.addUneditedChunk=function(t,e,n,r,i){for(var s=e.start,o=!0;s<e.end;)(this.hires||o||i[s])&&this.rawSegments.push([this.generatedCodeColumn,t,r.line,r.column]),"\n"===n[s]?(r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0):(r.column+=1,this.generatedCodeColumn+=1),s+=1,o=!1;this.pending=[this.generatedCodeColumn,t,r.line,r.column]},q.prototype.advance=function(t){if(t){var e=t.split("\n");if(e.length>1){for(var n=0;n<e.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=e[e.length-1].length}};var G="\n",H={insertLeft:!1,insertRight:!1,storeName:!1},K=function(t,e){void 0===e&&(e={});var n=new V(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:e.filename},indentExclusionRanges:{writable:!0,value:e.indentExclusionRanges},sourcemapLocations:{writable:!0,value:{}},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:function(t){var e=t.split("\n"),n=e.filter(function(t){return/^\t+/.test(t)}),r=e.filter(function(t){return/^ {2,}/.test(t)});if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";var i=r.reduce(function(t,e){var n=/^ +/.exec(e)[0].length;return Math.min(n,t)},1/0);return new Array(i+1).join(" ")}(t)}}),this.byStart[0]=n,this.byEnd[t.length]=n};K.prototype.addSourcemapLocation=function(t){this.sourcemapLocations[t]=!0},K.prototype.append=function(t){if("string"!=typeof t)throw new TypeError("outro content must be a string");return this.outro+=t,this},K.prototype.appendLeft=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byEnd[t];return n?n.appendLeft(e):this.intro+=e,this},K.prototype.appendRight=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byStart[t];return n?n.appendRight(e):this.outro+=e,this},K.prototype.clone=function(){for(var t=new K(this.original,{filename:this.filename}),e=this.firstChunk,n=t.firstChunk=t.lastSearchedChunk=e.clone();e;){t.byStart[n.start]=n,t.byEnd[n.end]=n;var r=e.next,i=r&&r.clone();i&&(n.next=i,i.previous=n,n=i),e=r}return t.lastChunk=n,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),Object.keys(this.sourcemapLocations).forEach(function(e){t.sourcemapLocations[e]=!0}),t},K.prototype.generateDecodedMap=function(t){var e=this;t=t||{};var n=Object.keys(this.storedNames),r=new q(t.hires),i=F(this.original);return this.intro&&r.advance(this.intro),this.firstChunk.eachNext(function(t){var s=i(t.start);t.intro.length&&r.advance(t.intro),t.edited?r.addEdit(0,t.content,s,t.storeName?n.indexOf(t.original):-1):r.addUneditedChunk(0,t,e.original,s,e.sourcemapLocations),t.outro.length&&r.advance(t.outro)}),{file:t.file?t.file.split(/[\/\\]/).pop():null,sources:[t.source?W(t.file||"",t.source):null],sourcesContent:t.includeContent?[this.original]:[null],names:n,mappings:r.raw}},K.prototype.generateMap=function(t){return new B(this.generateDecodedMap(t))},K.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},K.prototype.indent=function(t,e){var n=/^[^\r\n]/gm;if(U(t)&&(e=t,t=void 0),""===(t=void 0!==t?t:this.indentStr||"\t"))return this;var r={};(e=e||{}).exclude&&("number"==typeof e.exclude[0]?[e.exclude]:e.exclude).forEach(function(t){for(var e=t[0];e<t[1];e+=1)r[e]=!0});var i=!1!==e.indentStart,s=function(e){return i?""+t+e:(i=!0,e)};this.intro=this.intro.replace(n,s);for(var o=0,a=this.firstChunk;a;){var h=a.end;if(a.edited)r[o]||(a.content=a.content.replace(n,s),a.content.length&&(i="\n"===a.content[a.content.length-1]));else for(o=a.start;o<h;){if(!r[o]){var u=this.original[o];"\n"===u?i=!0:"\r"!==u&&i&&(i=!1,o===a.start?a.prependRight(t):(this._splitChunk(a,o),(a=a.next).prependRight(t)))}o+=1}o=a.end,a=a.next}return this.outro=this.outro.replace(n,s),this},K.prototype.insert=function(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},K.prototype.insertLeft=function(t,e){return H.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),H.insertLeft=!0),this.appendLeft(t,e)},K.prototype.insertRight=function(t,e){return H.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),H.insertRight=!0),this.prependRight(t,e)},K.prototype.move=function(t,e,n){if(n>=t&&n<=e)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(e),this._split(n);var r=this.byStart[t],i=this.byEnd[e],s=r.previous,o=i.next,a=this.byStart[n];if(!a&&i===this.lastChunk)return this;var h=a?a.previous:this.lastChunk;return s&&(s.next=o),o&&(o.previous=s),h&&(h.next=r),a&&(a.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=h,i.next=a||null,h||(this.firstChunk=r),a||(this.lastChunk=i),this},K.prototype.overwrite=function(t,e,n,r){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;if(e>this.original.length)throw new Error("end is out of bounds");if(t===e)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(t),this._split(e),!0===r&&(H.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),H.storeName=!0),r={storeName:!0});var i=void 0!==r&&r.storeName,s=void 0!==r&&r.contentOnly;if(i){var o=this.original.slice(t,e);this.storedNames[o]=!0}var a=this.byStart[t],h=this.byEnd[e];if(a){if(e>a.end&&a.next!==this.byStart[a.end])throw new Error("Cannot overwrite across a split point");if(a.edit(n,i,s),a!==h){for(var u=a.next;u!==h;)u.edit("",!1),u=u.next;u.edit("",!1)}}else{var c=new V(t,e,"").edit(n,i);h.next=c,c.previous=h}return this},K.prototype.prepend=function(t){if("string"!=typeof t)throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this},K.prototype.prependLeft=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byEnd[t];return n?n.prependLeft(e):this.intro=e+this.intro,this},K.prototype.prependRight=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byStart[t];return n?n.prependRight(e):this.outro=e+this.outro,this},K.prototype.remove=function(t,e){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t),this._split(e);for(var n=this.byStart[t];n;)n.intro="",n.outro="",n.edit(""),n=e>n.end?this.byStart[n.end]:null;return this},K.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""},K.prototype.lastLine=function(){var t=this.outro.lastIndexOf(G);if(-1!==t)return this.outro.substr(t+1);var e=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(-1!==(t=n.outro.lastIndexOf(G)))return n.outro.substr(t+1)+e;e=n.outro+e}if(n.content.length>0){if(-1!==(t=n.content.lastIndexOf(G)))return n.content.substr(t+1)+e;e=n.content+e}if(n.intro.length>0){if(-1!==(t=n.intro.lastIndexOf(G)))return n.intro.substr(t+1)+e;e=n.intro+e}}while(n=n.previous);return-1!==(t=this.intro.lastIndexOf(G))?this.intro.substr(t+1)+e:this.intro+e},K.prototype.slice=function(t,e){for(void 0===t&&(t=0),void 0===e&&(e=this.original.length);t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;for(var n="",r=this.firstChunk;r&&(r.start>t||r.end<=t);){if(r.start<e&&r.end>=e)return n;r=r.next}if(r&&r.edited&&r.start!==t)throw new Error("Cannot use replaced character "+t+" as slice start anchor.");for(var i=r;r;){!r.intro||i===r&&r.start!==t||(n+=r.intro);var s=r.start<e&&r.end>=e;if(s&&r.edited&&r.end!==e)throw new Error("Cannot use replaced character "+e+" as slice end anchor.");var o=i===r?t-r.start:0,a=s?r.content.length+e-r.end:r.content.length;if(n+=r.content.slice(o,a),!r.outro||s&&r.end!==e||(n+=r.outro),s)break;r=r.next}return n},K.prototype.snip=function(t,e){var n=this.clone();return n.remove(0,t),n.remove(e,n.original.length),n},K.prototype._split=function(t){if(!this.byStart[t]&&!this.byEnd[t])for(var e=this.lastSearchedChunk,n=t>e.end;e;){if(e.contains(t))return this._splitChunk(e,t);e=n?this.byStart[e.end]:this.byEnd[e.start]}},K.prototype._splitChunk=function(t,e){if(t.edited&&t.content.length){var n=F(this.original)(e);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+t.original+'")')}var r=t.split(e);return this.byEnd[e]=t,this.byStart[e]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,!0},K.prototype.toString=function(){for(var t=this.intro,e=this.firstChunk;e;)t+=e.toString(),e=e.next;return t+this.outro},K.prototype.isEmpty=function(){var t=this.firstChunk;do{if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1}while(t=t.next);return!0},K.prototype.length=function(){var t=this.firstChunk,e=0;do{e+=t.intro.length+t.content.length+t.outro.length}while(t=t.next);return e},K.prototype.trimLines=function(){return this.trim("[\\r\\n]")},K.prototype.trim=function(t){return this.trimStart(t).trimEnd(t)},K.prototype.trimEndAborted=function(t){var e=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var n=this.lastChunk;do{var r=n.end,i=n.trimEnd(e);if(n.end!==r&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1},K.prototype.trimEnd=function(t){return this.trimEndAborted(t),this},K.prototype.trimStartAborted=function(t){var e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var n=this.firstChunk;do{var r=n.end,i=n.trimStart(e);if(n.end!==r&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1},K.prototype.trimStart=function(t){return this.trimStartAborted(t),this};var Y=Object.prototype.hasOwnProperty,X=function(t){void 0===t&&(t={}),this.intro=t.intro||"",this.separator=void 0!==t.separator?t.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};X.prototype.addSource=function(t){if(t instanceof K)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!U(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach(function(e){Y.call(t,e)||(t[e]=t.content[e])}),void 0===t.separator&&(t.separator=this.separator),t.filename)if(Y.call(this.uniqueSourceIndexByFilename,t.filename)){var e=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==e.content)throw new Error("Illegal source: same filename ("+t.filename+"), different contents")}else this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});return this.sources.push(t),this},X.prototype.append=function(t,e){return this.addSource({content:new K(t),separator:e&&e.separator||""}),this},X.prototype.clone=function(){var t=new X({intro:this.intro,separator:this.separator});return this.sources.forEach(function(e){t.addSource({filename:e.filename,content:e.content.clone(),separator:e.separator})}),t},X.prototype.generateDecodedMap=function(t){var e=this;void 0===t&&(t={});var n=[];this.sources.forEach(function(t){Object.keys(t.content.storedNames).forEach(function(t){~n.indexOf(t)||n.push(t)})});var r=new q(t.hires);return this.intro&&r.advance(this.intro),this.sources.forEach(function(t,i){i>0&&r.advance(e.separator);var s=t.filename?e.uniqueSourceIndexByFilename[t.filename]:-1,o=t.content,a=F(o.original);o.intro&&r.advance(o.intro),o.firstChunk.eachNext(function(e){var i=a(e.start);e.intro.length&&r.advance(e.intro),t.filename?e.edited?r.addEdit(s,e.content,i,e.storeName?n.indexOf(e.original):-1):r.addUneditedChunk(s,e,o.original,i,o.sourcemapLocations):r.advance(e.content),e.outro.length&&r.advance(e.outro)}),o.outro&&r.advance(o.outro)}),{file:t.file?t.file.split(/[\/\\]/).pop():null,sources:this.uniqueSources.map(function(e){return t.file?W(t.file,e.filename):e.filename}),sourcesContent:this.uniqueSources.map(function(e){return t.includeContent?e.content:null}),names:n,mappings:r.raw}},X.prototype.generateMap=function(t){return new B(this.generateDecodedMap(t))},X.prototype.getIndentString=function(){var t={};return this.sources.forEach(function(e){var n=e.content.indentStr;null!==n&&(t[n]||(t[n]=0),t[n]+=1)}),Object.keys(t).sort(function(e,n){return t[e]-t[n]})[0]||"\t"},X.prototype.indent=function(t){var e=this;if(arguments.length||(t=this.getIndentString()),""===t)return this;var n=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(function(r,i){var s=void 0!==r.separator?r.separator:e.separator,o=n||i>0&&/\r?\n$/.test(s);r.content.indent(t,{exclude:r.indentExclusionRanges,indentStart:o}),n="\n"===r.content.lastChar()}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,function(e,n){return n>0?t+e:e})),this},X.prototype.prepend=function(t){return this.intro=t+this.intro,this},X.prototype.toString=function(){var t=this,e=this.sources.map(function(e,n){var r=void 0!==e.separator?e.separator:t.separator;return(n>0?r:"")+e.content.toString()}).join("");return this.intro+e},X.prototype.isEmpty=function(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some(function(t){return!t.content.isEmpty()})},X.prototype.length=function(){return this.sources.reduce(function(t,e){return t+e.content.length()},this.intro.length)},X.prototype.trimLines=function(){return this.trim("[\\r\\n]")},X.prototype.trim=function(t){return this.trimStart(t).trimEnd(t)},X.prototype.trimStart=function(t){var e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),!this.intro){var n,r=0;do{if(!(n=this.sources[r++]))break}while(!n.content.trimStartAborted(t))}return this},X.prototype.trimEnd=function(t){var e,n=new RegExp((t||"\\s")+"+$"),r=this.sources.length-1;do{if(!(e=this.sources[r--])){this.intro=this.intro.replace(n,"");break}}while(!e.content.trimEndAborted(t));return this};var $="ClassDeclaration",J="ExportDefaultDeclaration",Q="FunctionDeclaration",Z="Identifier",tt="Literal",et="MemberExpression",nt="TemplateLiteral",rt=function(){function t(t){var e=void 0===t?{}:t,n=e.withNew,r=void 0!==n&&n,i=e.args,s=void 0===i?[]:i,o=e.callIdentifier,a=void 0===o?void 0:o;this.withNew=r,this.args=s,this.callIdentifier=a}return t.create=function(t){return new this(t)},t.prototype.equals=function(t){return t&&this.callIdentifier===t.callIdentifier},t}(),it={UNKNOWN_KEY:!0},st=[],ot=[it];function at(t,e){return void 0===e&&(e=null),Object.create(e,t)}var ht={UNKNOWN_VALUE:!0},ut={included:!0,getLiteralValueAtPath:function(){return ht},getReturnExpressionWhenCalledAtPath:function(){return ut},hasEffectsWhenAccessedAtPath:function(t){return t.length>0},hasEffectsWhenAssignedAtPath:function(t){return t.length>0},hasEffectsWhenCalledAtPath:function(){return!0},include:function(){},deoptimizePath:function(){},toString:function(){return"[[UNKNOWN]]"}},ct={included:!0,getLiteralValueAtPath:function(){},getReturnExpressionWhenCalledAtPath:function(){return ut},hasEffectsWhenAccessedAtPath:function(t){return t.length>0},hasEffectsWhenAssignedAtPath:function(t){return t.length>0},hasEffectsWhenCalledAtPath:function(){return!0},include:function(){},deoptimizePath:function(){},toString:function(){return"undefined"}},pt={value:{returns:null,returnsPrimitive:ut,callsArgs:null,mutatesSelf:!1}},lt={value:{returns:null,returnsPrimitive:ut,callsArgs:null,mutatesSelf:!0}},ft={value:{returns:null,returnsPrimitive:ut,callsArgs:[0],mutatesSelf:!1}},dt=function(){function t(){this.included=!1}return t.prototype.getLiteralValueAtPath=function(){return ht},t.prototype.getReturnExpressionWhenCalledAtPath=function(t){return 1===t.length?Tt(Nt,t[0]):ut},t.prototype.hasEffectsWhenAccessedAtPath=function(t){return t.length>1},t.prototype.hasEffectsWhenAssignedAtPath=function(t){return t.length>1},t.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return 1!==t.length||Lt(Nt,t[0],this.included,e,n)},t.prototype.include=function(){this.included=!0},t.prototype.deoptimizePath=function(){},t.prototype.toString=function(){return"[[UNKNOWN ARRAY]]"},t}(),mt={value:{returns:dt,returnsPrimitive:null,callsArgs:null,mutatesSelf:!1}},gt={value:{returns:dt,returnsPrimitive:null,callsArgs:null,mutatesSelf:!0}},yt={value:{returns:dt,returnsPrimitive:null,callsArgs:[0],mutatesSelf:!1}},vt={value:{returns:dt,returnsPrimitive:null,callsArgs:[0],mutatesSelf:!0}},xt={included:!0,getLiteralValueAtPath:function(){return ht},getReturnExpressionWhenCalledAtPath:function(t){return 1===t.length?Tt(Rt,t[0]):ut},hasEffectsWhenAccessedAtPath:function(t){return t.length>1},hasEffectsWhenAssignedAtPath:function(t){return t.length>0},hasEffectsWhenCalledAtPath:function(t){if(1===t.length){var e=t[0];return"string"!=typeof e||!Rt[e]}return!0},include:function(){},deoptimizePath:function(){},toString:function(){return"[[UNKNOWN BOOLEAN]]"}},_t={value:{returns:null,returnsPrimitive:xt,callsArgs:null,mutatesSelf:!1}},Et={value:{returns:null,returnsPrimitive:xt,callsArgs:[0],mutatesSelf:!1}},bt={included:!0,getLiteralValueAtPath:function(){return ht},getReturnExpressionWhenCalledAtPath:function(t){return 1===t.length?Tt(Ot,t[0]):ut},hasEffectsWhenAccessedAtPath:function(t){return t.length>1},hasEffectsWhenAssignedAtPath:function(t){return t.length>0},hasEffectsWhenCalledAtPath:function(t){if(1===t.length){var e=t[0];return"string"!=typeof e||!Ot[e]}return!0},include:function(){},deoptimizePath:function(){},toString:function(){return"[[UNKNOWN NUMBER]]"}},At={value:{returns:null,returnsPrimitive:bt,callsArgs:null,mutatesSelf:!1}},St={value:{returns:null,returnsPrimitive:bt,callsArgs:null,mutatesSelf:!0}},wt={value:{returns:null,returnsPrimitive:bt,callsArgs:[0],mutatesSelf:!1}},Pt={included:!0,getLiteralValueAtPath:function(){return ht},getReturnExpressionWhenCalledAtPath:function(t){return 1===t.length?Tt(Mt,t[0]):ut},hasEffectsWhenAccessedAtPath:function(t){return t.length>1},hasEffectsWhenAssignedAtPath:function(t){return t.length>0},hasEffectsWhenCalledAtPath:function(t){if(1===t.length){var e=t[0];return"string"!=typeof e||!Mt[e]}return!0},include:function(){},deoptimizePath:function(){},toString:function(){return"[[UNKNOWN STRING]]"}},It={value:{returns:null,returnsPrimitive:Pt,callsArgs:null,mutatesSelf:!1}},kt=function(){function t(){this.included=!1}return t.prototype.getLiteralValueAtPath=function(){return ht},t.prototype.getReturnExpressionWhenCalledAtPath=function(t){return 1===t.length?Tt(Ct,t[0]):ut},t.prototype.hasEffectsWhenAccessedAtPath=function(t){return t.length>1},t.prototype.hasEffectsWhenAssignedAtPath=function(t){return t.length>1},t.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return 1!==t.length||Lt(Ct,t[0],this.included,e,n)},t.prototype.include=function(){this.included=!0},t.prototype.deoptimizePath=function(){},t.prototype.toString=function(){return"[[UNKNOWN OBJECT]]"},t}(),Ct=at({hasOwnProperty:_t,isPrototypeOf:_t,propertyIsEnumerable:_t,toLocaleString:It,toString:It,valueOf:pt}),Nt=at({concat:mt,copyWithin:gt,every:Et,fill:gt,filter:yt,find:ft,findIndex:wt,forEach:ft,includes:_t,indexOf:At,join:It,lastIndexOf:At,map:yt,pop:lt,push:St,reduce:ft,reduceRight:ft,reverse:gt,shift:lt,slice:mt,some:Et,sort:vt,splice:gt,unshift:St},Ct),Rt=at({valueOf:_t},Ct),Ot=at({toExponential:It,toFixed:It,toLocaleString:It,toPrecision:It,valueOf:At},Ct),Mt=at({charAt:It,charCodeAt:At,codePointAt:At,concat:It,includes:_t,endsWith:_t,indexOf:At,lastIndexOf:At,localeCompare:At,match:_t,normalize:It,padEnd:It,padStart:It,repeat:It,replace:{value:{returns:null,returnsPrimitive:Pt,callsArgs:[1],mutatesSelf:!1}},search:At,slice:It,split:mt,startsWith:_t,substr:It,substring:It,toLocaleLowerCase:It,toLocaleUpperCase:It,toLowerCase:It,toUpperCase:It,trim:It,valueOf:It},Ct);function Lt(t,e,n,r,i){if("string"!=typeof e||!t[e])return!0;if(t[e].mutatesSelf&&n)return!0;if(!t[e].callsArgs)return!1;for(var s=0,o=t[e].callsArgs;s<o.length;s++){var a=o[s];if(r.args[a]&&r.args[a].hasEffectsWhenCalledAtPath(st,rt.create({withNew:!1,args:[],callIdentifier:{}}),i.getHasEffectsWhenCalledOptions()))return!0}return!1}function Tt(t,e){return"string"==typeof e&&t[e]?null!==t[e].returnsPrimitive?t[e].returnsPrimitive:new t[e].returns:ut}var Dt=function(){function t(t){this.exportName=null,this.safeExportName=null,this.included=!1,this.isId=!1,this.reexported=!1,this.isReassigned=!1,this.name=t,this.safeName=null}return t.prototype.addReference=function(t){},t.prototype.getName=function(t){return t&&this.safeName&&this.safeName!==this.name&&"$"===this.safeName[this.name.length]&&"$"===this.safeName[this.name.length+1]?(this.safeName=void 0,this.name):this.safeName||this.name},t.prototype.getLiteralValueAtPath=function(t,e,n){return ht},t.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return ut},t.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>0},t.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return!0},t.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return!0},t.prototype.include=function(){this.included=!0},t.prototype.deoptimizePath=function(t){},t.prototype.setSafeName=function(t){this.safeName=t},t.prototype.toString=function(){return this.name},t}(),Vt=function(t){function e(e,n,r,i){var s=t.call(this,e)||this;return s.additionalInitializers=null,s.expressionsToBeDeoptimized=[],s.declarations=n?[n]:[],s.init=r,s.deoptimizationTracker=i,s}return n(e,t),e.prototype.addDeclaration=function(t,e){this.declarations.push(t),null===this.additionalInitializers&&(this.additionalInitializers=null===this.init?[]:[this.init],this.init=ut,this.isReassigned=!0),null!==e&&this.additionalInitializers.push(e)},e.prototype.consolidateInitializers=function(){if(null!==this.additionalInitializers){for(var t=0,e=this.additionalInitializers;t<e.length;t++){e[t].deoptimizePath(ot)}this.additionalInitializers=null}},e.prototype.getLiteralValueAtPath=function(t,e,n){return this.isReassigned||!this.init||t.length>7||e.isTracked(this.init,t)?ht:(this.expressionsToBeDeoptimized.push(n),this.init.getLiteralValueAtPath(t,e.track(this.init,t),n))},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return this.isReassigned||!this.init||t.length>7||e.isTracked(this.init,t)?ut:(this.expressionsToBeDeoptimized.push(n),this.init.getReturnExpressionWhenCalledAtPath(t,e.track(this.init,t),n))},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return 0!==t.length&&(this.isReassigned||t.length>7||this.init&&!e.hasNodeBeenAccessedAtPath(t,this.init)&&this.init.hasEffectsWhenAccessedAtPath(t,e.addAccessedNodeAtPath(t,this.init)))},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return!!(this.included||t.length>7)||0!==t.length&&(this.isReassigned||this.init&&!e.hasNodeBeenAssignedAtPath(t,this.init)&&this.init.hasEffectsWhenAssignedAtPath(t,e.addAssignedNodeAtPath(t,this.init)))},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return t.length>7||(this.isReassigned||this.init&&!n.hasNodeBeenCalledAtPathWithOptions(t,this.init,e)&&this.init.hasEffectsWhenCalledAtPath(t,e,n.addCalledNodeAtPathWithOptions(t,this.init,e)))},e.prototype.include=function(){if(!this.included){this.included=!0;for(var t=0,e=this.declarations;t<e.length;t++){var n=e[t];n.included||n.include();for(var r=n.parent;!r.included&&(r.included=!0,"Program"!==r.type);)r=r.parent}}},e.prototype.deoptimizePath=function(t){if(!(t.length>7||this.isReassigned||this.deoptimizationTracker.track(this,t)))if(0===t.length){if(!this.isReassigned){this.isReassigned=!0;for(var e=0,n=this.expressionsToBeDeoptimized;e<n.length;e++){n[e].deoptimizeCache()}this.init&&this.init.deoptimizePath(ot)}}else this.init&&this.init.deoptimizePath(t)},e}(Dt);function zt(t){return t.isDefault}Vt.prototype.isLocal=!0;var Bt=function(t){function e(e,n,r){var i=t.call(this,e,n,n.declaration,r)||this;return i.original=null,i.hasId=(n.declaration.type===Q||n.declaration.type===$)&&!!n.declaration.id,i}return n(e,t),e.prototype.addReference=function(t){this.hasId||(this.name=t.name,null!==this.original&&this.original.addReference(t))},e.prototype.getName=function(t){return!t&&this.safeName?this.safeName:null===this.original||this.original.isReassigned?this.name:this.original.getName()},e.prototype.referencesOriginal=function(){return this.original&&!this.original.isReassigned},e.prototype.getOriginalVariableName=function(){return this.original&&this.original.getName()},e.prototype.setOriginalVariable=function(t){this.original=t},e}(Vt);Bt.prototype.isDefault=!0;var Wt={},jt="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),Ut="Int8x16 Int16x8 Int32x4 Float32x4 Float64x2".split(" "),Ft="abs add and bool check div equal extractLane fromFloat32x4 fromFloat32x4Bits fromFloat64x2 fromFloat64x2Bits fromInt16x8Bits fromInt32x4 fromInt32x4Bits fromInt8x16Bits greaterThan greaterThanOrEqual lessThan lessThanOrEqual load max maxNum min minNum mul neg not notEqual or reciprocalApproximation reciprocalSqrtApproximation replaceLane select selectBits shiftLeftByScalar shiftRightArithmeticByScalar shiftRightLogicalByScalar shuffle splat sqrt store sub swizzle xor".split(" "),qt=[];Ut.forEach(function(t){Ft.forEach(function(e){qt.push("SIMD."+t+"."+e)})}),["Array.isArray","Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape","Object","Object.create","Object.getNotifier","Object.getOwn","Object.getOwnPropertyDescriptor","Object.getOwnPropertyNames","Object.getOwnPropertySymbols","Object.getPrototypeOf","Object.is","Object.isExtensible","Object.isFrozen","Object.isSealed","Object.keys","Boolean","Number","Number.isFinite","Number.isInteger","Number.isNaN","Number.isSafeInteger","Number.parseFloat","Number.parseInt","Symbol","Symbol.for","Symbol.keyFor","Math.abs","Math.acos","Math.acosh","Math.asin","Math.asinh","Math.atan","Math.atan2","Math.atanh","Math.cbrt","Math.ceil","Math.clz32","Math.cos","Math.cosh","Math.exp","Math.expm1","Math.floor","Math.fround","Math.hypot","Math.imul","Math.log","Math.log10","Math.log1p","Math.log2","Math.max","Math.min","Math.pow","Math.random","Math.round","Math.sign","Math.sin","Math.sinh","Math.sqrt","Math.tan","Math.tanh","Math.trunc","Date","Date.UTC","Date.now","Date.parse","String","String.fromCharCode","String.fromCodePoint","String.raw","RegExp","Map","Set","WeakMap","WeakSet","ArrayBuffer","ArrayBuffer.isView","DataView","Promise.all","Promise.race","Promise.resolve","Intl.Collator","Intl.Collator.supportedLocalesOf","Intl.DateTimeFormat","Intl.DateTimeFormat.supportedLocalesOf","Intl.NumberFormat","Intl.NumberFormat.supportedLocalesOf"].concat(jt,jt.map(function(t){return t+".from"}),jt.map(function(t){return t+".of"}),Ut.map(function(t){return"SIMD."+t}),qt).forEach(function(t){return Wt[t]=!0});var Gt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.included=!0,e}return n(e,t),e.prototype.hasEffectsWhenAccessedAtPath=function(t){return t.length>0&&!this.isPureFunctionMember(t)&&!("Reflect"===this.name&&1===t.length)},e.prototype.hasEffectsWhenCalledAtPath=function(t){return!Wt[[this.name].concat(t).join(".")]},e.prototype.isPureFunctionMember=function(t){return Wt[[this.name].concat(t).join(".")]||t.length>=1&&Wt[[this.name].concat(t.slice(0,-1)).join(".")]||t.length>=2&&Wt[[this.name].concat(t.slice(0,-2)).join(".")]&&"prototype"===t[t.length-2]},e}(Dt),Ht=function(t){function e(e,n){var r=t.call(this,n)||this;return r.module=e,r.isNamespace="*"===n,r.referenced=!1,r}return n(e,t),e.prototype.addReference=function(t){this.referenced=!0,"default"!==this.name&&"*"!==this.name||this.module.suggestName(t.name)},e.prototype.include=function(){this.included||(this.included=!0,this.module.used=!0)},e}(Dt);Ht.prototype.isExternal=!0;var Kt="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public".split(" "),Yt="Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "),Xt=Object.create(null);Kt.concat(Yt).forEach(function(t){return Xt[t]=!0});var $t=/[^$_a-zA-Z0-9]/g,Jt=function(t){return/\d/.test(t[0])};function Qt(t){return t=t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()}).replace($t,"_"),(Jt(t)||Xt[t])&&(t="_"+t),t}var Zt=/^(?:\/|(?:[A-Za-z]:)?[\\|\/])/,te=/^\.?\.\//;function ee(t){return Zt.test(t)}function ne(t){return te.test(t)}function re(t){return t.replace(/\\/g,"/")}function ie(t){return t.split(/(\/|\\)/).pop()}function se(t){var e=/(\/|\\)[^\/\\]*$/.exec(t);if(!e)return".";var n=t.slice(0,-e[0].length);return n||"/"}function oe(t){var e=/\.[^.]+$/.exec(ie(t));return e?e[0]:""}function ae(t,e){for(var n=t.split(/[\/\\]/).filter(Boolean),r=e.split(/[\/\\]/).filter(Boolean);n[0]&&r[0]&&n[0]===r[0];)n.shift(),r.shift();for(;"."===r[0]||".."===r[0];){".."===r.shift()&&n.pop()}for(;n.pop();)r.unshift("..");return r.join("/")}function he(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift().split(/[\/\\]/);return t.forEach(function(t){if(ee(t))n=t.split(/[\/\\]/);else{for(var e=t.split(/[\/\\]/);"."===e[0]||".."===e[0];){".."===e.shift()&&n.pop()}n.push.apply(n,e)}}),n.join("/")}var ue=function(){function t(t){var e=t.graph,n=t.id;this.exportsNames=!1,this.exportsNamespace=!1,this.renderPath=void 0,this.renormalizeRenderPath=!1,this.isExternal=!0,this.isEntryPoint=!1,this.mostCommonSuggestion=0,this.reexported=!1,this.used=!1,this.execIndex=void 0,this.graph=e,this.id=n;var r=n.split(/[\\\/]/);this.name=Qt(r.pop()),this.nameSuggestions=Object.create(null),this.declarations=Object.create(null),this.exportedVariables=new Map}return t.prototype.setRenderPath=function(t,e){return t.paths&&(this.renderPath="function"==typeof t.paths?t.paths(this.id):t.paths[this.id]),this.renderPath||(ee(this.id)?(this.renderPath=re(ae(e,this.id)),this.renormalizeRenderPath=!0):this.renderPath=this.id),this.renderPath},t.prototype.suggestName=function(t){this.nameSuggestions[t]||(this.nameSuggestions[t]=0),this.nameSuggestions[t]+=1,this.nameSuggestions[t]>this.mostCommonSuggestion&&(this.mostCommonSuggestion=this.nameSuggestions[t],this.name=t)},t.prototype.warnUnusedImports=function(){var t=this,e=Object.keys(this.declarations).filter(function(e){if("*"===e)return!1;var n=t.declarations[e];return!n.included&&!t.reexported&&!n.referenced});if(0!==e.length){var n=1===e.length?"'"+e[0]+"' is":e.slice(0,-1).map(function(t){return"'"+t+"'"}).join(", ")+" and '"+e.slice(-1)+"' are";this.graph.warn({code:"UNUSED_EXTERNAL_IMPORT",source:this.id,names:e,message:n+" imported from external module '"+this.id+"' but never used"})}},t.prototype.traceExport=function(t,e){"default"!==t&&"*"!==t&&(this.exportsNames=!0),"*"===t&&(this.exportsNamespace=!0);var n=this.declarations[t];return n||(this.declarations[t]=n=new Ht(this,t),this.exportedVariables.set(n,t),n)},t}(),ce="Object.defineProperty(exports, '__esModule', { value: true });",pe="Object.defineProperty(exports,'__esModule',{value:true});";function le(t,e,n,r,i,s){void 0===s&&(s="return ");var o,a=i?"":" ";if(!n)return t.some(function(t){return"default"===t.exported&&(o=t.local,!0)}),o||e.some(function(t){return!!t.reexports&&t.reexports.some(function(e){return"default"===e.reexported&&(o=t.namedExportsMode?t.name+"."+e.imported:t.name,!0)})}),""+s+o+";";var h="";return e.forEach(function(t){var e=t.name,r=t.reexports;r&&n&&r.forEach(function(t){"*"===t.reexported&&(!i&&h&&(h+="\n"),h+="Object.keys("+e+").forEach(function"+a+"(key)"+a+"{"+a+"exports[key]"+a+"="+a+e+"[key];"+a+"});")})}),e.forEach(function(t){var e=t.name,s=t.imports,o=t.reexports,u=t.isChunk;o&&n&&o.forEach(function(t){if("default"!==t.imported||u)"*"!==t.imported?(h&&!i&&(h+="\n"),h+="exports."+t.reexported+a+"="+a+e+"."+t.imported+";"):"*"!==t.reexported&&(h&&!i&&(h+="\n"),h+="exports."+t.reexported+a+"="+a+e+";");else{var n=s&&s.some(function(t){return"*"===t.imported||"default"!==t.imported})||o&&o.some(function(t){return"default"!==t.imported&&"*"!==t.imported});h&&!i&&(h+="\n"),h+=n?"exports."+t.reexported+a+"="+a+e+(!1!==r?"__default":".default")+";":"exports."+t.reexported+a+"="+a+e+";"}})}),t.forEach(function(t){var e="exports."+t.exported,n=t.local;e!==n&&(h&&!i&&(h+="\n"),h+=""+e+a+"="+a+n+";")}),h}function fe(t,e,n){return t.map(function(t){var r=t.name,i=t.exportsNames,s=t.exportsDefault;if(t.namedExportsMode)return s&&!1!==e.interop?i?e.compact?n+" "+r+"__default='default'in "+r+"?"+r+"['default']:"+r+";":n+" "+r+"__default = 'default' in "+r+" ? "+r+"['default'] : "+r+";":e.compact?r+"="+r+"&&"+r+".hasOwnProperty('default')?"+r+"['default']:"+r+";":r+" = "+r+" && "+r+".hasOwnProperty('default') ? "+r+"['default'] : "+r+";":null}).filter(Boolean).join(e.compact?"":"\n")}var de={process:!0,events:!0,stream:!0,util:!0,path:!0,buffer:!0,querystring:!0,url:!0,string_decoder:!0,punycode:!0,http:!0,https:!0,os:!0,assert:!0,constants:!0,timers:!0,console:!0,vm:!0,zlib:!0,tty:!0,domain:!0};function me(t,e){var n=e.map(function(t){return t.id}).filter(function(t){return t in de});if(n.length){var r=1===n.length?"module ('"+n[0]+"')":"modules ("+n.slice(0,-1).map(function(t){return"'"+t+"'"}).join(", ")+" and '"+n.slice(-1)+"')";t.warn({code:"MISSING_NODE_BUILTINS",modules:n,message:"Creating a browser bundle that depends on Node.js built-in "+r+". You might need to include https://www.npmjs.com/package/rollup-plugin-node-builtins"})}}function ge(t,e,n){if("number"==typeof n)throw new Error("locate takes a { startIndex, offsetLine, offsetColumn } object as the third argument");return function(t,e){void 0===e&&(e={});var n=e.offsetLine||0,r=e.offsetColumn||0,i=t.split("\n"),s=0,o=i.map(function(t,e){var n=s+t.length+1,r={start:s,end:n,line:e};return s=n,r}),a=0;function h(t,e){return t.start<=e&&e<t.end}function u(t,e){return{line:n+t.line,column:r+e-t.start,character:e}}return function(e,n){"string"==typeof e&&(e=t.indexOf(e,n||0));for(var r=o[a],i=e>=r.end?1:-1;r;){if(h(r,e))return u(r,e);r=o[a+=i]}}}(t,n)(e,n&&n.startIndex)}function ye(t){return t.replace(/^\t+/,function(t){return t.split("\t").join(" ")})}function ve(t,e,n){var r=t.split("\n"),i=Math.max(0,e-3),s=Math.min(e+2,r.length);for(r=r.slice(i,s);!/\S/.test(r[r.length-1]);)r.pop(),s-=1;var o=String(s).length;return r.map(function(t,r){for(var s=i+r+1===e,a=String(r+i+1);a.length<o;)a=" "+a;if(s){var h=function(t){for(var e="";t--;)e+=" ";return e}(o+2+ye(t.slice(0,n)).length)+"^";return a+": "+ye(t)+"\n"+h}return a+": "+ye(t)}).join("\n")}function xe(t,e){throw t instanceof Error==!1&&(t=Object.assign(new Error(t.message),t)),e&&Object.assign(t,e),t}function _e(t,e,n,r){if(void 0!==e.line&&void 0!==e.column){var i=e.line,s=e.column;t.loc={file:r,line:i,column:s}}else{t.pos=e;var o=ge(n,e,{offsetLine:1});i=o.line,s=o.column;t.loc={file:r,line:i,column:s}}if(void 0===t.frame){var a=t.loc;i=a.line,s=a.column;t.frame=ve(n,i,s)}}var Ee=/^[a-zA-Z$_][a-zA-Z0-9$_]*$/;function be(t){return Ee.test(t)?"."+t:"['"+t+"']"}function Ae(t){return t.split(".").map(be).join("")}function Se(t,e,n,r,i){var s=t.split(".");r&&(s[0]=("function"==typeof r?r(s[0]):r[s[0]])||s[0]);var o=i?"":" ",a=s.pop(),h=e;return n?s.map(function(t){return""+(h+=be(t))+o+"="+o+h+o+"||"+o+"{}"}).concat(""+h+be(a)).join(","+o):s.map(function(t){return""+(h+=be(t))+o+"="+o+h+o+"||"+o+"{}"+(i?"":";")}).join(i?",":"\n")+(i&&s.length?";":"\n")}function we(t){for(var e=t.length;e--;){var n=t[e];if(n.exportsDefault||n.exportsNames)return t.slice(0,e+1)}return[]}var Pe=function(t){return"this"+Ae(t)};function Ie(t){return t?"global"+Ae(t):"null"}var ke={system:function(t,e,n){var r,i=e.graph,s=e.indentString,o=e.intro,a=e.outro,h=e.dependencies,u=e.exports,c=e.usesTopLevelAwait,p=n.compact?"":"\n",l=n.compact?"":" ",f=h.map(function(t){return"'"+t.id+"'"}),d=[],m=[],g=i.varOrConst;h.forEach(function(t){var e=t.imports,n=t.reexports,i=[];if(e&&e.forEach(function(t){d.push(t.local),"*"===t.imported?i.push(""+t.local+l+"="+l+"module;"):i.push(""+t.local+l+"="+l+"module."+t.imported+";")}),n){var o=!1;n.length>1||1===n.length&&("*"===n[0].reexported||"*"===n[0].imported)?(n.forEach(function(t){"*"===t.reexported&&(r||(r=function(t){var e=t.dependencies,n=t.exports,r=new Set(n.map(function(t){return t.exported}));return r.has("default")||r.add("default"),e.forEach(function(t){var e=t.reexports;e&&e.forEach(function(t){"*"===t.imported||r.has(t.reexported)||r.add(t.reexported)})}),r}({dependencies:h,exports:u})),o||(i.push(g+" _setter"+l+"="+l+"{};"),o=!0),i.push("for"+l+"(var _$p"+l+"in"+l+"module)"+l+"{"),i.push(s+"if"+l+"(!_starExcludes[_$p])"+l+"_setter[_$p]"+l+"="+l+"module[_$p];"),i.push("}"))}),n.forEach(function(t){"*"===t.imported&&"*"!==t.reexported&&i.push("exports('"+t.reexported+"',"+l+"module);")}),n.forEach(function(t){"*"!==t.reexported&&"*"!==t.imported&&(o||(i.push(g+" _setter"+l+"="+l+"{};"),o=!0),i.push("_setter."+t.reexported+l+"="+l+"module."+t.imported+";"))}),o&&i.push("exports(_setter);")):n.forEach(function(t){i.push("exports('"+t.reexported+"',"+l+"module."+t.imported+");")})}m.push(i.join(""+p+s+s+s))});var y=[],v=u.filter(function(t){return t.hoisted||t.uninitialized});if(1===v.length){var x=v[0];y.push("exports('"+x.exported+"',"+l+(x.uninitialized?"void 0":x.local)+");")}else if(v.length>1){y.push("exports({");for(var _=0;_<v.length;_++)x=v[_],y.push(""+s+x.exported+":"+l+(x.uninitialized?"void 0":x.local)+(_===v.length-1?"":","));y.push("});")}var E=r?""+p+s+g+" _starExcludes"+l+"="+l+"{"+l+Array.from(r).join(":"+l+"1,"+l)+(r.size?":"+l+"1":"")+l+"};":"",b=d.length?""+p+s+"var "+d.join(","+l)+";":"",A="System.register("+(n.name?"'"+n.name+"',"+l:"")+"["+f.join(","+l)+"],"+l+"function"+l+"(exports,"+l+"module)"+l+"{"+p;A+=s+"'use strict';"+E+b+p,A+=s+"return"+l+"{"+(m.length?""+p+s+s+"setters:"+l+"["+m.map(function(t){return t?"function"+l+"(module)"+l+"{"+p+s+s+s+t+p+s+s+"}":"function"+l+"()"+l+"{}"}).join(","+l)+"],":"")+p,A+=""+s+s+"execute:"+l+(c?"async"+l:"")+"function"+l+"()"+l+"{"+p+p,y.length&&(A+=""+s+s+s+y.join(""+p+s+s+s)+p+p);var S=""+p+p+s+s+"}";return S+=""+p+s+"}"+(n.compact?"":";"),S+=p+"});",o&&t.prepend(o),a&&t.append(a),t.indent(""+s+s+s).append(S).prepend(A)},amd:function(t,e,n){var r=e.graph,i=e.namedExportsMode,s=e.hasExports,o=e.indentString,a=e.intro,h=e.outro,u=e.dynamicImport,c=e.needsAmdModule,p=e.dependencies,l=e.exports,f=e.isEntryModuleFacade;me(r,p);var d=p.map(function(t){return"'"+t.id+"'"}),m=p.map(function(t){return t.name}),g=n.compact?"":"\n",y=n.compact?"":" ";i&&s&&(m.unshift("exports"),d.unshift("'exports'")),u&&(m.unshift("require"),d.unshift("'require'")),c&&(m.unshift("module"),d.unshift("'module'"));var v=n.amd||{},x=(v.id?"'"+v.id+"',"+y:"")+(d.length?"["+d.join(","+y)+"],"+y:""),_=!1!==n.strict?y+"'use strict';":"",E=(v.define||"define")+"("+x+"function"+y+"("+m.join(","+y)+")"+y+"{"+_+g+g,b=fe(p,n,r.varOrConst);b&&t.prepend(b+g+g),a&&t.prepend(a);var A=le(l,p,i,n.interop,n.compact);return A&&t.append(g+g+A),i&&s&&f&&n.esModule&&t.append(""+g+g+(n.compact?pe:ce)),h&&t.append(h),t.indent(o).append(g+g+"});").prepend(E)},cjs:function(t,e,n){var r=e.graph,i=e.isEntryModuleFacade,s=e.namedExportsMode,o=e.hasExports,a=e.intro,h=e.outro,u=e.dependencies,c=e.exports,p=n.compact?"":"\n",l=n.compact?"":" ";a=(!1===n.strict?a:"'use strict';"+p+p+a)+(s&&o&&i&&n.esModule?""+(n.compact?pe:ce)+p+p:"");var f,d=!1,m=r.varOrConst,g=!1!==n.interop;if(n.compact){var y=!1;f="",u.forEach(function(t){var e=t.id,n=t.namedExportsMode,r=t.isChunk,i=t.name,s=t.reexports,o=t.imports,a=t.exportsNames,h=t.exportsDefault;s||o?(f+=y?",":(f?";":"")+m+" ",y=!0,g&&!r&&h&&n?(d=!0,f+=a?i+"=require('"+e+"'),"+i+"__default=_interopDefault("+i+")":i+"=_interopDefault(require('"+e+"'))"):f+=i+"=require('"+e+"')"):(f+=y?";":",",y=!1,f+="require('"+e+"')")}),f.length&&(f+=";")}else f=u.map(function(t){var e=t.id,n=t.namedExportsMode,r=t.isChunk,i=t.name,s=t.reexports,o=t.imports,a=t.exportsNames,h=t.exportsDefault;return s||o?g&&!r&&h&&n?(d=!0,a?m+" "+i+" = require('"+e+"');\n"+m+" "+i+"__default = _interopDefault("+i+");":m+" "+i+" = _interopDefault(require('"+e+"'));"):m+" "+i+" = require('"+e+"');":"require('"+e+"');"}).join("\n");d&&(n.compact?a+="function _interopDefault(e){return(e&&(typeof e==='object')&&'default'in e)?e['default']:e}":a+="function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\n"),f&&(a+=f+p+p);var v=le(c,u,s,n.interop,n.compact,"module.exports"+l+"="+l);return t.prepend(a),v&&t.append(p+p+v),h&&t.append(h),t},es:function(t,e,n){var r=e.intro,i=e.outro,s=e.dependencies,o=e.exports,a=n.compact?"":" ",h=n.compact?"":"\n",u=s.map(function(t){var e=t.id,n=t.reexports,r=t.imports,i=t.name;if(!n&&!r)return"import"+a+"'"+e+"';";var s="";if(r){var o=r.find(function(t){return"default"===t.imported}),u=r.find(function(t){return"*"===t.imported});u&&(s+="import"+a+"*"+a+"as "+u.local+" from"+a+"'"+e+"';",r.length>1&&(s+=h)),o&&1===r.length?s+="import "+o.local+" from"+a+"'"+e+"';":(!u||r.length>1)&&(s+="import "+(o?o.local+","+a:"")+"{"+a+r.filter(function(t){return t!==o&&t!==u}).map(function(t){return t.imported===t.local?t.imported:t.imported+" as "+t.local}).join(","+a)+a+"}"+a+"from"+a+"'"+e+"';")}if(n){r&&(s+=h);var c=n.find(function(t){return"*"===t.reexported}),p=n.find(function(t){return"*"===t.imported&&"*"!==t.reexported});if(c){if(s+="export"+a+"*"+a+"from"+a+"'"+e+"';",1===n.length)return s;s+=h}if(p){if(r&&r.some(function(t){return"*"===t.imported&&t.local===i})||(s+="import"+a+"*"+a+"as "+i+" from"+a+"'"+e+"';"+h),s+="export"+a+"{"+a+(i===p.reexported?i:i+" as "+p.reexported)+" };",n.length===(c?2:1))return s;s+=h}s+="export"+a+"{"+a+n.filter(function(t){return t!==c&&t!==p}).map(function(t){return t.imported===t.reexported?t.imported:t.imported+" as "+t.reexported}).join(","+a)+a+"}"+a+"from"+a+"'"+e+"';"}return s}).join(h);u&&(r+=u+h+h),r&&t.prepend(r);var c=[],p=[];return o.forEach(function(t){"default"===t.exported?c.push("export default "+t.local+";"):p.push(t.exported===t.local?t.local:t.local+" as "+t.exported)}),p.length&&c.push("export"+a+"{"+a+p.join(","+a)+a+"};"),c.length&&t.append(h+h+c.join(h).trim()),i&&t.append(i),t.trim()},iife:function(t,e,n){var r,i=e.graph,s=e.namedExportsMode,o=e.hasExports,a=e.indentString,h=e.intro,u=e.outro,c=e.dependencies,p=e.exports,l=n.compact?"":" ",f=n.compact?"":"\n",d=n.extend,m=n.name,g=m&&-1!==m.indexOf(".");m&&!d&&!g&&(Jt(r=m)||Xt[r]||$t.test(r))&&xe({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:"Given name ("+m+") is not legal JS identifier. If you need this you can try --extend option"}),me(i,c);var y=we(c),v=y.map(function(t){return t.globalName||"null"}),x=y.map(function(t){return t.name});o&&!m&&xe({code:"INVALID_OPTION",message:"You must supply output.name for IIFE bundles"}),d?(v.unshift("("+Pe(m)+l+"="+l+Pe(m)+l+"||"+l+"{})"),x.unshift("exports")):s&&o&&(v.unshift("{}"),x.unshift("exports"));var _="(function"+l+"("+x+")"+l+"{"+f+(!1!==n.strict?a+"'use strict';"+f+f:"");o&&!d&&(_=(g?Pe(m):i.varOrConst+" "+m)+(l+"=")+l+_),g&&(_=Se(m,"this",!1,n.globals,n.compact)+_);var E=""+f+f+"}("+v+"));";!d&&s&&o&&(E=""+f+f+a+"return exports;"+E);var b=fe(c,n,i.varOrConst);b&&t.prepend(b+f+f),h&&t.prepend(h);var A=le(p,c,s,n.interop,n.compact);return A&&t.append(f+f+A),u&&t.append(u),t.indent(a).prepend(_).append(E)},umd:function(t,e,n){var r=e.graph,i=e.namedExportsMode,s=e.hasExports,o=e.indentString,a=e.intro,h=e.outro,u=e.dependencies,c=e.exports,p=n.compact?"":" ",l=n.compact?"":"\n",f=l+l+"})));";s&&!n.name&&xe({code:"INVALID_OPTION",message:"You must supply output.name for UMD bundles"}),me(r,u);var d=u.map(function(t){return"'"+t.id+"'"}),m=u.map(function(t){return"require('"+t.id+"')"}),g=we(u),y=g.map(function(t){return Ie(t.globalName)}),v=g.map(function(t){return t.name});i&&s&&(d.unshift("'exports'"),m.unshift("exports"),y.unshift("("+Se(n.name,"global",!0,n.globals,n.compact)+p+"="+p+(n.extend?""+Ie(n.name)+p+"||"+p:"")+"{})"),v.unshift("exports"));var x,_,E,b,A,S=n.amd||{},w=(S.id?"'"+S.id+"',"+p:"")+(d.length?"["+d.join(","+p)+"],"+p:""),P=S.define||"define",I=!i&&s?"module.exports"+p+"="+p:"",k=!i&&s?""+Se(n.name,"global",!0,n.globals,n.compact)+p+"="+p:"",C=!1!==n.strict?p+"'use strict';"+l:"";if(!0===n.noConflict){var N=void 0;!i&&s?N="var exports"+p+"="+p+"factory("+y+");":i&&(N="var exports"+p+"="+p+y.shift()+";"+l,N+=""+o+o+"factory("+["exports"].concat(y)+");"),x="(function()"+p+"{"+l,x+=""+o+o+"var current"+p+"="+p+(_=n.name,E=n.compact,b=_.split("."),A="global",b.map(function(t){return A+=be(t)}).join(E?"&&":" && "))+";"+l,x+=""+o+o+N+l,x+=""+o+o+Ie(n.name)+p+"="+p+"exports;"+l,x+=""+o+o+"exports.noConflict"+p+"="+p+"function()"+p+"{"+p,x+=""+Ie(n.name)+p+"="+p+"current;"+p+"return exports"+(n.compact?"":"; ")+"};"+l,x+=o+"})()"}else x="("+k+"factory("+y+"))";var R="(function"+p+"(global,"+p+"factory)"+p+"{"+l;R+=o+"typeof exports"+p+"==="+p+"'object'"+p+"&&"+p+"typeof module"+p+"!=="+p+"'undefined'"+p+"?",R+=""+p+I+"factory("+m.join(","+p)+")"+p+":"+l,R+=o+"typeof "+P+p+"==="+p+"'function'"+p+"&&"+p+P+".amd"+p+"?"+p+P+"("+w+"factory)"+p+":"+l,R+=""+o+x+";"+l,R+="}(this,"+p+"(function"+p+"("+v+")"+p+"{"+C+l;var O=fe(u,n,r.varOrConst);O&&t.prepend(O+l+l),a&&t.prepend(a);var M=le(c,u,i,n.interop,n.compact);return M&&t.append(l+l+M),i&&s&&n.esModule&&t.append(l+l+(n.compact?pe:ce)),h&&t.append(h),t.trim().indent(o).append(f).prepend(R)}},Ce=Object.create(null),Ne={isNoStatement:!0};function Re(t,e,n){var r,i;for(void 0===n&&(n=0),r=t.indexOf(e,n);;){if(-1===(n=t.indexOf("/",n))||n>r)return r;if(i=t.charCodeAt(++n),++n,47===i){if(0===(n=t.indexOf("\n",n)+1))return-1;n>r&&(r=t.indexOf(e,n))}else 42===i&&(n=t.indexOf("*/",n)+2)>r&&(r=t.indexOf(e,n))}}function Oe(t,e){var n,r;for(void 0===e&&(e=0),n=t.indexOf("\n",e);;){if(-1===(e=t.indexOf("/",e))||e>n)return n;if(47===(r=t.charCodeAt(++e)))return n;++e,42===r&&(e=t.indexOf("*/",e)+2)>n&&(n=t.indexOf("\n",e))}}function Me(t,e,n,r,i){if(0!==t.length){var s,o,a,h,u=t[0],c=!u.included||u.needsBoundaries;c&&(h=n+Oe(e.original.slice(n,u.start))+1);for(var p=1;p<=t.length;p++)s=u,o=h,a=c,c=void 0!==(u=t[p])&&(!u.included||u.needsBoundaries),a||c?(h=s.end+Oe(e.original.slice(s.end,void 0===u?r:u.start))+1,s.included?a?s.render(e,i,{start:o,end:h}):s.render(e,i):e.remove(o,h)):s.render(e,i)}}function Le(t,e,n,r){for(var i,s,o,a,h,u=[],c=n-1,p=0;p<t.length;p++){for(s=t[p],void 0!==i&&(c=i.end+Re(e.original.slice(i.end,s.start),",")),o=a=c+2+Oe(e.original.slice(c+1,s.start));32===(h=e.original.charCodeAt(o))||9===h||10===h||13===h;)o++;void 0!==i&&u.push({node:i,start:n,contentEnd:a,separator:c,end:o}),i=s,n=o}return u.push({node:i,start:n,separator:null,contentEnd:r,end:r}),u}var Te="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$";function De(t,e){void 0===e&&(e=!1);var n="",r=e?63:64;do{var i=t%r;t=Math.floor(t/r),n=Te[i]+n}while(0!==t);return n}var Ve,ze=function(){function t(t){void 0===t&&(t=null),this.isModuleScope=!1,this.parent=t,this.children=[],this.parent&&this.parent.children.push(this),this.variables=Object.create(null)}return t.prototype.addDeclaration=function(t,e,n,r){void 0===n&&(n=null);var i=t.name;return this.variables[i]?this.variables[i].addDeclaration(t,n):this.variables[i]=new Vt(t.name,t,n||ct,e),this.variables[i]},t.prototype.addExportDefaultDeclaration=function(t,e,n){return this.variables.default=new Bt(t,e,n),this.variables.default},t.prototype.addReturnExpression=function(t){this.parent&&this.parent.addReturnExpression(t)},t.prototype.contains=function(t){return t in this.variables||!!this.parent&&this.parent.contains(t)},t.prototype.deshadow=function(t,e){void 0===e&&(e=this.children);for(var n=0,r=Object.keys(this.variables);n<r.length;n++){var i=r[n],s=this.variables[i];if((!s.exportName||!s.isReassigned||s.isId)&&!s.isDefault){var o=s.getName(!0);if(t.has(o)){o=s.name;var a=void 0,h=1;do{a=o+"$$"+De(h++)}while(t.has(a));s.setSafeName(a)}}}for(var u=0,c=e;u<c.length;u++){c[u].deshadow(t)}},t.prototype.findLexicalBoundary=function(){return this.parent.findLexicalBoundary()},t.prototype.findVariable=function(t){return this.variables[t]||this.parent&&this.parent.findVariable(t)},t}(),Be=o(function(t,e){t.exports=function(){var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return o(t)?t:H(t)}function r(t){return a(t)?t:K(t)}function i(t){return h(t)?t:Y(t)}function s(t){return o(t)&&!u(t)?t:X(t)}function o(t){return!(!t||!t[p])}function a(t){return!(!t||!t[l])}function h(t){return!(!t||!t[f])}function u(t){return a(t)||h(t)}function c(t){return!(!t||!t[d])}e(r,n),e(i,n),e(s,n),n.isIterable=o,n.isKeyed=a,n.isIndexed=h,n.isAssociative=u,n.isOrdered=c,n.Keyed=r,n.Indexed=i,n.Set=s;var p="@@__IMMUTABLE_ITERABLE__@@",l="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",d="@@__IMMUTABLE_ORDERED__@@",m=5,g=1<<m,y=g-1,v={},x={value:!1},_={value:!1};function E(t){return t.value=!1,t}function b(t){t&&(t.value=!0)}function A(){}function S(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i<n;i++)r[i]=t[i+e];return r}function w(t){return void 0===t.size&&(t.size=t.__iterate(I)),t.size}function P(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?w(t)+e:e}function I(){return!0}function k(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function C(t,e){return R(t,e,0)}function N(t,e){return R(t,e,e)}function R(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var O=0,M=1,L=2,T="function"==typeof Symbol&&Symbol.iterator,D="@@iterator",V=T||D;function z(t){this.next=t}function B(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function W(){return{value:void 0,done:!0}}function j(t){return!!q(t)}function U(t){return t&&"function"==typeof t.next}function F(t){var e=q(t);return e&&e.call(t)}function q(t){var e=t&&(T&&t[T]||t[D]);if("function"==typeof e)return e}function G(t){return t&&"number"==typeof t.length}function H(t){return null==t?st():o(t)?t.toSeq():function(t){var e=ht(t)||"object"==typeof t&&new et(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function K(t){return null==t?st().toKeyedSeq():o(t)?a(t)?t.toSeq():t.fromEntrySeq():ot(t)}function Y(t){return null==t?st():o(t)?a(t)?t.entrySeq():t.toIndexedSeq():at(t)}function X(t){return(null==t?st():o(t)?a(t)?t.entrySeq():t:at(t)).toSetSeq()}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=O,z.VALUES=M,z.ENTRIES=L,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[V]=function(){return this},e(H,n),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(t,e){return ut(this,t,e,!0)},H.prototype.__iterator=function(t,e){return ct(this,t,e,!0)},e(K,H),K.prototype.toKeyedSeq=function(){return this},e(Y,H),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(t,e){return ut(this,t,e,!1)},Y.prototype.__iterator=function(t,e){return ct(this,t,e,!1)},e(X,H),X.of=function(){return X(arguments)},X.prototype.toSetSeq=function(){return this},H.isSeq=it,H.Keyed=K,H.Set=X,H.Indexed=Y;var $,J,Q,Z="@@__IMMUTABLE_SEQ__@@";function tt(t){this._array=t,this.size=t.length}function et(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function nt(t){this._iterable=t,this.size=t.length||t.size}function rt(t){this._iterator=t,this._iteratorCache=[]}function it(t){return!(!t||!t[Z])}function st(){return $||($=new tt([]))}function ot(t){var e=Array.isArray(t)?new tt(t).fromEntrySeq():U(t)?new rt(t).fromEntrySeq():j(t)?new nt(t).fromEntrySeq():"object"==typeof t?new et(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function at(t){var e=ht(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ht(t){return G(t)?new tt(t):U(t)?new rt(t):j(t)?new nt(t):void 0}function ut(t,e,n,r){var i=t._cache;if(i){for(var s=i.length-1,o=0;o<=s;o++){var a=i[n?s-o:o];if(!1===e(a[1],r?a[0]:o,t))return o+1}return o}return t.__iterateUncached(e,n)}function ct(t,e,n,r){var i=t._cache;if(i){var s=i.length-1,o=0;return new z(function(){var t=i[n?s-o:o];return o++>s?{value:void 0,done:!0}:B(e,r?t[0]:o-1,t[1])})}return t.__iteratorUncached(e,n)}function pt(t,e){return e?function t(e,n,r,i){return Array.isArray(n)?e.call(i,r,Y(n).map(function(r,i){return t(e,r,i,n)})):ft(n)?e.call(i,r,K(n).map(function(r,i){return t(e,r,i,n)})):n}(e,t,"",{"":t}):lt(t)}function lt(t){return Array.isArray(t)?Y(t).map(lt).toList():ft(t)?K(t).map(lt).toMap():t}function ft(t){return t&&(t.constructor===Object||void 0===t.constructor)}function dt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function mt(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||a(t)!==a(e)||h(t)!==h(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(c(t)){var r=t.entries();return e.every(function(t,e){var i=r.next().value;return i&&dt(i[1],t)&&(n||dt(i[0],e))})&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var s=t;t=e,e=s}var p=!0,l=e.__iterate(function(e,r){if(n?!t.has(e):i?!dt(e,t.get(r,v)):!dt(t.get(r,v),e))return p=!1,!1});return p&&t.size===l}function gt(t,e){if(!(this instanceof gt))return new gt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(J)return J;J=this}}function yt(t,e){if(!t)throw new Error(e)}function vt(t,e,n){if(!(this instanceof vt))return new vt(t,e,n);if(yt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function xt(){throw TypeError("Abstract")}function _t(){}function Et(){}function bt(){}H.prototype[Z]=!0,e(tt,Y),tt.prototype.get=function(t,e){return this.has(t)?this._array[P(this,t)]:e},tt.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===t(n[e?r-i:i],i,this))return i+1;return i},tt.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,i=0;return new z(function(){return i>r?{value:void 0,done:!0}:B(t,i,n[e?r-i++:i++])})},e(et,K),et.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},et.prototype.has=function(t){return this._object.hasOwnProperty(t)},et.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,s=0;s<=i;s++){var o=r[e?i-s:s];if(!1===t(n[o],o,this))return s+1}return s},et.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,s=0;return new z(function(){var o=r[e?i-s:s];return s++>i?{value:void 0,done:!0}:B(t,o,n[o])})},et.prototype[d]=!0,e(nt,Y),nt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=this._iterable,r=F(n),i=0;if(U(r))for(var s;!(s=r.next()).done&&!1!==t(s.value,i++,this););return i},nt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=F(n);if(!U(r))return new z(W);var i=0;return new z(function(){var e=r.next();return e.done?e:B(t,i++,e.value)})},e(rt,Y),rt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,i=this._iteratorCache,s=0;s<i.length;)if(!1===t(i[s],s++,this))return s;for(;!(n=r.next()).done;){var o=n.value;if(i[s]=o,!1===t(o,s++,this))break}return s},rt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,i=0;return new z(function(){if(i>=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return B(t,i,r[i++])})},e(gt,Y),gt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},gt.prototype.get=function(t,e){return this.has(t)?this._value:e},gt.prototype.includes=function(t){return dt(this._value,t)},gt.prototype.slice=function(t,e){var n=this.size;return k(t,e,n)?this:new gt(this._value,N(e,n)-C(t,n))},gt.prototype.reverse=function(){return this},gt.prototype.indexOf=function(t){return dt(this._value,t)?0:-1},gt.prototype.lastIndexOf=function(t){return dt(this._value,t)?this.size:-1},gt.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},gt.prototype.__iterator=function(t,e){var n=this,r=0;return new z(function(){return r<n.size?B(t,r++,n._value):{value:void 0,done:!0}})},gt.prototype.equals=function(t){return t instanceof gt?dt(this._value,t._value):mt(t)},e(vt,Y),vt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},vt.prototype.get=function(t,e){return this.has(t)?this._start+P(this,t)*this._step:e},vt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},vt.prototype.slice=function(t,e){return k(t,e,this.size)?this:(t=C(t,this.size),(e=N(e,this.size))<=t?new vt(0,0):new vt(this.get(t,this._end),this.get(e,this._end),this._step))},vt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},vt.prototype.lastIndexOf=function(t){return this.indexOf(t)},vt.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,s=0;s<=n;s++){if(!1===t(i,s,this))return s+1;i+=e?-r:r}return s},vt.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,s=0;return new z(function(){var o=i;return i+=e?-r:r,s>n?{value:void 0,done:!0}:B(t,s++,o)})},vt.prototype.equals=function(t){return t instanceof vt?this._start===t._start&&this._end===t._end&&this._step===t._step:mt(this,t)},e(xt,n),e(_t,xt),e(Et,xt),e(bt,xt),xt.Keyed=_t,xt.Indexed=Et,xt.Set=bt;var At="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function St(t){return t>>>1&1073741824|3221225471&t}function wt(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e,n,r=typeof t;if("number"===r){if(t!=t||t===1/0)return 0;var i=0|t;for(i!==t&&(i^=4294967295*t);t>4294967295;)i^=t/=4294967295;return St(i)}if("string"===r)return t.length>Mt?(void 0===(n=Dt[e=t])&&(n=Pt(e),Tt===Lt&&(Tt=0,Dt={}),Tt++,Dt[e]=n),n):Pt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===r)return function(t){var e;if(Nt&&void 0!==(e=It.get(t)))return e;if(void 0!==(e=t[Ot]))return e;if(!Ct){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ot]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++Rt,1073741824&Rt&&(Rt=0),Nt)It.set(t,e);else{if(void 0!==kt&&!1===kt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(Ct)Object.defineProperty(t,Ot,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Ot]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Ot]=e}}return e}(t);if("function"==typeof t.toString)return Pt(t.toString());throw new Error("Value type "+r+" cannot be hashed.")}function Pt(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return St(e)}var It,kt=Object.isExtensible,Ct=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Nt="function"==typeof WeakMap;Nt&&(It=new WeakMap);var Rt=0,Ot="__immutablehash__";"function"==typeof Symbol&&(Ot=Symbol(Ot));var Mt=16,Lt=255,Tt=0,Dt={};function Vt(t){yt(t!==1/0,"Cannot perform this action with an infinite size.")}function zt(t){return null==t?Qt():Bt(t)&&!c(t)?t:Qt().withMutations(function(e){var n=r(t);Vt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function Bt(t){return!(!t||!t[jt])}e(zt,_t),zt.of=function(){var e=t.call(arguments,0);return Qt().withMutations(function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},zt.prototype.toString=function(){return this.__toString("Map {","}")},zt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},zt.prototype.set=function(t,e){return Zt(this,t,e)},zt.prototype.setIn=function(t,e){return this.updateIn(t,v,function(){return e})},zt.prototype.remove=function(t){return Zt(this,t,v)},zt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return v})},zt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},zt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=function t(e,n,r,i){var s=e===v,o=n.next();if(o.done){var a=s?r:e,h=i(a);return h===a?e:h}yt(s||e&&e.set,"invalid keyPath");var u=o.value,c=s?v:e.get(u,v),p=t(c,n,r,i);return p===c?e:p===v?e.remove(u):(s?Qt():e).set(u,p)}(this,nn(t),e,n);return r===v?void 0:r},zt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Qt()},zt.prototype.merge=function(){return re(this,void 0,arguments)},zt.prototype.mergeWith=function(e){var n=t.call(arguments,1);return re(this,e,n)},zt.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Qt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]})},zt.prototype.mergeDeep=function(){return re(this,ie,arguments)},zt.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return re(this,se(e),n)},zt.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Qt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]})},zt.prototype.sort=function(t){return Ce(Ge(this,t))},zt.prototype.sortBy=function(t,e){return Ce(Ge(this,e,t))},zt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},zt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new A)},zt.prototype.asImmutable=function(){return this.__ensureOwner()},zt.prototype.wasAltered=function(){return this.__altered},zt.prototype.__iterator=function(t,e){return new Yt(this,t,e)},zt.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},zt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Jt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},zt.isMap=Bt;var Wt,jt="@@__IMMUTABLE_MAP__@@",Ut=zt.prototype;function Ft(t,e){this.ownerID=t,this.entries=e}function qt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Gt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function Ht(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function Kt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function Yt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&$t(t._root)}function Xt(t,e){return B(t,e[0],e[1])}function $t(t,e){return{node:t,index:0,__prev:e}}function Jt(t,e,n,r){var i=Object.create(Ut);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Qt(){return Wt||(Wt=Jt(0))}function Zt(t,e,n){var r,i;if(t._root){var s=E(x),o=E(_);if(r=te(t._root,t.__ownerID,0,void 0,e,n,s,o),!o.value)return t;i=t.size+(s.value?n===v?-1:1:0)}else{if(n===v)return t;i=1,r=new Ft(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?Jt(i,r):Qt()}function te(t,e,n,r,i,s,o,a){return t?t.update(e,n,r,i,s,o,a):s===v?t:(b(a),b(o),new Kt(e,r,[i,s]))}function ee(t){return t.constructor===Kt||t.constructor===Ht}function ne(t,e,n,r,i){if(t.keyHash===r)return new Ht(e,r,[t.entry,i]);var s,o=(0===n?t.keyHash:t.keyHash>>>n)&y,a=(0===n?r:r>>>n)&y,h=o===a?[ne(t,e,n+m,r,i)]:(s=new Kt(e,r,i),o<a?[t,s]:[s,t]);return new qt(e,1<<o|1<<a,h)}function re(t,e,n){for(var i=[],s=0;s<n.length;s++){var a=n[s],h=r(a);o(a)||(h=h.map(function(t){return pt(t)})),i.push(h)}return oe(t,e,i)}function ie(t,e,n){return t&&t.mergeDeep&&o(e)?t.mergeDeep(e):dt(t,e)?t:e}function se(t){return function(e,n,r){if(e&&e.mergeDeepWith&&o(n))return e.mergeDeepWith(t,n);var i=t(e,n,r);return dt(e,i)?e:i}}function oe(t,e,n){return 0===(n=n.filter(function(t){return 0!==t.size})).length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,v,function(t){return t===v?n:e(t,n,r)})}:function(e,n){t.set(n,e)},i=0;i<n.length;i++)n[i].forEach(r)}):t.constructor(n[0])}function ae(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function he(t,e,n,r){var i=r?t:S(t);return i[e]=n,i}Ut[jt]=!0,Ut.delete=Ut.remove,Ut.removeIn=Ut.deleteIn,Ft.prototype.get=function(t,e,n,r){for(var i=this.entries,s=0,o=i.length;s<o;s++)if(dt(n,i[s][0]))return i[s][1];return r},Ft.prototype.update=function(t,e,n,r,i,s,o){for(var a=i===v,h=this.entries,u=0,c=h.length;u<c&&!dt(r,h[u][0]);u++);var p=u<c;if(p?h[u][1]===i:a)return this;if(b(o),(a||!p)&&b(s),!a||1!==h.length){if(!p&&!a&&h.length>=ue)return function(t,e,n,r){t||(t=new A);for(var i=new Kt(t,wt(n),[n,r]),s=0;s<e.length;s++){var o=e[s];i=i.update(t,0,void 0,o[0],o[1])}return i}(t,h,r,i);var l=t&&t===this.ownerID,f=l?h:S(h);return p?a?u===c-1?f.pop():f[u]=f.pop():f[u]=[r,i]:f.push([r,i]),l?(this.entries=f,this):new Ft(t,f)}},qt.prototype.get=function(t,e,n,r){void 0===e&&(e=wt(n));var i=1<<((0===t?e:e>>>t)&y),s=this.bitmap;return 0==(s&i)?r:this.nodes[ae(s&i-1)].get(t+m,e,n,r)},qt.prototype.update=function(t,e,n,r,i,s,o){void 0===n&&(n=wt(r));var a=(0===e?n:n>>>e)&y,h=1<<a,u=this.bitmap,c=0!=(u&h);if(!c&&i===v)return this;var p=ae(u&h-1),l=this.nodes,f=c?l[p]:void 0,d=te(f,t,e+m,n,r,i,s,o);if(d===f)return this;if(!c&&d&&l.length>=ce)return function(t,e,n,r,i){for(var s=0,o=new Array(g),a=0;0!==n;a++,n>>>=1)o[a]=1&n?e[s++]:void 0;return o[r]=i,new Gt(t,s+1,o)}(t,l,u,a,d);if(c&&!d&&2===l.length&&ee(l[1^p]))return l[1^p];if(c&&d&&1===l.length&&ee(d))return d;var x=t&&t===this.ownerID,_=c?d?u:u^h:u|h,E=c?d?he(l,p,d,x):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),s=0,o=0;o<r;o++)o===e&&(s=1),i[o]=t[o+s];return i}(l,p,x):function(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var s=new Array(i),o=0,a=0;a<i;a++)a===e?(s[a]=n,o=-1):s[a]=t[a+o];return s}(l,p,d,x);return x?(this.bitmap=_,this.nodes=E,this):new qt(t,_,E)},Gt.prototype.get=function(t,e,n,r){void 0===e&&(e=wt(n));var i=(0===t?e:e>>>t)&y,s=this.nodes[i];return s?s.get(t+m,e,n,r):r},Gt.prototype.update=function(t,e,n,r,i,s,o){void 0===n&&(n=wt(r));var a=(0===e?n:n>>>e)&y,h=i===v,u=this.nodes,c=u[a];if(h&&!c)return this;var p=te(c,t,e+m,n,r,i,s,o);if(p===c)return this;var l=this.count;if(c){if(!p&&--l<pe)return function(t,e,n,r){for(var i=0,s=0,o=new Array(n),a=0,h=1,u=e.length;a<u;a++,h<<=1){var c=e[a];void 0!==c&&a!==r&&(i|=h,o[s++]=c)}return new qt(t,i,o)}(t,u,l,a)}else l++;var f=t&&t===this.ownerID,d=he(u,a,p,f);return f?(this.count=l,this.nodes=d,this):new Gt(t,l,d)},Ht.prototype.get=function(t,e,n,r){for(var i=this.entries,s=0,o=i.length;s<o;s++)if(dt(n,i[s][0]))return i[s][1];return r},Ht.prototype.update=function(t,e,n,r,i,s,o){void 0===n&&(n=wt(r));var a=i===v;if(n!==this.keyHash)return a?this:(b(o),b(s),ne(this,t,e,n,[r,i]));for(var h=this.entries,u=0,c=h.length;u<c&&!dt(r,h[u][0]);u++);var p=u<c;if(p?h[u][1]===i:a)return this;if(b(o),(a||!p)&&b(s),a&&2===c)return new Kt(t,this.keyHash,h[1^u]);var l=t&&t===this.ownerID,f=l?h:S(h);return p?a?u===c-1?f.pop():f[u]=f.pop():f[u]=[r,i]:f.push([r,i]),l?(this.entries=f,this):new Ht(t,this.keyHash,f)},Kt.prototype.get=function(t,e,n,r){return dt(n,this.entry[0])?this.entry[1]:r},Kt.prototype.update=function(t,e,n,r,i,s,o){var a=i===v,h=dt(r,this.entry[0]);return(h?i===this.entry[1]:a)?this:(b(o),a?void b(s):h?t&&t===this.ownerID?(this.entry[1]=i,this):new Kt(t,this.keyHash,[r,i]):(b(s),ne(this,t,e,wt(r),[r,i])))},Ft.prototype.iterate=Ht.prototype.iterate=function(t,e){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===t(n[e?i-r:r]))return!1},qt.prototype.iterate=Gt.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var s=n[e?i-r:r];if(s&&!1===s.iterate(t,e))return!1}},Kt.prototype.iterate=function(t,e){return t(this.entry)},e(Yt,z),Yt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,i=e.index++;if(r.entry){if(0===i)return Xt(t,r.entry)}else if(r.entries){if(n=r.entries.length-1,i<=n)return Xt(t,r.entries[this._reverse?n-i:i])}else if(n=r.nodes.length-1,i<=n){var s=r.nodes[this._reverse?n-i:i];if(s){if(s.entry)return Xt(t,s.entry);e=this._stack=$t(s,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ue=g/4,ce=g/2,pe=g/4;function le(t){var e=be();if(null==t)return e;if(fe(t))return t;var n=i(t),r=n.size;return 0===r?e:(Vt(r),r>0&&r<g?Ee(0,r,m,null,new ge(n.toArray())):e.withMutations(function(t){t.setSize(r),n.forEach(function(e,n){return t.set(n,e)})}))}function fe(t){return!(!t||!t[de])}e(le,Et),le.of=function(){return this(arguments)},le.prototype.toString=function(){return this.__toString("List [","]")},le.prototype.get=function(t,e){if((t=P(this,t))>=0&&t<this.size){var n=we(this,t+=this._origin);return n&&n.array[t&y]}return e},le.prototype.set=function(t,e){return function(t,e,n){if((e=P(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Pe(t,e).set(0,n):Pe(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,i=t._root,s=E(_);return e>=ke(t._capacity)?r=Ae(r,t.__ownerID,0,e,n,s):i=Ae(i,t.__ownerID,t._level,e,n,s),s.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):Ee(t._origin,t._capacity,t._level,i,r):t}(this,t,e)},le.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},le.prototype.insert=function(t,e){return this.splice(t,0,e)},le.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):be()},le.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Pe(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},le.prototype.pop=function(){return Pe(this,0,-1)},le.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Pe(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},le.prototype.shift=function(){return Pe(this,1)},le.prototype.merge=function(){return Ie(this,void 0,arguments)},le.prototype.mergeWith=function(e){var n=t.call(arguments,1);return Ie(this,e,n)},le.prototype.mergeDeep=function(){return Ie(this,ie,arguments)},le.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return Ie(this,se(e),n)},le.prototype.setSize=function(t){return Pe(this,0,t)},le.prototype.slice=function(t,e){var n=this.size;return k(t,e,n)?this:Pe(this,C(t,n),N(e,n))},le.prototype.__iterator=function(t,e){var n=0,r=_e(this,e);return new z(function(){var e=r();return e===xe?{value:void 0,done:!0}:B(t,n++,e)})},le.prototype.__iterate=function(t,e){for(var n,r=0,i=_e(this,e);(n=i())!==xe&&!1!==t(n,r++,this););return r},le.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ee(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},le.isList=fe;var de="@@__IMMUTABLE_LIST__@@",me=le.prototype;function ge(t,e){this.array=t,this.ownerID=e}me[de]=!0,me.delete=me.remove,me.setIn=Ut.setIn,me.deleteIn=me.removeIn=Ut.removeIn,me.update=Ut.update,me.updateIn=Ut.updateIn,me.mergeIn=Ut.mergeIn,me.mergeDeepIn=Ut.mergeDeepIn,me.withMutations=Ut.withMutations,me.asMutable=Ut.asMutable,me.asImmutable=Ut.asImmutable,me.wasAltered=Ut.wasAltered,ge.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&y;if(r>=this.array.length)return new ge([],t);var i,s=0===r;if(e>0){var o=this.array[r];if((i=o&&o.removeBefore(t,e-m,n))===o&&s)return this}if(s&&!i)return this;var a=Se(this,t);if(!s)for(var h=0;h<r;h++)a.array[h]=void 0;return i&&(a.array[r]=i),a},ge.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,i=n-1>>>e&y;if(i>=this.array.length)return this;if(e>0){var s=this.array[i];if((r=s&&s.removeAfter(t,e-m,n))===s&&i===this.array.length-1)return this}var o=Se(this,t);return o.array.splice(i+1),r&&(o.array[i]=r),o};var ye,ve,xe={};function _e(t,e){var n=t._origin,r=t._capacity,i=ke(r),s=t._tail;return o(t._root,t._level,0);function o(t,a,h){return 0===a?function(t,o){var a=o===i?s&&s.array:t&&t.array,h=o>n?0:n-o,u=r-o;return u>g&&(u=g),function(){if(h===u)return xe;var t=e?--u:h++;return a&&a[t]}}(t,h):function(t,i,s){var a,h=t&&t.array,u=s>n?0:n-s>>i,c=1+(r-s>>i);return c>g&&(c=g),function(){for(;;){if(a){var t=a();if(t!==xe)return t;a=null}if(u===c)return xe;var n=e?--c:u++;a=o(h&&h[n],i-m,s+(n<<i))}}}(t,a,h)}}function Ee(t,e,n,r,i,s,o){var a=Object.create(me);return a.size=e-t,a._origin=t,a._capacity=e,a._level=n,a._root=r,a._tail=i,a.__ownerID=s,a.__hash=o,a.__altered=!1,a}function be(){return ye||(ye=Ee(0,0,m))}function Ae(t,e,n,r,i,s){var o,a=r>>>n&y,h=t&&a<t.array.length;if(!h&&void 0===i)return t;if(n>0){var u=t&&t.array[a],c=Ae(u,e,n-m,r,i,s);return c===u?t:((o=Se(t,e)).array[a]=c,o)}return h&&t.array[a]===i?t:(b(s),o=Se(t,e),void 0===i&&a===o.array.length-1?o.array.pop():o.array[a]=i,o)}function Se(t,e){return e&&t&&e===t.ownerID?t:new ge(t?t.array.slice():[],e)}function we(t,e){if(e>=ke(t._capacity))return t._tail;if(e<1<<t._level+m){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&y],r-=m;return n}}function Pe(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new A,i=t._origin,s=t._capacity,o=i+e,a=void 0===n?s:n<0?s+n:i+n;if(o===i&&a===s)return t;if(o>=a)return t.clear();for(var h=t._level,u=t._root,c=0;o+c<0;)u=new ge(u&&u.array.length?[void 0,u]:[],r),c+=1<<(h+=m);c&&(o+=c,i+=c,a+=c,s+=c);for(var p=ke(s),l=ke(a);l>=1<<h+m;)u=new ge(u&&u.array.length?[u]:[],r),h+=m;var f=t._tail,d=l<p?we(t,a-1):l>p?new ge([],r):f;if(f&&l>p&&o<s&&f.array.length){for(var g=u=Se(u,r),v=h;v>m;v-=m){var x=p>>>v&y;g=g.array[x]=Se(g.array[x],r)}g.array[p>>>m&y]=f}if(a<s&&(d=d&&d.removeAfter(r,0,a)),o>=l)o-=l,a-=l,h=m,u=null,d=d&&d.removeBefore(r,0,o);else if(o>i||l<p){for(c=0;u;){var _=o>>>h&y;if(_!==l>>>h&y)break;_&&(c+=(1<<h)*_),h-=m,u=u.array[_]}u&&o>i&&(u=u.removeBefore(r,h,o-c)),u&&l<p&&(u=u.removeAfter(r,h,l-c)),c&&(o-=c,a-=c)}return t.__ownerID?(t.size=a-o,t._origin=o,t._capacity=a,t._level=h,t._root=u,t._tail=d,t.__hash=void 0,t.__altered=!0,t):Ee(o,a,h,u,d)}function Ie(t,e,n){for(var r=[],s=0,a=0;a<n.length;a++){var h=n[a],u=i(h);u.size>s&&(s=u.size),o(h)||(u=u.map(function(t){return pt(t)})),r.push(u)}return s>t.size&&(t=t.setSize(s)),oe(t,e,r)}function ke(t){return t<g?0:t-1>>>m<<m}function Ce(t){return null==t?Oe():Ne(t)?t:Oe().withMutations(function(e){var n=r(t);Vt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function Ne(t){return Bt(t)&&c(t)}function Re(t,e,n,r){var i=Object.create(Ce.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i}function Oe(){return ve||(ve=Re(Qt(),be()))}function Me(t,e,n){var r,i,s=t._map,o=t._list,a=s.get(e),h=void 0!==a;if(n===v){if(!h)return t;o.size>=g&&o.size>=2*s.size?(i=o.filter(function(t,e){return void 0!==t&&a!==e}),r=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=s.remove(e),i=a===o.size-1?o.pop():o.set(a,void 0))}else if(h){if(n===o.get(a)[1])return t;r=s,i=o.set(a,[e,n])}else r=s.set(e,o.size),i=o.set(o.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):Re(r,i)}function Le(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Te(t){this._iter=t,this.size=t.size}function De(t){this._iter=t,this.size=t.size}function Ve(t){this._iter=t,this.size=t.size}function ze(t){var e=Ze(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=tn,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(e===L){var r=t.__iterator(e,n);return new z(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===M?O:M,n)},e}function Be(t,e,n){var r=Ze(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var s=t.get(r,v);return s===v?i:e.call(n,s,r,t)},r.__iterateUncached=function(r,i){var s=this;return t.__iterate(function(t,i,o){return!1!==r(e.call(n,t,i,o),i,s)},i)},r.__iteratorUncached=function(r,i){var s=t.__iterator(L,i);return new z(function(){var i=s.next();if(i.done)return i;var o=i.value,a=o[0];return B(r,a,e.call(n,o[1],a,t),i)})},r}function We(t,e){var n=Ze(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=ze(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=tn,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function je(t,e,n,r){var i=Ze(t);return r&&(i.has=function(r){var i=t.get(r,v);return i!==v&&!!e.call(n,i,r,t)},i.get=function(r,i){var s=t.get(r,v);return s!==v&&e.call(n,s,r,t)?s:i}),i.__iterateUncached=function(i,s){var o=this,a=0;return t.__iterate(function(t,s,h){if(e.call(n,t,s,h))return a++,i(t,r?s:a-1,o)},s),a},i.__iteratorUncached=function(i,s){var o=t.__iterator(L,s),a=0;return new z(function(){for(;;){var s=o.next();if(s.done)return s;var h=s.value,u=h[0],c=h[1];if(e.call(n,c,u,t))return B(i,r?u:a++,c,s)}})},i}function Ue(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n===1/0?n=i:n|=0),k(e,n,i))return t;var s=C(e,i),o=N(n,i);if(s!=s||o!=o)return Ue(t.toSeq().cacheResult(),e,n,r);var a,h=o-s;h==h&&(a=h<0?0:h);var u=Ze(t);return u.size=0===a?a:t.size&&a||void 0,!r&&it(t)&&a>=0&&(u.get=function(e,n){return(e=P(this,e))>=0&&e<a?t.get(e+s,n):n}),u.__iterateUncached=function(e,n){var i=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(e,n);var o=0,h=!0,u=0;return t.__iterate(function(t,n){if(!h||!(h=o++<s))return u++,!1!==e(t,r?n:u-1,i)&&u!==a}),u},u.__iteratorUncached=function(e,n){if(0!==a&&n)return this.cacheResult().__iterator(e,n);var i=0!==a&&t.__iterator(e,n),o=0,h=0;return new z(function(){for(;o++<s;)i.next();if(++h>a)return{value:void 0,done:!0};var t=i.next();return r||e===M?t:B(e,h-1,e===O?void 0:t.value[1],t)})},u}function Fe(t,e,n,r){var i=Ze(t);return i.__iterateUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterate(i,s);var a=!0,h=0;return t.__iterate(function(t,s,u){if(!a||!(a=e.call(n,t,s,u)))return h++,i(t,r?s:h-1,o)}),h},i.__iteratorUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterator(i,s);var a=t.__iterator(L,s),h=!0,u=0;return new z(function(){var t,s,c;do{if((t=a.next()).done)return r||i===M?t:B(i,u++,i===O?void 0:t.value[1],t);var p=t.value;s=p[0],c=p[1],h&&(h=e.call(n,c,s,o))}while(h);return i===L?t:B(i,s,c,t)})},i}function qe(t,e,n){var r=Ze(t);return r.__iterateUncached=function(r,i){var s=0,a=!1;return function t(h,u){var c=this;h.__iterate(function(i,h){return(!e||u<e)&&o(i)?t(i,u+1):!1===r(i,n?h:s++,c)&&(a=!0),!a},i)}(t,0),s},r.__iteratorUncached=function(r,i){var s=t.__iterator(r,i),a=[],h=0;return new z(function(){for(;s;){var t=s.next();if(!1===t.done){var u=t.value;if(r===L&&(u=u[1]),e&&!(a.length<e)||!o(u))return n?t:B(r,h++,u,t);a.push(s),s=u.__iterator(r,i)}else s=a.pop()}return{value:void 0,done:!0}})},r}function Ge(t,e,n){e||(e=en);var r=a(t),i=0,s=t.toSeq().map(function(e,r){return[r,e,i++,n?n(e,r,t):e]}).toArray();return s.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){s[e].length=2}:function(t,e){s[e]=t[1]}),r?K(s):h(t)?Y(s):X(s)}function He(t,e,n){if(e||(e=en),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return Ke(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return Ke(e,t,n)?n:t})}function Ke(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Ye(t,e,r){var i=Ze(t);return i.size=new tt(r).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(M,e),i=0;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},i.__iteratorUncached=function(t,i){var s=r.map(function(t){return t=n(t),F(i?t.reverse():t)}),o=0,a=!1;return new z(function(){var n;return a||(n=s.map(function(t){return t.next()}),a=n.some(function(t){return t.done})),a?{value:void 0,done:!0}:B(t,o++,e.apply(null,n.map(function(t){return t.value})))})},i}function Xe(t,e){return it(t)?e:t.constructor(e)}function $e(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Je(t){return Vt(t.size),w(t)}function Qe(t){return a(t)?r:h(t)?i:s}function Ze(t){return Object.create((a(t)?K:h(t)?Y:X).prototype)}function tn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function en(t,e){return t>e?1:t<e?-1:0}function nn(t){var e=F(t);if(!e){if(!G(t))throw new TypeError("Expected iterable or array-like: "+t);e=F(n(t))}return e}function rn(t,e){var n,r=function(s){if(s instanceof r)return s;if(!(this instanceof r))return new r(s);if(!n){n=!0;var o=Object.keys(t);!function(t,e){try{e.forEach(function(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){yt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}.bind(void 0,t))}catch(t){}}(i,o),i.size=o.length,i._name=e,i._keys=o,i._defaultValues=t}this._map=zt(s)},i=r.prototype=Object.create(sn);return i.constructor=r,r}e(Ce,zt),Ce.of=function(){return this(arguments)},Ce.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ce.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Ce.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Oe()},Ce.prototype.set=function(t,e){return Me(this,t,e)},Ce.prototype.remove=function(t){return Me(this,t,v)},Ce.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ce.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Ce.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Ce.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Re(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Ce.isOrderedMap=Ne,Ce.prototype[d]=!0,Ce.prototype.delete=Ce.prototype.remove,e(Le,K),Le.prototype.get=function(t,e){return this._iter.get(t,e)},Le.prototype.has=function(t){return this._iter.has(t)},Le.prototype.valueSeq=function(){return this._iter.valueSeq()},Le.prototype.reverse=function(){var t=this,e=We(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Le.prototype.map=function(t,e){var n=this,r=Be(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},Le.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?Je(this):0,function(i){return t(i,e?--n:n++,r)}),e)},Le.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(M,e),r=e?Je(this):0;return new z(function(){var i=n.next();return i.done?i:B(t,e?--r:r++,i.value,i)})},Le.prototype[d]=!0,e(Te,Y),Te.prototype.includes=function(t){return this._iter.includes(t)},Te.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},Te.prototype.__iterator=function(t,e){var n=this._iter.__iterator(M,e),r=0;return new z(function(){var e=n.next();return e.done?e:B(t,r++,e.value,e)})},e(De,X),De.prototype.has=function(t){return this._iter.includes(t)},De.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},De.prototype.__iterator=function(t,e){var n=this._iter.__iterator(M,e);return new z(function(){var e=n.next();return e.done?e:B(t,e.value,e.value,e)})},e(Ve,K),Ve.prototype.entrySeq=function(){return this._iter.toSeq()},Ve.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){$e(e);var r=o(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},Ve.prototype.__iterator=function(t,e){var n=this._iter.__iterator(M,e);return new z(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){$e(r);var i=o(r);return B(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}})},Te.prototype.cacheResult=Le.prototype.cacheResult=De.prototype.cacheResult=Ve.prototype.cacheResult=tn,e(rn,_t),rn.prototype.toString=function(){return this.__toString(an(this)+" {","}")},rn.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},rn.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},rn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=on(this,Qt()))},rn.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+an(this));if(this._map&&!this._map.has(t)){var n=this._defaultValues[t];if(e===n)return this}var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:on(this,r)},rn.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:on(this,e)},rn.prototype.wasAltered=function(){return this._map.wasAltered()},rn.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},rn.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},rn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?on(this,e,t):(this.__ownerID=t,this._map=e,this)};var sn=rn.prototype;function on(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function an(t){return t._name||t.constructor.name||"Record"}function hn(t){return null==t?mn():un(t)&&!c(t)?t:mn().withMutations(function(e){var n=s(t);Vt(n.size),n.forEach(function(t){return e.add(t)})})}function un(t){return!(!t||!t[pn])}sn.delete=sn.remove,sn.deleteIn=sn.removeIn=Ut.removeIn,sn.merge=Ut.merge,sn.mergeWith=Ut.mergeWith,sn.mergeIn=Ut.mergeIn,sn.mergeDeep=Ut.mergeDeep,sn.mergeDeepWith=Ut.mergeDeepWith,sn.mergeDeepIn=Ut.mergeDeepIn,sn.setIn=Ut.setIn,sn.update=Ut.update,sn.updateIn=Ut.updateIn,sn.withMutations=Ut.withMutations,sn.asMutable=Ut.asMutable,sn.asImmutable=Ut.asImmutable,e(hn,bt),hn.of=function(){return this(arguments)},hn.fromKeys=function(t){return this(r(t).keySeq())},hn.prototype.toString=function(){return this.__toString("Set {","}")},hn.prototype.has=function(t){return this._map.has(t)},hn.prototype.add=function(t){return fn(this,this._map.set(t,!0))},hn.prototype.remove=function(t){return fn(this,this._map.remove(t))},hn.prototype.clear=function(){return fn(this,this._map.clear())},hn.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n<e.length;n++)s(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},hn.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return s(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.every(function(t){return t.includes(n)})||t.remove(n)})})},hn.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return s(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.some(function(t){return t.includes(n)})&&t.remove(n)})})},hn.prototype.merge=function(){return this.union.apply(this,arguments)},hn.prototype.mergeWith=function(e){var n=t.call(arguments,1);return this.union.apply(this,n)},hn.prototype.sort=function(t){return gn(Ge(this,t))},hn.prototype.sortBy=function(t,e){return gn(Ge(this,e,t))},hn.prototype.wasAltered=function(){return this._map.wasAltered()},hn.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},hn.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},hn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},hn.isSet=un;var cn,pn="@@__IMMUTABLE_SET__@@",ln=hn.prototype;function fn(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function dn(t,e){var n=Object.create(ln);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function mn(){return cn||(cn=dn(Qt()))}function gn(t){return null==t?En():yn(t)?t:En().withMutations(function(e){var n=s(t);Vt(n.size),n.forEach(function(t){return e.add(t)})})}function yn(t){return un(t)&&c(t)}ln[pn]=!0,ln.delete=ln.remove,ln.mergeDeep=ln.merge,ln.mergeDeepWith=ln.mergeWith,ln.withMutations=Ut.withMutations,ln.asMutable=Ut.asMutable,ln.asImmutable=Ut.asImmutable,ln.__empty=mn,ln.__make=dn,e(gn,hn),gn.of=function(){return this(arguments)},gn.fromKeys=function(t){return this(r(t).keySeq())},gn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},gn.isOrderedSet=yn;var vn,xn=gn.prototype;function _n(t,e){var n=Object.create(xn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function En(){return vn||(vn=_n(Oe()))}function bn(t){return null==t?kn():An(t)?t:kn().unshiftAll(t)}function An(t){return!(!t||!t[wn])}xn[d]=!0,xn.__empty=En,xn.__make=_n,e(bn,Et),bn.of=function(){return this(arguments)},bn.prototype.toString=function(){return this.__toString("Stack [","]")},bn.prototype.get=function(t,e){var n=this._head;for(t=P(this,t);n&&t--;)n=n.next;return n?n.value:e},bn.prototype.peek=function(){return this._head&&this._head.value},bn.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):In(t,e)},bn.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;Vt(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):In(e,n)},bn.prototype.pop=function(){return this.slice(1)},bn.prototype.unshift=function(){return this.push.apply(this,arguments)},bn.prototype.unshiftAll=function(t){return this.pushAll(t)},bn.prototype.shift=function(){return this.pop.apply(this,arguments)},bn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):kn()},bn.prototype.slice=function(t,e){if(k(t,e,this.size))return this;var n=C(t,this.size),r=N(e,this.size);if(r!==this.size)return Et.prototype.slice.call(this,t,e);for(var i=this.size-n,s=this._head;n--;)s=s.next;return this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):In(i,s)},bn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?In(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},bn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},bn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new z(function(){if(r){var e=r.value;return r=r.next,B(t,n++,e)}return{value:void 0,done:!0}})},bn.isStack=An;var Sn,wn="@@__IMMUTABLE_STACK__@@",Pn=bn.prototype;function In(t,e,n,r){var i=Object.create(Pn);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function kn(){return Sn||(Sn=In(0))}function Cn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}Pn[wn]=!0,Pn.withMutations=Ut.withMutations,Pn.asMutable=Ut.asMutable,Pn.asImmutable=Ut.asImmutable,Pn.wasAltered=Ut.wasAltered,n.Iterator=z,Cn(n,{toArray:function(){Vt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new Te(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new Le(this,!0)},toMap:function(){return zt(this.toKeyedSeq())},toObject:function(){Vt(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Ce(this.toKeyedSeq())},toOrderedSet:function(){return gn(a(this)?this.valueSeq():this)},toSet:function(){return hn(a(this)?this.valueSeq():this)},toSetSeq:function(){return new De(this)},toSeq:function(){return h(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return bn(a(this)?this.valueSeq():this)},toList:function(){return le(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var e=t.call(arguments,0);return Xe(this,function(t,e){var n=a(t),i=[t].concat(e).map(function(t){return o(t)?n&&(t=r(t)):t=n?ot(t):at(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var s=i[0];if(s===t||n&&a(s)||h(t)&&h(s))return s}var u=new tt(i);return n?u=u.toKeyedSeq():h(t)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=i.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),u}(this,e))},includes:function(t){return this.some(function(e){return dt(e,t)})},entries:function(){return this.__iterator(L)},every:function(t,e){Vt(this.size);var n=!0;return this.__iterate(function(r,i,s){if(!t.call(e,r,i,s))return n=!1,!1}),n},filter:function(t,e){return Xe(this,je(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return Vt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Vt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""}),e},keys:function(){return this.__iterator(O)},map:function(t,e){return Xe(this,Be(this,t,e))},reduce:function(t,e,n){var r,i;return Vt(this.size),arguments.length<2?i=!0:r=e,this.__iterate(function(e,s,o){i?(i=!1,r=e):r=t.call(n,r,e,s,o)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Xe(this,We(this,!0))},slice:function(t,e){return Xe(this,Ue(this,t,e,!0))},some:function(t,e){return!this.every(Ln(t),e)},sort:function(t){return Xe(this,Ge(this,t))},values:function(){return this.__iterator(M)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return w(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=zt().asMutable();return t.__iterate(function(i,s){r.update(e.call(n,i,s,t),0,function(t){return t+1})}),r.asImmutable()}(this,t,e)},equals:function(t){return mt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new tt(t._cache);var e=t.toSeq().map(Mn).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Ln(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate(function(n,i,s){if(t.call(e,n,i,s))return r=[i,n],!1}),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(I)},flatMap:function(t,e){return Xe(this,function(t,e,n){var r=Qe(t);return t.toSeq().map(function(i,s){return r(e.call(n,i,s,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return Xe(this,qe(this,t,!0))},fromEntrySeq:function(){return new Ve(this)},get:function(t,e){return this.find(function(e,n){return dt(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,i=nn(t);!(n=i.next()).done;){var s=n.value;if((r=r&&r.get?r.get(s,v):v)===v)return e}return r},groupBy:function(t,e){return function(t,e,n){var r=a(t),i=(c(t)?Ce():zt()).asMutable();t.__iterate(function(s,o){i.update(e.call(n,s,o,t),function(t){return(t=t||[]).push(r?[o,s]:s),t})});var s=Qe(t);return i.map(function(e){return Xe(t,s(e))})}(this,t,e)},has:function(t){return this.get(t,v)!==v},hasIn:function(t){return this.getIn(t,v)!==v},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return dt(e,t)})},keySeq:function(){return this.toSeq().map(On).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return He(this,t)},maxBy:function(t,e){return He(this,e,t)},min:function(t){return He(this,t?Tn(t):zn)},minBy:function(t,e){return He(this,e?Tn(e):zn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Xe(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Xe(this,Fe(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Ln(t),e)},sortBy:function(t,e){return Xe(this,Ge(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Xe(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Xe(this,function(t,e,n){var r=Ze(t);return r.__iterateUncached=function(r,i){var s=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return t.__iterate(function(t,i,a){return e.call(n,t,i,a)&&++o&&r(t,i,s)}),o},r.__iteratorUncached=function(r,i){var s=this;if(i)return this.cacheResult().__iterator(r,i);var o=t.__iterator(L,i),a=!0;return new z(function(){if(!a)return{value:void 0,done:!0};var t=o.next();if(t.done)return t;var i=t.value,h=i[0],u=i[1];return e.call(n,u,h,s)?r===L?t:B(r,h,u,t):(a=!1,{value:void 0,done:!0})})},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Ln(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=c(t),n=a(t),r=e?1:0;return function(t,e){return e=At(e,3432918353),e=At(e<<15|e>>>-15,461845907),e=At(e<<13|e>>>-13,5),e=At((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=St((e=At(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+Bn(wt(t),wt(e))|0}:function(t,e){r=r+Bn(wt(t),wt(e))|0}:e?function(t){r=31*r+wt(t)|0}:function(t){r=r+wt(t)|0}),r)}(this))}});var Nn=n.prototype;Nn[p]=!0,Nn[V]=Nn.values,Nn.__toJS=Nn.toArray,Nn.__toStringMapper=Dn,Nn.inspect=Nn.toSource=function(){return this.toString()},Nn.chain=Nn.flatMap,Nn.contains=Nn.includes,Cn(r,{flip:function(){return Xe(this,ze(this))},mapEntries:function(t,e){var n=this,r=0;return Xe(this,this.toSeq().map(function(i,s){return t.call(e,[s,i],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Xe(this,this.toSeq().flip().map(function(r,i){return t.call(e,r,i,n)}).flip())}});var Rn=r.prototype;function On(t,e){return e}function Mn(t,e){return[e,t]}function Ln(t){return function(){return!t.apply(this,arguments)}}function Tn(t){return function(){return-t.apply(this,arguments)}}function Dn(t){return"string"==typeof t?JSON.stringify(t):String(t)}function Vn(){return S(arguments)}function zn(t,e){return t<e?1:t>e?-1:0}function Bn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return Rn[l]=!0,Rn[V]=Nn.entries,Rn.__toJS=Nn.toObject,Rn.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Dn(t)},Cn(i,{toKeyedSeq:function(){return new Le(this,!1)},filter:function(t,e){return Xe(this,je(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Xe(this,We(this,!1))},slice:function(t,e){return Xe(this,Ue(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=C(t,t<0?this.count():this.size);var r=this.slice(0,t);return Xe(this,1===n?r:r.concat(S(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(t){return Xe(this,qe(this,t,!1))},get:function(t,e){return(t=P(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=P(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Xe(this,function(t,e){var n=Ze(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var i=this,s=0;return t.__iterate(function(t,r){return(!s||!1!==n(e,s++,i))&&!1!==n(t,s++,i)},r),s},n.__iteratorUncached=function(n,r){var i,s=t.__iterator(M,r),o=0;return new z(function(){return(!i||o%2)&&(i=s.next()).done?i:o%2?B(n,o++,e):B(n,o++,i.value,i)})},n}(this,t))},interleave:function(){var t=[this].concat(S(arguments)),e=Ye(this.toSeq(),Y.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Xe(this,n)},keySeq:function(){return vt(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Xe(this,Fe(this,t,e,!1))},zip:function(){return Xe(this,Ye(this,Vn,[this].concat(S(arguments))))},zipWith:function(t){var e=S(arguments);return e[0]=this,Xe(this,Ye(this,t,e))}}),i.prototype[f]=!0,i.prototype[d]=!0,Cn(s,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),s.prototype.has=Nn.includes,s.prototype.contains=s.prototype.includes,Cn(K,r.prototype),Cn(Y,i.prototype),Cn(X,s.prototype),Cn(_t,r.prototype),Cn(Et,i.prototype),Cn(bt,s.prototype),{Iterable:n,Seq:H,Collection:xt,Map:zt,OrderedMap:Ce,List:le,Stack:bn,Set:hn,OrderedSet:gn,Record:rn,Range:vt,Repeat:gt,is:dt,fromJS:pt}}()});!function(t){t[t.IGNORED_LABELS=0]="IGNORED_LABELS",t[t.ACCESSED_NODES=1]="ACCESSED_NODES",t[t.ARGUMENTS_VARIABLES=2]="ARGUMENTS_VARIABLES",t[t.ASSIGNED_NODES=3]="ASSIGNED_NODES",t[t.IGNORE_BREAK_STATEMENTS=4]="IGNORE_BREAK_STATEMENTS",t[t.IGNORE_RETURN_AWAIT_YIELD=5]="IGNORE_RETURN_AWAIT_YIELD",t[t.NODES_CALLED_AT_PATH_WITH_OPTIONS=6]="NODES_CALLED_AT_PATH_WITH_OPTIONS",t[t.REPLACED_VARIABLE_INITS=7]="REPLACED_VARIABLE_INITS",t[t.RETURN_EXPRESSIONS_ACCESSED_AT_PATH=8]="RETURN_EXPRESSIONS_ACCESSED_AT_PATH",t[t.RETURN_EXPRESSIONS_ASSIGNED_AT_PATH=9]="RETURN_EXPRESSIONS_ASSIGNED_AT_PATH",t[t.RETURN_EXPRESSIONS_CALLED_AT_PATH=10]="RETURN_EXPRESSIONS_CALLED_AT_PATH"}(Ve||(Ve={}));var We={},je=function(){function t(t){this.optionValues=t}return t.create=function(){return new this(Be.Map())},t.prototype.get=function(t){return this.optionValues.get(t)},t.prototype.remove=function(e){return new t(this.optionValues.remove(e))},t.prototype.set=function(e,n){return new t(this.optionValues.set(e,n))},t.prototype.setIn=function(e,n){return new t(this.optionValues.setIn(e,n))},t.prototype.addAccessedNodeAtPath=function(t,e){return this.setIn([Ve.ACCESSED_NODES,e].concat(t,[We]),!0)},t.prototype.addAccessedReturnExpressionAtPath=function(t,e){return this.setIn([Ve.RETURN_EXPRESSIONS_ACCESSED_AT_PATH,e].concat(t,[We]),!0)},t.prototype.addAssignedNodeAtPath=function(t,e){return this.setIn([Ve.ASSIGNED_NODES,e].concat(t,[We]),!0)},t.prototype.addAssignedReturnExpressionAtPath=function(t,e){return this.setIn([Ve.RETURN_EXPRESSIONS_ASSIGNED_AT_PATH,e].concat(t,[We]),!0)},t.prototype.addCalledNodeAtPathWithOptions=function(t,e,n){return this.setIn([Ve.NODES_CALLED_AT_PATH_WITH_OPTIONS,e].concat(t,[We,n]),!0)},t.prototype.addCalledReturnExpressionAtPath=function(t,e){return this.setIn([Ve.RETURN_EXPRESSIONS_CALLED_AT_PATH,e].concat(t,[We]),!0)},t.prototype.getArgumentsVariables=function(){return this.get(Ve.ARGUMENTS_VARIABLES)||[]},t.prototype.getHasEffectsWhenCalledOptions=function(){return this.setIgnoreReturnAwaitYield().setIgnoreBreakStatements(!1).setIgnoreNoLabels()},t.prototype.getReplacedVariableInit=function(t){return this.optionValues.getIn([Ve.REPLACED_VARIABLE_INITS,t])},t.prototype.hasNodeBeenAccessedAtPath=function(t,e){return this.optionValues.getIn([Ve.ACCESSED_NODES,e].concat(t,[We]))},t.prototype.hasNodeBeenAssignedAtPath=function(t,e){return this.optionValues.getIn([Ve.ASSIGNED_NODES,e].concat(t,[We]))},t.prototype.hasNodeBeenCalledAtPathWithOptions=function(t,e,n){var r=this.optionValues.getIn([Ve.NODES_CALLED_AT_PATH_WITH_OPTIONS,e].concat(t,[We]));return r&&r.find(function(t,e){return e.equals(n)})},t.prototype.hasReturnExpressionBeenAccessedAtPath=function(t,e){return this.optionValues.getIn([Ve.RETURN_EXPRESSIONS_ACCESSED_AT_PATH,e].concat(t,[We]))},t.prototype.hasReturnExpressionBeenAssignedAtPath=function(t,e){return this.optionValues.getIn([Ve.RETURN_EXPRESSIONS_ASSIGNED_AT_PATH,e].concat(t,[We]))},t.prototype.hasReturnExpressionBeenCalledAtPath=function(t,e){return this.optionValues.getIn([Ve.RETURN_EXPRESSIONS_CALLED_AT_PATH,e].concat(t,[We]))},t.prototype.ignoreBreakStatements=function(){return this.get(Ve.IGNORE_BREAK_STATEMENTS)},t.prototype.ignoreLabel=function(t){return this.optionValues.getIn([Ve.IGNORED_LABELS,t])},t.prototype.ignoreReturnAwaitYield=function(){return this.get(Ve.IGNORE_RETURN_AWAIT_YIELD)},t.prototype.replaceVariableInit=function(t,e){return this.setIn([Ve.REPLACED_VARIABLE_INITS,t],e)},t.prototype.setArgumentsVariables=function(t){return this.set(Ve.ARGUMENTS_VARIABLES,t)},t.prototype.setIgnoreBreakStatements=function(t){return void 0===t&&(t=!0),this.set(Ve.IGNORE_BREAK_STATEMENTS,t)},t.prototype.setIgnoreLabel=function(t){return this.setIn([Ve.IGNORED_LABELS,t],!0)},t.prototype.setIgnoreNoLabels=function(){return this.remove(Ve.IGNORED_LABELS)},t.prototype.setIgnoreReturnAwaitYield=function(t){return void 0===t&&(t=!0),this.set(Ve.IGNORE_RETURN_AWAIT_YIELD,t)},t}(),Ue={Program:["body"],Literal:[]};var Fe=je.create(),qe=function(){function t(t,e,n){this.keys=Ue[t.type]||function(t){return Ue[t.type]=Object.keys(t).filter(function(e){return"object"==typeof t[e]}),Ue[t.type]}(t),this.parent=e,this.context=e.context,this.createScope(n),this.parseNode(t),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}return t.prototype.bind=function(){for(var t=0,e=this.keys;t<e.length;t++){var n=this[e[t]];if(null!==n)if(Array.isArray(n))for(var r=0,i=n;r<i.length;r++){var s=i[r];null!==s&&s.bind()}else n.bind()}},t.prototype.createScope=function(t){this.scope=t},t.prototype.declare=function(t,e){},t.prototype.getLiteralValueAtPath=function(t,e,n){return ht},t.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return ut},t.prototype.hasEffects=function(t){for(var e=0,n=this.keys;e<n.length;e++){var r=this[n[e]];if(null!==r)if(Array.isArray(r))for(var i=0,s=r;i<s.length;i++){var o=s[i];if(null!==o&&o.hasEffects(t))return!0}else if(r.hasEffects(t))return!0}return!1},t.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>0},t.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return!0},t.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return!0},t.prototype.include=function(){this.included=!0;for(var t=0,e=this.keys;t<e.length;t++){var n=this[e[t]];if(null!==n)if(Array.isArray(n))for(var r=0,i=n;r<i.length;r++){var s=i[r];null!==s&&s.include()}else n.include()}},t.prototype.includeWithAllDeclaredVariables=function(){this.include()},t.prototype.initialise=function(){this.included=!1},t.prototype.insertSemicolon=function(t){";"!==t.original[this.end-1]&&t.appendLeft(this.end,";")},t.prototype.locate=function(){var t=ge(this.context.code,this.start,{offsetLine:1});return t.file=this.context.fileName,t.toString=function(){return JSON.stringify(t)},t},t.prototype.parseNode=function(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n[e];if(!this.hasOwnProperty(r)){var i=t[r];if("object"!=typeof i||null===i)this[r]=i;else if(Array.isArray(i)){this[r]=[];for(var s=0,o=i;s<o.length;s++){var a=o[s];this[r].push(null===a?null:new(this.context.nodeConstructors[a.type]||this.context.nodeConstructors.UnknownNode)(a,this,this.scope))}}else this[r]=new(this.context.nodeConstructors[i.type]||this.context.nodeConstructors.UnknownNode)(i,this,this.scope)}}},t.prototype.deoptimizePath=function(t){},t.prototype.render=function(t,e){for(var n=0,r=this.keys;n<r.length;n++){var i=this[r[n]];if(null!==i)if(Array.isArray(i))for(var s=0,o=i;s<o.length;s++){var a=o[s];null!==a&&a.render(t,e)}else i.render(t,e)}},t.prototype.shouldBeIncluded=function(){return this.included||this.hasEffects(Fe)},t.prototype.toString=function(){return this.context.code.slice(this.start,this.end)},t}(),Ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createScope=function(t){this.scope=new ze(t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>1},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return t.length>1},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return this.body.hasEffectsWhenCalledAtPath(t,e,n)||this.superClass&&this.superClass.hasEffectsWhenCalledAtPath(t,e,n)},e.prototype.initialise=function(){this.included=!1,null!==this.id&&this.id.declare("class",this)},e}(qe);function He(t){return t.type===$}var Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.initialise=function(){t.prototype.initialise.call(this),null!==this.id&&(this.id.variable.isId=!0)},e.prototype.parseNode=function(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),t.prototype.parseNode.call(this,e)},e.prototype.render=function(e,n){"system"===n.format&&this.id&&this.id.variable.exportName&&e.appendLeft(this.end," exports('"+this.id.variable.exportName+"', "+this.id.variable.getName()+");"),t.prototype.render.call(this,e,n)},e}(Ge),Ye=function(t,e){var n=parseInt(t[0],10);return n<e.getArgumentsVariables().length&&e.getArgumentsVariables()[n]||ut},Xe=function(t){function e(e,n){var r=t.call(this,"arguments",null,ut,n)||this;return r.parameters=e,r}return n(e,t),e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>1&&Ye(t,e).hasEffectsWhenAccessedAtPath(t.slice(1),e)},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return 0===t.length||this.included||Ye(t,e).hasEffectsWhenAssignedAtPath(t.slice(1),e)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return 0===t.length||Ye(t,n).hasEffectsWhenCalledAtPath(t.slice(1),e,n)},e.prototype.deoptimizePath=function(t){var e=parseInt(t[0],10);t.length>0&&e>=0&&this.parameters[e]&&this.parameters[e].deoptimizePath(t.slice(1))},e}(Vt),$e=function(t){function e(e){return t.call(this,"this",null,null,e)||this}return n(e,t),e.prototype.getLiteralValueAtPath=function(){return ht},e.prototype.hasEffectsWhenAccessedAtPath=function(e,n){return this._getInit(n).hasEffectsWhenAccessedAtPath(e,n)||t.prototype.hasEffectsWhenAccessedAtPath.call(this,e,n)},e.prototype.hasEffectsWhenAssignedAtPath=function(e,n){return this._getInit(n).hasEffectsWhenAssignedAtPath(e,n)||t.prototype.hasEffectsWhenAssignedAtPath.call(this,e,n)},e.prototype.hasEffectsWhenCalledAtPath=function(e,n,r){return this._getInit(r).hasEffectsWhenCalledAtPath(e,n,r)||t.prototype.hasEffectsWhenCalledAtPath.call(this,e,n,r)},e.prototype._getInit=function(t){return t.getReplacedVariableInit(this)||ut},e}(Vt),Je=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parameters=[],r.deoptimizationTracker=n,r.hoistedBodyVarScope=new ze(r),r}return n(e,t),e.prototype.addParameterDeclaration=function(t){var e,n=t.name;return n in this.hoistedBodyVarScope.variables?(e=this.hoistedBodyVarScope.variables[n]).addDeclaration(t,null):e=new Vt(n,t,ut,this.deoptimizationTracker),this.variables[n]=e,this.parameters.push(e),e},e.prototype.getParameterVariables=function(){return this.parameters},e}(ze),Qe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.returnExpressions=[],e.returnExpression=null,e}return n(e,t),e.prototype.addReturnExpression=function(t){this.returnExpressions.push(t)},e.prototype.getReturnExpression=function(){return null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression},e.prototype.updateReturnExpression=function(){if(1===this.returnExpressions.length)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=ut;for(var t=0,e=this.returnExpressions;t<e.length;t++){e[t].deoptimizePath(ot)}}},e}(Je),Ze=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.variables.arguments=new Xe(t.prototype.getParameterVariables.call(r),n),r.variables.this=new $e(n),r}return n(e,t),e.prototype.findLexicalBoundary=function(){return this},e.prototype.getOptionsWhenCalledWith=function(e,n){var r=this,i=e.args,s=e.withNew;return n.replaceVariableInit(this.variables.this,s?new kt:ut).setArgumentsVariables(i.map(function(e,n){return t.prototype.getParameterVariables.call(r)[n]||e}))},e}(Qe),tn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createScope=function(t){this.scope=new Ze(t,this.context.deoptimizationTracker)},e.prototype.getReturnExpressionWhenCalledAtPath=function(t){return 0===t.length?this.scope.getReturnExpression():ut},e.prototype.hasEffects=function(t){return this.id&&this.id.hasEffects(t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t){return!(t.length<=1)&&(t.length>2||"prototype"!==t[0]||this.isPrototypeDeoptimized)},e.prototype.hasEffectsWhenAssignedAtPath=function(t){return!(t.length<=1)&&(t.length>2||"prototype"!==t[0]||this.isPrototypeDeoptimized)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){if(t.length>0)return!0;for(var r=this.scope.getOptionsWhenCalledWith(e,n),i=0,s=this.params;i<s.length;i++){if(s[i].hasEffects(r))return!0}return this.body.hasEffects(r)},e.prototype.include=function(){this.scope.variables.arguments.include(),t.prototype.include.call(this)},e.prototype.initialise=function(){this.included=!1,this.isPrototypeDeoptimized=!1,null!==this.id&&this.id.declare("function",this);for(var t=0,e=this.params;t<e.length;t++){e[t].declare("parameter",ut)}this.body.addImplicitReturnExpressionToScope()},e.prototype.parseNode=function(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope),t.prototype.parseNode.call(this,e)},e.prototype.deoptimizePath=function(t){1===t.length&&("prototype"===t[0]?this.isPrototypeDeoptimized=!0:t[0]===it&&(this.isPrototypeDeoptimized=!0,this.scope.getReturnExpression().deoptimizePath(ot)))},e}(qe);function en(t){return t.type===Q}tn.prototype.preventChildBlockScope=!0;var nn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.initialise=function(){t.prototype.initialise.call(this),null!==this.id&&(this.id.variable.isId=!0)},e.prototype.parseNode=function(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),t.prototype.parseNode.call(this,e)},e}(tn);function rn(t){return t.type===Z}var sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){this.bound||(this.bound=!0,null===this.variable&&function t(e,n){return"MemberExpression"===e.type?!e.computed&&t(e.object,e):"Identifier"===e.type&&(!n||("MemberExpression"===n.type||"MethodDefinition"===n.type?n.computed||e===n.object:"Property"===n.type?n.computed||e===n.value:"ExportSpecifier"!==n.type||e===n.local))}(this,this.parent)&&(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)),null!==this.variable&&this.variable.isLocal&&null!==this.variable.additionalInitializers&&this.variable.consolidateInitializers())},e.prototype.declare=function(t,e){switch(t){case"var":case"function":this.variable=this.scope.addDeclaration(this,this.context.deoptimizationTracker,e,!0);break;case"let":case"const":case"class":this.variable=this.scope.addDeclaration(this,this.context.deoptimizationTracker,e,!1);break;case"parameter":this.variable=this.scope.addParameterDeclaration(this);break;default:throw new Error("Unexpected identifier kind "+t+".")}},e.prototype.getLiteralValueAtPath=function(t,e,n){return null!==this.variable?this.variable.getLiteralValueAtPath(t,e,n):ht},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return null!==this.variable?this.variable.getReturnExpressionWhenCalledAtPath(t,e,n):ut},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return this.variable&&this.variable.hasEffectsWhenAccessedAtPath(t,e)},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return!this.variable||this.variable.hasEffectsWhenAssignedAtPath(t,e)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return!this.variable||this.variable.hasEffectsWhenCalledAtPath(t,e,n)},e.prototype.include=function(){this.included||(this.included=!0,null===this.variable||this.variable.included||(this.variable.include(),this.context.requestTreeshakingPass()))},e.prototype.initialise=function(){this.included=!1,this.bound=!1,this.variable||(this.variable=null)},e.prototype.deoptimizePath=function(t){this.bound||this.bind(),null!==this.variable&&(0===t.length&&this.name in this.context.imports&&!this.scope.contains(this.name)&&this.disallowImportReassignment(),this.variable.deoptimizePath(t))},e.prototype.render=function(t,e,n){var r=void 0===n?Ce:n,i=r.renderedParentType,s=r.isCalleeOfRenderedParent,o=r.isShorthandProperty;if(this.variable){var a=this.variable.getName();a!==this.name&&(t.overwrite(this.start,this.end,a,{storeName:!0,contentOnly:!0}),o&&t.prependRight(this.start,this.name+": ")),"eval"===a&&"CallExpression"===i&&s&&t.appendRight(this.start,"0, ")}},e.prototype.disallowImportReassignment=function(){this.context.error({code:"ILLEGAL_REASSIGNMENT",message:"Illegal reassignment to import '"+this.name+"'"},this.start)},e}(qe),on=/\s/;var an=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.declarationName&&(en(this.declaration)||He(this.declaration)||rn(this.declaration))&&this.variable.setOriginalVariable(this.scope.findVariable(this.declarationName))},e.prototype.initialise=function(){this.included=!1,this.declarationName=this.declaration.id&&this.declaration.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.context.getModuleName(),this,this.context.deoptimizationTracker),this.context.addExport(this)},e.prototype.render=function(t,e,n){var r=void 0===n?Ce:n,i=r.start,s=r.end,o=function(t,e){for(void 0===e&&(e=0),e=Re(t,"default",e)+7;on.test(t[e]);)e++;return e}(t.original,this.start);if(en(this.declaration))this.renderNamedDeclaration(t,o,"function",null===this.declaration.id,e);else if(He(this.declaration))this.renderNamedDeclaration(t,o,"class",null===this.declaration.id,e);else{if(this.variable.referencesOriginal())return void("system"===e.format&&this.variable.exportName?t.overwrite(i,s,"exports('"+this.variable.exportName+"', "+this.variable.getName()+");"):t.remove(i,s));if(!this.variable.included)return t.remove(this.start,o),this.declaration.render(t,e,{renderedParentType:"ExpressionStatement",isCalleeOfRenderedParent:!1}),void(";"!==t.original[this.end-1]&&t.appendLeft(this.end,";"));this.renderVariableDeclaration(t,o,e)}this.declaration.render(t,e)},e.prototype.renderNamedDeclaration=function(t,e,n,r,i){var s=this.variable.getName();t.remove(this.start,e),r&&t.appendLeft(function(t,e,n){void 0===n&&(n=0);var r=Re(t,e,n)+e.length;t=t.slice(r,Re(t,"{",r));var i=Re(t,"*");return-1===i?r:r+i+1}(t.original,n,e)," "+s),"system"===i.format&&He(this.declaration)&&this.variable.exportName&&t.appendLeft(this.end," exports('"+this.variable.exportName+"', "+s+");")},e.prototype.renderVariableDeclaration=function(t,e,n){var r="system"===n.format&&this.variable.exportName?"exports('"+this.variable.exportName+"', ":"";t.overwrite(this.start,e,this.context.varOrConst+" "+this.variable.getName()+" = "+r);var i=59===t.original.charCodeAt(this.end-1);r?t.appendRight(i?this.end-1:this.end,")"+(i?"":";")):i||t.appendLeft(this.end,";")},e}(qe);an.prototype.needsBoundaries=!0;var hn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this);for(var e=0,n=this.elements;e<n.length;e++){var r=n[e];null!==r&&r.deoptimizePath(ot)}},e.prototype.getReturnExpressionWhenCalledAtPath=function(t){return 1!==t.length?ut:Tt(Nt,t[0])},e.prototype.hasEffectsWhenAccessedAtPath=function(t){return t.length>1},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return 1!==t.length||Lt(Nt,t[0],this.included,e,n)},e}(qe),un=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.declare=function(t,e){for(var n=0,r=this.elements;n<r.length;n++){var i=r[n];null!==i&&i.declare(t,ut)}},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){if(t.length>0)return!0;for(var n=0,r=this.elements;n<r.length;n++){var i=r[n];if(null!==i&&i.hasEffectsWhenAssignedAtPath(st,e))return!0}return!1},e.prototype.deoptimizePath=function(t){if(0===t.length)for(var e=0,n=this.elements;e<n.length;e++){var r=n[e];null!==r&&r.deoptimizePath(t)}},e}(qe),cn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.addDeclaration=function(e,n,r,i){return void 0===r&&(r=null),void 0===i&&(i=!1),i?this.parent.addDeclaration(e,n,r,!0):t.prototype.addDeclaration.call(this,e,n,r,!1)},e}(ze),pn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.addImplicitReturnExpressionToScope=function(){var t=this.body[this.body.length-1];t&&"ReturnStatement"===t.type||this.scope.addReturnExpression(ut)},e.prototype.createScope=function(t){this.scope=this.parent.preventChildBlockScope?t:new cn(t)},e.prototype.hasEffects=function(t){for(var e=0,n=this.body;e<n.length;e++){if(n[e].hasEffects(t))return!0}},e.prototype.include=function(){this.included=!0;for(var t=0,e=this.body;t<e.length;t++){var n=e[t];n.shouldBeIncluded()&&n.include()}},e.prototype.render=function(e,n){this.body.length?Me(this.body,e,this.start+1,this.end-1,n):t.prototype.render.call(this,e,n)},e}(qe),ln=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createScope=function(t){this.scope=new Qe(t,this.context.deoptimizationTracker)},e.prototype.getReturnExpressionWhenCalledAtPath=function(t){return 0===t.length?this.scope.getReturnExpression():ut},e.prototype.hasEffects=function(t){return!1},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>1},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return t.length>1},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){if(t.length>0)return!0;for(var r=0,i=this.params;r<i.length;r++){if(i[r].hasEffects(n))return!0}return this.body.hasEffects(n)},e.prototype.initialise=function(){this.included=!1;for(var t=0,e=this.params;t<e.length;t++){e[t].declare("parameter",ut)}this.body instanceof pn?this.body.addImplicitReturnExpressionToScope():this.scope.addReturnExpression(this.body)},e.prototype.parseNode=function(e){"BlockStatement"===e.body.type&&(this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope)),t.prototype.parseNode.call(this,e)},e.prototype.deoptimizePath=function(t){1===t.length&&t[0]===it&&this.scope.getReturnExpression().deoptimizePath(ot)},e}(qe);ln.prototype.preventChildBlockScope=!0;var fn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.left.deoptimizePath(st),this.right.deoptimizePath(ot)},e.prototype.hasEffects=function(t){return this.right.hasEffects(t)||this.left.hasEffects(t)||this.left.hasEffectsWhenAssignedAtPath(st,t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>0&&this.right.hasEffectsWhenAccessedAtPath(t,e)},e.prototype.render=function(t,e){this.left.render(t,e),this.right.render(t,e),"system"===e.format&&this.left.variable&&this.left.variable.exportName&&(t.prependLeft(t.original.indexOf("=",this.left.end)+1," exports('"+this.left.variable.exportName+"',"),t.prependRight(this.right.end,")"))},e}(qe),dn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.left.deoptimizePath(st),this.right.deoptimizePath(ot)},e.prototype.declare=function(t,e){this.left.declare(t,e)},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return t.length>0||this.left.hasEffectsWhenAssignedAtPath(st,e)},e.prototype.deoptimizePath=function(t){0===t.length&&this.left.deoptimizePath(t)},e.prototype.render=function(t,e,n){var r=(void 0===n?Ce:n).isShorthandProperty;this.left.render(t,e,{isShorthandProperty:r}),this.right.render(t,e)},e}(qe),mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.include=function(){if(t.prototype.include.call(this),!this.context.usesTopLevelAwait){var e=this.parent;do{if(e instanceof tn||e instanceof ln)return}while(e=e.parent);this.context.usesTopLevelAwait=!0}},e.prototype.hasEffects=function(e){return t.prototype.hasEffects.call(this,e)||!e.ignoreReturnAwaitYield()},e.prototype.render=function(e,n){t.prototype.render.call(this,e,n)},e}(qe),gn={"==":function(t,e){return t==e},"!=":function(t,e){return t!=e},"===":function(t,e){return t===e},"!==":function(t,e){return t!==e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"<<":function(t,e){return t<<e},">>":function(t,e){return t>>e},">>>":function(t,e){return t>>>e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"|":function(t,e){return t|e},"^":function(t,e){return t^e},"&":function(t,e){return t&e},"**":function(t,e){return Math.pow(t,e)},in:function(){return ht},instanceof:function(){return ht}},yn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getLiteralValueAtPath=function(t,e,n){if(t.length>0)return ht;var r=this.left.getLiteralValueAtPath(st,e,n);if(r===ht)return ht;var i=this.right.getLiteralValueAtPath(st,e,n);if(i===ht)return ht;var s=gn[this.operator];return s?s(r,i):ht},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>1},e}(qe),vn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(e){return t.prototype.hasEffects.call(this,e)||!e.ignoreBreakStatements()||this.label&&!e.ignoreLabel(this.label.name)},e}(qe),xn={},_n=new(function(){function t(t){void 0===t&&(t=Be.Map()),this.entityPaths=t}return t.prototype.isTracked=function(t,e){return this.entityPaths.getIn([t].concat(e,[xn]))},t.prototype.track=function(e,n){return new t(this.entityPaths.setIn([e].concat(n,[xn]),!0))},t}()),En=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){(t.prototype.bind.call(this),this.callee instanceof sn)&&(this.scope.findVariable(this.callee.name).isNamespace&&this.context.error({code:"CANNOT_CALL_NAMESPACE",message:"Cannot call a namespace ('"+this.callee.name+"')"},this.start),"eval"===this.callee.name&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://github.com/rollup/rollup/wiki/Troubleshooting#avoiding-eval"},this.start));null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(st,_n,this));for(var e=0,n=this.arguments;e<n.length;e++){n[e].deoptimizePath(ot)}},e.prototype.deoptimizeCache=function(){if(this.returnExpression!==ut){this.returnExpression=ut;for(var t=0,e=this.expressionsToBeDeoptimized;t<e.length;t++){e[t].deoptimizeCache()}}},e.prototype.getLiteralValueAtPath=function(t,e,n){return null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(st,e,this)),this.returnExpression===ut||e.isTracked(this.returnExpression,t)?ht:(this.expressionsToBeDeoptimized.push(n),this.returnExpression.getLiteralValueAtPath(t,e.track(this.returnExpression,t),n))},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(st,e,this)),this.returnExpression===ut||e.isTracked(this.returnExpression,t)?ut:(this.expressionsToBeDeoptimized.push(n),this.returnExpression.getReturnExpressionWhenCalledAtPath(t,e.track(this.returnExpression,t),n))},e.prototype.hasEffects=function(t){for(var e=0,n=this.arguments;e<n.length;e++){if(n[e].hasEffects(t))return!0}return this.callee.hasEffects(t)||this.callee.hasEffectsWhenCalledAtPath(st,this.callOptions,t.getHasEffectsWhenCalledOptions())},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>0&&!e.hasReturnExpressionBeenAccessedAtPath(t,this)&&this.returnExpression.hasEffectsWhenAccessedAtPath(t,e.addAccessedReturnExpressionAtPath(t,this))},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return 0===t.length||!e.hasReturnExpressionBeenAssignedAtPath(t,this)&&this.returnExpression.hasEffectsWhenAssignedAtPath(t,e.addAssignedReturnExpressionAtPath(t,this))},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){if(n.hasReturnExpressionBeenCalledAtPath(t,this))return!1;var r=n.addCalledReturnExpressionAtPath(t,this);return this.hasEffects(r)||this.returnExpression.hasEffectsWhenCalledAtPath(t,e,r)},e.prototype.include=function(){t.prototype.include.call(this),this.returnExpression.included||this.returnExpression.include()},e.prototype.initialise=function(){this.included=!1,this.returnExpression=null,this.callOptions=rt.create({withNew:!1,args:this.arguments,callIdentifier:this}),this.expressionsToBeDeoptimized=[]},e.prototype.deoptimizePath=function(t){t.length>0&&!this.context.deoptimizationTracker.track(this,t)&&(null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(st,_n,this)),this.returnExpression.deoptimizePath(t))},e}(qe),bn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.addDeclaration=function(e,n,r,i){return void 0===r&&(r=null),void 0===i&&(i=!1),i?this.parent.addDeclaration(e,n,r,!0):t.prototype.addDeclaration.call(this,e,n,r,!1)},e}(Je),An=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createScope=function(t){this.scope=new bn(t,this.context.deoptimizationTracker)},e.prototype.initialise=function(){this.included=!1,this.param&&this.param.declare("parameter",ut)},e.prototype.parseNode=function(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope),t.prototype.parseNode.call(this,e)},e}(qe);An.prototype.preventChildBlockScope=!0;var Sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return t.length>0||null!==this.classConstructor&&this.classConstructor.hasEffectsWhenCalledAtPath(st,e,n)},e.prototype.initialise=function(){this.included=!1;for(var t=0,e=this.body;t<e.length;t++){var n=e[t];if("constructor"===n.kind)return void(this.classConstructor=n)}this.classConstructor=null},e}(qe),wn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Ge),Pn=function(){function t(t){this.expressions=t}return t.prototype.getLiteralValueAtPath=function(){return ht},t.prototype.getReturnExpressionWhenCalledAtPath=function(e,n,r){return new t(this.expressions.map(function(t){return t.getReturnExpressionWhenCalledAtPath(e,n,r)}))},t.prototype.hasEffectsWhenAccessedAtPath=function(t,e){for(var n=0,r=this.expressions;n<r.length;n++){if(r[n].hasEffectsWhenAccessedAtPath(t,e))return!0}return!1},t.prototype.hasEffectsWhenAssignedAtPath=function(t,e){for(var n=0,r=this.expressions;n<r.length;n++){if(r[n].hasEffectsWhenAssignedAtPath(t,e))return!0}return!1},t.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){for(var r=0,i=this.expressions;r<i.length;r++){if(i[r].hasEffectsWhenCalledAtPath(t,e,n))return!0}return!1},t.prototype.include=function(){},t.prototype.deoptimizePath=function(t){for(var e=0,n=this.expressions;e<n.length;e++){n[e].deoptimizePath(t)}},t}(),In=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.isBranchResolutionAnalysed||this.analyseBranchResolution()},e.prototype.deoptimizeCache=function(){if(null!==this.usedBranch){this.usedBranch=null,this.unusedBranch.deoptimizePath(ot);for(var t=0,e=this.expressionsToBeDeoptimized;t<e.length;t++){e[t].deoptimizeCache()}}},e.prototype.getLiteralValueAtPath=function(t,e,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?ht:(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getLiteralValueAtPath(t,e,n))},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?new Pn([this.consequent.getReturnExpressionWhenCalledAtPath(t,e,n),this.alternate.getReturnExpressionWhenCalledAtPath(t,e,n)]):(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getReturnExpressionWhenCalledAtPath(t,e,n))},e.prototype.hasEffects=function(t){return!!this.test.hasEffects(t)||(null===this.usedBranch?this.consequent.hasEffects(t)||this.alternate.hasEffects(t):this.usedBranch.hasEffects(t))},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return 0!==t.length&&(null===this.usedBranch?this.consequent.hasEffectsWhenAccessedAtPath(t,e)||this.alternate.hasEffectsWhenAccessedAtPath(t,e):this.usedBranch.hasEffectsWhenAccessedAtPath(t,e))},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return 0===t.length||(null===this.usedBranch?this.consequent.hasEffectsWhenAssignedAtPath(t,e)||this.alternate.hasEffectsWhenAssignedAtPath(t,e):this.usedBranch.hasEffectsWhenAssignedAtPath(t,e))},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return null===this.usedBranch?this.consequent.hasEffectsWhenCalledAtPath(t,e,n)||this.alternate.hasEffectsWhenCalledAtPath(t,e,n):this.usedBranch.hasEffectsWhenCalledAtPath(t,e,n)},e.prototype.initialise=function(){this.included=!1,this.isBranchResolutionAnalysed=!1,this.usedBranch=null,this.unusedBranch=null,this.expressionsToBeDeoptimized=[]},e.prototype.include=function(){this.included=!0,null===this.usedBranch||this.test.shouldBeIncluded()?(this.test.include(),this.consequent.include(),this.alternate.include()):this.usedBranch.include()},e.prototype.deoptimizePath=function(t){t.length>0&&(this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?(this.consequent.deoptimizePath(t),this.alternate.deoptimizePath(t)):this.usedBranch.deoptimizePath(t))},e.prototype.render=function(e,n,r){var i=void 0===r?Ce:r,s=i.renderedParentType,o=i.isCalleeOfRenderedParent;this.test.included?t.prototype.render.call(this,e,n):(e.remove(this.start,this.usedBranch.start),e.remove(this.usedBranch.end,this.end),this.usedBranch.render(e,n,{renderedParentType:s||this.parent.type,isCalleeOfRenderedParent:s?o:this.parent.callee===this}))},e.prototype.analyseBranchResolution=function(){this.isBranchResolutionAnalysed=!0;var t=this.test.getLiteralValueAtPath(st,_n,this);t!==ht&&(t?(this.usedBranch=this.consequent,this.unusedBranch=this.alternate):(this.usedBranch=this.alternate,this.unusedBranch=this.consequent))},e}(qe),kn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return this.test.hasEffects(t)||this.body.hasEffects(t.setIgnoreBreakStatements())},e}(qe),Cn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(t,e){"BlockStatement"!==this.parent.type&&"Program"!==this.parent.type||t.remove(this.start,this.end)},e}(qe),Nn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.initialise=function(){this.included=!1,this.context.addExport(this)},e.prototype.render=function(t,e,n){var r=void 0===n?Ce:n,i=r.start,s=r.end;t.remove(i,s)},e}(qe);Nn.prototype.needsBoundaries=!0;var Rn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){null!==this.declaration&&this.declaration.bind()},e.prototype.hasEffects=function(t){return this.declaration&&this.declaration.hasEffects(t)},e.prototype.initialise=function(){this.included=!1,this.context.addExport(this)},e.prototype.render=function(t,e,n){var r=void 0===n?Ce:n,i=r.start,s=r.end;null===this.declaration?t.remove(i,s):(t.remove(this.start,this.declaration.start),this.declaration.render(t,e,{start:i,end:s}))},e}(qe);Rn.prototype.needsBoundaries=!0;var On=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.initialise=function(){this.included=!1,this.directive&&"use strict"!==this.directive&&"Program"===this.parent.type&&this.context.warn({code:"MODULE_LEVEL_DIRECTIVE",message:"Module level directives cause errors when bundled, '"+this.directive+"' was ignored."},this.start)},e.prototype.shouldBeIncluded=function(){return this.directive&&"use strict"!==this.directive?"Program"!==this.parent.type:t.prototype.shouldBeIncluded.call(this)},e.prototype.render=function(e,n){t.prototype.render.call(this,e,n),this.included&&this.insertSemicolon(e)},e}(qe),Mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){this.left.bind(),this.left.deoptimizePath(st),this.right.bind(),this.body.bind()},e.prototype.createScope=function(t){this.scope=new cn(t)},e.prototype.hasEffects=function(t){return this.left&&(this.left.hasEffects(t)||this.left.hasEffectsWhenAssignedAtPath(st,t))||this.right&&this.right.hasEffects(t)||this.body.hasEffects(t.setIgnoreBreakStatements())},e.prototype.include=function(){this.included=!0,this.left.includeWithAllDeclaredVariables(),this.left.deoptimizePath(st),this.right.include(),this.body.include()},e.prototype.render=function(t,e){this.left.render(t,e,Ne),this.right.render(t,e,Ne),this.body.render(t,e)},e}(qe),Ln=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){this.left.bind(),this.left.deoptimizePath(st),this.right.bind(),this.body.bind()},e.prototype.createScope=function(t){this.scope=new cn(t)},e.prototype.hasEffects=function(t){return this.left&&(this.left.hasEffects(t)||this.left.hasEffectsWhenAssignedAtPath(st,t))||this.right&&this.right.hasEffects(t)||this.body.hasEffects(t.setIgnoreBreakStatements())},e.prototype.include=function(){this.included=!0,this.left.includeWithAllDeclaredVariables(),this.left.deoptimizePath(st),this.right.include(),this.body.include()},e.prototype.render=function(t,e){this.left.render(t,e,Ne),this.right.render(t,e,Ne),this.body.render(t,e)},e}(qe),Tn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createScope=function(t){this.scope=new cn(t)},e.prototype.hasEffects=function(t){return this.init&&this.init.hasEffects(t)||this.test&&this.test.hasEffects(t)||this.update&&this.update.hasEffects(t)||this.body.hasEffects(t.setIgnoreBreakStatements())},e.prototype.render=function(t,e){this.init&&this.init.render(t,e,Ne),this.test&&this.test.render(t,e,Ne),this.update&&this.update.render(t,e,Ne),this.body.render(t,e)},e}(qe),Dn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(tn),Vn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.isTestValueAnalysed||(this.testValue=ht,this.isTestValueAnalysed=!0,this.testValue=this.test.getLiteralValueAtPath(st,_n,this))},e.prototype.deoptimizeCache=function(){this.testValue=ht},e.prototype.hasEffects=function(t){return!!this.test.hasEffects(t)||(this.testValue===ht?this.consequent.hasEffects(t)||null!==this.alternate&&this.alternate.hasEffects(t):this.testValue?this.consequent.hasEffects(t):null!==this.alternate&&this.alternate.hasEffects(t))},e.prototype.include=function(){this.included=!0,(this.testValue===ht||this.test.shouldBeIncluded())&&this.test.include(),(this.testValue===ht||this.testValue)&&this.consequent.shouldBeIncluded()&&this.consequent.include(),null===this.alternate||this.testValue!==ht&&this.testValue||!this.alternate.shouldBeIncluded()||this.alternate.include()},e.prototype.initialise=function(){this.included=!1,this.isTestValueAnalysed=!1},e.prototype.render=function(t,e){if(this.test.included||(this.testValue?null!==this.alternate&&this.alternate.included:this.consequent.included))this.test.included?this.test.render(t,e):t.overwrite(this.test.start,this.test.end,this.testValue?"true":"false"),this.consequent.included?this.consequent.render(t,e):t.overwrite(this.consequent.start,this.consequent.end,";"),null!==this.alternate&&(this.alternate.included?this.alternate.render(t,e):t.remove(this.consequent.end,this.alternate.end));else{var n=this.testValue?this.consequent:this.alternate;t.remove(this.start,n.start),t.remove(n.end,this.end),n.render(t,e)}},e}(qe),zn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.initialise=function(){this.included=!1,this.resolutionNamespace=void 0,this.resolutionInterop=!1,this.rendered=!1,this.context.addDynamicImport(this)},e.prototype.renderFinalResolution=function(t,e){this.rendered&&t.overwrite(this.parent.arguments[0].start,this.parent.arguments[0].end,e)},e.prototype.render=function(t,e){if(this.rendered=!0,this.resolutionNamespace){var n=e.compact?"":" ",r=e.compact?"":";";t.overwrite(this.parent.start,this.parent.end,"Promise.resolve().then(function"+n+"()"+n+"{"+n+"return "+this.resolutionNamespace+r+n+"})")}else{var i=function(t,e){switch(t){case"cjs":return{left:"Promise.resolve(require(",right:"))",interopLeft:"Promise.resolve({"+(n=e?"":" ")+"default:"+n+"require(",interopRight:")"+n+"})"};case"amd":var n,r=e?"c":"resolve",i=e?"e":"reject";return{left:"new Promise(function"+(n=e?"":" ")+"("+r+","+n+i+")"+n+"{"+n+"require([",right:"],"+n+r+","+n+i+")"+n+"})",interopLeft:"new Promise(function"+n+"("+r+","+n+i+")"+n+"{"+n+"require([",interopRight:"],"+n+"function"+n+"(m)"+n+"{"+n+r+"({"+n+"default:"+n+"m"+n+"})"+n+"},"+n+i+")"+n+"})"};case"system":return{left:"module.import(",right:")"}}}(e.format,e.compact);if(i){var s=this.resolutionInterop&&i.interopLeft||i.left;t.overwrite(this.parent.start,this.parent.arguments[0].start,s);var o=this.resolutionInterop&&i.interopRight||i.right;t.overwrite(this.parent.arguments[0].end,this.parent.end,o)}}},e.prototype.setResolution=function(t,e){void 0===e&&(e=void 0),this.rendered=!1,this.resolutionInterop=t,this.resolutionNamespace=e},e}(qe),Bn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){},e.prototype.initialise=function(){this.included=!1,this.context.addImport(this)},e.prototype.hasEffects=function(){return!1},e.prototype.render=function(t,e,n){var r=void 0===n?Ce:n,i=r.start,s=r.end;t.remove(i,s)},e}(qe);Bn.prototype.needsBoundaries=!0;var Wn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return this.body.hasEffects(t.setIgnoreLabel(this.label.name).setIgnoreBreakStatements())},e}(qe);var jn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getLiteralValueAtPath=function(t){return t.length>0?ht:this.value},e.prototype.getReturnExpressionWhenCalledAtPath=function(t){return 1!==t.length?ut:Tt(this.members,t[0])},e.prototype.hasEffectsWhenAccessedAtPath=function(t){return null===this.value?t.length>0:t.length>1},e.prototype.hasEffectsWhenAssignedAtPath=function(t){return t.length>0},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return 1!==t.length||Lt(this.members,t[0],this.included,e,n)},e.prototype.initialise=function(){this.included=!1,this.members=function(t){switch(typeof t){case"boolean":return Rt;case"number":return Ot;case"string":return Mt;default:return Object.create(null)}}(this.value)},e.prototype.render=function(t,e){"string"==typeof this.value&&t.indentExclusionRanges.push([this.start+1,this.end-1])},e}(qe),Un=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.isBranchResolutionAnalysed||this.analyseBranchResolution()},e.prototype.deoptimizeCache=function(){if(null!==this.usedBranch){this.usedBranch=null,this.unusedBranch.deoptimizePath(ot);for(var t=0,e=this.expressionsToBeDeoptimized;t<e.length;t++){e[t].deoptimizeCache()}}},e.prototype.getLiteralValueAtPath=function(t,e,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?ht:(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getLiteralValueAtPath(t,e,n))},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?new Pn([this.left.getReturnExpressionWhenCalledAtPath(t,e,n),this.right.getReturnExpressionWhenCalledAtPath(t,e,n)]):(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getReturnExpressionWhenCalledAtPath(t,e,n))},e.prototype.hasEffects=function(t){return null===this.usedBranch?this.left.hasEffects(t)||this.right.hasEffects(t):this.usedBranch.hasEffects(t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return 0!==t.length&&(null===this.usedBranch?this.left.hasEffectsWhenAccessedAtPath(t,e)||this.right.hasEffectsWhenAccessedAtPath(t,e):this.usedBranch.hasEffectsWhenAccessedAtPath(t,e))},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return 0===t.length||(null===this.usedBranch?this.left.hasEffectsWhenAssignedAtPath(t,e)||this.right.hasEffectsWhenAssignedAtPath(t,e):this.usedBranch.hasEffectsWhenAssignedAtPath(t,e))},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return null===this.usedBranch?this.left.hasEffectsWhenCalledAtPath(t,e,n)||this.right.hasEffectsWhenCalledAtPath(t,e,n):this.usedBranch.hasEffectsWhenCalledAtPath(t,e,n)},e.prototype.include=function(){this.included=!0,null===this.usedBranch||this.unusedBranch.shouldBeIncluded()?(this.left.include(),this.right.include()):this.usedBranch.include()},e.prototype.initialise=function(){this.included=!1,this.isBranchResolutionAnalysed=!1,this.usedBranch=null,this.unusedBranch=null,this.expressionsToBeDeoptimized=[]},e.prototype.deoptimizePath=function(t){t.length>0&&(this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?(this.left.deoptimizePath(t),this.right.deoptimizePath(t)):this.usedBranch.deoptimizePath(t))},e.prototype.render=function(e,n,r){var i=void 0===r?Ce:r,s=i.renderedParentType,o=i.isCalleeOfRenderedParent;this.left.included&&this.right.included?t.prototype.render.call(this,e,n):(e.remove(this.start,this.usedBranch.start),e.remove(this.usedBranch.end,this.end),this.usedBranch.render(e,n,{renderedParentType:s||this.parent.type,isCalleeOfRenderedParent:s?o:this.parent.callee===this}))},e.prototype.analyseBranchResolution=function(){this.isBranchResolutionAnalysed=!0;var t=this.left.getLiteralValueAtPath(st,_n,this);t!==ht&&(("||"===this.operator?t:!t)?(this.usedBranch=this.left,this.unusedBranch=this.right):(this.usedBranch=this.right,this.unusedBranch=this.left))},e}(qe);function Fn(t,e){var n=ie(e||t),r=oe(t);return n.endsWith(r)&&(n=n.substr(0,n.length-r.length)),n}function qn(t){return"undefined"!=typeof process&&ee(t)?ae(process.cwd(),t):t}function Gn(t){return"/"!==t[0]&&("."!==t[1]||"/"!==t[2]&&("."!==t[2]||"/"!==t[3]))&&-1===t.indexOf(":")}function Hn(t){return t.computed?function(t){if(t instanceof jn)return String(t.value);return null}(t.property):t.property.name}function Kn(t){var e=t.propertyKey,n=t.object;if("string"==typeof e){if(n instanceof sn)return[{key:n.name,pos:n.start},{key:e,pos:t.property.start}];if(n.type===et){var r=Kn(n);return r&&r.concat([{key:e,pos:t.property.start}])}}return null}var Yn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.variable=null,e}return n(e,t),e.prototype.bind=function(){if(!this.bound){this.bound=!0;var e=Kn(this),n=e&&this.scope.findVariable(e[0].key);if(n&&n.isNamespace){var r=this.resolveNamespaceVariables(n,e.slice(1));r?"string"==typeof r?this.replacement=r:(r.isExternal&&r.module&&r.module.suggestName(e[0].key),this.variable=r):t.prototype.bind.call(this)}else t.prototype.bind.call(this),null===this.propertyKey&&this.analysePropertyKey()}},e.prototype.deoptimizeCache=function(){for(var t=0,e=this.expressionsToBeDeoptimized;t<e.length;t++){e[t].deoptimizeCache()}},e.prototype.getLiteralValueAtPath=function(t,e,n){return null!==this.variable?this.variable.getLiteralValueAtPath(t,e,n):(null===this.propertyKey&&this.analysePropertyKey(),this.expressionsToBeDeoptimized.push(n),this.object.getLiteralValueAtPath([this.propertyKey].concat(t),e,n))},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return null!==this.variable?this.variable.getReturnExpressionWhenCalledAtPath(t,e,n):(null===this.propertyKey&&this.analysePropertyKey(),this.expressionsToBeDeoptimized.push(n),this.object.getReturnExpressionWhenCalledAtPath([this.propertyKey].concat(t),e,n))},e.prototype.hasEffects=function(t){return this.property.hasEffects(t)||this.object.hasEffects(t)||this.context.propertyReadSideEffects&&this.object.hasEffectsWhenAccessedAtPath([this.propertyKey],t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return 0!==t.length&&(null!==this.variable?this.variable.hasEffectsWhenAccessedAtPath(t,e):this.object.hasEffectsWhenAccessedAtPath([this.propertyKey].concat(t),e))},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return null!==this.variable?this.variable.hasEffectsWhenAssignedAtPath(t,e):this.object.hasEffectsWhenAssignedAtPath([this.propertyKey].concat(t),e)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return null!==this.variable?this.variable.hasEffectsWhenCalledAtPath(t,e,n):this.object.hasEffectsWhenCalledAtPath([this.propertyKey].concat(t),e,n)},e.prototype.include=function(){this.included||(this.included=!0,null===this.variable||this.variable.included||(this.variable.include(),this.context.requestTreeshakingPass())),this.object.include(),this.property.include()},e.prototype.initialise=function(){this.included=!1,this.propertyKey=Hn(this),this.variable=null,this.bound=!1,this.replacement=null,this.expressionsToBeDeoptimized=[]},e.prototype.deoptimizePath=function(t){this.bound||this.bind(),0===t.length&&this.disallowNamespaceReassignment(),this.variable?this.variable.deoptimizePath(t):(null===this.propertyKey&&this.analysePropertyKey(),this.object.deoptimizePath([this.propertyKey].concat(t)))},e.prototype.render=function(e,n,r){var i=void 0===r?Ce:r,s=i.renderedParentType,o=i.isCalleeOfRenderedParent,a="CallExpression"===s&&o;if(this.variable||this.replacement){var h=this.variable?this.variable.getName():this.replacement;a&&(h="0, "+h),e.overwrite(this.start,this.end,h,{storeName:!0,contentOnly:!0})}else a&&e.appendRight(this.start,"0, "),t.prototype.render.call(this,e,n)},e.prototype.disallowNamespaceReassignment=function(){this.object instanceof sn&&this.scope.findVariable(this.object.name).isNamespace&&this.context.error({code:"ILLEGAL_NAMESPACE_REASSIGNMENT",message:"Illegal reassignment to import '"+this.object.name+"'"},this.start)},e.prototype.resolveNamespaceVariables=function(t,e){if(0===e.length)return t;if(!t.isNamespace)return null;var n=e[0].key,r=t.isExternal?t.module.traceExport(n):t.context.traceExport(n);if(!r){var i=t.isExternal?t.module.id:t.context.fileName;return this.context.warn({code:"MISSING_EXPORT",missing:n,importer:qn(this.context.fileName),exporter:qn(i),message:"'"+n+"' is not exported by '"+qn(i)+"'",url:"https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module"},e[0].pos),"undefined"}return this.resolveNamespaceVariables(r,e.slice(1))},e.prototype.analysePropertyKey=function(){this.propertyKey=it;var t=this.property.getLiteralValueAtPath(st,_n,this);this.propertyKey=t===ht?it:String(t)},e}(qe),Xn="(typeof document !== 'undefined' ? document.currentScript && document.currentScript.src || document.baseURI : new (typeof URL !== 'undefined' ? URL : require('ur'+'l').URL)('file:' + __filename).href)",$n={amd:"new URL((typeof process !== 'undefined' && process.versions && process.versions.node ? 'file:' : '') + module.uri).href",cjs:"new (typeof URL !== 'undefined' ? URL : require('ur'+'l').URL)((process.browser ? '' : 'file:') + __filename, process.browser && document.baseURI).href",iife:Xn,umd:Xn},Jn="(typeof document!=='undefined'?document.currentScript&&document.currentScript.src||document.baseURI:new(typeof URL!=='undefined'?URL:require('ur'+'l').URL)('file:'+__filename).href)",Qn={amd:"new URL((typeof process!=='undefined'&&process.versions&&process.versions.node?'file:':'')+module.uri).href",cjs:"new(typeof URL!=='undefined'?URL:require('ur'+'l').URL)((process.browser?'':'file:')+__filename,process.browser&&document.baseURI).href",iife:Jn,umd:Jn},Zn=function(t,e){var n=e?"":" ";return"new"+n+"(typeof URL"+n+"!=="+n+"'undefined'"+n+"?"+n+"URL"+n+":"+n+"require('ur'+'l').URL)((typeof document"+n+"!=="+n+"'undefined'"+n+"?"+n+"document.currentScript"+n+"&&"+n+"document.currentScript.src"+n+"||"+n+"document.baseURI"+n+":"+n+"'file:'"+n+"+"+n+"__filename)"+n+"+"+n+"'/../"+t+"').href"},tr={amd:function(t,e){var n=e?"":" ";return"new URL((typeof process"+n+"!=="+n+"'undefined'"+n+"&&"+n+"process.versions"+n+"&&"+n+"process.versions.node"+n+"?"+n+"'file:'"+n+":"+n+"'')"+n+"+"+n+"module.uri"+n+"+"+n+"'/../"+t+"').href"},cjs:function(t,e){var n=e?"":" ";return"new"+n+"(typeof URL"+n+"!=="+n+"'undefined'"+n+"?"+n+"URL"+n+":"+n+"require('ur'+'l').URL)((process.browser"+n+"?"+n+"''"+n+":"+n+"'file:')"+n+"+"+n+"__dirname"+n+"+"+n+"'/"+t+"',"+n+"process.browser"+n+"&&"+n+"document.baseURI).href"},es:function(t,e){return"new URL('../"+t+"',"+(e?"":" ")+"import.meta.url).href"},system:function(t,e){return"new URL('../"+t+"',"+(e?"":" ")+"module.url).href"},iife:Zn,umd:Zn},er=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.initialise=function(){"import"===this.meta.name&&(this.rendered=!1,this.context.addImportMeta(this)),this.included=!1},e.prototype.render=function(e,n){"import"===this.meta.name&&(this.rendered=!0),t.prototype.render.call(this,e,n)},e.prototype.renderFinalMechanism=function(t,e,n,r){if(!this.rendered)return!1;if(this.parent instanceof Yn==!1)return!1;var i,s=this.parent;if(s.property instanceof sn)i=s.property.name;else{if(!(s.property instanceof jn&&"string"==typeof s.property.value))return!1;i=s.property.value}if(i.startsWith("ROLLUP_ASSET_URL_")){var o=this.context.getAssetFileName(i.substr(17)),a=re(ae(se(e),o));return t.overwrite(s.start,s.end,tr[n](a,r)),!0}if("system"===n)t.overwrite(this.meta.start,this.meta.end,"module");else if("url"===i){var h=(r?Qn:$n)[n];return h&&t.overwrite(s.start,s.end,h),!0}return!1},e}(qe),nr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return this.key.hasEffects(t)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return t.length>0||this.value.hasEffectsWhenCalledAtPath(st,e,n)},e}(qe),rr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this);for(var e=0,n=this.arguments;e<n.length;e++){n[e].deoptimizePath(ot)}},e.prototype.hasEffects=function(t){for(var e=0,n=this.arguments;e<n.length;e++){if(n[e].hasEffects(t))return!0}return this.callee.hasEffectsWhenCalledAtPath(st,this.callOptions,t.getHasEffectsWhenCalledOptions())},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>1},e.prototype.initialise=function(){this.included=!1,this.callOptions=rt.create({withNew:!0,args:this.arguments,callIdentifier:this})},e}(qe),ir=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.argument.deoptimizePath([it,it])},e}(qe),sr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),null===this.propertyMap&&this.buildPropertyMap()},e.prototype.deoptimizeCache=function(){this.hasUnknownDeoptimizedProperty||this.deoptimizeAllProperties()},e.prototype.getLiteralValueAtPath=function(t,e,n){null===this.propertyMap&&this.buildPropertyMap();var r=t[0];return 0===t.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths[r]?ht:1!==t.length||this.propertyMap[r]||0!==this.unmatchablePropertiesRead.length?!this.propertyMap[r]||null===this.propertyMap[r].exactMatchRead||this.propertyMap[r].propertiesRead.length>1?ht:(this.expressionsToBeDeoptimized[r]?this.expressionsToBeDeoptimized[r].push(n):this.expressionsToBeDeoptimized[r]=[n],this.propertyMap[r].exactMatchRead.getLiteralValueAtPath(t.slice(1),e,n)):void(this.expressionsToBeDeoptimized[r]?this.expressionsToBeDeoptimized[r].push(n):this.expressionsToBeDeoptimized[r]=[n])},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){null===this.propertyMap&&this.buildPropertyMap();var r=t[0];return 0===t.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths[r]?ut:1!==t.length||!Ct[r]||0!==this.unmatchablePropertiesRead.length||this.propertyMap[r]&&null!==this.propertyMap[r].exactMatchRead?!this.propertyMap[r]||null===this.propertyMap[r].exactMatchRead||this.propertyMap[r].propertiesRead.length>1?ut:(this.expressionsToBeDeoptimized[r]?this.expressionsToBeDeoptimized[r].push(n):this.expressionsToBeDeoptimized[r]=[n],this.propertyMap[r].exactMatchRead.getReturnExpressionWhenCalledAtPath(t.slice(1),e,n)):Tt(Ct,r)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){if(0===t.length)return!1;var n=t[0];if(t.length>1&&(this.hasUnknownDeoptimizedProperty||"string"!=typeof n||this.deoptimizedPaths[n]||!this.propertyMap[n]||null===this.propertyMap[n].exactMatchRead))return!0;for(var r=t.slice(1),i=0,s="string"!=typeof n?this.properties:this.propertyMap[n]?this.propertyMap[n].propertiesRead:[];i<s.length;i++){if(s[i].hasEffectsWhenAccessedAtPath(r,e))return!0}return!1},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){if(0===t.length)return!1;var n=t[0];if(t.length>1&&(this.hasUnknownDeoptimizedProperty||"string"!=typeof n||this.deoptimizedPaths[n]||!this.propertyMap[n]||null===this.propertyMap[n].exactMatchRead))return!0;for(var r=t.slice(1),i=0,s="string"!=typeof n?this.properties:t.length>1?this.propertyMap[n].propertiesRead:this.propertyMap[n]?this.propertyMap[n].propertiesSet:[];i<s.length;i++){if(s[i].hasEffectsWhenAssignedAtPath(r,e))return!0}return!1},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){var r=t[0];if(0===t.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths[r]||(this.propertyMap[r]?!this.propertyMap[r].exactMatchRead:t.length>1||!Ct[r]))return!0;for(var i=t.slice(1),s=0,o=this.propertyMap[r]?this.propertyMap[r].propertiesRead:[];s<o.length;s++){if(o[s].hasEffectsWhenCalledAtPath(i,e,n))return!0}return!(1!==t.length||!Ct[r])&&Lt(Ct,r,this.included,e,n)},e.prototype.initialise=function(){this.included=!1,this.hasUnknownDeoptimizedProperty=!1,this.deoptimizedPaths=Object.create(null),this.propertyMap=null,this.expressionsToBeDeoptimized=Object.create(null)},e.prototype.deoptimizePath=function(t){if(!this.hasUnknownDeoptimizedProperty)if(null===this.propertyMap&&this.buildPropertyMap(),0!==t.length){var e=t[0];if(1===t.length){if("string"!=typeof e)return void this.deoptimizeAllProperties();if(!this.deoptimizedPaths[e]&&(this.deoptimizedPaths[e]=!0,this.expressionsToBeDeoptimized[e]))for(var n=0,r=this.expressionsToBeDeoptimized[e];n<r.length;n++){r[n].deoptimizeCache()}}for(var i=1===t.length?ot:t.slice(1),s=0,o="string"==typeof e?this.propertyMap[e]?this.propertyMap[e].propertiesRead:[]:this.properties;s<o.length;s++){o[s].deoptimizePath(i)}}else this.deoptimizeAllProperties()},e.prototype.deoptimizeAllProperties=function(){this.hasUnknownDeoptimizedProperty=!0;for(var t=0,e=this.properties;t<e.length;t++){e[t].deoptimizePath(ot)}for(var n=0,r=Object.keys(this.expressionsToBeDeoptimized);n<r.length;n++)for(var i=r[n],s=0,o=this.expressionsToBeDeoptimized[i];s<o.length;s++){o[s].deoptimizeCache()}},e.prototype.render=function(e,n,r){var i=(void 0===r?Ce:r).renderedParentType;t.prototype.render.call(this,e,n),"ExpressionStatement"===i&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))},e.prototype.buildPropertyMap=function(){var t,e;this.propertyMap=Object.create(null),this.unmatchablePropertiesRead=[],this.unmatchablePropertiesWrite=[];for(var n=this.properties.length-1;n>=0;n--){var r=this.properties[n];if(r instanceof ir)this.unmatchablePropertiesRead.push(r);else{var i="get"!==r.kind,s="set"!==r.kind,o=void 0;if(r.computed){var a=r.key.getLiteralValueAtPath(st,_n,this);if(a===ht){s?this.unmatchablePropertiesRead.push(r):this.unmatchablePropertiesWrite.push(r);continue}o=String(a)}else o=r.key instanceof sn?r.key.name:String(r.key.value);var h=this.propertyMap[o];h?(s&&null===h.exactMatchRead&&(h.exactMatchRead=r,(t=h.propertiesRead).push.apply(t,[r].concat(this.unmatchablePropertiesRead))),i&&!s&&null===h.exactMatchWrite&&(h.exactMatchWrite=r,(e=h.propertiesSet).push.apply(e,[r].concat(this.unmatchablePropertiesWrite)))):this.propertyMap[o]={exactMatchRead:s?r:null,propertiesRead:s?[r].concat(this.unmatchablePropertiesRead):[],exactMatchWrite:i?r:null,propertiesSet:i&&!s?[r].concat(this.unmatchablePropertiesWrite):[]}}}},e}(qe),or=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.declare=function(t,e){for(var n=0,r=this.properties;n<r.length;n++){r[n].declare(t,e)}},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){if(t.length>0)return!0;for(var n=0,r=this.properties;n<r.length;n++){if(r[n].hasEffectsWhenAssignedAtPath(st,e))return!0}return!1},e.prototype.deoptimizePath=function(t){if(0===t.length)for(var e=0,n=this.properties;e<n.length;e++){n[e].deoptimizePath(t)}},e}(qe),ar=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){for(var e=0,n=this.body;e<n.length;e++){if(n[e].hasEffects(t))return!0}},e.prototype.include=function(){this.included=!0;for(var t=0,e=this.body;t<e.length;t++){var n=e[t];n.shouldBeIncluded()&&n.include()}},e.prototype.render=function(e,n){this.body.length?Me(this.body,e,this.start,this.end,n):t.prototype.render.call(this,e,n)},e}(qe),hr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.declarationInit=null,e}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),"get"===this.kind&&null===this.returnExpression&&this.updateReturnExpression(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([it,it])},e.prototype.declare=function(t,e){this.declarationInit=e,this.value.declare(t,ut)},e.prototype.deoptimizeCache=function(){throw new Error("Unexpected deoptimization")},e.prototype.getLiteralValueAtPath=function(t,e,n){return"set"===this.kind?ht:"get"===this.kind?(null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression.getLiteralValueAtPath(t,e,n)):this.value.getLiteralValueAtPath(t,e,n)},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return"set"===this.kind?ut:"get"===this.kind?(null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression.getReturnExpressionWhenCalledAtPath(t,e,n)):this.value.getReturnExpressionWhenCalledAtPath(t,e,n)},e.prototype.hasEffects=function(t){return this.key.hasEffects(t)||this.value.hasEffects(t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return"get"===this.kind?this.value.hasEffectsWhenCalledAtPath(st,this.accessorCallOptions,e.getHasEffectsWhenCalledOptions())||t.length>0&&this.returnExpression.hasEffectsWhenAccessedAtPath(t,e):this.value.hasEffectsWhenAccessedAtPath(t,e)},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return"get"===this.kind?0===t.length||this.returnExpression.hasEffectsWhenAssignedAtPath(t,e):"set"===this.kind?t.length>0||this.value.hasEffectsWhenCalledAtPath(st,this.accessorCallOptions,e.getHasEffectsWhenCalledOptions()):this.value.hasEffectsWhenAssignedAtPath(t,e)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return"get"===this.kind?this.returnExpression.hasEffectsWhenCalledAtPath(t,e,n):this.value.hasEffectsWhenCalledAtPath(t,e,n)},e.prototype.initialise=function(){this.included=!1,this.returnExpression=null,this.accessorCallOptions=rt.create({withNew:!1,callIdentifier:this})},e.prototype.deoptimizePath=function(t){"get"===this.kind?t.length>0&&(null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression.deoptimizePath(t)):"set"!==this.kind&&this.value.deoptimizePath(t)},e.prototype.render=function(t,e){this.shorthand||this.key.render(t,e),this.value.render(t,e,{isShorthandProperty:this.shorthand})},e.prototype.updateReturnExpression=function(){this.returnExpression=ut,this.returnExpression=this.value.getReturnExpressionWhenCalledAtPath(st,_n,this)},e}(qe),ur=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.declarationInit=null,e}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),null!==this.declarationInit&&this.declarationInit.deoptimizePath([it,it])},e.prototype.declare=function(t,e){this.argument.declare(t,ut),this.declarationInit=e},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return t.length>0||this.argument.hasEffectsWhenAssignedAtPath(st,e)},e.prototype.deoptimizePath=function(t){0===t.length&&this.argument.deoptimizePath(st)},e}(qe),cr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return!t.ignoreReturnAwaitYield()||this.argument&&this.argument.hasEffects(t)},e.prototype.initialise=function(){this.included=!1,this.scope.addReturnExpression(this.argument||ut)},e.prototype.render=function(t,e){this.argument&&(this.argument.render(t,e),this.argument.start===this.start+6&&t.prependLeft(this.start+6," "))},e}(qe),pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getLiteralValueAtPath=function(t,e,n){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(t,e,n)},e.prototype.hasEffects=function(t){for(var e=0,n=this.expressions;e<n.length;e++){if(n[e].hasEffects(t))return!0}return!1},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>0&&this.expressions[this.expressions.length-1].hasEffectsWhenAccessedAtPath(t,e)},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return 0===t.length||this.expressions[this.expressions.length-1].hasEffectsWhenAssignedAtPath(t,e)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return this.expressions[this.expressions.length-1].hasEffectsWhenCalledAtPath(t,e,n)},e.prototype.include=function(){this.included=!0;for(var t=0;t<this.expressions.length-1;t++){var e=this.expressions[t];e.shouldBeIncluded()&&e.include()}this.expressions[this.expressions.length-1].include()},e.prototype.deoptimizePath=function(t){t.length>0&&this.expressions[this.expressions.length-1].deoptimizePath(t)},e.prototype.render=function(t,e,n){for(var r,i=void 0===n?Ce:n,s=i.renderedParentType,o=i.isCalleeOfRenderedParent,a=0,h=0,u=0,c=Le(this.expressions,t,this.start,this.end);u<c.length;u++){var p=c[u],l=p.node,f=p.start,d=p.end;l.included?(h++,0===a&&(a=f),r=d,l===this.expressions[this.expressions.length-1]&&1===h?l.render(t,e,{renderedParentType:s||this.parent.type,isCalleeOfRenderedParent:s?o:this.parent.callee===this}):l.render(t,e)):t.remove(f,d)}h>1&&s&&(t.prependRight(a,"("),t.appendLeft(r,")"))},e}(qe),lr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.include=function(){this.included=!0,this.test&&this.test.include();for(var t=0,e=this.consequent;t<e.length;t++){var n=e[t];n.shouldBeIncluded()&&n.include()}},e.prototype.render=function(e,n){if(this.consequent.length){this.test&&this.test.render(e,n);var r=this.test?this.test.end:Re(e.original,"default",this.start)+7,i=Re(e.original,":",r)+1;Me(this.consequent,e,i,this.end,n)}else t.prototype.render.call(this,e,n)},e}(qe),fr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createScope=function(t){this.scope=new cn(t)},e.prototype.hasEffects=function(e){return t.prototype.hasEffects.call(this,e.setIgnoreBreakStatements())},e}(qe),dr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){(t.prototype.bind.call(this),this.tag.type===Z)&&(this.scope.findVariable(this.tag.name).isNamespace&&this.context.error({code:"CANNOT_CALL_NAMESPACE",message:"Cannot call a namespace ('"+this.tag.name+"')"},this.start),"eval"===this.tag.name&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://github.com/rollup/rollup/wiki/Troubleshooting#avoiding-eval"},this.start))},e.prototype.hasEffects=function(e){return t.prototype.hasEffects.call(this,e)||this.tag.hasEffectsWhenCalledAtPath(st,this.callOptions,e.getHasEffectsWhenCalledOptions())},e.prototype.initialise=function(){this.included=!1,this.callOptions=rt.create({withNew:!1,callIdentifier:this})},e}(qe),mr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return!1},e}(qe);var gr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getLiteralValueAtPath=function(t){return t.length>0||1!==this.quasis.length?ht:this.quasis[0].value.cooked},e.prototype.render=function(e,n){e.indentExclusionRanges.push([this.start,this.end]),t.prototype.render.call(this,e,n)},e}(qe),yr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.variable=this.scope.findVariable("this")},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>0&&this.variable.hasEffectsWhenAccessedAtPath(t,e)},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return this.variable.hasEffectsWhenAssignedAtPath(t,e)},e.prototype.initialise=function(){this.included=!1,this.variable=null,this.alias=this.scope.findLexicalBoundary().isModuleScope?this.context.moduleContext:null,"undefined"===this.alias&&this.context.warn({code:"THIS_IS_UNDEFINED",message:"The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten",url:"https://github.com/rollup/rollup/wiki/Troubleshooting#this-is-undefined"},this.start)},e.prototype.render=function(t,e){null!==this.alias&&t.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!1})},e}(qe),vr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return!0},e}(qe),xr={"-":function(t){return-t},"+":function(t){return+t},"!":function(t){return!t},"~":function(t){return~t},typeof:function(t){return typeof t},void:function(){},delete:function(){return ht}},_r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),"delete"===this.operator&&this.argument.deoptimizePath(st)},e.prototype.getLiteralValueAtPath=function(t,e,n){if(t.length>0)return ht;var r=this.argument.getLiteralValueAtPath(st,e,n);return r===ht?ht:xr[this.operator](r)},e.prototype.hasEffects=function(t){return this.argument.hasEffects(t)||"delete"===this.operator&&this.argument.hasEffectsWhenAssignedAtPath(st,t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return"void"===this.operator?t.length>0:t.length>1},e}(qe),Er=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return!0},e}(qe),br=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){(t.prototype.bind.call(this),this.argument.deoptimizePath(st),rn(this.argument))&&(this.scope.findVariable(this.argument.name).isReassigned=!0)},e.prototype.hasEffects=function(t){return this.argument.hasEffects(t)||this.argument.hasEffectsWhenAssignedAtPath(st,t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>1},e.prototype.render=function(t,e){this.argument.render(t,e);var n=this.argument.variable;if("system"===e.format&&n&&n.exportName){var r=n.getName();if(this.prefix)t.overwrite(this.start,this.end,"exports('"+n.exportName+"', "+this.operator+r+")");else{var i=void 0;switch(this.operator){case"++":i=r+" + 1";break;case"--":i=r+" - 1"}t.overwrite(this.start,this.end,"(exports('"+n.exportName+"', "+i+"), "+r+this.operator+")")}}},e}(qe);function Ar(t){return t.safeName&&-1!==t.safeName.indexOf(".")&&t.exportName&&t.isReassigned}var Sr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return!1},e.prototype.includeWithAllDeclaredVariables=function(){var t=!1;this.included=!0;for(var e=0,n=this.declarations;e<n.length;e++){n[e].include()&&(t=!0)}return t},e.prototype.include=function(){this.included=!0;for(var t=0,e=this.declarations;t<e.length;t++){var n=e[t];n.shouldBeIncluded()&&n.include()}},e.prototype.initialise=function(){this.included=!1;for(var t=0,e=this.declarations;t<e.length;t++){e[t].declareDeclarator(this.kind)}},e.prototype.deoptimizePath=function(t){for(var e=0,n=this.declarations;e<n.length;e++){n[e].deoptimizePath(st)}},e.prototype.render=function(t,e,n){if(void 0===n&&(n=Ce),this.declarations.every(function(t){return t.included&&(!t.id.variable||!t.id.variable.exportName)})){for(var r=0,i=this.declarations;r<i.length;r++){i[r].render(t,e)}n.isNoStatement||59===t.original.charCodeAt(this.end-1)||t.appendLeft(this.end,";")}else this.renderReplacedDeclarations(t,e,n)},e.prototype.renderReplacedDeclarations=function(t,e,n){var r,i,s=n.start,o=void 0===s?this.start:s,a=n.end,h=void 0===a?this.end:a,u=n.isNoStatement,c=Le(this.declarations,t,this.start+this.kind.length,this.end-(59===t.original.charCodeAt(this.end-1)?1:0)),p=(i=/\n\s*$/.test(t.slice(this.start,c[0].start))?this.start+this.kind.length:c[0].start)-1;t.remove(this.start,p);for(var l,f,d=!1,m=!1,g="",y=0,v=c;y<v.length;y++){var x=v[y],_=x.node,E=x.start,b=x.separator,A=x.contentEnd,S=x.end;!_.included||rn(_.id)&&Ar(_.id.variable)&&null===_.init?t.remove(E,S):(l="",f="",rn(_.id)&&Ar(_.id.variable)?(m&&(g+=";"),d=!1):("system"===e.format&&null!==_.init&&rn(_.id)&&_.id.variable.exportName&&(t.prependLeft(t.original.indexOf("=",_.id.end)+1," exports('"+(_.id.variable.safeExportName||_.id.variable.exportName)+"',"),f+=")"),d?g+=",":(m&&(g+=";"),l+=this.kind+" ",d=!0)),i===p+1?t.overwrite(p,i,g+l):(t.overwrite(p,p+1,g),t.appendLeft(i,l)),_.render(t,e),r=A,i=S,m=!0,p=b,g=f)}m?this.renderDeclarationEnd(t,g,p,r,i,!u):t.remove(o,h)},e.prototype.renderDeclarationEnd=function(t,e,n,r,i,s){return 59===t.original.charCodeAt(this.end-1)&&t.remove(this.end-1,this.end),s&&(e+=";"),null!==n?(10!==t.original.charCodeAt(r-1)||10!==t.original.charCodeAt(this.end)&&13!==t.original.charCodeAt(this.end)||(r--,13===t.original.charCodeAt(r)&&r--),r===n+1?t.overwrite(n,i,e):(t.overwrite(n,n+1,e),t.remove(r,i))):t.appendLeft(i,e),e},e}(qe),wr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.declareDeclarator=function(t){this.id.declare(t,this.init||ct)},e.prototype.deoptimizePath=function(t){this.id.deoptimizePath(t)},e.prototype.render=function(e,n){null===this.init||this.init.included?t.prototype.render.call(this,e,n):(e.remove(this.id.end,this.end),this.id.render(e,n))},e}(qe),Pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return this.test.hasEffects(t)||this.body.hasEffects(t.setIgnoreBreakStatements())},e}(qe),Ir=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),null!==this.argument&&this.argument.deoptimizePath(ot)},e.prototype.hasEffects=function(t){return!t.ignoreReturnAwaitYield()||this.argument&&this.argument.hasEffects(t)},e.prototype.render=function(t,e){this.argument&&(this.argument.render(t,e),this.argument.start===this.start+5&&t.prependLeft(this.start+5," "))},e}(qe),kr={ArrayExpression:hn,ArrayPattern:un,ArrowFunctionExpression:ln,AssignmentExpression:fn,AssignmentPattern:dn,AwaitExpression:mn,BinaryExpression:yn,BlockStatement:pn,BreakStatement:vn,CallExpression:En,CatchClause:An,ClassBody:Sn,ClassDeclaration:Ke,ClassExpression:wn,ConditionalExpression:In,DoWhileStatement:kn,EmptyStatement:Cn,ExportAllDeclaration:Nn,ExportDefaultDeclaration:an,ExportNamedDeclaration:Rn,ExpressionStatement:On,ForStatement:Tn,ForInStatement:Mn,ForOfStatement:Ln,FunctionDeclaration:nn,FunctionExpression:Dn,Identifier:sn,IfStatement:Vn,Import:zn,ImportDeclaration:Bn,LabeledStatement:Wn,Literal:jn,LogicalExpression:Un,MemberExpression:Yn,MetaProperty:er,MethodDefinition:nr,NewExpression:rr,ObjectExpression:sr,ObjectPattern:or,Program:ar,Property:hr,RestElement:ur,ReturnStatement:cr,SequenceExpression:pr,SpreadElement:ir,SwitchCase:lr,SwitchStatement:fr,TaggedTemplateExpression:dr,TemplateElement:mr,TemplateLiteral:gr,ThisExpression:yr,ThrowStatement:vr,TryStatement:qe,UnaryExpression:_r,UnknownNode:Er,UpdateExpression:br,VariableDeclarator:wr,VariableDeclaration:Sr,WhileStatement:Pr,YieldExpression:Ir},Cr=function(t,e){if(t.isNamespace&&!t.isExternal)for(var n=0,r=t.context.getExports();n<r.length;n++){var i=r[n];Cr(t.context.traceExport(i),e)}e.add(t.getName())},Nr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.context=n,r.isModuleScope=!0,r.variables.this=new Vt("this",null,ct,n.deoptimizationTracker),r}return n(e,t),e.prototype.deshadow=function(e,n){void 0===n&&(n=this.children);for(var r=new Set(e),i=0,s=Object.keys(this.context.imports);i<s.length;i++){var o=s[i],a=this.context.imports[o];if(!a.module.isExternal&&!this.context.isCrossChunkImport(a)){for(var h=0,u=a.module.getAllExports();h<u.length;h++){var c=u[h];Cr(a.module.traceExport(c),r)}if("*"!==a.name){var p=a.module.traceExport(a.name);if(!p){this.context.warn({code:"NON_EXISTENT_EXPORT",name:a.name,source:a.module.id,message:"Non-existent export '"+a.name+"' is imported from "+qn(a.module.id)},a.start);continue}(c=p.getName())!==a.name&&r.add(c),"default"!==a.name&&a.name!==o&&r.add(a.name)}}}t.prototype.deshadow.call(this,r,n)},e.prototype.findLexicalBoundary=function(){return this},e.prototype.findVariable=function(t){return this.variables[t]?this.variables[t]:this.context.traceVariable(t)||this.parent.findVariable(t)},e}(ze);var Rr={Identifier:function(t,e){t.push(e.name)},ObjectPattern:function(t,e){e.properties.forEach(function(e){e instanceof ur?Rr[e.argument.type](t,e.argument):Rr[e.value.type](t,e.value)})},ArrayPattern:function(t,e){e.elements.forEach(function(e){e&&Rr[e.type](t,e)})},RestElement:function(t,e){Rr[e.argument.type](t,e.argument)},AssignmentPattern:function(t,e){Rr[e.left.type](t,e.left)}},Or=function(t){function e(e,n){var r=t.call(this,e.getModuleName())||this;r.originals=Object.create(null),r.needsNamespaceBlock=!1,r.referencedEarly=!1,r.references=[],r.context=e,r.module=n;for(var i=0,s=r.context.getExports().concat(r.context.getReexports());i<s.length;i++){var o=s[i];r.originals[o]=r.context.traceExport(o)}return r}return n(e,t),e.prototype.addReference=function(t){this.references.push(t),this.name=t.name},e.prototype.include=function(){if(!this.included){this.context.includeNamespace(),this.included=!0,this.needsNamespaceBlock=!0;for(var t=0,e=this.references;t<e.length;t++){if(e[t].context.getModuleExecIndex()<=this.context.getModuleExecIndex()){this.referencedEarly=!0;break}}for(var n=0,r=Object.keys(this.originals);n<r.length;n++){var i=r[n];this.originals[i].include()}}},e.prototype.renderFirst=function(){return this.referencedEarly},e.prototype.deoptimizePath=function(){for(var t in this.originals)this.originals[t].deoptimizePath(ot)},e.prototype.renderBlock=function(t){var e=this,n=t.compact?"":" ",r=t.compact?"":"\n",i=t.indent,s=Object.keys(this.originals).map(function(r){var s=e.originals[r];return e.referencedEarly||s.isReassigned?i+"get "+r+n+"()"+n+"{"+n+"return "+s.getName()+(t.compact?"":";")+n+"}":""+i+r+": "+s.getName()}),o=this.getName(),a=t.freeze?"/*#__PURE__*/Object.freeze":"",h=this.context.varOrConst+" "+o+" = "+(t.namespaceToStringTag?"{"+r+s.join(","+r)+r+"};":a+"({"+r+s.join(","+r)+r+"});");return t.namespaceToStringTag&&(h+=r+"if"+n+"(typeof Symbol"+n+"!=="+n+"'undefined'"+n+"&&"+n+"Symbol.toStringTag)"+r,h+=i+"Object.defineProperty("+o+","+n+"Symbol.toStringTag,"+n+"{"+n+"value:"+n+"'Module'"+n+"});"+r,h+="else"+(r||" "),h+=i+"Object.defineProperty("+o+","+n+"'toString',"+n+"{"+n+"value:"+n+"function"+n+"()"+n+"{"+n+"return"+n+"'[object Module]'"+(t.compact?";":"")+n+"}"+n+"});"+r,h+=a+"("+o+");"),"system"===t.format&&this.exportName&&(h+=r+"exports('"+this.exportName+"',"+n+o+");"),h},e}(Dt);Or.prototype.isNamespace=!0;var Mr="sourceMa";Mr+="ppingURL";var Lr=new RegExp("^#\\s+"+Mr+"=.+\\n?"),Tr=function(){},Dr=function(){return 0},Vr=function(){return 0},zr=function(){return 0},Br={},Wr=function(t){return 1e3*t[0]+t[1]/1e6};function jr(t,e){switch(e){case 1:return"# "+t;case 2:return"## "+t;case 3:return t;default:return" ".repeat(e-4)+"- "+t}}function Ur(t,e){void 0===e&&(e=3),t=jr(t,e),Br.hasOwnProperty(t)||(Br[t]={totalMemory:0,startTime:void 0,startMemory:void 0,time:0,memory:0});var n=zr();Br[t].startTime=Dr(),Br[t].startMemory=n}function Fr(t,e){if(void 0===e&&(e=3),t=jr(t,e),Br.hasOwnProperty(t)){var n=zr();Br[t].time+=Vr(Br[t].startTime),Br[t].totalMemory=Math.max(Br[t].totalMemory,n),Br[t].memory+=n-Br[t].startMemory}}function qr(){var t={};return Object.keys(Br).forEach(function(e){t[e]=[Br[e].time,Br[e].memory,Br[e].totalMemory]}),t}var Gr=Tr,Hr=Tr,Kr={transform:!0,transformBundle:!0,load:!0,resolveId:!0,ongenerate:!0,onwrite:!0,resolveDynamicImport:!0};function Yr(t,e){for(var n={},r=function(r){if(!0===Kr[r]){var i="plugin "+e;t.name&&(i+=" ("+t.name+")"),i+=" - "+r,n[r]=function(){Gr(i,4);var e=t[r].apply(this===n?t:this,arguments);return Hr(i,4),e&&"function"==typeof e.then&&(Gr(i+" (async)",4),e.then(function(){return Hr(i+" (async)",4)})),e}}else n[r]=t[r]},i=0,s=Object.keys(t);i<s.length;i++){r(s[i])}return n}function Xr(t){t.perf?(Br={},"undefined"!=typeof process&&"function"==typeof process.hrtime?(Dr=process.hrtime.bind(process),Vr=function(t){return Wr(process.hrtime(t))}):"undefined"!=typeof performance&&"function"==typeof performance.now&&(Dr=performance.now.bind(performance),Vr=function(t){return performance.now()-t}),"undefined"!=typeof process&&"function"==typeof process.memoryUsage&&(zr=function(){return process.memoryUsage().heapUsed}),Gr=Ur,Hr=Fr,t.plugins=t.plugins.map(Yr)):(Gr=Tr,Hr=Tr)}var $r={ecmaVersion:2019,sourceType:"module",preserveParens:!1};function Jr(t,e,n,r){e.error({code:"MISSING_EXPORT",message:"'"+t+"' is not exported by "+qn(n),url:"https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module"},r)}var Qr=function(){function t(t,e){this.usesTopLevelAwait=!1,this.namespaceVariable=void 0,this.needsTreeshakingPass=!1,this.id=e,this.chunkAlias=void 0,this.graph=t,this.comments=[],this.dynamicImports=[],this.importMetas=[],this.dynamicImportResolutions=[],this.isEntryPoint=!1,this.execIndex=null,this.entryPointsHash=new Uint8Array(10),this.excludeFromSourcemap=/\0/.test(e),this.context=t.getModuleContext(e),this.sources=[],this.dependencies=[],this.imports=Object.create(null),this.exports=Object.create(null),this.exportsAll=Object.create(null),this.reexports=Object.create(null),this.exportAllSources=[],this.exportAllModules=null}return t.prototype.setSource=function(t){var e=this,n=t.code,i=t.originalCode,s=t.originalSourcemap,o=t.ast,a=t.sourcemapChain,h=t.resolvedIds,u=t.transformDependencies,c=t.customTransformCache;this.code=n,this.originalCode=i,this.originalSourcemap=s,this.sourcemapChain=a,this.transformDependencies=u,this.customTransformCache=c,Gr("generate ast",3),this.esTreeAst=o||function(t,e,n){try{return e(t.code,r({},$r,n,{onComment:function(e,n,r,i){return t.comments.push({block:e,text:n,start:r,end:i})}}))}catch(e){var i=e.message.replace(/ \(\d+:\d+\)$/,"");t.id.endsWith(".json")?i+=" (Note that you need rollup-plugin-json to import JSON files)":t.id.endsWith(".js")||(i+=" (Note that you need plugins to import files that are not JavaScript)"),t.error({code:"PARSE_ERROR",message:i},e.pos)}}(this,this.graph.acornParse,this.graph.acornOptions),Hr("generate ast",3),this.resolvedIds=h||Object.create(null);var p=this.id;this.magicString=new K(n,{filename:this.excludeFromSourcemap?null:p,indentExclusionRanges:[]}),this.removeExistingSourceMap(),Gr("analyse ast",3),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),code:n,error:this.error.bind(this),fileName:p,getAssetFileName:this.graph.pluginDriver.getAssetFileName,getExports:this.getExports.bind(this),getReexports:this.getReexports.bind(this),getModuleExecIndex:function(){return e.execIndex},getModuleName:this.basename.bind(this),imports:this.imports,includeNamespace:this.includeNamespace.bind(this),isCrossChunkImport:function(t){return t.module.chunk!==e.chunk},magicString:this.magicString,moduleContext:this.context,nodeConstructors:kr,propertyReadSideEffects:!this.graph.treeshake||this.graph.treeshakingOptions.propertyReadSideEffects,deoptimizationTracker:this.graph.deoptimizationTracker,requestTreeshakingPass:function(){return e.needsTreeshakingPass=!0},traceExport:this.traceExport.bind(this),traceVariable:this.traceVariable.bind(this),treeshake:this.graph.treeshake,usesTopLevelAwait:!1,varOrConst:this.graph.varOrConst,warn:this.warn.bind(this)},this.scope=new Nr(this.graph.scope,this.astContext),this.ast=new ar(this.esTreeAst,{type:"Module",context:this.astContext},this.scope),Hr("analyse ast",3)},t.prototype.removeExistingSourceMap=function(){for(var t=0,e=this.comments;t<e.length;t++){var n=e[t];!n.block&&Lr.test(n.text)&&this.magicString.remove(n.start,n.end)}},t.prototype.addExport=function(t){var e,n,r=t.source&&t.source.value;if(r)if(-1===this.sources.indexOf(r)&&this.sources.push(r),"ExportAllDeclaration"===t.type)this.exportAllSources.push(r);else for(var i=0,s=t.specifiers;i<s.length;i++){var o=(y=s[i]).exported.name;(this.exports[o]||this.reexports[o])&&this.error({code:"DUPLICATE_EXPORT",message:"A module cannot have multiple exports with the same name ('"+o+"')"},y.start),this.reexports[o]={start:y.start,source:r,localName:y.local.name,module:null}}else if(function(t){return t.type===J}(t)){var a=t.declaration.id&&t.declaration.id.name||t.declaration.name;this.exports.default&&this.error({code:"DUPLICATE_EXPORT",message:"A module can only have one default export"},t.start),this.exports.default={localName:"default",identifier:a,node:t}}else if(t.declaration){var h=t.declaration;if("VariableDeclaration"===h.type)for(var u=0,c=h.declarations;u<c.length;u++)for(var p=c[u],l=0,f=(e=p.id,void 0,n=[],Rr[e.type](n,e),n);l<f.length;l++){var d=f[l];this.exports[d]={localName:d,node:t}}else{d=h.id.name;this.exports[d]={localName:d,node:t}}}else for(var m=0,g=t.specifiers;m<g.length;m++){d=(y=g[m]).local.name;var y,v=y.exported.name;(this.exports[v]||this.reexports[v])&&this.error({code:"DUPLICATE_EXPORT",message:"A module cannot have multiple exports with the same name ('"+v+"')"},y.start),this.exports[v]={localName:d,node:t}}},t.prototype.addImport=function(t){var e=t.source.value;-1===this.sources.indexOf(e)&&this.sources.push(e);for(var n=0,r=t.specifiers;n<r.length;n++){var i=r[n],s=i.local.name;this.imports[s]&&this.error({code:"DUPLICATE_IMPORT",message:"Duplicated import '"+s+"'"},i.start);var o="ImportDefaultSpecifier"===i.type,a="ImportNamespaceSpecifier"===i.type,h=o?"default":a?"*":i.imported.name;this.imports[s]={source:e,start:i.start,name:h,module:null}}},t.prototype.addDynamicImport=function(t){this.dynamicImports.push(t)},t.prototype.addImportMeta=function(t){this.importMetas.push(t)},t.prototype.basename=function(){var t=ie(this.id),e=oe(this.id);return Qt(e?t.slice(0,-e.length):t)},t.prototype.markPublicExports=function(){for(var t=0,e=this.getExports();t<e.length;t++){var n=e[t];(s=this.traceExport(n)).exportName=n,s.deoptimizePath(ot),s.include(),s.isNamespace&&(s.needsNamespaceBlock=!0)}for(var r=0,i=this.getReexports();r<i.length;r++){var s,o=i[r];(s=this.traceExport(o)).exportName=o,s.isExternal?s.reexported=s.module.reexported=!0:(s.include(),s.deoptimizePath(ot))}},t.prototype.linkDependencies=function(){for(var t=this,e=0,n=this.sources;e<n.length;e++){var r=n[e],i=this.resolvedIds[r];if(i){var s=this.graph.moduleById.get(i);this.dependencies.push(s)}}var o=function(e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=e[r[n]],s=t.resolvedIds[i.source];i.module=t.graph.moduleById.get(s)}};o(this.imports),o(this.reexports),this.exportAllModules=this.exportAllSources.map(function(e){var n=t.resolvedIds[e];return t.graph.moduleById.get(n)})},t.prototype.bindReferences=function(){this.ast.bind()},t.prototype.getDynamicImportExpressions=function(){return this.dynamicImports.map(function(t){var e=t.parent.arguments[0];if(function(t){return t.type===nt}(e)){if(0===e.expressions.length&&1===e.quasis.length)return e.quasis[0].value.cooked}else{if(!function(t){return t.type===tt}(e))return e;if("string"==typeof e.value)return e.value}})},t.prototype.error=function(t,e){if(void 0!==e){t.pos=e;var n=ge(this.code,e,{offsetLine:1});try{n=function(t,e){for(var n=t.filter(function(t){return t.mappings});n.length>0;){var r=n.pop(),i=r.mappings[e.line-1],s=!1;if(void 0!==i)for(var o=0,a=i;o<a.length;o++){var h=a[o];if(h[0]>=e.column){if(h.length<4)break;e={line:h[2]+1,column:h[3],source:r.sources[h[1]],name:r.names[h[4]]},s=!0;break}}if(!s)throw new Error("Can't resolve original location of error.")}return e}(this.sourcemapChain,n)}catch(t){this.warn({loc:{file:this.id,line:n.line,column:n.column},pos:e,message:"Error when using sourcemap for reporting an error: "+t.message,code:"SOURCEMAP_ERROR"},void 0)}t.loc={file:this.id,line:n.line,column:n.column},t.frame=ve(this.originalCode,n.line,n.column)}xe(t)},t.prototype.getAllExports=function(){var t=Object.assign(Object.create(null),this.exports,this.reexports);return this.exportAllModules.forEach(function(e){if(e.isExternal)t["*"+e.id]=!0;else for(var n=0,r=e.getAllExports();n<r.length;n++){var i=r[n];"default"!==i&&(t[i]=!0)}}),Object.keys(t)},t.prototype.getExports=function(){return Object.keys(this.exports)},t.prototype.getReexports=function(){var t=Object.create(null);for(var e in this.reexports)t[e]=!0;return this.exportAllModules.forEach(function(e){if(e.isExternal)t["*"+e.id]=!0;else for(var n=0,r=e.getExports().concat(e.getReexports());n<r.length;n++){var i=r[n];"default"!==i&&(t[i]=!0)}}),Object.keys(t)},t.prototype.includeAllInBundle=function(){!function t(e){e.included=!0,e.variable&&!e.variable.included&&e.variable.include();for(var n=0,r=e.keys;n<r.length;n++){var i=e[r[n]];if(null!==i)if(Array.isArray(i))for(var s=0,o=i;s<o.length;s++){var a=o[s];null!==a&&t(a)}else t(i)}}(this.ast)},t.prototype.isIncluded=function(){return this.ast.included},t.prototype.include=function(){return this.needsTreeshakingPass=!1,this.ast.shouldBeIncluded()&&this.ast.include(),this.needsTreeshakingPass},t.prototype.getOrCreateNamespace=function(){return this.namespaceVariable?this.namespaceVariable:this.namespaceVariable=new Or(this.astContext,this)},t.prototype.includeNamespace=function(){var t=this.getOrCreateNamespace();if(!t.needsNamespaceBlock){var e=!1;for(var n in this.reexports){e=!0;var r=this.reexports[n];this.imports[n]={source:r.source,start:r.start,name:r.localName,module:r.module},t.originals[n]=r.module.traceExport(r.localName)}this.chunk&&this.chunk.linked&&e&&this.chunk.linkModule(this)}},t.prototype.render=function(t){var e=this.magicString.clone();return this.ast.render(e,t),this.usesTopLevelAwait=this.astContext.usesTopLevelAwait,e},t.prototype.toJSON=function(){return{id:this.id,dependencies:this.dependencies.map(function(t){return t.id}),transformDependencies:this.transformDependencies,transformAssets:this.transformAssets,code:this.code,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,ast:this.esTreeAst,sourcemapChain:this.sourcemapChain,resolvedIds:this.resolvedIds,customTransformCache:this.customTransformCache}},t.prototype.traceVariable=function(t){if(t in this.scope.variables)return this.scope.variables[t];if(t in this.imports){var e=this.imports[t],n=e.module;if(!n.isExternal&&"*"===e.name)return n.getOrCreateNamespace();var r=n.traceExport(e.name);return r||Jr(e.name,this,n.id,e.start),r}return null},t.prototype.getRenderedExports=function(){var t=[],e=[];for(var n in this.exports){var r=this.exports[n];(r.node&&r.node.included?t:e).push(n)}return{renderedExports:t,removedExports:e}},t.prototype.traceExport=function(t,e){if("*"===t[0])return 1===t.length?this.getOrCreateNamespace():this.graph.moduleById.get(t.slice(1)).traceExport("*");var n=this.reexports[t];if(n)return(o=n.module.traceExport(n.localName))||Jr(n.localName,this,n.module.id,n.start),o;var r=this.exports[t];if(r){var i=r.localName;return o=this.traceVariable(i)||this.graph.scope.findVariable(i)}if("default"!==t)for(var s=0;s<this.exportAllModules.length;s+=1){var o;if(o=this.exportAllModules[s].traceExport(t,!0))return o}return this.graph.shimMissingExports&&!e?this.shimMissingExport(t):void 0},t.prototype.warn=function(t,e){if(void 0!==e){t.pos=e;var n=ge(this.code,e,{offsetLine:1}),r=n.line,i=n.column;t.loc={file:this.id,line:r,column:i},t.frame=ve(this.code,r,i)}t.id=this.id,this.graph.warn(t)},t.prototype.shimMissingExport=function(t){return this.exports[t]||this.graph.warn({message:'Missing export "'+t+'" has been shimmed in module '+qn(this.id)+".",code:"SHIMMED_EXPORT",exportName:t,exporter:qn(this.id)}),this.exports[t]={localName:"_missingExportShim"},this.graph.exportShimVariable},t}(),Zr=function(){function t(t,e){this.isOriginal=!0,this.filename=t,this.content=e}return t.prototype.traceSegment=function(t,e,n){return{line:t,column:e,name:n,source:this}},t}(),ti=function(){function t(t,e){this.sources=e,this.names=t.names,this.mappings=t.mappings}return t.prototype.traceMappings=function(){for(var t=[],e=[],n=[],r=[],i=0,s=this.mappings;i<s.length;i++){for(var o=[],a=0,h=s[i];a<h.length;a++){var u=h[a],c=this.sources[u[1]];if(c){var p=c.traceSegment(u[2],u[3],this.names[u[4]]);if(p){var l=t.lastIndexOf(p.source.filename);-1===l?(l=t.length,t.push(p.source.filename),e[l]=p.source.content):null==e[l]?e[l]=p.source.content:null!=p.source.content&&e[l]!==p.source.content&&xe({message:"Multiple conflicting contents for sourcemap source "+p.source.filename});var f=[u[0],l,p.line,p.column];if(p.name){var d=n.indexOf(p.name);-1===d&&(d=n.length,n.push(p.name)),f[4]=d}o.push(f)}}}r.push(o)}return{sources:t,sourcesContent:e,names:n,mappings:r}},t.prototype.traceSegment=function(t,e,n){var r=this.mappings[t];if(!r)return null;for(var i=0,s=r.length-1;i<=s;){var o=i+s>>1,a=r[o];if(a[0]===e){var h=this.sources[a[1]];return h?h.traceSegment(a[2],a[3],this.names[a[4]]||n):null}a[0]>e?s=o-1:i=o+1}return null},t}();function ei(t){var e=t.split("\n"),n=e.filter(function(t){return/^\t+/.test(t)}),r=e.filter(function(t){return/^ {2,}/.test(t)});if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";var i=r.reduce(function(t,e){var n=/^ +/.exec(e)[0].length;return Math.min(n,t)},1/0);return new Array(i+1).join(" ")}function ni(t,e,n){return Gn(t)||xe({code:"INVALID_PATTERN",message:'Invalid output pattern "'+t+'" for '+e+", cannot be an absolute or relative URL or path."}),t.replace(/\[(\w+)\]/g,function(t,r){var i=n(r);return void 0===i&&xe({code:"INVALID_PATTERN_REPLACEMENT",message:'"'+r+'" is not a valid substitution name in output option '+e+" pattern."}),Gn(i)||xe({code:"INVALID_PATTERN_REPLACEMENT",message:'Invalid replacement "'+i+'" for "'+r+'" in '+e+" pattern, must be a plain path name."}),i})}function ri(t,e){if(t in e==!1)return t;var n=oe(t);t=t.substr(0,t.length-n.length);for(var r,i=1;e[r=t+ ++i+n];);return r}var ii=function(){function t(t,e){this.hasDynamicImport=!1,this.indentString=void 0,this.exportMode="named",this.usedModules=void 0,this.id=void 0,this.linked=!1,this.imports=new Map,this.exports=new Map,this.exportNames=Object.create(null),this.dependencies=void 0,this.entryModule=void 0,this.isEntryModuleFacade=!1,this.isManualChunk=!1,this.renderedHash=void 0,this.renderedModuleSources=void 0,this.renderedSource=void 0,this.renderedSourceLength=void 0,this.needsExportsShim=!1,this.renderedDeclarations=void 0,this.graph=t,this.orderedModules=e,this.isEmpty=!0;for(var n=0,r=e;n<r.length;n++){var i=r[n];this.isEmpty&&i.isIncluded()&&(this.isEmpty=!1),i.chunkAlias&&(this.isManualChunk=!0),i.chunk=this,i.isEntryPoint&&!this.entryModule&&(this.entryModule=i,this.isEntryModuleFacade=!0)}this.entryModule?this.name=Qt(ie(this.entryModule.chunkAlias||this.orderedModules[0].chunkAlias||this.entryModule.id)):this.name="__chunk_"+ ++t.curChunkIndex}return t.prototype.getImportIds=function(){return this.dependencies.map(function(t){return t.id})},t.prototype.getExportNames=function(){return Object.keys(this.exportNames)},t.prototype.inlineChunkDependencies=function(t,e){for(var n=0,r=t.dependencies;n<r.length;n++){var i=r[n];if(i instanceof ue)-1===this.dependencies.indexOf(i)&&this.dependencies.push(i);else{if(i===this||-1!==this.dependencies.indexOf(i))continue;i.isEmpty||this.dependencies.push(i),e&&this.inlineChunkDependencies(i,!0)}}},t.prototype.linkFacade=function(t){this.dependencies=[t.chunk],this.entryModule=t,this.isEntryModuleFacade=!0;for(var e=0,n=t.getAllExports();e<n.length;e++){var r=n[e],i=t.traceExport(r);this.exports.set(i,t),this.exportNames[r]=i}},t.prototype.link=function(){this.dependencies=[];for(var t=0,e=this.orderedModules;t<e.length;t++){var n=e[t];this.linkModule(n)}this.linked=!0},t.prototype.linkModule=function(t){for(var e=0,n=t.dependencies;e<n.length;e++){var r=n[e];if(r.chunk!==this){var i=void 0;if(r instanceof Qr)i=r.chunk;else{if(!r.used&&this.graph.isPureExternalModule(r.id))continue;i=r}-1===this.dependencies.indexOf(i)&&this.dependencies.push(i)}}for(var s=0,o=Object.keys(t.imports);s<o.length;s++){var a=o[s],h=t.imports[a];this.traceImport(h.name,h.module)}for(var u=0,c=t.dynamicImportResolutions;u<c.length;u++){var p=c[u].resolution;this.hasDynamicImport=!0,p instanceof Qr&&p.chunk===this&&p.getOrCreateNamespace().include()}},t.prototype.populateEntryExports=function(t){for(var e=Array.from(this.entryModule.getAllExports().entries()),n=[],r=0,i=e;r<i.length;r++){var s=i[r],o=s[0],a=s[1];if((!(g=this.traceExport(a,this.entryModule)).variable||g.variable.included||g.variable.isExternal)&&(n[o]=g,g.variable)){g.module.chunk&&g.module.chunk.exports.set(g.variable,g.module);var h=this.exportNames[a];h&&h!==g.variable&&(this.isEntryModuleFacade=!1)}}for(var u=function(t){if(n.every(function(e){return e.variable!==t}))return c.isEntryModuleFacade=!1,{value:void 0}},c=this,p=0,l=Array.from(this.exports.keys());p<l.length;p++){var f=u(l[p]);if("object"==typeof f)return f.value}if(t||this.isEntryModuleFacade)for(var d=0,m=e;d<m.length;d++){var g,y=m[d];o=y[0],a=y[1];if(g=n[o]){if(g.variable){if(!g.variable.included&&!g.variable.isExternal)continue;this.exports.set(g.variable,g.module)}this.exportNames[a]=g.variable}}},t.prototype.traceImport=function(t,e){var n=this.traceExport(t,e);if(n){if(n.variable.isNamespace)for(var r=n.variable.originals||n.variable.module.declarations,i=0,s=Object.keys(r);i<s.length;i++){var o=s[i],a=r[o];if(a.included)if(n.variable.module instanceof Qr)this.traceImport(o,n.variable.module);else n.variable.module.traceExport(o).included&&this.imports.set(a,n.variable.module)}return n.module.chunk!==this&&n.variable.included?(this.imports.set(n.variable,n.module),n.module instanceof Qr&&n.module.chunk.exports.set(n.variable,n.module),n):n}},t.prototype.traceExport=function(t,e){if("*"===t||e instanceof ue)return{variable:e.traceExport(t),module:e};if(e.chunk!==this)return e.isEntryPoint&&!e.chunk.isEmpty?{variable:e.traceExport(t),module:e}:e.chunk.traceExport(t,e);var n=e.exports[t];if(n){var r=e.imports[n.localName];return r?this.traceImport(r.name,r.module):{variable:e.traceExport(t),module:e}}var i=e.reexports[t];if(i)return this.traceExport(i.localName,i.module);if("default"!==t){if("*"===t[0])return{variable:void 0,module:this.graph.moduleById.get(t.substr(1))};for(var s=0;s<e.exportAllModules.length;s++){var o=e.exportAllModules[s];if(o.traceExport(t,!0))return this.traceExport(t,o)}}},t.prototype.getVariableExportName=function(t){for(var e=0,n=Object.keys(this.exportNames);e<n.length;e++){var r=n[e];if(this.exportNames[r]===t)return r}},t.prototype.generateInternalExports=function(t){if(!this.isEntryModuleFacade){var e,n="system"===t.format||"es"===t.format||t.compact,r=0;this.exportNames=Object.create(null);var i=Array.from(this.exports.keys());if(n)for(var s=0,o=i;s<o.length;s++){var a=o[s];49===(e=De(++r)).charCodeAt(0)&&(e=De(r+=9*Math.pow(64,e.length-1))),this.exportNames[e]=a}else for(var h=0,u=i;h<u.length;h++){for(r=0,e=(a=u[h]).name;this.exportNames[e];)e=a.name+"$"+ ++r;this.exportNames[e]=a}}},t.prototype.prepareDynamicImports=function(){for(var t=0,e=this.orderedModules;t<e.length;t++)for(var n=e[t],r=0;r<n.dynamicImportResolutions.length;r++){var i=n.dynamicImports[r],s=n.dynamicImportResolutions[r].resolution;if(s)if(s instanceof Qr)if(s.chunk===this){var o=s.getOrCreateNamespace();i.setResolution(!1,o.getName())}else i.setResolution(!1);else s instanceof ue?i.setResolution(!0):i.setResolution(!1)}},t.prototype.finaliseDynamicImports=function(){for(var t=0;t<this.orderedModules.length;t++)for(var e=this.orderedModules[t],n=this.renderedModuleSources[t],r=0;r<e.dynamicImportResolutions.length;r++){var i=e.dynamicImports[r],s=e.dynamicImportResolutions[r].resolution;if(s)if(s instanceof Qr){if(s.chunk!==this){var o=re(ae(se(this.id),s.chunk.id));o.startsWith("../")||(o="./"+o),i.renderFinalResolution(n,'"'+o+'"')}}else s instanceof ue?i.renderFinalResolution(n,'"'+s.id+'"'):i.renderFinalResolution(n,s)}},t.prototype.finaliseImportMetas=function(t){for(var e=!1,n=0;n<this.orderedModules.length;n++)for(var r=this.orderedModules[n],i=this.renderedModuleSources[n],s=0,o=r.importMetas;s<o.length;s++){o[s].renderFinalMechanism(i,this.id,t.format,t.compact)&&(e=!0)}return e},t.prototype.setIdentifierRenderResolutions=function(t){var e=this;this.needsExportsShim=!1;var n=Object.create(null),r="es"===t.format||"system"===t.format;function i(t){for(var e=t;n[e];)e=t+"$"+De(n[t]++,!0);return n[e]=1,e}Object.keys(this.graph.scope.variables).forEach(function(t){return n[t]=1}),"system"===t.format&&(n._setter=n._starExcludes=n._$p=1);var s=new Set;r||this.dependencies.forEach(function(t){var e=i(t.name);s.add(e),t.name=e});for(var o=0,a=Object.keys(this.exportNames);o<a.length;o++){var h=a[o],u=this.exportNames[h];u===this.graph.exportShimVariable&&(this.needsExportsShim=!0),u&&u.exportName!==h&&(u.exportName=h)}Array.from(this.imports.entries()).forEach(function(e){var n,o=e[0],a=e[1];if(a instanceof ue)n="*"===o.name?a.name:"default"===o.name?!1!==t.interop&&(a.exportsNamespace||!r&&a.exportsNames)?a.name+"__default":a.name:r?o.name:a.name+"."+o.name,r&&(n=i(n),s.add(n));else if(r)n=i(o.name),s.add(n);else{var h=a.chunk;n="default"===h.exportMode?h.name:h.name+"."+a.chunk.getVariableExportName(o)}n&&o.setSafeName(n)}),this.orderedModules.forEach(function(t){e.deconflictExportsOfModule(t,i,r)}),this.graph.scope.deshadow(s,this.orderedModules.map(function(t){return t.scope}))},t.prototype.deconflictExportsOfModule=function(t,e,n){Object.keys(t.scope.variables).forEach(function(r){var i=t.scope.variables[r];if(zt(i)&&i.referencesOriginal())i.setSafeName(null);else if(!zt(i)||!i.hasId){var s=void 0;if(n||!i.isReassigned||i.isId)s=e(i.name);else{var o=i.exportName;s=o?"exports."+o:e(i.name)}i.setSafeName(s)}});var r=t.getOrCreateNamespace();r.needsNamespaceBlock&&r.setSafeName(e(r.name))},t.prototype.getChunkDependencyDeclarations=function(t,e){for(var n=this,r=new Map,i=0,s=Object.keys(this.exportNames);i<s.length;i++){var o=s[i],a=void 0,h=void 0;if("*"===o[0])a=this.graph.moduleById.get(o.substr(1)),h=o="*";else{var u=this.exportNames[o],c=this.exports.get(u);if(c.chunk===this)continue;c instanceof Qr?(a=c.chunk,h=c.chunk.getVariableExportName(u)):(a=c,h=u.name)}var p=r.get(a);p||r.set(a,p=[]),p.push({imported:h,reexported:o})}var l=[];return this.dependencies.forEach(function(i){var s,o=Array.from(n.imports.entries()).filter(function(t){var e=t[1];return e instanceof Qr?e.chunk===i:e===i});if(o.length){s=[];for(var a=0,h=o;a<h.length;a++){var u=h[a],c=u[0],p=u[1],f=c.safeName||c.name,d=void 0;d=p instanceof ue?c.name:p.chunk.getVariableExportName(c),s.push({local:f,imported:d})}}var m,g,y,v,x=r.get(i),_=!0;i instanceof ue?(m=i.exportsNames||i.exportsNamespace,g="default"in i.declarations):(m=!0,g=!1,_="default"!==i.exportMode),i instanceof ue&&(y=i.renderPath||i.setRenderPath(t,e),"umd"!==t.format&&"iife"!==t.format||(v=function(t,e,n,r){var i;return"function"==typeof e?i=e(t.id):e&&(i=e[t.id]),i||(r?(n.warn({code:"MISSING_GLOBAL_NAME",source:t.id,guess:t.name,message:"No name was provided for external module '"+t.id+"' in output.globals – guessing '"+t.name+"'"}),t.name):void 0)}(i,t.globals,n.graph,m||g))),l.push({id:y,namedExportsMode:_,globalName:v,name:i.name,isChunk:!i.isExternal,exportsNames:m,exportsDefault:g,reexports:x,imports:s})}),l},t.prototype.getChunkExportDeclarations=function(){for(var t=[],e=function(e){if("*"===e[0])return"continue";var r=n.exportNames[e];if(n.exports.get(r).chunk!==n)return"continue";var i=!1,s=!1;r instanceof Vt?(r.init===ct&&(s=!0),r.declarations.forEach(function(t){t.type===J?t.declaration.type===Q&&(i=!0):t.parent.type===Q&&(i=!0)})):r instanceof Gt&&(i=!0);var o=r.getName();t.push({local:o,exported:"*"===e?o:e,hoisted:i,uninitialized:s})},n=this,r=0,i=Object.keys(this.exportNames);r<i.length;r++){e(i[r])}return t},t.prototype.getRenderedHash=function(){if(this.renderedHash)return this.renderedHash;var t=R();return t.update(this.renderedSource.toString()),this.renderedHash=t.digest("hex")},t.prototype.postVisitChunkDependencies=function(e){var n=new Set;return function r(i){if(!n.has(i)){if(n.add(i),i instanceof t)for(var s=0,o=i.dependencies;s<o.length;s++)if(r(o[s]))return!0;return!0===e(i)}}(this)},t.prototype.computeFullHash=function(t,e){var n=R();return n.update(this.getRenderedHash()),n.update(t.hash),n.update(e.format),n.update(this.dependencies.length),this.postVisitChunkDependencies(function(t){t instanceof ue?n.update(":"+t.renderPath):n.update(t.getRenderedHash())}),n.digest("hex").substr(0,8)},t.prototype.preRender=function(e,n){Gr("render modules",3);var r=new X({separator:e.compact?"":"\n\n"});this.usedModules=[],this.indentString=e.compact?"":function(t,e){if(!0!==e.indent)return e.indent||"";for(var n=0;n<t.length;n++){var r=ei(t[n].originalCode);if(null!==r)return r}return"\t"}(this.orderedModules,e);var i=e.compact?"":"\n",s=e.compact?"":" ",o={compact:e.compact,freeze:!1!==e.freeze,esModule:!1!==e.esModule,namespaceToStringTag:!0===e.namespaceToStringTag,indent:this.indentString,format:e.format};if(this.isEntryModuleFacade)for(var a=0,h=this.dependencies;a<h.length;a++){(f=h[a])instanceof t&&this.inlineChunkDependencies(f,!0)}else for(var u=0,c=Array.from(this.imports.values());u<c.length;u++){var p=(m=c[u])instanceof Qr?m.chunk:m;-1===this.dependencies.indexOf(p)&&this.dependencies.push(p)}for(var l=0;l<this.dependencies.length;l++){var f;(f=this.dependencies[l])instanceof t&&f.isEmpty&&(this.dependencies.splice(l--,1),this.inlineChunkDependencies(f,!1))}this.setIdentifierRenderResolutions(e),this.prepareDynamicImports();var d="";this.renderedModules=Object.create(null),this.renderedModuleSources=[];for(l=0;l<this.orderedModules.length;l++){var m,g=(m=this.orderedModules[l]).render(o);g.trim(),e.compact&&-1!==g.lastLine().indexOf("//")&&g.append("\n"),this.renderedModuleSources.push(g);var y=m.getRenderedExports(),v=y.renderedExports,x=y.removedExports;this.renderedModules[m.id]={renderedExports:v,removedExports:x,renderedLength:g.length(),originalLength:m.originalCode.length};var _=m.getOrCreateNamespace();if((_.needsNamespaceBlock||!g.isEmpty())&&(r.addSource(g),this.usedModules.push(m),_.needsNamespaceBlock)){var E=_.renderBlock(o);_.renderFirst()?d+=i+E:r.addSource(new K(E))}}d&&r.prepend(d+i+i),this.needsExportsShim&&r.prepend(""+i+this.graph.varOrConst+" _missingExportShim"+s+"="+s+"void 0;"+i+i),e.compact?this.renderedSource=r:this.renderedSource=r.trim(),this.renderedSourceLength=void 0,this.renderedHash=void 0,0===this.getExportNames().length&&0===this.getImportIds().length&&this.isEmpty&&this.graph.warn({code:"EMPTY_BUNDLE",message:"Generated an empty bundle"}),this.renderedDeclarations={dependencies:this.getChunkDependencyDeclarations(e,n),exports:"none"===this.exportMode?[]:this.getChunkExportDeclarations()},Hr("render modules",3)},t.prototype.getRenderedSourceLength=function(){return void 0!==this.renderedSourceLength?this.renderedSourceLength:this.renderedSourceLength=this.renderedSource.length()},t.prototype.merge=function(t,e,n,r){var i=this;if(this.isEntryModuleFacade||t.isEntryModuleFacade)throw new Error("Internal error: Code splitting chunk merges not supported for facades");for(var s=0,o=t.orderedModules;s<o.length;s++){(p=o[s]).chunk=this,this.orderedModules.push(p)}for(var a=0,h=Array.from(t.imports.entries());a<h.length;a++){var u=h[a],c=u[0],p=u[1];this.imports.has(c)||p.chunk===this||this.imports.set(c,p)}for(var l=0,f=Array.from(t.exports.entries());l<f.length;l++){var d=f[l];c=d[0],p=d[1];this.exports.has(c)||this.exports.set(c,p)}var m=this.exportNames;this.generateInternalExports(n);for(var g,y,v=function(t,e){if(t.imports)for(var n=0,r=t.imports;n<r.length;n++){var s=r[n];s.imported=i.getVariableExportName(e[s.imported])}if(t.reexports)for(var o=0,a=t.reexports;o<a.length;o++){var h=a[o];h.imported=i.getVariableExportName(e[h.imported])}},x=0,_=e;x<_.length;x++)for(var E=_[x],b=void 0,A=0;A<E.dependencies.length;A++){var S=E.dependencies[A];if(S!==t&&S!==this||!b)S===t?(E.dependencies[A]=this,v(b=E.renderedDeclarations.dependencies[A],t.exportNames)):S===this&&v(b=E.renderedDeclarations.dependencies[A],m);else{var w=E.renderedDeclarations.dependencies[A];v(w,S===t?t.exportNames:m),g=b,(y=w).imports&&(g.imports?g.imports=g.imports.concat(y.imports):g.imports=y.imports),y.reexports&&(g.reexports?g.reexports=g.reexports.concat(y.reexports):g.reexports=y.reexports),!g.exportsNames&&y.exportsNames&&(g.exportsNames=!0),!g.exportsDefault&&y.exportsDefault&&(g.exportsDefault=!0),g.name=i.name,E.renderedDeclarations.dependencies.splice(A,1),E.dependencies.splice(A--,1)}}this.preRender(n,r)},t.prototype.generateIdPreserveModules=function(t){return this.id=re(ae(t,this.entryModule.id))},t.prototype.generateId=function(t,e,n,r,i){var s=this,o=ri(ni(t,e,function(t){switch(t){case"format":return"es"===r.format?"esm":r.format;case"hash":return s.computeFullHash(n,r);case"name":if(s.entryModule&&s.entryModule.chunkAlias)return s.entryModule.chunkAlias;for(var e=0,i=s.orderedModules;e<i.length;e++){var o=i[e];if(o.chunkAlias)return o.chunkAlias}return"chunk"}}),i);this.id=o},t.prototype.render=function(e,n,r){var i=this;if(Gr("render format",3),!this.renderedSource)throw new Error("Internal error: Chunk render called before preRender");var s=ke[e.format];s||xe({code:"INVALID_OPTION",message:"Invalid format: "+e.format+" - valid options are "+Object.keys(ke).join(", ")});for(var o=0;o<this.dependencies.length;o++){var a=this.dependencies[o];if(!(a instanceof ue)||a.renormalizeRenderPath){var h=this.renderedDeclarations.dependencies[o],u=a instanceof ue?h.id:a.id,c=this.id?re(ae(se(this.id),u)):u;c.startsWith("../")||(c="./"+c),a instanceof t&&(h.namedExportsMode="default"!==a.exportMode),h.id=c}}this.finaliseDynamicImports();var p=this.finaliseImportMetas(e),l=0!==this.renderedDeclarations.exports.length||this.renderedDeclarations.dependencies.some(function(t){return t.reexports&&0!==t.reexports.length}),f=this.orderedModules.some(function(t){return t.usesTopLevelAwait});f&&"es"!==e.format&&"system"!==e.format&&xe({code:"INVALID_TLA_FORMAT",message:"Module format "+e.format+' does not support top-level await. Use the "es" or "system" output formats rather.'});var d=s(this.renderedSource,{indentString:this.indentString,namedExportsMode:"default"!==this.exportMode,hasExports:l,intro:n.intro,outro:n.outro,dynamicImport:this.hasDynamicImport,needsAmdModule:p,dependencies:this.renderedDeclarations.dependencies,exports:this.renderedDeclarations.exports,graph:this.graph,isEntryModuleFacade:this.isEntryModuleFacade,usesTopLevelAwait:f},e);n.banner&&d.prepend(n.banner),n.footer&&d.append(n.footer);var m=d.toString();Hr("render format",3);var g=null,y=[];return function(t){var e=t.graph,n=t.chunk,r=t.renderChunk,i=t.code,s=t.sourcemapChain,o=t.options,a=function(t,e,n){if(null==e)return t;"string"==typeof e&&(e={code:e,map:void 0});var r="string"==typeof e.map?JSON.parse(e.map):e.map;return r&&"string"==typeof r.mappings&&(r.mappings=T(r.mappings)),null!==r&&s.push(r||{missing:!0,plugin:n.name}),e.code},h=!1,u=!0;return e.pluginDriver.hookReduceArg0("renderChunk",[i,r,o],a).then(function(t){return u=!1,e.pluginDriver.hookReduceArg0("transformChunk",[t,o,n],a)}).then(function(t){return h=!0,e.pluginDriver.hookReduceArg0("transformBundle",[t,o,n],a)}).catch(function(t){if(u)throw t;xe(t,{code:h?"BAD_BUNDLE_TRANSFORMER":"BAD_CHUNK_TRANSFORMER",message:"Error transforming "+(h?"bundle":"chunk")+(t.plugin?" with '"+t.plugin+"' plugin":"")+": "+t.message,plugin:t.plugin})})}({graph:this.graph,chunk:this,renderChunk:r,code:m,sourcemapChain:y,options:e}).then(function(t){if(e.sourcemap){Gr("sourcemap",3);var n=void 0;if(n=e.file?he(e.sourcemapFile||e.file):e.dir?he(e.dir,i.id):he(i.id),i.graph.pluginDriver.hasLoadersOrTransforms){var r=d.generateDecodedMap({});g=function(t,e,n,r,i){var s=r.filter(function(t){return!t.excludeFromSourcemap}).map(function(e){var n,r=e.sourcemapChain,i=e.originalSourcemap;if(i){var s=i.sources,o=i.sourcesContent||[];if(null==s||s.length<=1&&null==s[0])n=new Zr(e.id,o[0]),r=[i].concat(r);else{var a=se(e.id)||".",h=i.sourceRoot||".",u=s.map(function(t,e){return new Zr(he(a,h,t),o[e])});n=new ti(i,u)}}else n=new Zr(e.id,e.originalCode);return r.forEach(function(e){e.missing&&(t.graph.warn({code:"SOURCEMAP_BROKEN",plugin:e.plugin,message:"Sourcemap is likely to be incorrect: a plugin"+(e.plugin?" ('"+e.plugin+"')":"")+" was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help",url:"https://github.com/rollup/rollup/wiki/Troubleshooting#sourcemap-is-likely-to-be-incorrect"}),e={names:[],mappings:""}),n=new ti(e,[n])}),n}),o=new ti(n,s);i.forEach(function(t){o=new ti(t,[o])});var a=o.traceMappings(),h=a.sources,u=a.sourcesContent,c=a.names,p=a.mappings;if(e){var l=se(e);h=h.map(function(t){return ae(l,t)}),e=ie(e)}return new B({file:e,sources:h,sourcesContent:u,names:c,mappings:p})}(i,n,r,i.usedModules,y)}else g=d.generateMap({file:n,includeContent:!0});g.sources=g.sources.map(function(t){return re(e.sourcemapPathTransform?e.sourcemapPathTransform(t):t)}),Hr("sourcemap",3)}return!0!==e.compact&&"\n"!==t[t.length-1]&&(t+="\n"),{code:t,map:g}})},t}();var si={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},oi="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",ai={5:oi,6:oi+" const class extends export import super"},hi=/^in(stanceof)?$/,ui="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ci="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",pi=new RegExp("["+ui+"]"),li=new RegExp("["+ui+ci+"]");ui=ci=null;var fi=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,190,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,26,230,43,117,63,32,0,257,0,11,39,8,0,22,0,12,39,3,3,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,68,12,0,67,12,65,1,31,6129,15,754,9486,286,82,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],di=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,280,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function mi(t,e){for(var n=65536,r=0;r<e.length;r+=2){if((n+=e[r])>t)return!1;if((n+=e[r+1])>=t)return!0}}function gi(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&pi.test(String.fromCharCode(t)):!1!==e&&mi(t,fi)))}function yi(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&li.test(String.fromCharCode(t)):!1!==e&&(mi(t,fi)||mi(t,di)))))}var vi=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function xi(t,e){return new vi(t,{beforeExpr:!0,binop:e})}var _i={beforeExpr:!0},Ei={startsExpr:!0},bi={};function Ai(t,e){return void 0===e&&(e={}),e.keyword=t,bi[t]=new vi(t,e)}var Si={num:new vi("num",Ei),regexp:new vi("regexp",Ei),string:new vi("string",Ei),name:new vi("name",Ei),eof:new vi("eof"),bracketL:new vi("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new vi("]"),braceL:new vi("{",{beforeExpr:!0,startsExpr:!0}),braceR:new vi("}"),parenL:new vi("(",{beforeExpr:!0,startsExpr:!0}),parenR:new vi(")"),comma:new vi(",",_i),semi:new vi(";",_i),colon:new vi(":",_i),dot:new vi("."),question:new vi("?",_i),arrow:new vi("=>",_i),template:new vi("template"),invalidTemplate:new vi("invalidTemplate"),ellipsis:new vi("...",_i),backQuote:new vi("`",Ei),dollarBraceL:new vi("${",{beforeExpr:!0,startsExpr:!0}),eq:new vi("=",{beforeExpr:!0,isAssign:!0}),assign:new vi("_=",{beforeExpr:!0,isAssign:!0}),incDec:new vi("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new vi("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:xi("||",1),logicalAND:xi("&&",2),bitwiseOR:xi("|",3),bitwiseXOR:xi("^",4),bitwiseAND:xi("&",5),equality:xi("==/!=/===/!==",6),relational:xi("</>/<=/>=",7),bitShift:xi("<</>>/>>>",8),plusMin:new vi("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:xi("%",10),star:xi("*",10),slash:xi("/",10),starstar:new vi("**",{beforeExpr:!0}),_break:Ai("break"),_case:Ai("case",_i),_catch:Ai("catch"),_continue:Ai("continue"),_debugger:Ai("debugger"),_default:Ai("default",_i),_do:Ai("do",{isLoop:!0,beforeExpr:!0}),_else:Ai("else",_i),_finally:Ai("finally"),_for:Ai("for",{isLoop:!0}),_function:Ai("function",Ei),_if:Ai("if"),_return:Ai("return",_i),_switch:Ai("switch"),_throw:Ai("throw",_i),_try:Ai("try"),_var:Ai("var"),_const:Ai("const"),_while:Ai("while",{isLoop:!0}),_with:Ai("with"),_new:Ai("new",{beforeExpr:!0,startsExpr:!0}),_this:Ai("this",Ei),_super:Ai("super",Ei),_class:Ai("class",Ei),_extends:Ai("extends",_i),_export:Ai("export"),_import:Ai("import"),_null:Ai("null",Ei),_true:Ai("true",Ei),_false:Ai("false",Ei),_in:Ai("in",{beforeExpr:!0,binop:7}),_instanceof:Ai("instanceof",{beforeExpr:!0,binop:7}),_typeof:Ai("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Ai("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Ai("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},wi=/\r\n?|\n|\u2028|\u2029/,Pi=new RegExp(wi.source,"g");function Ii(t,e){return 10===t||13===t||!e&&(8232===t||8233===t)}var ki=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ci=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ni=Object.prototype,Ri=Ni.hasOwnProperty,Oi=Ni.toString;function Mi(t,e){return Ri.call(t,e)}var Li=Array.isArray||function(t){return"[object Array]"===Oi.call(t)},Ti=function(t,e){this.line=t,this.column=e};Ti.prototype.offset=function(t){return new Ti(this.line,this.column+t)};var Di=function(t,e,n){this.start=e,this.end=n,null!==t.sourceFile&&(this.source=t.sourceFile)};function Vi(t,e){for(var n=1,r=0;;){Pi.lastIndex=r;var i=Pi.exec(t);if(!(i&&i.index<e))return new Ti(n,e-r);++n,r=i.index+i[0].length}}var zi={ecmaVersion:7,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1,plugins:{}};function Bi(t){var e={};for(var n in zi)e[n]=t&&Mi(t,n)?t[n]:zi[n];if(e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),Li(e.onToken)){var r=e.onToken;e.onToken=function(t){return r.push(t)}}return Li(e.onComment)&&(e.onComment=function(t,e){return function(n,r,i,s,o,a){var h={type:n?"Block":"Line",value:r,start:i,end:s};t.locations&&(h.loc=new Di(this,o,a)),t.ranges&&(h.range=[i,s]),e.push(h)}}(e,e.onComment)),e}var Wi={};function ji(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var Ui=function(t,e,n){this.options=t=Bi(t),this.sourceFile=t.sourceFile,this.keywords=ji(ai[t.ecmaVersion>=6?6:5]);var r="";if(!t.allowReserved){for(var i=t.ecmaVersion;!(r=si[i]);i--);"module"===t.sourceType&&(r+=" await")}this.reservedWords=ji(r);var s=(r?r+" ":"")+si.strict;this.reservedWordsStrict=ji(s),this.reservedWordsStrictBind=ji(s+" "+si.strictBind),this.input=String(e),this.containsEsc=!1,this.loadPlugins(t.plugins),n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(wi).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Si.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.inFunction=this.inGenerator=this.inAsync=!1,this.yieldPos=this.awaitPos=0,this.labels=[],0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterFunctionScope(),this.regexpState=null};Ui.prototype.isKeyword=function(t){return this.keywords.test(t)},Ui.prototype.isReservedWord=function(t){return this.reservedWords.test(t)},Ui.prototype.extend=function(t,e){this[t]=e(this[t])},Ui.prototype.loadPlugins=function(t){for(var e in t){var n=Wi[e];if(!n)throw new Error("Plugin '"+e+"' not found");n(this,t[e])}},Ui.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};var Fi=Ui.prototype,qi=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)"|;)/;function Gi(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}Fi.strictDirective=function(t){for(;;){Ci.lastIndex=t,t+=Ci.exec(this.input)[0].length;var e=qi.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2]))return!0;t+=e[0].length}},Fi.eat=function(t){return this.type===t&&(this.next(),!0)},Fi.isContextual=function(t){return this.type===Si.name&&this.value===t&&!this.containsEsc},Fi.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},Fi.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},Fi.canInsertSemicolon=function(){return this.type===Si.eof||this.type===Si.braceR||wi.test(this.input.slice(this.lastTokEnd,this.start))},Fi.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Fi.semicolon=function(){this.eat(Si.semi)||this.insertSemicolon()||this.unexpected()},Fi.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},Fi.expect=function(t){this.eat(t)||this.unexpected()},Fi.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")},Fi.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var n=e?t.parenthesizedAssign:t.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},Fi.checkExpressionErrors=function(t,e){if(!t)return!1;var n=t.shorthandAssign,r=t.doubleProto;if(!e)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},Fi.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Fi.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var Hi=Ui.prototype;Hi.parseTopLevel=function(t){var e={};for(t.body||(t.body=[]);this.type!==Si.eof;){var n=this.parseStatement(!0,!0,e);t.body.push(n)}return this.adaptDirectivePrologue(t.body),this.next(),this.options.ecmaVersion>=6&&(t.sourceType=this.options.sourceType),this.finishNode(t,"Program")};var Ki={kind:"loop"},Yi={kind:"switch"};Hi.isLet=function(){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Ci.lastIndex=this.pos;var t=Ci.exec(this.input),e=this.pos+t[0].length,n=this.input.charCodeAt(e);if(91===n||123===n)return!0;if(gi(n,!0)){for(var r=e+1;yi(this.input.charCodeAt(r),!0);)++r;var i=this.input.slice(e,r);if(!hi.test(i))return!0}return!1},Hi.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Ci.lastIndex=this.pos;var t=Ci.exec(this.input),e=this.pos+t[0].length;return!(wi.test(this.input.slice(this.pos,e))||"function"!==this.input.slice(e,e+8)||e+8!==this.input.length&&yi(this.input.charAt(e+8)))},Hi.parseStatement=function(t,e,n){var r,i=this.type,s=this.startNode();switch(this.isLet()&&(i=Si._var,r="let"),i){case Si._break:case Si._continue:return this.parseBreakContinueStatement(s,i.keyword);case Si._debugger:return this.parseDebuggerStatement(s);case Si._do:return this.parseDoStatement(s);case Si._for:return this.parseForStatement(s);case Si._function:return!t&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1);case Si._class:return t||this.unexpected(),this.parseClass(s,!0);case Si._if:return this.parseIfStatement(s);case Si._return:return this.parseReturnStatement(s);case Si._switch:return this.parseSwitchStatement(s);case Si._throw:return this.parseThrowStatement(s);case Si._try:return this.parseTryStatement(s);case Si._const:case Si._var:return r=r||this.value,t||"var"===r||this.unexpected(),this.parseVarStatement(s,r);case Si._while:return this.parseWhileStatement(s);case Si._with:return this.parseWithStatement(s);case Si.braceL:return this.parseBlock();case Si.semi:return this.parseEmptyStatement(s);case Si._export:case Si._import:return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===Si._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return t||this.unexpected(),this.next(),this.parseFunctionStatement(s,!0);var o=this.value,a=this.parseExpression();return i===Si.name&&"Identifier"===a.type&&this.eat(Si.colon)?this.parseLabeledStatement(s,o,a):this.parseExpressionStatement(s,a)}},Hi.parseBreakContinueStatement=function(t,e){var n="break"===e;this.next(),this.eat(Si.semi)||this.insertSemicolon()?t.label=null:this.type!==Si.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==t.label||i.name===t.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(t.label&&n)break}}return r===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,n?"BreakStatement":"ContinueStatement")},Hi.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},Hi.parseDoStatement=function(t){return this.next(),this.labels.push(Ki),t.body=this.parseStatement(!1),this.labels.pop(),this.expect(Si._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(Si.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},Hi.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ki),this.enterLexicalScope(),this.expect(Si.parenL),this.type===Si.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var n=this.isLet();if(this.type===Si._var||this.type===Si._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),!(this.type===Si._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==r.declarations.length||"var"!==i&&r.declarations[0].init?(e>-1&&this.unexpected(e),this.parseFor(t,r)):(this.options.ecmaVersion>=9&&(this.type===Si._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,r))}var s=new Gi,o=this.parseExpression(!0,s);return this.type===Si._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===Si._in?e>-1&&this.unexpected(e):t.await=e>-1),this.toAssignable(o,!1,s),this.checkLVal(o),this.parseForIn(t,o)):(this.checkExpressionErrors(s,!0),e>-1&&this.unexpected(e),this.parseFor(t,o))},Hi.parseFunctionStatement=function(t,e){return this.next(),this.parseFunction(t,!0,!1,e)},Hi.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement(!this.strict&&this.type===Si._function),t.alternate=this.eat(Si._else)?this.parseStatement(!this.strict&&this.type===Si._function):null,this.finishNode(t,"IfStatement")},Hi.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Si.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},Hi.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(Si.braceL),this.labels.push(Yi),this.enterLexicalScope();for(var n=!1;this.type!==Si.braceR;)if(this.type===Si._case||this.type===Si._default){var r=this.type===Si._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),r?e.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,e.test=null),this.expect(Si.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(!0));return this.exitLexicalScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},Hi.parseThrowStatement=function(t){return this.next(),wi.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Xi=[];Hi.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===Si._catch){var e=this.startNode();this.next(),this.eat(Si.parenL)?(e.param=this.parseBindingAtom(),this.enterLexicalScope(),this.checkLVal(e.param,"let"),this.expect(Si.parenR)):(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterLexicalScope()),e.body=this.parseBlock(!1),this.exitLexicalScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(Si._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},Hi.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},Hi.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Ki),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"WhileStatement")},Hi.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement(!1),this.finishNode(t,"WithStatement")},Hi.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},Hi.parseLabeledStatement=function(t,e,n){for(var r=0,i=this.labels;r<i.length;r+=1){i[r].name===e&&this.raise(n.start,"Label '"+e+"' is already declared")}for(var s=this.type.isLoop?"loop":this.type===Si._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var a=this.labels[o];if(a.statementStart!==t.start)break;a.statementStart=this.start,a.kind=s}return this.labels.push({name:e,kind:s,statementStart:this.start}),t.body=this.parseStatement(!0),("ClassDeclaration"===t.body.type||"VariableDeclaration"===t.body.type&&"var"!==t.body.kind||"FunctionDeclaration"===t.body.type&&(this.strict||t.body.generator||t.body.async))&&this.raiseRecoverable(t.body.start,"Invalid labeled declaration"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")},Hi.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},Hi.parseBlock=function(t){void 0===t&&(t=!0);var e=this.startNode();for(e.body=[],this.expect(Si.braceL),t&&this.enterLexicalScope();!this.eat(Si.braceR);){var n=this.parseStatement(!0);e.body.push(n)}return t&&this.exitLexicalScope(),this.finishNode(e,"BlockStatement")},Hi.parseFor=function(t,e){return t.init=e,this.expect(Si.semi),t.test=this.type===Si.semi?null:this.parseExpression(),this.expect(Si.semi),t.update=this.type===Si.parenR?null:this.parseExpression(),this.expect(Si.parenR),this.exitLexicalScope(),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"ForStatement")},Hi.parseForIn=function(t,e){var n=this.type===Si._in?"ForInStatement":"ForOfStatement";return this.next(),"ForInStatement"===n&&("AssignmentPattern"===e.type||"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(this.strict||"Identifier"!==e.declarations[0].id.type))&&this.raise(e.start,"Invalid assignment in for-in loop head"),t.left=e,t.right="ForInStatement"===n?this.parseExpression():this.parseMaybeAssign(),this.expect(Si.parenR),this.exitLexicalScope(),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,n)},Hi.parseVar=function(t,e,n){for(t.declarations=[],t.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(Si.eq)?r.init=this.parseMaybeAssign(e):"const"!==n||this.type===Si._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||e&&(this.type===Si._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(Si.comma))break}return t},Hi.parseVarId=function(t,e){t.id=this.parseBindingAtom(e),this.checkLVal(t.id,e,!1)},Hi.parseFunction=function(t,e,n,r){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(t.generator=this.eat(Si.star)),this.options.ecmaVersion>=8&&(t.async=!!r),e&&(t.id="nullableID"===e&&this.type!==Si.name?null:this.parseIdent(),t.id&&this.checkLVal(t.id,this.inModule&&!this.inFunction?"let":"var"));var i=this.inGenerator,s=this.inAsync,o=this.yieldPos,a=this.awaitPos,h=this.inFunction;return this.inGenerator=t.generator,this.inAsync=t.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),e||(t.id=this.type===Si.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n),this.inGenerator=i,this.inAsync=s,this.yieldPos=o,this.awaitPos=a,this.inFunction=h,this.finishNode(t,e?"FunctionDeclaration":"FunctionExpression")},Hi.parseFunctionParams=function(t){this.expect(Si.parenL),t.params=this.parseBindingList(Si.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Hi.parseClass=function(t,e){this.next(),this.parseClassId(t,e),this.parseClassSuper(t);var n=this.startNode(),r=!1;for(n.body=[],this.expect(Si.braceL);!this.eat(Si.braceR);){var i=this.parseClassMember(n);i&&"MethodDefinition"===i.type&&"constructor"===i.kind&&(r&&this.raise(i.start,"Duplicate constructor in the same class"),r=!0)}return t.body=this.finishNode(n,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},Hi.parseClassMember=function(t){var e=this;if(this.eat(Si.semi))return null;var n=this.startNode(),r=function(t,r){void 0===r&&(r=!1);var i=e.start,s=e.startLoc;return!!e.eatContextual(t)&&(!(e.type===Si.parenL||r&&e.canInsertSemicolon())||(n.key&&e.unexpected(),n.computed=!1,n.key=e.startNodeAt(i,s),n.key.name=t,e.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var i=this.eat(Si.star),s=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(Si.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var o=n.key;return n.computed||n.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?n.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),i&&this.raise(o.start,"Constructor can't be a generator"),s&&this.raise(o.start,"Constructor can't be an async method"),n.kind="constructor"),this.parseClassMethod(t,n,i,s),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},Hi.parseClassMethod=function(t,e,n,r){e.value=this.parseMethod(n,r),t.body.push(this.finishNode(e,"MethodDefinition"))},Hi.parseClassId=function(t,e){t.id=this.type===Si.name?this.parseIdent():!0===e?this.unexpected():null},Hi.parseClassSuper=function(t){t.superClass=this.eat(Si._extends)?this.parseExprSubscripts():null},Hi.parseExport=function(t,e){if(this.next(),this.eat(Si.star))return this.expectContextual("from"),this.type!==Si.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(Si._default)){var n;if(this.checkExport(e,"default",this.lastTokStart),this.type===Si._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),t.declaration=this.parseFunction(r,"nullableID",!1,n)}else if(this.type===Si._class){var i=this.startNode();t.declaration=this.parseClass(i,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(!0),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==Si.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var s=0,o=t.specifiers;s<o.length;s+=1){var a=o[s];this.checkUnreserved(a.local)}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},Hi.checkExport=function(t,e,n){t&&(Mi(t,e)&&this.raiseRecoverable(n,"Duplicate export '"+e+"'"),t[e]=!0)},Hi.checkPatternExport=function(t,e){var n=e.type;if("Identifier"===n)this.checkExport(t,e.name,e.start);else if("ObjectPattern"===n)for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(t,s)}else if("ArrayPattern"===n)for(var o=0,a=e.elements;o<a.length;o+=1){var h=a[o];h&&this.checkPatternExport(t,h)}else"Property"===n?this.checkPatternExport(t,e.value):"AssignmentPattern"===n?this.checkPatternExport(t,e.left):"RestElement"===n?this.checkPatternExport(t,e.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(t,e.expression)},Hi.checkVariableExport=function(t,e){if(t)for(var n=0,r=e;n<r.length;n+=1){var i=r[n];this.checkPatternExport(t,i.id)}},Hi.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Hi.parseExportSpecifiers=function(t){var e=[],n=!0;for(this.expect(Si.braceL);!this.eat(Si.braceR);){if(n)n=!1;else if(this.expect(Si.comma),this.afterTrailingComma(Si.braceR))break;var r=this.startNode();r.local=this.parseIdent(!0),r.exported=this.eatContextual("as")?this.parseIdent(!0):r.local,this.checkExport(t,r.exported.name,r.exported.start),e.push(this.finishNode(r,"ExportSpecifier"))}return e},Hi.parseImport=function(t){return this.next(),this.type===Si.string?(t.specifiers=Xi,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===Si.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},Hi.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===Si.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,"let"),t.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(Si.comma))return t}if(this.type===Si.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLVal(r.local,"let"),t.push(this.finishNode(r,"ImportNamespaceSpecifier")),t}for(this.expect(Si.braceL);!this.eat(Si.braceR);){if(e)e=!1;else if(this.expect(Si.comma),this.afterTrailingComma(Si.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,"let"),t.push(this.finishNode(i,"ImportSpecifier"))}return t},Hi.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},Hi.isDirectiveCandidate=function(t){return"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var $i=Ui.prototype;$i.toAssignable=function(t,e,n){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Can not use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,e),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==t.kind&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),"AssignmentPattern"===t.argument.type&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(t.expression,e);break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return t},$i.toAssignableList=function(t,e){for(var n=t.length,r=0;r<n;r++){var i=t[r];i&&this.toAssignable(i,e)}if(n){var s=t[n-1];6===this.options.ecmaVersion&&e&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return t},$i.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},$i.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==Si.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},$i.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case Si.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(Si.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case Si.braceL:return this.parseObj(!0)}return this.parseIdent()},$i.parseBindingList=function(t,e,n){for(var r=[],i=!0;!this.eat(t);)if(i?i=!1:this.expect(Si.comma),e&&this.type===Si.comma)r.push(null);else{if(n&&this.afterTrailingComma(t))break;if(this.type===Si.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),r.push(s),this.type===Si.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},$i.parseBindingListItem=function(t){return t},$i.parseMaybeDefault=function(t,e,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(Si.eq))return n;var r=this.startNodeAt(t,e);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},$i.checkLVal=function(t,e,n){switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(e?"Binding ":"Assigning to ")+t.name+" in strict mode"),n&&(Mi(n,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),n[t.name]=!0),e&&"none"!==e&&(("var"===e&&!this.canDeclareVarName(t.name)||"var"!==e&&!this.canDeclareLexicalName(t.name))&&this.raiseRecoverable(t.start,"Identifier '"+t.name+"' has already been declared"),"var"===e?this.declareVarName(t.name):this.declareLexicalName(t.name));break;case"MemberExpression":e&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ObjectPattern":for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkLVal(s,e,n)}break;case"Property":this.checkLVal(t.value,e,n);break;case"ArrayPattern":for(var o=0,a=t.elements;o<a.length;o+=1){var h=a[o];h&&this.checkLVal(h,e,n)}break;case"AssignmentPattern":this.checkLVal(t.left,e,n);break;case"RestElement":this.checkLVal(t.argument,e,n);break;case"ParenthesizedExpression":this.checkLVal(t.expression,e,n);break;default:this.raise(t.start,(e?"Binding":"Assigning to")+" rvalue")}};var Ji=Ui.prototype;Ji.checkPropClash=function(t,e,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===t.type||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var r,i=t.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=t.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===s&&(e.proto&&(n&&n.doubleProto<0?n.doubleProto=i.start:this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),e.proto=!0);else{var o=e[r="$"+r];if(o)("init"===s?this.strict&&o.init||o.get||o.set:o.init||o[s])&&this.raiseRecoverable(i.start,"Redefinition of property");else o=e[r]={init:!1,get:!1,set:!1};o[s]=!0}}},Ji.parseExpression=function(t,e){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(t,e);if(this.type===Si.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(Si.comma);)s.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(s,"SequenceExpression")}return i},Ji.parseMaybeAssign=function(t,e,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1,i=-1,s=-1;e?(i=e.parenthesizedAssign,s=e.trailingComma,e.parenthesizedAssign=e.trailingComma=-1):(e=new Gi,r=!0);var o=this.start,a=this.startLoc;this.type!==Si.parenL&&this.type!==Si.name||(this.potentialArrowAt=this.start);var h=this.parseMaybeConditional(t,e);if(n&&(h=n.call(this,h,o,a)),this.type.isAssign){var u=this.startNodeAt(o,a);return u.operator=this.value,u.left=this.type===Si.eq?this.toAssignable(h,!1,e):h,r||Gi.call(e),e.shorthandAssign=-1,this.checkLVal(h),this.next(),u.right=this.parseMaybeAssign(t),this.finishNode(u,"AssignmentExpression")}return r&&this.checkExpressionErrors(e,!0),i>-1&&(e.parenthesizedAssign=i),s>-1&&(e.trailingComma=s),h},Ji.parseMaybeConditional=function(t,e){var n=this.start,r=this.startLoc,i=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return i;if(this.eat(Si.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(Si.colon),s.alternate=this.parseMaybeAssign(t),this.finishNode(s,"ConditionalExpression")}return i},Ji.parseExprOps=function(t,e){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(e,!1);return this.checkExpressionErrors(e)?i:i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,t)},Ji.parseExprOp=function(t,e,n,r,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==Si._in)&&s>r){var o=this.type===Si.logicalOR||this.type===Si.logicalAND,a=this.value;this.next();var h=this.start,u=this.startLoc,c=this.parseExprOp(this.parseMaybeUnary(null,!1),h,u,s,i),p=this.buildBinary(e,n,t,c,a,o);return this.parseExprOp(p,e,n,r,i)}return t},Ji.buildBinary=function(t,e,n,r,i,s){var o=this.startNodeAt(t,e);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")},Ji.parseMaybeUnary=function(t,e){var n,r=this.start,i=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))n=this.parseAwait(),e=!0;else if(this.type.prefix){var s=this.startNode(),o=this.type===Si.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),o?this.checkLVal(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):e=!0,n=this.finishNode(s,o?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(t),this.checkExpressionErrors(t))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var a=this.startNodeAt(r,i);a.operator=this.value,a.prefix=!1,a.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(a,"UpdateExpression")}}return!e&&this.eat(Si.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},Ji.parseExprSubscripts=function(t){var e=this.start,n=this.startLoc,r=this.parseExprAtom(t),i="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(t)||i)return r;var s=this.parseSubscripts(r,e,n);return t&&"MemberExpression"===s.type&&(t.parenthesizedAssign>=s.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=s.start&&(t.parenthesizedBind=-1)),s},Ji.parseSubscripts=function(t,e,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(t.start,t.end),s=void 0;;)if((s=this.eat(Si.bracketL))||this.eat(Si.dot)){var o=this.startNodeAt(e,n);o.object=t,o.property=s?this.parseExpression():this.parseIdent(!0),o.computed=!!s,s&&this.expect(Si.bracketR),t=this.finishNode(o,"MemberExpression")}else if(!r&&this.eat(Si.parenL)){var a=new Gi,h=this.yieldPos,u=this.awaitPos;this.yieldPos=0,this.awaitPos=0;var c=this.parseExprList(Si.parenR,this.options.ecmaVersion>=8,!1,a);if(i&&!this.canInsertSemicolon()&&this.eat(Si.arrow))return this.checkPatternErrors(a,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=u,this.parseArrowExpression(this.startNodeAt(e,n),c,!0);this.checkExpressionErrors(a,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=u||this.awaitPos;var p=this.startNodeAt(e,n);p.callee=t,p.arguments=c,t=this.finishNode(p,"CallExpression")}else{if(this.type!==Si.backQuote)return t;var l=this.startNodeAt(e,n);l.tag=t,l.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(l,"TaggedTemplateExpression")}},Ji.parseExprAtom=function(t){var e,n=this.potentialArrowAt===this.start;switch(this.type){case Si._super:return this.inFunction||this.raise(this.start,"'super' outside of function or class"),e=this.startNode(),this.next(),this.type!==Si.dot&&this.type!==Si.bracketL&&this.type!==Si.parenL&&this.unexpected(),this.finishNode(e,"Super");case Si._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case Si.name:var r=this.start,i=this.startLoc,s=this.containsEsc,o=this.parseIdent(this.type!==Si.name);if(this.options.ecmaVersion>=8&&!s&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(Si._function))return this.parseFunction(this.startNodeAt(r,i),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(Si.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===Si.name&&!s)return o=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(Si.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[o],!0)}return o;case Si.regexp:var a=this.value;return(e=this.parseLiteral(a.value)).regex={pattern:a.pattern,flags:a.flags},e;case Si.num:case Si.string:return this.parseLiteral(this.value);case Si._null:case Si._true:case Si._false:return(e=this.startNode()).value=this.type===Si._null?null:this.type===Si._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case Si.parenL:var h=this.start,u=this.parseParenAndDistinguishExpression(n);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(t.parenthesizedAssign=h),t.parenthesizedBind<0&&(t.parenthesizedBind=h)),u;case Si.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(Si.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression");case Si.braceL:return this.parseObj(!1,t);case Si._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case Si._class:return this.parseClass(this.startNode(),!1);case Si._new:return this.parseNew();case Si.backQuote:return this.parseTemplate();default:this.unexpected()}},Ji.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(e,"Literal")},Ji.parseParenExpression=function(){this.expect(Si.parenL);var t=this.parseExpression();return this.expect(Si.parenR),t},Ji.parseParenAndDistinguishExpression=function(t){var e,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,o=this.start,a=this.startLoc,h=[],u=!0,c=!1,p=new Gi,l=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Si.parenR;){if(u?u=!1:this.expect(Si.comma),i&&this.afterTrailingComma(Si.parenR,!0)){c=!0;break}if(this.type===Si.ellipsis){s=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===Si.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}h.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var d=this.start,m=this.startLoc;if(this.expect(Si.parenR),t&&!this.canInsertSemicolon()&&this.eat(Si.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=l,this.awaitPos=f,this.parseParenArrowList(n,r,h);h.length&&!c||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(p,!0),this.yieldPos=l||this.yieldPos,this.awaitPos=f||this.awaitPos,h.length>1?((e=this.startNodeAt(o,a)).expressions=h,this.finishNodeAt(e,"SequenceExpression",d,m)):e=h[0]}else e=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,r);return g.expression=e,this.finishNode(g,"ParenthesizedExpression")}return e},Ji.parseParenItem=function(t){return t},Ji.parseParenArrowList=function(t,e,n){return this.parseArrowExpression(this.startNodeAt(t,e),n)};var Qi=[];Ji.parseNew=function(){var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(Si.dot)){t.meta=e;var n=this.containsEsc;return t.property=this.parseIdent(!0),("target"!==t.property.name||n)&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raiseRecoverable(t.start,"new.target can only be used in functions"),this.finishNode(t,"MetaProperty")}var r=this.start,i=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),this.eat(Si.parenL)?t.arguments=this.parseExprList(Si.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Qi,this.finishNode(t,"NewExpression")},Ji.parseTemplateElement=function(t){var e=t.isTagged,n=this.startNode();return this.type===Si.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===Si.backQuote,this.finishNode(n,"TemplateElement")},Ji.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:e});for(n.quasis=[r];!r.tail;)this.type===Si.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Si.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(Si.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(n,"TemplateLiteral")},Ji.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===Si.name||this.type===Si.num||this.type===Si.string||this.type===Si.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Si.star)&&!wi.test(this.input.slice(this.lastTokEnd,this.start))},Ji.parseObj=function(t,e){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(Si.braceR);){if(r)r=!1;else if(this.expect(Si.comma),this.afterTrailingComma(Si.braceR))break;var s=this.parseProperty(t,e);t||this.checkPropClash(s,i,e),n.properties.push(s)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")},Ji.parseProperty=function(t,e){var n,r,i,s,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Si.ellipsis))return t?(o.argument=this.parseIdent(!1),this.type===Si.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===Si.parenL&&e&&(e.parenthesizedAssign<0&&(e.parenthesizedAssign=this.start),e.parenthesizedBind<0&&(e.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,e),this.type===Si.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(t||e)&&(i=this.start,s=this.startLoc),t||(n=this.eat(Si.star)));var a=this.containsEsc;return this.parsePropertyName(o),!t&&!a&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(Si.star),this.parsePropertyName(o,e)):r=!1,this.parsePropertyValue(o,t,n,r,i,s,e,a),this.finishNode(o,"Property")},Ji.parsePropertyValue=function(t,e,n,r,i,s,o,a){if((n||r)&&this.type===Si.colon&&this.unexpected(),this.eat(Si.colon))t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===Si.parenL)e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(n,r);else if(e||a||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===Si.comma||this.type===Si.braceR)this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?(this.checkUnreserved(t.key),t.kind="init",e?t.value=this.parseMaybeDefault(i,s,t.key):this.type===Si.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),t.value=this.parseMaybeDefault(i,s,t.key)):t.value=t.key,t.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var h="get"===t.kind?0:1;if(t.value.params.length!==h){var u=t.value.start;"get"===t.kind?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")}},Ji.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(Si.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(Si.bracketR),t.key;t.computed=!1}return t.key=this.type===Si.num||this.type===Si.string?this.parseExprAtom():this.parseIdent(!0)},Ji.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=!1,t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},Ji.parseMethod=function(t,e){var n=this.startNode(),r=this.inGenerator,i=this.inAsync,s=this.yieldPos,o=this.awaitPos,a=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=t),this.options.ecmaVersion>=8&&(n.async=!!e),this.inGenerator=n.generator,this.inAsync=n.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),this.expect(Si.parenL),n.params=this.parseBindingList(Si.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=r,this.inAsync=i,this.yieldPos=s,this.awaitPos=o,this.inFunction=a,this.finishNode(n,"FunctionExpression")},Ji.parseArrowExpression=function(t,e,n){var r=this.inGenerator,i=this.inAsync,s=this.yieldPos,o=this.awaitPos,a=this.inFunction;return this.enterFunctionScope(),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!n),this.inGenerator=!1,this.inAsync=t.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0),this.inGenerator=r,this.inAsync=i,this.yieldPos=s,this.awaitPos=o,this.inFunction=a,this.finishNode(t,"ArrowFunctionExpression")},Ji.parseFunctionBody=function(t,e){var n=e&&this.type!==Si.braceL,r=this.strict,i=!1;if(n)t.body=this.parseMaybeAssign(),t.expression=!0,this.checkParams(t,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);r&&!s||(i=this.strictDirective(this.end))&&s&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var o=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(t,!r&&!i&&!e&&this.isSimpleParamList(t.params)),t.body=this.parseBlock(!1),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=o}this.exitFunctionScope(),this.strict&&t.id&&this.checkLVal(t.id,"none"),this.strict=r},Ji.isSimpleParamList=function(t){for(var e=0,n=t;e<n.length;e+=1){if("Identifier"!==n[e].type)return!1}return!0},Ji.checkParams=function(t,e){for(var n={},r=0,i=t.params;r<i.length;r+=1){var s=i[r];this.checkLVal(s,"var",e?null:n)}},Ji.parseExprList=function(t,e,n,r){for(var i=[],s=!0;!this.eat(t);){if(s)s=!1;else if(this.expect(Si.comma),e&&this.afterTrailingComma(t))break;var o=void 0;n&&this.type===Si.comma?o=null:this.type===Si.ellipsis?(o=this.parseSpread(r),r&&this.type===Si.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},Ji.checkUnreserved=function(t){var e=t.start,n=t.end,r=t.name;(this.inGenerator&&"yield"===r&&this.raiseRecoverable(e,"Can not use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(e,"Can not use 'await' as identifier inside an async function"),this.isKeyword(r)&&this.raise(e,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(e,n).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(e,"Can not use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+r+"' is reserved"))},Ji.parseIdent=function(t,e){var n=this.startNode();return t&&"never"===this.options.allowReserved&&(t=!1),this.type===Si.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,"class"!==n.name&&"function"!==n.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(),this.finishNode(n,"Identifier"),t||this.checkUnreserved(n),n},Ji.parseYield=function(){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===Si.semi||this.canInsertSemicolon()||this.type!==Si.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(Si.star),t.argument=this.parseMaybeAssign()),this.finishNode(t,"YieldExpression")},Ji.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0),this.finishNode(t,"AwaitExpression")};var Zi=Ui.prototype;Zi.raise=function(t,e){var n=Vi(this.input,t);e+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(e);throw r.pos=t,r.loc=n,r.raisedAt=this.pos,r},Zi.raiseRecoverable=Zi.raise,Zi.curPosition=function(){if(this.options.locations)return new Ti(this.curLine,this.pos-this.lineStart)};var ts=Ui.prototype,es=Object.assign||function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];for(var r=0,i=e;r<i.length;r+=1){var s=i[r];for(var o in s)Mi(s,o)&&(t[o]=s[o])}return t};ts.enterFunctionScope=function(){this.scopeStack.push({var:{},lexical:{},childVar:{},parentLexical:{}})},ts.exitFunctionScope=function(){this.scopeStack.pop()},ts.enterLexicalScope=function(){var t=this.scopeStack[this.scopeStack.length-1],e={var:{},lexical:{},childVar:{},parentLexical:{}};this.scopeStack.push(e),es(e.parentLexical,t.lexical,t.parentLexical)},ts.exitLexicalScope=function(){var t=this.scopeStack.pop(),e=this.scopeStack[this.scopeStack.length-1];es(e.childVar,t.var,t.childVar)},ts.canDeclareVarName=function(t){var e=this.scopeStack[this.scopeStack.length-1];return!Mi(e.lexical,t)&&!Mi(e.parentLexical,t)},ts.canDeclareLexicalName=function(t){var e=this.scopeStack[this.scopeStack.length-1];return!Mi(e.lexical,t)&&!Mi(e.var,t)&&!Mi(e.childVar,t)},ts.declareVarName=function(t){this.scopeStack[this.scopeStack.length-1].var[t]=!0},ts.declareLexicalName=function(t){this.scopeStack[this.scopeStack.length-1].lexical[t]=!0};var ns=function(t,e,n){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new Di(t,n)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},rs=Ui.prototype;function is(t,e,n,r){return t.type=e,t.end=n,this.options.locations&&(t.loc.end=r),this.options.ranges&&(t.range[1]=n),t}rs.startNode=function(){return new ns(this,this.start,this.startLoc)},rs.startNodeAt=function(t,e){return new ns(this,t,e)},rs.finishNode=function(t,e){return is.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},rs.finishNodeAt=function(t,e,n,r){return is.call(this,t,e,n,r)};var ss=function(t,e,n,r,i){this.token=t,this.isExpr=!!e,this.preserveSpace=!!n,this.override=r,this.generator=!!i},os={b_stat:new ss("{",!1),b_expr:new ss("{",!0),b_tmpl:new ss("${",!1),p_stat:new ss("(",!1),p_expr:new ss("(",!0),q_tmpl:new ss("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new ss("function",!1),f_expr:new ss("function",!0),f_expr_gen:new ss("function",!0,!1,null,!0),f_gen:new ss("function",!1,!1,null,!0)},as=Ui.prototype;as.initialContext=function(){return[os.b_stat]},as.braceIsBlock=function(t){var e=this.curContext();return e===os.f_expr||e===os.f_stat||(t!==Si.colon||e!==os.b_stat&&e!==os.b_expr?t===Si._return||t===Si.name&&this.exprAllowed?wi.test(this.input.slice(this.lastTokEnd,this.start)):t===Si._else||t===Si.semi||t===Si.eof||t===Si.parenR||t===Si.arrow||(t===Si.braceL?e===os.b_stat:t!==Si._var&&t!==Si.name&&!this.exprAllowed):!e.isExpr)},as.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},as.updateContext=function(t){var e,n=this.type;n.keyword&&t===Si.dot?this.exprAllowed=!1:(e=n.updateContext)?e.call(this,t):this.exprAllowed=n.beforeExpr},Si.parenR.updateContext=Si.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===os.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},Si.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?os.b_stat:os.b_expr),this.exprAllowed=!0},Si.dollarBraceL.updateContext=function(){this.context.push(os.b_tmpl),this.exprAllowed=!0},Si.parenL.updateContext=function(t){var e=t===Si._if||t===Si._for||t===Si._with||t===Si._while;this.context.push(e?os.p_stat:os.p_expr),this.exprAllowed=!0},Si.incDec.updateContext=function(){},Si._function.updateContext=Si._class.updateContext=function(t){t.beforeExpr&&t!==Si.semi&&t!==Si._else&&(t!==Si.colon&&t!==Si.braceL||this.curContext()!==os.b_stat)?this.context.push(os.f_expr):this.context.push(os.f_stat),this.exprAllowed=!1},Si.backQuote.updateContext=function(){this.curContext()===os.q_tmpl?this.context.pop():this.context.push(os.q_tmpl),this.exprAllowed=!1},Si.star.updateContext=function(t){if(t===Si._function){var e=this.context.length-1;this.context[e]===os.f_expr?this.context[e]=os.f_expr_gen:this.context[e]=os.f_gen}this.exprAllowed=!0},Si.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==Si.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var hs={$LONE:["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","Emoji_Modifier","Emoji_Modifier_Base","Emoji_Presentation","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"],General_Category:["Cased_Letter","LC","Close_Punctuation","Pe","Connector_Punctuation","Pc","Control","Cc","cntrl","Currency_Symbol","Sc","Dash_Punctuation","Pd","Decimal_Number","Nd","digit","Enclosing_Mark","Me","Final_Punctuation","Pf","Format","Cf","Initial_Punctuation","Pi","Letter","L","Letter_Number","Nl","Line_Separator","Zl","Lowercase_Letter","Ll","Mark","M","Combining_Mark","Math_Symbol","Sm","Modifier_Letter","Lm","Modifier_Symbol","Sk","Nonspacing_Mark","Mn","Number","N","Open_Punctuation","Ps","Other","C","Other_Letter","Lo","Other_Number","No","Other_Punctuation","Po","Other_Symbol","So","Paragraph_Separator","Zp","Private_Use","Co","Punctuation","P","punct","Separator","Z","Space_Separator","Zs","Spacing_Mark","Mc","Surrogate","Cs","Symbol","S","Titlecase_Letter","Lt","Unassigned","Cn","Uppercase_Letter","Lu"],Script:["Adlam","Adlm","Ahom","Anatolian_Hieroglyphs","Hluw","Arabic","Arab","Armenian","Armn","Avestan","Avst","Balinese","Bali","Bamum","Bamu","Bassa_Vah","Bass","Batak","Batk","Bengali","Beng","Bhaiksuki","Bhks","Bopomofo","Bopo","Brahmi","Brah","Braille","Brai","Buginese","Bugi","Buhid","Buhd","Canadian_Aboriginal","Cans","Carian","Cari","Caucasian_Albanian","Aghb","Chakma","Cakm","Cham","Cherokee","Cher","Common","Zyyy","Coptic","Copt","Qaac","Cuneiform","Xsux","Cypriot","Cprt","Cyrillic","Cyrl","Deseret","Dsrt","Devanagari","Deva","Duployan","Dupl","Egyptian_Hieroglyphs","Egyp","Elbasan","Elba","Ethiopic","Ethi","Georgian","Geor","Glagolitic","Glag","Gothic","Goth","Grantha","Gran","Greek","Grek","Gujarati","Gujr","Gurmukhi","Guru","Han","Hani","Hangul","Hang","Hanunoo","Hano","Hatran","Hatr","Hebrew","Hebr","Hiragana","Hira","Imperial_Aramaic","Armi","Inherited","Zinh","Qaai","Inscriptional_Pahlavi","Phli","Inscriptional_Parthian","Prti","Javanese","Java","Kaithi","Kthi","Kannada","Knda","Katakana","Kana","Kayah_Li","Kali","Kharoshthi","Khar","Khmer","Khmr","Khojki","Khoj","Khudawadi","Sind","Lao","Laoo","Latin","Latn","Lepcha","Lepc","Limbu","Limb","Linear_A","Lina","Linear_B","Linb","Lisu","Lycian","Lyci","Lydian","Lydi","Mahajani","Mahj","Malayalam","Mlym","Mandaic","Mand","Manichaean","Mani","Marchen","Marc","Masaram_Gondi","Gonm","Meetei_Mayek","Mtei","Mende_Kikakui","Mend","Meroitic_Cursive","Merc","Meroitic_Hieroglyphs","Mero","Miao","Plrd","Modi","Mongolian","Mong","Mro","Mroo","Multani","Mult","Myanmar","Mymr","Nabataean","Nbat","New_Tai_Lue","Talu","Newa","Nko","Nkoo","Nushu","Nshu","Ogham","Ogam","Ol_Chiki","Olck","Old_Hungarian","Hung","Old_Italic","Ital","Old_North_Arabian","Narb","Old_Permic","Perm","Old_Persian","Xpeo","Old_South_Arabian","Sarb","Old_Turkic","Orkh","Oriya","Orya","Osage","Osge","Osmanya","Osma","Pahawh_Hmong","Hmng","Palmyrene","Palm","Pau_Cin_Hau","Pauc","Phags_Pa","Phag","Phoenician","Phnx","Psalter_Pahlavi","Phlp","Rejang","Rjng","Runic","Runr","Samaritan","Samr","Saurashtra","Saur","Sharada","Shrd","Shavian","Shaw","Siddham","Sidd","SignWriting","Sgnw","Sinhala","Sinh","Sora_Sompeng","Sora","Soyombo","Soyo","Sundanese","Sund","Syloti_Nagri","Sylo","Syriac","Syrc","Tagalog","Tglg","Tagbanwa","Tagb","Tai_Le","Tale","Tai_Tham","Lana","Tai_Viet","Tavt","Takri","Takr","Tamil","Taml","Tangut","Tang","Telugu","Telu","Thaana","Thaa","Thai","Tibetan","Tibt","Tifinagh","Tfng","Tirhuta","Tirh","Ugaritic","Ugar","Vai","Vaii","Warang_Citi","Wara","Yi","Yiii","Zanabazar_Square","Zanb"]};Array.prototype.push.apply(hs.$LONE,hs.General_Category),hs.gc=hs.General_Category,hs.sc=hs.Script_Extensions=hs.scx=hs.Script;var us=Ui.prototype,cs=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function ps(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function ls(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function fs(t){return t>=65&&t<=90||t>=97&&t<=122}function ds(t){return fs(t)||95===t}function ms(t){return ds(t)||gs(t)}function gs(t){return t>=48&&t<=57}function ys(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function vs(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function xs(t){return t>=48&&t<=55}cs.prototype.reset=function(t,e,n){var r=-1!==n.indexOf("u");this.start=0|t,this.source=e+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},cs.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},cs.prototype.at=function(t){var e=this.source,n=e.length;if(t>=n)return-1;var r=e.charCodeAt(t);return!this.switchU||r<=55295||r>=57344||t+1>=n?r:(r<<10)+e.charCodeAt(t+1)-56613888},cs.prototype.nextIndex=function(t){var e=this.source,n=e.length;if(t>=n)return n;var r=e.charCodeAt(t);return!this.switchU||r<=55295||r>=57344||t+1>=n?t+1:t+2},cs.prototype.current=function(){return this.at(this.pos)},cs.prototype.lookahead=function(){return this.at(this.nextIndex(this.pos))},cs.prototype.advance=function(){this.pos=this.nextIndex(this.pos)},cs.prototype.eat=function(t){return this.current()===t&&(this.advance(),!0)},us.validateRegExpFlags=function(t){for(var e=t.validFlags,n=t.flags,r=0;r<n.length;r++){var i=n.charAt(r);-1===e.indexOf(i)&&this.raise(t.start,"Invalid regular expression flag"),n.indexOf(i,r+1)>-1&&this.raise(t.start,"Duplicate regular expression flag")}},us.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},us.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,n=t.backReferenceNames;e<n.length;e+=1){var r=n[e];-1===t.groupNames.indexOf(r)&&t.raise("Invalid named capture referenced")}},us.regexp_disjunction=function(t){for(this.regexp_alternative(t);t.eat(124);)this.regexp_alternative(t);this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},us.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},us.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!(t.switchU?!this.regexp_eatAtom(t):!this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},us.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!n,!0}return t.pos=e,!1},us.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},us.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},us.regexp_eatBracedQuantifier=function(t,e){var n=t.pos;if(t.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue),t.eat(125)))return-1!==i&&i<r&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=n}return!1},us.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},us.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},us.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)&&t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}t.pos=e}return!1},us.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},us.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},us.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},us.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!ls(e)&&(t.lastIntValue=e,t.advance(),!0)},us.regexp_eatPatternCharacters=function(t){for(var e=t.pos,n=0;-1!==(n=t.current())&&!ls(n);)t.advance();return t.pos!==e},us.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e)&&(t.advance(),!0)},us.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t))return-1!==t.groupNames.indexOf(t.lastStringValue)&&t.raise("Duplicate capture group name"),void t.groupNames.push(t.lastStringValue);t.raise("Invalid group")}},us.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},us.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=ps(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=ps(t.lastIntValue);return!0}return!1},us.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,n=t.current();return t.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t)&&(n=t.lastIntValue),function(t){return gi(t,!0)||36===t||95===t}(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},us.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,n=t.current();return t.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t)&&(n=t.lastIntValue),function(t){return yi(t,!0)||36===t||95===t||8204===t||8205===t}(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},us.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},us.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var n=t.lastIntValue;if(t.switchU)return n>t.maxBackReference&&(t.maxBackReference=n),!0;if(n<=t.numCapturingParens)return!0;t.pos=e}return!1},us.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},us.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},us.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},us.regexp_eatZero=function(t){return 48===t.current()&&!gs(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},us.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},us.regexp_eatControlLetter=function(t){var e=t.current();return!!fs(e)&&(t.lastIntValue=e%32,t.advance(),!0)},us.regexp_eatRegExpUnicodeEscapeSequence=function(t){var e,n=t.pos;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var r=t.lastIntValue;if(t.switchU&&r>=55296&&r<=56319){var i=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var s=t.lastIntValue;if(s>=56320&&s<=57343)return t.lastIntValue=1024*(r-55296)+(s-56320)+65536,!0}t.pos=i,t.lastIntValue=r}return!0}if(t.switchU&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&((e=t.lastIntValue)>=0&&e<=1114111))return!0;t.switchU&&t.raise("Invalid unicode escape"),t.pos=n}return!1},us.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e)&&(t.lastIntValue=e,t.advance(),!0)},us.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1},us.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(t){return 100===t||68===t||115===t||83===t||119===t||87===t}(e))return t.lastIntValue=-1,t.advance(),!0;if(t.switchU&&this.options.ecmaVersion>=9&&(80===e||112===e)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125))return!0;t.raise("Invalid property name")}return!1},us.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var n=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,n,r),!0}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var i=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,i),!0}return!1},us.regexp_validateUnicodePropertyNameAndValue=function(t,e,n){hs.hasOwnProperty(e)&&-1!==hs[e].indexOf(n)||t.raise("Invalid property name")},us.regexp_validateUnicodePropertyNameOrValue=function(t,e){-1===hs.$LONE.indexOf(e)&&t.raise("Invalid property name")},us.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";ds(e=t.current());)t.lastStringValue+=ps(e),t.advance();return""!==t.lastStringValue},us.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";ms(e=t.current());)t.lastStringValue+=ps(e),t.advance();return""!==t.lastStringValue},us.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},us.regexp_eatCharacterClass=function(t){if(t.eat(91)){if(t.eat(94),this.regexp_classRanges(t),t.eat(93))return!0;t.raise("Unterminated character class")}return!1},us.regexp_classRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var n=t.lastIntValue;!t.switchU||-1!==e&&-1!==n||t.raise("Invalid character class"),-1!==e&&-1!==n&&e>n&&t.raise("Range out of order in character class")}}},us.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var n=t.current();(99===n||xs(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var r=t.current();return 93!==r&&(t.lastIntValue=r,t.advance(),!0)},us.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},us.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!gs(e)&&95!==e)&&(t.lastIntValue=e%32,t.advance(),!0)},us.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},us.regexp_eatDecimalDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;gs(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==e},us.regexp_eatHexDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;ys(n=t.current());)t.lastIntValue=16*t.lastIntValue+vs(n),t.advance();return t.pos!==e},us.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var n=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*n+t.lastIntValue:t.lastIntValue=8*e+n}else t.lastIntValue=e;return!0}return!1},us.regexp_eatOctalDigit=function(t){var e=t.current();return xs(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},us.regexp_eatFixedHexDigits=function(t,e){var n=t.pos;t.lastIntValue=0;for(var r=0;r<e;++r){var i=t.current();if(!ys(i))return t.pos=n,!1;t.lastIntValue=16*t.lastIntValue+vs(i),t.advance()}return!0};var _s=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Di(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Es=Ui.prototype;function bs(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}Es.next=function(){this.options.onToken&&this.options.onToken(new _s(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Es.getToken=function(){return this.next(),new _s(this)},"undefined"!=typeof Symbol&&(Es[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===Si.eof,value:e}}}}),Es.curContext=function(){return this.context[this.context.length-1]},Es.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(Si.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},Es.readToken=function(t){return gi(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},Es.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);return t<=55295||t>=57344?t:(t<<10)+this.input.charCodeAt(this.pos+1)-56613888},Es.skipBlockComment=function(){var t,e=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(Pi.lastIndex=n;(t=Pi.exec(this.input))&&t.index<this.pos;)++this.curLine,this.lineStart=t.index+t[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,r),n,this.pos,e,this.curPosition())},Es.skipLineComment=function(t){for(var e=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!Ii(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,n,this.curPosition())},Es.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&t<14||t>=5760&&ki.test(String.fromCharCode(t))))break t;++this.pos}}},Es.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=t,this.value=e,this.updateContext(n)},Es.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(Si.ellipsis)):(++this.pos,this.finishToken(Si.dot))},Es.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(Si.assign,2):this.finishOp(Si.slash,1)},Es.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),n=1,r=42===t?Si.star:Si.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++n,r=Si.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(Si.assign,n+1):this.finishOp(r,n)},Es.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.finishOp(124===t?Si.logicalOR:Si.logicalAND,2):61===e?this.finishOp(Si.assign,2):this.finishOp(124===t?Si.bitwiseOR:Si.bitwiseAND,1)},Es.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Si.assign,2):this.finishOp(Si.bitwiseXOR,1)},Es.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!wi.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Si.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(Si.assign,2):this.finishOp(Si.plusMin,1)},Es.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),n=1;return e===t?(n=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(Si.assign,n+1):this.finishOp(Si.bitShift,n)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(n=2),this.finishOp(Si.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Es.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(Si.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Si.arrow)):this.finishOp(61===t?Si.eq:Si.prefix,1)},Es.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Si.parenL);case 41:return++this.pos,this.finishToken(Si.parenR);case 59:return++this.pos,this.finishToken(Si.semi);case 44:return++this.pos,this.finishToken(Si.comma);case 91:return++this.pos,this.finishToken(Si.bracketL);case 93:return++this.pos,this.finishToken(Si.bracketR);case 123:return++this.pos,this.finishToken(Si.braceL);case 125:return++this.pos,this.finishToken(Si.braceR);case 58:return++this.pos,this.finishToken(Si.colon);case 63:return++this.pos,this.finishToken(Si.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Si.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 126:return this.finishOp(Si.prefix,1)}this.raise(this.pos,"Unexpected character '"+bs(t)+"'")},Es.finishOp=function(t,e){var n=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,n)},Es.readRegexp=function(){for(var t,e,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(wi.test(r)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if("["===r)e=!0;else if("]"===r&&e)e=!1;else if("/"===r&&!e)break;t="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var a=this.regexpState||(this.regexpState=new cs(this));a.reset(n,i,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var h=null;try{h=new RegExp(i,o)}catch(t){}return this.finishToken(Si.regexp,{pattern:i,flags:o,value:h})},Es.readInt=function(t,e){for(var n=this.pos,r=0,i=0,s=null==e?1/0:e;i<s;++i){var o=this.input.charCodeAt(this.pos),a=void 0;if((a=o>=97?o-97+10:o>=65?o-65+10:o>=48&&o<=57?o-48:1/0)>=t)break;++this.pos,r=r*t+a}return this.pos===n||null!=e&&this.pos-n!==e?null:r},Es.readRadixNumber=function(t){this.pos+=2;var e=this.readInt(t);return null==e&&this.raise(this.start+2,"Expected number in radix "+t),gi(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Si.num,e)},Es.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10)||this.raise(e,"Invalid number");var n=this.pos-e>=2&&48===this.input.charCodeAt(e);n&&this.strict&&this.raise(e,"Invalid number"),n&&/[89]/.test(this.input.slice(e,this.pos))&&(n=!1);var r=this.input.charCodeAt(this.pos);46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),gi(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i=this.input.slice(e,this.pos),s=n?parseInt(i,8):parseFloat(i);return this.finishToken(Si.num,s)},Es.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},Es.readString=function(t){for(var e="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===t)break;92===r?(e+=this.input.slice(n,this.pos),e+=this.readEscapedChar(!1),n=this.pos):(Ii(r,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(n,this.pos++),this.finishToken(Si.string,e)};var As={};Es.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==As)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Es.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw As;this.raise(t,e)},Es.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==Si.template&&this.type!==Si.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(Si.template,t)):36===n?(this.pos+=2,this.finishToken(Si.dollarBraceL)):(++this.pos,this.finishToken(Si.backQuote));if(92===n)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(Ii(n)){switch(t+=this.input.slice(e,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},Es.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(Si.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Es.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return bs(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:if(e>=48&&e<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,e=this.input.charCodeAt(this.pos),"0"===n&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-n.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return String.fromCharCode(e)}},Es.readHexChar=function(t){var e=this.pos,n=this.readInt(16,t);return null===n&&this.invalidStringToken(e,"Bad character escape sequence"),n},Es.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(yi(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,t+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(e?gi:yi)(o,r)||this.invalidStringToken(s,"Invalid Unicode escape"),t+=bs(o),n=this.pos}e=!1}return t+this.input.slice(n,this.pos)},Es.readWord=function(){var t=this.readWord1(),e=Si.name;return this.keywords.test(t)&&(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+t),e=bi[t]),this.finishToken(e,t)};var Ss,ws,Ps;var Is,ks=Object.freeze({version:"5.7.3",parse:function(t,e){return new Ui(e,t).parse()},parseExpressionAt:function(t,e,n){var r=new Ui(n,t,e);return r.nextToken(),r.parseExpression()},tokenizer:function(t,e){return new Ui(e,t)},get parse_dammit(){return Ss},get LooseParser(){return ws},get pluginsLoose(){return Ps},addLooseExports:function(t,e,n){Ss=t,ws=e,Ps=n},Parser:Ui,plugins:Wi,defaultOptions:zi,Position:Ti,SourceLocation:Di,getLineInfo:Vi,Node:ns,TokenType:vi,tokTypes:Si,keywordTypes:bi,TokContext:ss,tokContexts:os,isIdentifierChar:yi,isIdentifierStart:gi,Token:_s,isNewLine:Ii,lineBreak:wi,lineBreakG:Pi,nonASCIIwhitespace:ki}),Cs=o(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.tokTypes;return e._import.startsExpr=!0,t.plugins.dynamicImport=function(t){t.extend("parseStatement",function(t){return function(){var n=this.startNode();if(this.type===e._import&&function(){return this.input[this.pos]}.call(this)===e.parenL.label){var r=this.parseExpression();return this.parseExpressionStatement(n,r)}for(var i=arguments.length,s=Array(i),o=0;o<i;o++)s[o]=arguments[o];return t.apply(this,s)}}),t.extend("parseExprAtom",function(t){return function(r){return this.type===e._import?function(){var t=this.startNode();return this.next(),this.type!==e.parenL&&this.unexpected(),this.finishNode(t,n)}.call(this):t.call(this,r)}})},t};var n=e.DynamicImportKey="Import"}),Ns=(Is=Cs)&&Is.__esModule&&Object.prototype.hasOwnProperty.call(Is,"default")?Is.default:Is;Cs.DynamicImportKey;const Rs=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;var Os=function(t){const e=t.tokTypes,n=t=>{Rs.lastIndex=t.pos;let e=Rs.exec(t.input),n=t.pos+e[0].length;return"."===t.input.slice(n,n+1)};return t.plugins.importMeta=function(t){t.extend("parseExprAtom",function(t){return function(r){if(this.type!==e._import||!n(this))return t.call(this,r);this.options.allowImportExportEverywhere||this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'");let i=this.startNode();return i.meta=this.parseIdent(!0),this.expect(e.dot),i.property=this.parseIdent(!0),"meta"!==i.property.name&&this.raiseRecoverable(i.property.start,"The only valid meta property for import is import.meta"),this.finishNode(i,"MetaProperty")}}),t.extend("parseStatement",function(t){return function(r,i,s){if(this.type!==e._import)return t.call(this,r,i,s);if(!n(this))return t.call(this,r,i,s);let o=this.startNode(),a=this.parseExpression();return this.parseExpressionStatement(o,a)}})},t},Ms=function(t){function e(){return t.call(this,"undefined")||this}return n(e,t),e.prototype.getLiteralValueAtPath=function(){},e}(Dt),Ls=function(t){function e(){var e=t.call(this)||this;return e.variables.undefined=new Ms,e}return n(e,t),e.prototype.findVariable=function(t){return this.variables[t]?this.variables[t]:this.variables[t]=new Gt(t)},e.prototype.deshadow=function(e,n){void 0===n&&(n=this.children),t.prototype.deshadow.call(this,e,n)},e}(ze),Ts=function(){return{tracked:!1,unknownPath:null,paths:Object.create(null)}},Ds=function(){function t(){this.entityPaths=new Map}return t.prototype.track=function(t,e){var n=this.entityPaths.get(t);n||(n=Ts(),this.entityPaths.set(t,n));for(var r,i=0;i<e.length;){var s=e[i];"string"==typeof s?(r=n.paths[s])||(r=Ts(),n.paths[s]=r):(r=n.unknownPath)||(r=Ts(),n.unknownPath=r),n=r,i++}var o=n.tracked;return n.tracked=!0,o},t}();function Vs(t,e,n){return{emitAsset:function(r,i){var s;"string"==typeof r&&Gn(r)||xe({code:"INVALID_ASSET_NAME",message:"Plugin error creating asset, name is not a plain (non relative or absolute URL) string name."});do{var o=R();s?o.update(s):o.update(r),s=o.digest("hex").substr(0,8)}while(t.has(s));var a={name:r,source:i,fileName:void 0};return e&&void 0!==i&&zs(a,e,n),t.set(s,a),s},setAssetSource:function(r,i){var s=t.get(r);s||xe({code:"ASSET_NOT_FOUND",message:"Plugin error - Unable to set asset source for unknown asset "+r+"."}),void 0!==s.source&&xe({code:"ASSET_SOURCE_ALREADY_SET",message:"Plugin error - Unable to set asset source for "+s.name+", source already set."}),"string"==typeof i||i||xe({code:"ASSET_SOURCE_MISSING",message:"Plugin error creating asset "+name+", setAssetSource call without a source."}),s.source=i,e&&zs(s,e,n)},getAssetFileName:function(e){var n=t.get(e);return n||xe({code:"ASSET_NOT_FOUND",message:"Plugin error - Unable to get asset filename for unknown asset "+e+"."}),void 0===n.fileName&&xe({code:"ASSET_NOT_FINALISED",message:"Plugin error - Unable to get asset file name for asset "+e+". Ensure that the source is set and that generate is called first."}),n.fileName}}}function zs(t,e,n){var r=function(t,e,n){return void 0===t.source&&xe({code:"ASSET_SOURCE_NOT_FOUND",message:"Plugin error creating asset "+t.name+" - no asset source set."}),t.fileName?t.fileName:ri(ni(n,"assetFileNames",function(e){switch(e){case"hash":var n=R();return n.update(e),n.update(":"),n.update(t.source),n.digest("hex").substr(0,8);case"name":return t.name.substr(0,t.name.length-oe(t.name).length);case"extname":return oe(t.name);case"ext":return oe(t.name).substr(1)}}),e)}(t,e,n);t.fileName=r,e[r]=t.source}var Bs=97,Ws=48;function js(t){return t<10?String.fromCharCode(Ws+t):String.fromCharCode(Bs+(t-10))}function Us(t){for(var e="",n=0;n<t.length;n++){var r=t[n];e+=js(r>>4),e+=js(15&r)}return e}function Fs(t){for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=512*Math.random();return e}function qs(t,e){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var Gs="0.66.2",Hs=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];throw new Error("Cannot use fs."+t+" inside browser")}},Ks=Hs("lstatSync"),Ys=Hs("readdirSync"),Xs=Hs("readFileSync"),$s=Hs("realpathSync"),Js=Hs("writeFile");function Qs(t){return{name:"Rollup Core",resolveId:function(t){return function(e,n){return"undefined"==typeof process&&xe({code:"MISSING_PROCESS",message:"It looks like you're using Rollup in a non-Node.js environment. This means you must supply a plugin with custom resolveId and load functions",url:"https://github.com/rollup/rollup/wiki/Plugins"}),void 0===n||ee(e)||"."===e[0]?(r=he(n?se(n):he(),e),i=t.preserveSymlinks,(s=Zs(r,i))||((s=Zs(r+".mjs",i))?s:s=Zs(r+".js",i))):null;var r,i,s}}(t),load:function(t){return Xs(t,"utf-8")},resolveDynamicImport:function(t,e){if("string"==typeof t)return this.resolveId(t,e)}}}function Zs(t,e){try{var n=Ks(t);if(!e&&n.isSymbolicLink())return Zs($s(t),e);if(e&&n.isSymbolicLink()||n.isFile()){var r=ie(t);if(-1!==Ys(se(t)).indexOf(r))return t}}catch(t){}}function to(t,e,n,r){var i=(e.plugins||[]).concat([Qs(e)]),s=Vs(t.assetsById),o=s.emitAsset,a=s.getAssetFileName,h=s.setAssetSource,u=[],c=!1,p=i.map(function(e){var i,s,p=!0;if("string"!=typeof e.cacheKey&&("string"!=typeof e.name?p=!1:(-1!==u.indexOf(e.name)&&(p=!1),u.push(e.name))),!c&&(e.load||e.transform||e.transformBundle||e.transformChunk)&&(c=!0),n)if(p){var l=e.cacheKey||e.name;s=n[l]||(n[l]=Object.create(null)),i={has:function(t){var e=s[t];return!!e&&(e[0]=0,!0)},get:function(t){var e=s[t];if(e)return e[0]=0,e[1]},set:function(t,e){s[t]=[0,e]},delete:function(t){return delete s[t]}}}else i=ro(e.name);else i=eo;return{addWatchFile:function(e){t.finished&&this.error("addWatchFile can only be called during the build."),t.watchFiles[e]=!0},cache:i,emitAsset:o,error:function(t){"string"==typeof t&&(t={message:t}),t.code&&(t.pluginCode=t.code),t.code="PLUGIN_ERROR",t.plugin=e.name||"(anonymous plugin)",xe(t)},isExternal:function(e,n,r){return void 0===r&&(r=!1),t.isExternal(e,n,r)},getAssetFileName:a,meta:{rollupVersion:Gs},parse:t.contextParse,resolveId:function(t,e){return d.hookFirst("resolveId",[t,e])},setAssetSource:h,warn:function(n){"string"==typeof n&&(n={message:n}),n.code&&(n.pluginCode=n.code),n.code="PLUGIN_WARNING",n.plugin=e.name||"(anonymous plugin)",t.warn(n)},watcher:r}});function l(t,e,n,r,s){void 0===r&&(r=!1);var o=i[n],a=p[n],h=o[t];if(h){if(s&&(!(a=s(a,o))||a===p[n]))throw new Error("Internal Rollup error: hookContext must return a new context object.");try{if("function"!=typeof h){if(r)return h;xe({code:"INVALID_PLUGIN_HOOK",message:"Error running plugin hook "+t+" for "+(o.name||"Plugin at pos "+(n+1))+", expected a function hook."})}return h.apply(a,e)}catch(e){"string"==typeof e&&(e={message:e}),"PLUGIN_ERROR"!==e.code&&(e.code&&(e.pluginCode=e.code),e.code="PLUGIN_ERROR"),e.plugin=o.name||"Plugin at pos "+n,e.hook=t,xe(e)}}}function f(t,e,n,r,s){void 0===r&&(r=!1);var o=i[n],a=p[n],h=o[t];if(h){if(s&&(!(a=s(a,o))||a===p[n]))throw new Error("Internal Rollup error: hookContext must return a new context object.");return Promise.resolve().then(function(){if("function"!=typeof h){if(r)return h;xe({code:"INVALID_PLUGIN_HOOK",message:"Error running plugin hook "+t+" for "+(o.name||"Plugin at pos "+(n+1))+", expected a function hook."})}return h.apply(a,e)}).catch(function(e){"string"==typeof e&&(e={message:e}),"PLUGIN_ERROR"!==e.code&&(e.code&&(e.pluginCode=e.code),e.code="PLUGIN_ERROR"),e.plugin=o.name||"Plugin at pos "+n,e.hook=t,xe(e)})}}var d={emitAsset:o,getAssetFileName:a,hasLoadersOrTransforms:c,hookSeq:function(t,e,n){for(var r=Promise.resolve(),s=function(i){r=r.then(function(){return f(t,e,i,!1,n)})},o=0;o<i.length;o++)s(o);return r},hookSeqSync:function(t,e,n){for(var r=0;r<i.length;r++)l(t,e,r,!1,n)},hookFirst:function(t,e,n){for(var r=Promise.resolve(),s=function(i){r=r.then(function(r){return null!=r?r:f(t,e,i,!1,n)})},o=0;o<i.length;o++)s(o);return r},hookParallel:function(t,e,n){for(var r=[],s=0;s<i.length;s++){var o=f(t,e,s,!1,n);o&&r.push(o)}return Promise.all(r).then(function(){})},hookReduceArg0:function(t,e,n,r){for(var s=e[0],o=e.slice(1),a=Promise.resolve(s),h=function(e){a=a.then(function(s){var a=f(t,[s].concat(o),e,!1,r);return a?a.then(function(t){return n(s,t,i[e])}):s})},u=0;u<i.length;u++)h(u);return a},hookReduceValue:function(t,e,n,r,s){for(var o=Promise.resolve(e),a=function(e){o=o.then(function(o){var a=f(t,n,e,!0,s);return a?a.then(function(t){return r(o,t,i[e])}):o})},h=0;h<i.length;h++)a(h);return o}};return d}var eo={has:function(){return!1},get:function(){},set:function(){},delete:function(){return!1}};function no(t){xe(t?{code:"DUPLICATE_PLUGIN_NAME",message:"The plugin name ${pluginName} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user)."}:{code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."})}var ro=function(t){return{has:function(){return no(t),!1},get:function(){no(t)},set:function(){no(t)},delete:function(){return no(t),!1}}};var io=function(){function t(t,e){var n=this;if(this.curChunkIndex=0,this.externalModules=[],this.moduleById=new Map,this.assetsById=new Map,this.modules=[],this.watchFiles=Object.create(null),this.finished=!1,this.curChunkIndex=0,this.deoptimizationTracker=new Ds,this.cachedModules=new Map,t.cache&&t.cache.modules)for(var i=0,s=t.cache.modules;i<s.length;i++){var o=s[i];this.cachedModules.set(o.id,o)}if(!1!==t.cache)for(var a in this.pluginCache=t.cache&&t.cache.plugins||Object.create(null),this.pluginCache)for(var h=this.pluginCache[a],u=0,c=Object.keys(h);u<c.length;u++){h[E=c[u]][0]++}if(this.cacheExpiry=t.experimentalCacheExpiry,!t.input)throw new Error("You must supply options.input to rollup");if(this.treeshake=!1!==t.treeshake,this.treeshake)if(this.treeshakingOptions={propertyReadSideEffects:!t.treeshake||!1!==t.treeshake.propertyReadSideEffects,pureExternalModules:!!t.treeshake&&t.treeshake.pureExternalModules},!0===this.treeshakingOptions.pureExternalModules)this.isPureExternalModule=function(){return!0};else if("function"==typeof this.treeshakingOptions.pureExternalModules)this.isPureExternalModule=this.treeshakingOptions.pureExternalModules;else if(Array.isArray(this.treeshakingOptions.pureExternalModules)){var p=new Set(this.treeshakingOptions.pureExternalModules);this.isPureExternalModule=function(t){return p.has(t)}}else this.isPureExternalModule=function(){return!1};else this.isPureExternalModule=function(){return!1};if(this.contextParse=function(t,e){return void 0===e&&(e={}),n.acornParse(t,r({},$r,e,n.acornOptions))},this.pluginDriver=to(this,t,this.pluginCache,e),e){var l=function(t){return n.pluginDriver.hookSeqSync("watchChange",[t])};e.on("change",l),e.once("restart",function(){e.removeListener("change",l)})}if("function"==typeof t.external){var f=t.external;this.isExternal=function(t,e,n){return!t.startsWith("\0")&&f(t,e,n)}}else{var d=t.external,m=new Set(Array.isArray(d)?d:d?[d]:[]);this.isExternal=function(t){return m.has(t)}}this.shimMissingExports=t.shimMissingExports,this.scope=new Ls;for(var g=0,y=["module","exports","_interopDefault"];g<y.length;g++){a=y[g];this.scope.findVariable(a)}this.exportShimVariable=this.scope.findVariable("_missingExportShim"),this.context=String(t.context);var v,x=t.moduleContext;if("function"==typeof x)this.getModuleContext=function(t){return x(t)||n.context};else if("object"==typeof x){var _=new Map;for(var E in x)_.set(he(E),x[E]);this.getModuleContext=function(t){return _.get(t)||n.context}}else this.getModuleContext=function(){return n.context};this.onwarn=t.onwarn||(v=Object.create(null),function(t){var e=t.toString();e in v||(console.error(e),v[e]=!0)}),this.varOrConst=t.preferConst?"const":"var",this.acornOptions=t.acorn||{};var b=[];b.push(Ns),b.push(Os),this.acornOptions.plugins=this.acornOptions.plugins||{},this.acornOptions.plugins.dynamicImport=!0,this.acornOptions.plugins.importMeta=!0,t.experimentalTopLevelAwait&&(this.acornOptions.allowAwaitOutsideFunction=!0);var A=t.acornInjectPlugins;b.push.apply(b,Array.isArray(A)?A:A?[A]:[]),this.acornParse=b.reduce(function(t,e){return e(t)},ks).parse}return t.prototype.getCache=function(){for(var t in this.pluginCache){for(var e=this.pluginCache[t],n=!0,r=0,i=Object.keys(e);r<i.length;r++){var s=i[r];e[s][0]>=this.cacheExpiry?delete e[s]:n=!1}n&&delete this.pluginCache[t]}return{modules:this.modules.map(function(t){return t.toJSON()}),plugins:this.pluginCache}},t.prototype.finaliseAssets=function(t){var e=Object.create(null);return this.assetsById.forEach(function(n){void 0!==n.source&&zs(n,e,t)}),e},t.prototype.loadModule=function(t){var e=this;return this.pluginDriver.hookFirst("resolveId",[t,void 0]).then(function(n){return!1===n&&xe({code:"UNRESOLVED_ENTRY",message:"Entry module cannot be external"}),null==n&&xe({code:"UNRESOLVED_ENTRY",message:"Could not resolve entry ("+t+")"}),e.fetchModule(n,void 0)})},t.prototype.link=function(){for(var t=0,e=this.modules;t<e.length;t++){e[t].linkDependencies()}for(var n=0,r=this.modules;n<r.length;n++){r[n].bindReferences()}},t.prototype.includeMarked=function(t){if(this.treeshake){var e=void 0,n=1;do{Gr("treeshaking pass "+n,3),e=!1;for(var r=0,i=t;r<i.length;r++){i[r].include()&&(e=!0)}Hr("treeshaking pass "+n++,3)}while(e)}else for(var s=0,o=t;s<o.length;s++){o[s].includeAllInBundle()}},t.prototype.loadEntryModules=function(t,e){var n,r,i=this,s=!1;"string"==typeof t&&(t=[t]),Array.isArray(t)?(s=!0,r=t.concat([]),n=t):(r=Object.keys(t),n=r.map(function(e){return t[e]}));var o=n.concat([]);return e&&Object.keys(e).forEach(function(t){e[t].forEach(function(t){-1===o.indexOf(t)&&o.push(t)})}),Promise.all(o.map(function(t){return i.loadModule(t)})).then(function(t){if(s)for(var i=0;i<r.length;i++)r[i]=Fn(t[i].id,r[i]);var a,h=t.slice(0,n.length);if(e){a={};for(var u=0,c=Object.keys(e);u<c.length;u++){var p=c[u],l=e[p];a[p]=l.map(function(e){var n=o.indexOf(e);return t[n]})}}return{entryModules:h,entryModuleAliases:r,manualChunkModules:a}})},t.prototype.build=function(t,e,n,r){var i=this;return Gr("parse modules",2),this.loadEntryModules(t,e).then(function(t){var e=t.entryModules,s=t.entryModuleAliases,o=t.manualChunkModules;Hr("parse modules",2),Gr("analyse dependency graph",2);for(var a=0;a<e.length;a++){var h=e[a],u=e.indexOf(h,a+1);-1!==u&&xe({code:"DUPLICATE_ENTRY_POINTS",message:"Duplicate entry points detected. The input entries "+s[a]+" and "+s[u]+" both point to the same module, "+h.id})}i.link();var c=i.analyseExecution(e,!r&&!n,n,o),p=c.orderedModules,l=c.dynamicImports,f=c.dynamicImportAliases;if(s)for(a=e.length-1;a>=0;a--)e[a].chunkAlias=s[a];if(n){h=e[0];if(e.length>1)throw new Error("Internal Error: can only inline dynamic imports for single-file builds.");for(var d=0,m=l;d<m.length;d++){h!==(g=m[d])&&g.markPublicExports(),g.getOrCreateNamespace().include()}}else for(a=0;a<l.length;a++){var g=l[a];-1===e.indexOf(g)&&(e.push(g),g.chunkAlias||(g.chunkAlias=f[a]))}Hr("analyse dependency graph",2),Gr("mark included statements",2);for(var y=0,v=e;y<v.length;y++){(h=v[y]).markPublicExports()}i.includeMarked(p);for(var x=0,_=i.externalModules;x<_.length;x++){_[x].warnUnusedImports()}Hr("mark included statements",2),Gr("generate chunks",2);var E=[];if(r)for(var b=0,A=p;b<A.length;b++){k=A[b];var S=new ii(i,[k]);!k.isEntryPoint&&S.isEmpty||(S.entryModule=k),E.push(S)}else{for(var w={},P=0,I=p;P<I.length;P++){var k,C=Us((k=I[P]).entryPointsHash),N=w[C];N?N.push(k):w[C]=[k]}for(var R in w){var O=w[R].sort(function(t,e){return t.execIndex>e.execIndex?1:-1}),M=new ii(i,O);E.push(M)}}for(var L=0,T=E;L<T.length;L++){(M=T[L]).link()}for(var D=0,V=E=E.filter(function(t){return!t.isEmpty||t.entryModule||t.isManualChunk});D<V.length;D++){M=V[D];(r||M.entryModule)&&M.populateEntryExports(r)}if(!r)for(var z=0,B=e;z<B.length;z++){if(!(h=B[z]).chunk.isEntryModuleFacade){var W=new ii(i,[]);W.linkFacade(h),E.push(W)}}return Hr("generate chunks",2),i.finished=!0,E})},t.prototype.analyseExecution=function(t,e,n,r){var i,s,o,a,h,u,c=this,p={},l=[],f=[],d=[],m=function(t){e&&(a.chunkAlias?(t.chunkAlias=a.chunkAlias,t.entryPointsHash=h):function(t,e){for(var n=0;n<t.length;n++)t[n]=t[n]^e[n]}(t.entryPointsHash,h));for(var n=0,r=t.dependencies;n<r.length;n++){var i=r[n];i instanceof ue||(i.id in u?p[i.id]||c.warnCycle(i.id,t.id,u):(u[i.id]=t.id,i.isEntryPoint||i.chunkAlias||m(i)))}for(var s=0,o=t.dynamicImportResolutions;s<o.length;s++){var g=o[s];g.resolution instanceof Qr&&(e&&(g.resolution.chunkAlias||qs(g.resolution.entryPointsHash,a.entryPointsHash))||-1===f.indexOf(g.resolution)&&(f.push(g.resolution),d.push(g.alias)))}p[t.id]||(p[t.id]=!0,t.execIndex=l.length,l.push(t))};if(e&&r)for(var g=0,y=Object.keys(r);g<y.length;g++){var v=y[g];h=Fs(10);for(var x=0,_=r[v];x<_.length;x++)(a=_[x]).chunkAlias&&xe({code:"INVALID_CHUNK",message:"Cannot assign "+ae(process.cwd(),a.id)+' to the "'+v+'" chunk as it is already in the "'+a.chunkAlias+'" chunk.\nTry defining "'+v+'" first in the manualChunks definitions of the Rollup configuration.'}),a.chunkAlias=v,(i={})[a.id]=null,u=i,m(a)}for(var E=0,b=t;E<b.length;E++)(a=b[E]).isEntryPoint=!0,h=Fs(10),(s={})[a.id]=null,u=s,m(a);for(var A=0,S=f;A<S.length;A++)(a=S[A]).isEntryPoint||(n||(a.isEntryPoint=!0),h=Fs(10),(o={})[a.id]=null,u=o,m(a));return{orderedModules:l,dynamicImports:f,dynamicImportAliases:d}},t.prototype.warnCycle=function(t,e,n){for(var r=[qn(t)],i=e;i!==t&&(r.push(qn(i)),i=n[i]););r.push(r[0]),r.reverse(),this.warn({code:"CIRCULAR_DEPENDENCY",importer:r[0],message:"Circular dependency: "+r.join(" -> ")})},t.prototype.fetchModule=function(t,e){var n=this,i=this.moduleById.get(t);if(i){if(i.isExternal)throw new Error("Cannot fetch external module "+t);return Promise.resolve(i)}var s=new Qr(this,t);return this.moduleById.set(t,s),this.watchFiles[t]=!0,Gr("load modules",3),Promise.resolve(this.pluginDriver.hookFirst("load",[t])).catch(function(n){Hr("load modules",3);var r="Could not load "+t;throw e&&(r+=" (imported by "+e+")"),r+=": "+n.message,new Error(r)}).then(function(e){return Hr("load modules",3),"string"==typeof e?e:e&&"object"==typeof e&&"string"==typeof e.code?e:void xe({code:"BAD_LOADER",message:"Error loading "+qn(t)+": plugin load hook should return a string, a { code, map } object, or nothing/null"})}).then(function(e){var i="string"==typeof e?{code:e,ast:null}:e,o=n.cachedModules.get(t);if(o&&!o.customTransformCache&&o.originalCode===i.code){if(o.transformAssets)for(var a=0,h=o.transformAssets;a<h.length;a++){var u=h[a];n.pluginDriver.emitAsset(u.name,u.source)}return o}return function(t,e,n){var i=n.id,s=[],o="string"==typeof e.map?JSON.parse(e.map):e.map;o&&"string"==typeof o.mappings&&(o.mappings=T(o.mappings));var a,h,u,c,p=t.pluginDriver.emitAsset,l=e.code,f=e.ast,d=!1,m=e.code;return t.pluginDriver.hookReduceArg0("transform",[m,i],function(e,r,o){if(!d&&u.used&&(d=!0),d){if(r&&Array.isArray(r.dependencies))for(var c=0,p=r.dependencies;c<p.length;c++){var l=p[c],m=he(se(i),l);t.watchFiles[m]||(t.watchFiles[m]=!0)}}else if(h.length&&(n.transformAssets=h),r&&Array.isArray(r.dependencies)){a||(a=[]);for(var g=0,y=r.dependencies;g<y.length;g++)l=y[g],a.push(he(se(i),l))}return null==r?e:("string"==typeof r?r={code:r,ast:void 0,map:void 0}:"string"==typeof r.map&&(r.map=JSON.parse(r.map)),r.map&&"string"==typeof r.map.mappings&&(r.map.mappings=T(r.map.mappings)),null!==r.map&&s.push(r.map||{missing:!0,plugin:o.name}),f=r.ast,r.code)},function(e,n){var s,o,a,l;return n.cacheKey?d=!0:(o=e.cache,(a={used:!1,cache:void 0}).cache={has:function(t){return a.used=!0,o.has(t)},get:function(t){return a.used=!0,o.get(t)},set:function(t,e){return a.used=!0,o.set(t,e)},delete:function(t){return a.used=!0,o.delete(t)}},u=a),s=function(t,e){var n=[];return{assets:n,emitAsset:function(r,i){var s=e(r,i),o=t.get(s);return n.push({name:o.name,source:o.source,fileName:void 0}),s}}}(t.assetsById,p),h=s.assets,l=s.emitAsset,r({},e,{cache:u?u.cache:e.cache,warn:function(e,r){"string"==typeof e&&(e={message:e}),r&&_e(e,r,m,i),e.code&&(e.pluginCode=e.code),e.id=i,e.code="PLUGIN_WARNING",e.plugin=n.name||"(anonymous plugin)",e.hook="transform",t.warn(e)},error:function(t,e){"string"==typeof t&&(t={message:t}),e&&_e(t,e,m,i),t.code&&(t.pluginCode=t.code),t.id=i,t.code="PLUGIN_ERROR",t.plugin=n.name||"(anonymous plugin)",t.hook="transform",xe(t)},emitAsset:l,setAssetSource:function(t,n){if(e.setAssetSource(t,n),!d&&!c)try{this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitAsset with a source, or call setAssetSource in another hook."})}catch(t){c=t}}})}).catch(function(t){"string"==typeof t&&(t={message:t}),"PLUGIN_ERROR"!==t.code&&(t.code&&(t.pluginCode=t.code),t.code="PLUGIN_ERROR"),t.id=i,xe(t)}).then(function(t){if(!d&&c)throw c;return{code:t,transformDependencies:a,originalCode:l,originalSourcemap:o,ast:f,sourcemapChain:s,customTransformCache:d}})}(n,i,s)}).then(function(e){return s.setSource(e),n.modules.push(s),n.moduleById.set(t,s),n.fetchAllDependencies(s).then(function(){for(var t in s.exports)"default"!==t&&(s.exportsAll[t]=s.id);return s.exportAllSources.forEach(function(t){var e=s.resolvedIds[t],r=n.moduleById.get(e);if(!r.isExternal)for(var i in r.exportsAll)i in s.exportsAll?n.warn({code:"NAMESPACE_CONFLICT",reexporter:s.id,name:i,sources:[s.exportsAll[i],r.exportsAll[i]],message:"Conflicting namespaces: "+qn(s.id)+" re-exports '"+i+"' from both "+qn(s.exportsAll[i])+" and "+qn(r.exportsAll[i])+" (will be ignored)"}):s.exportsAll[i]=r.exportsAll[i]}),s})})},t.prototype.fetchAllDependencies=function(t){var e=this,n=Promise.all(t.getDynamicImportExpressions().map(function(n,r){return Promise.resolve(e.pluginDriver.hookFirst("resolveDynamicImport",[n,t.id])).then(function(i){if(i){var s=Fn(i,"string"==typeof n?n:void 0);if("string"!=typeof n)t.dynamicImportResolutions[r]={alias:s,resolution:i};else{if(!e.isExternal(i,t.id,!0))return e.fetchModule(i,t.id).then(function(e){t.dynamicImportResolutions[r]={alias:s,resolution:e}});var o=void 0;e.moduleById.has(i)?o=e.moduleById.get(i):(o=new ue({graph:e,id:i}),e.externalModules.push(o),e.moduleById.set(i,t)),t.dynamicImportResolutions[r]={alias:s,resolution:o},o.exportsNamespace=!0}}else t.dynamicImportResolutions[r]={alias:void 0,resolution:void 0}})})).then(function(){});return n.catch(function(){}),Promise.all(t.sources.map(function(n){return Promise.resolve().then(function(){var r=t.resolvedIds[n];return r||!e.isExternal(n,t.id,!1)&&e.pluginDriver.hookFirst("resolveId",[n,t.id])}).then(function(r){var i=r||(ne(n)?he(t.id,"..",n):n),s=!1===r||e.isExternal(i,t.id,!0);if(r||s||(ne(n)&&xe({code:"UNRESOLVED_IMPORT",message:"Could not resolve '"+n+"' from "+qn(t.id)}),!1!==r&&e.warn({code:"UNRESOLVED_IMPORT",source:n,importer:qn(t.id),message:"'"+n+"' is imported by "+qn(t.id)+", but could not be resolved – treating it as an external dependency",url:"https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency"}),s=!0),!s)return t.resolvedIds[n]=r,e.fetchModule(r,t.id);if(t.resolvedIds[n]=i,!e.moduleById.has(i)){var o=new ue({graph:e,id:i});e.externalModules.push(o),e.moduleById.set(i,o)}var a=e.moduleById.get(i);for(var h in a instanceof ue==!1&&xe({code:"INVALID_EXTERNAL_ID",message:"'"+n+"' is imported as an external by "+qn(t.id)+", but is already an existing non-external module id."}),t.imports){var u=t.imports[h];if(u.source!==n)return;a.traceExport(u.name)}})})).then(function(){return n})},t.prototype.warn=function(t){t.toString=function(){var e="";return t.plugin&&(e+="("+t.plugin+" plugin) "),t.loc&&(e+=qn(t.loc.file)+" ("+t.loc.line+":"+t.loc.column+") "),e+=t.message},this.onwarn(t)},t}();function so(t){switch(typeof t){case"function":return t();case"string":return t;default:return""}}var oo=function(t,e){return e?t+"\n"+e:t},ao=function(t,e){return e?t+"\n\n"+e:t};function ho(t,e){xe({code:"INVALID_EXPORT_OPTION",message:"'"+t+"' was specified for output.exports, but entry module has following exports: "+e.join(", ")})}function uo(t,e){var n=e.exports,r=e.name,i=e.format,s=t.getExportNames();return"default"===n?1===s.length&&"default"===s[0]||ho("default",s):"none"===n&&s.length&&ho("none",s),n&&"auto"!==n||(0===s.length?n="none":1===s.length&&"default"===s[0]?n="default":(t.isEntryModuleFacade&&"es"!==i&&-1!==s.indexOf("default")&&t.graph.warn({code:"MIXED_EXPORTS",message:"Using named and default exports together. Consumers of your bundle will have to use "+(r||"bundle")+"['default'] to access the default export, which may not be what you want. Use `exports: 'named'` to disable this warning",url:"https://rollupjs.org/#exports"}),n="named")),/(?:default|named|none)/.test(n)||xe({code:"INVALID_EXPORT_OPTION",message:"output.exports must be 'default', 'named', 'none', 'auto', or left unspecified (defaults to 'auto')"}),n}function co(t,e){var n=[];return e.input&&function(){!t.input&&t.entry&&function(e,r){n.push({new:r,old:e}),r in t||(t[r]=t[e]);delete t[e]}("entry","input");t.dest&&i("dest","file");t.moduleName&&i("moduleName","name");t.name&&i("name","name");t.extend&&i("extend","extend");t.globals&&i("globals","globals");t.indent&&i("indent","indent");t.noConflict&&i("noConflict","noConflict");t.paths&&i("paths","paths");t.sourcemap&&i("sourcemap","sourcemap");t.sourceMap&&i("sourceMap","sourcemap");t.sourceMapFile&&i("sourceMapFile","sourcemapFile");t.useStrict&&i("useStrict","strict");t.strict&&i("strict","strict");t.format&&i("format","format");t.banner&&i("banner","banner");t.footer&&i("footer","footer");t.intro&&i("intro","intro");t.outro&&i("outro","outro");t.interop&&i("interop","interop");t.freeze&&i("freeze","freeze");t.exports&&i("exports","exports");if(t.targets){n.push({old:"targets",new:"output"}),t.output=t.targets.map(function(e){return r({},e,t.output)}),delete t.targets;var e=!1;t.output.forEach(function(t){t.dest&&(e||(n.push({old:"targets.dest",new:"output.file"}),e=!0),t.file=t.dest,delete t.dest)})}t.pureExternalModules&&(n.push({old:"pureExternalModules",new:"treeshake.pureExternalModules"}),void 0===t.treeshake&&(t.treeshake={}),t.treeshake&&(t.treeshake.pureExternalModules=t.pureExternalModules),delete t.pureExternalModules)}(),e.output&&t.output&&t.output.moduleId&&(t.output.amd={id:t.moduleId},n.push({old:"moduleId",new:"amd"}),delete t.output.moduleId),n;function i(e,r){n.push({new:"output."+r,old:e}),t.output=t.output||{},r in t.output||(t.output[r]=t[e]),delete t[e]}}var po=function(t,e){return function(n,r){return void 0!==e[n]?e[n]:void 0!==t[n]?t[n]:r}},lo=function(t){return t&&"object"!=typeof t?{}:t},fo=function(t,e,n){var i=lo(e[n]),s=lo(t[n]);return void 0!==i?i&&s?r({},s,i):i:s},mo=function(t){"string"==typeof t?console.warn(t):console.warn(t.message)},go=function(t,e,n){return void 0===n&&(n=mo),e.silent?function(){}:t.onwarn?function(e){return t.onwarn(e,n)}:n},yo=function(t,e){var n=t.external;return"function"==typeof n?function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return n.apply(void 0,[t].concat(r))||-1!==e.external.indexOf(t)}:(n||[]).concat(e.external)},vo={c:"config",e:"external",f:"format",g:"globals",h:"help",i:"input",m:"sourcemap",n:"name",o:"file",v:"version",w:"watch"};function xo(t){var e=t.config,n=void 0===e?{}:e,i=t.command,s=void 0===i?{}:i,o=t.deprecateConfig,a=t.defaultOnWarnHandler,h=function(t,e,n){void 0===e&&(e={});void 0===n&&(n={input:!0,output:!0});var r=[];e.id&&(r.push({old:"-u/--id",new:"--amd.id"}),(e.amd||(e.amd={})).id=e.id);"string"==typeof e.output&&(r.push({old:"--output",new:"--file"}),e.output={file:e.output});e.d&&(r.push({old:"-d",new:"--indent"}),e.indent=e.d);return r.push.apply(r,co(t,n)),r}(n,s,o),u=function(t){var e=r({},t);e.external=(t.external||"").split(","),t.globals&&(e.globals=Object.create(null),t.globals.split(",").forEach(function(t){var n=t.split(":");e.globals[n[0]]=n[1],-1===e.external.indexOf(n[0])&&e.external.push(n[0])}));return e}(s),c=function(t,e,n){void 0===e&&(e={});var r=po(t,e),i={acorn:t.acorn,acornInjectPlugins:t.acornInjectPlugins,cache:r("cache"),experimentalCacheExpiry:r("experimentalCacheExpiry",10),context:t.context,experimentalCodeSplitting:r("experimentalCodeSplitting"),experimentalPreserveModules:r("experimentalPreserveModules"),experimentalTopLevelAwait:r("experimentalTopLevelAwait"),external:yo(t,e),inlineDynamicImports:r("inlineDynamicImports",!1),input:r("input"),manualChunks:r("manualChunks"),chunkGroupingSize:r("chunkGroupingSize",5e3),optimizeChunks:r("optimizeChunks"),moduleContext:t.moduleContext,onwarn:go(t,e,n),perf:r("perf",!1),plugins:t.plugins,preferConst:r("preferConst"),preserveSymlinks:r("preserveSymlinks"),treeshake:fo(t,e,"treeshake"),shimMissingExports:r("shimMissingExports"),watch:t.watch};if(Array.isArray(i.input))i.entry=i.input[0];else if("object"==typeof i.input)for(var s in i.input){i.entry=i.input[s];break}else i.entry=i.input;return i}(n,u,a);u.output&&Object.assign(u,u.output);var p=n.output,l=Array.isArray(p)?p:p?[p]:[];0===l.length&&l.push({});var f=l.map(function(t){return function(t,e){void 0===e&&(e={});var n=po(t,e),i=n("format");return{amd:r({},t.amd,e.amd),assetFileNames:n("assetFileNames"),banner:n("banner"),dir:n("dir"),chunkFileNames:n("chunkFileNames"),compact:n("compact",!1),entryFileNames:n("entryFileNames"),esModule:n("esModule",!0),exports:n("exports"),extend:n("extend"),file:n("file"),footer:n("footer"),format:"esm"===i?"es":i,freeze:n("freeze",!0),globals:n("globals"),indent:n("indent",!0),interop:n("interop",!0),intro:n("intro"),name:n("name"),namespaceToStringTag:n("namespaceToStringTag",!1),noConflict:n("noConflict"),outro:n("outro"),paths:n("paths"),sourcemap:n("sourcemap"),sourcemapFile:n("sourcemapFile"),sourcemapPathTransform:n("sourcemapPathTransform"),strict:n("strict",!0)}}(t,u)}),d=[],m=Object.keys(c);_o(d,Object.keys(n),m,"input option",/^output$/);var g=Object.keys(f[0]);_o(d,f.reduce(function(t,e){return t.concat(Object.keys(e))},[]),g,"output option");var y=g.filter(function(t){return"sourcemapPathTransform"!==t});return _o(d,Object.keys(u),m.concat(y,Object.keys(vo),"config","environment","silent"),"CLI flag",/^_|output|(config.*)$/),{inputOptions:c,outputOptions:f,deprecations:h,optionError:d.length>0?d.join("\n"):null}}function _o(t,e,n,r,i){void 0===i&&(i=/$./);var s=e.filter(function(t){return-1===n.indexOf(t)&&!i.test(t)});s.length>0&&t.push("Unknown "+r+": "+s.join(", ")+". Allowed options: "+n.sort().join(", "))}function Eo(t,e){e({code:"DEPRECATED_OPTIONS",message:"The following options have been renamed — please update your config: "+t.map(function(t){return t.old+" -> "+t.new}).join(", "),deprecations:t})}var bo,Ao={get:function(){throw new Error("bundle.generate(...) now returns a Promise instead of a { code, map } object")}};function So(t,e){return e.options&&e.options(t)||t}function wo(t){if(!t)throw new Error("You must supply an options object to rollup");var e=xo({config:t,deprecateConfig:{input:!0}}),n=e.inputOptions,r=e.deprecations,i=e.optionError;i&&n.onwarn({message:i,code:"UNKNOWN_OPTION"}),r.length&&Eo(r,n.onwarn),function(t){if(t.transform||t.load||t.resolveId||t.resolveExternal)throw new Error("The `transform`, `load`, `resolveId` and `resolveExternal` options are deprecated in favour of a unified plugin API. See https://github.com/rollup/rollup/wiki/Plugins for details")}(n);var s=n.plugins;return n.plugins=Array.isArray(s)?s.filter(Boolean):s?[s]:[],(n=n.plugins.reduce(So,n)).experimentalCodeSplitting||(n.inlineDynamicImports=!0,n.manualChunks&&xe({code:"INVALID_OPTION",message:'"manualChunks" option is only supported for experimentalCodeSplitting.'}),n.optimizeChunks&&xe({code:"INVALID_OPTION",message:'"optimizeChunks" option is only supported for experimentalCodeSplitting.'}),(n.input instanceof Array||"object"==typeof n.input)&&xe({code:"INVALID_OPTION",message:"Multiple inputs are only supported for experimentalCodeSplitting."})),n.inlineDynamicImports?(n.manualChunks&&xe({code:"INVALID_OPTION",message:'"manualChunks" option is not supported for inlineDynamicImports.'}),n.optimizeChunks&&xe({code:"INVALID_OPTION",message:'"optimizeChunks" option is not supported for inlineDynamicImports.'}),(n.input instanceof Array||"object"==typeof n.input)&&xe({code:"INVALID_OPTION",message:"Multiple inputs are not supported for inlineDynamicImports."})):n.experimentalPreserveModules&&(n.inlineDynamicImports&&xe({code:"INVALID_OPTION",message:"experimentalPreserveModules does not support the inlineDynamicImports option."}),n.manualChunks&&xe({code:"INVALID_OPTION",message:"experimentalPreserveModules does not support the manualChunks option."}),n.optimizeChunks&&xe({code:"INVALID_OPTION",message:"experimentalPreserveModules does not support the optimizeChunks option."})),n}function Po(t){return"string"==typeof t.code}t.rollup=function(t){try{var e=wo(t);Xr(e);var n=new io(e,bo);return bo=void 0,Gr("BUILD",1),n.pluginDriver.hookParallel("buildStart").then(function(){return n.build(e.input,e.manualChunks,e.inlineDynamicImports,e.experimentalPreserveModules)}).then(function(t){return n.pluginDriver.hookParallel("buildEnd").then(function(){return t})},function(t){return n.pluginDriver.hookParallel("buildEnd",[t]).then(function(){throw t})}).then(function(i){var s;Hr("BUILD",1);var o="string"==typeof e.input||e.input instanceof Array&&1===e.input.length;if(!e.experimentalPreserveModules&&o)for(var a=0,h=i;a<h.length;a++){var u=h[a];if(void 0!==u.entryModule){if(s){s=void 0;break}s=u}}var c=!1;function p(t,a){var h=function(t,e){if(!e)throw new Error("You must supply an options object");var n=xo({config:{output:r({},e,e.output,t.output)},deprecateConfig:{output:!0}});if(n.optionError)throw new Error(n.optionError);var i=n.outputOptions[0],s=n.deprecations;return s.length&&Eo(s,t.onwarn),function(t){if("es6"===t.format&&xe({message:"The `es6` output format is deprecated – use `es` instead",url:"https://rollupjs.org/#format-f-output-format-"}),t.format||xe({message:"You must specify output.format, which can be one of 'amd', 'cjs', 'system', 'esm', 'iife' or 'umd'",url:"https://rollupjs.org/#format-f-output-format-"}),t.moduleId&&t.amd)throw new Error("Cannot have both output.amd and output.moduleId")}(i),i}(e,t);e.experimentalCodeSplitting&&("string"==typeof h.file&&"string"==typeof h.dir&&xe({code:"INVALID_OPTION",message:"Build must set either output.file for a single-file build or output.dir when generating multiple chunks."}),i.length>1&&("umd"!==h.format&&"iife"!==h.format||xe({code:"INVALID_OPTION",message:"UMD and IIFE output formats are not supported with the experimentalCodeSplitting option."}),h.sourcemapFile&&xe({code:"INVALID_OPTION",message:'"sourcemapFile" is only supported for single-file builds.'})),s||"string"!=typeof h.file||xe({code:"INVALID_OPTION",message:o?"When building a bundle using dynamic imports, the output.dir option must be used, not output.file. Alternatively set inlineDynamicImports: true to output a single file.":"When building multiple entry point inputs, the output.dir option must be used, not output.file."})),!h.file&&e.experimentalCodeSplitting&&(s=void 0),Gr("GENERATE",1);var u=h.assetFileNames||"assets/[name]-[hash][extname]",p=n.finaliseAssets(u),l=function(t){if(1===t.length)return se(t[0]);var e=t.slice(1).reduce(function(t,e){var n,r=e.split(/\/+|\\+/);for(n=0;t[n]===r[n]&&n<Math.min(t.length,r.length);n++);return t.slice(0,n)},t[0].split(/\/+|\\+/));return e.length>1?e.join("/"):"/"}(i.filter(function(t){return t.entryModule}).map(function(t){return t.entryModule.id}));return n.pluginDriver.hookParallel("renderStart").then(function(){return t=h,e=n.pluginDriver,Promise.all([e.hookReduceValue("banner",so(t.banner),[],oo),e.hookReduceValue("footer",so(t.footer),[],oo),e.hookReduceValue("intro",so(t.intro),[],ao),e.hookReduceValue("outro",so(t.outro),[],ao)]).then(function(t){var e=t[0],n=t[1],r=t[2],i=t[3];return r&&(r+="\n\n"),i&&(i="\n\n"+i),e.length&&(e+="\n"),n.length&&(n="\n"+n),{intro:r,outro:i,banner:e,footer:n,hash:new Uint8Array(4)}}).catch(function(t){xe({code:"ADDON_ERROR",message:"Could not retrieve "+t.hook+". Check configuration of "+t.plugin+".\n\tError Message: "+t.message})});var t,e}).then(function(t){for(var o=0,a=i;o<a.length;o++){var u=a[o];e.experimentalPreserveModules||u.generateInternalExports(h),u.isEntryModuleFacade&&(u.exportMode=uo(u,h))}for(var f=0,d=i;f<d.length;f++)(u=d[f]).preRender(h,l);!c&&e.optimizeChunks&&(function(t,e,n,r){for(var i,s=function(s){var o=t[s],a=[];if(o.postVisitChunkDependencies(function(t){t instanceof ii&&a.push(t)}),a.length<2)return i=s,"continue";var h,u=1,c=!0,p=a[0],l=a[1],f=function(t){return!(t.isEntryModuleFacade||t.isManualChunk||!l||l.isEntryModuleFacade||t.getRenderedSourceLength()>n)},d=function(){if(c)return f(p)&&(c=!1),"continue";var i=n-h.getRenderedSourceLength()-p.getRenderedSourceLength();if(i<=0)return f(p)||(c=!0),"continue";var o=new Set;p.postVisitChunkDependencies(function(t){return o.add(t)});var d=new Set([p,h]);if(h.postVisitChunkDependencies(function(t){return t!==p&&t!==h&&!o.has(t)&&(t instanceof ue||(i-=t.getRenderedSourceLength())<=0||void d.add(t))}))return f(p)||(c=!0),"continue";if(p.postVisitChunkDependencies(function(t){return!d.has(t)&&(t instanceof ue||(i-=t.getRenderedSourceLength())<=0||void 0)}))return f(p)||(c=!0),"continue";var m=t.indexOf(p);m<=s&&s--,t.splice(m,1),h.merge(p,t,e,r),a.splice(--u,1),p=h,l&&!f(l)&&(c=!0)};do{d()}while(h=p,p=l,l=a[++u],p);i=s},o=0;o<t.length;o++)s(o),o=i}(i,h,e.chunkGroupingSize,l),c=!0);for(var m=0;m<i.length;m++){var g=(u=i[m]).getImportIds(),y=u.getExportNames(),v=u.renderedModules;if(u===s)s.id=ie(h.file||(e.input instanceof Array?e.input[0]:e.input));else if(e.experimentalPreserveModules)u.generateIdPreserveModules(l);else{var x=void 0,_=void 0;u.isEntryModuleFacade?(x=h.entryFileNames||"[name].js",_="output.entryFileNames"):(x=h.chunkFileNames||"[name]-[hash].js",_="output.chunkFileNames"),u.generateId(x,_,t,h,p)}p[u.id]={fileName:u.id,isEntry:void 0!==u.entryModule,imports:g,exports:y,modules:v,code:void 0,map:void 0}}return Promise.all(i.map(function(e){var i=p[e.id];return e.render(h,t,i).then(function(t){return i.code=t.code,i.map=t.map,n.pluginDriver.hookParallel("ongenerate",[r({bundle:i},h),i])})})).then(function(){})}).catch(function(t){return n.pluginDriver.hookParallel("renderError",[t]).then(function(){throw t})}).then(function(){var t=new Map(n.assetsById),e=Vs(t,p,u);return n.pluginDriver.hookSeq("generateBundle",[h,p,a],function(t){return r({},t,e)}).then(function(){t.forEach(function(t){void 0===t.fileName&&zs(t,p,u)})})}).then(function(){return Hr("GENERATE",1),p})}var l=!1===t.cache?void 0:n.getCache(),f={cache:l,watchFiles:Object.keys(n.watchFiles),generate:function(t){var n=p(t,!1).then(function(t){return e.experimentalCodeSplitting?{output:t}:t[i[0].id]});return Object.defineProperty(n,"code",Ao),Object.defineProperty(n,"map",Ao),n},write:function(t){return!e.experimentalCodeSplitting||t&&(t.dir||t.file)?e.experimentalCodeSplitting||t&&t.file||xe({code:"MISSING_OPTION",message:"You must specify output.file."}):xe({code:"MISSING_OPTION",message:"You must specify output.file or output.dir for the build."}),p(t,!0).then(function(s){return Promise.all(Object.keys(s).map(function(e){return function(t,e,n,i,s){var o,a,h=he(s.dir||se(s.file),n);if(Po(i)){if(a=i.code,s.sourcemap&&i.map){var u=void 0;"inline"===s.sourcemap?u=i.map.toUrl():(u=ie(n)+".map",o=Js(h+".map",i.map.toString())),a+="//# "+Mr+"="+u+"\n"}}else a=i;return Js(h,a).then(function(){return o}).then(function(){return Po(i)&&t.pluginDriver.hookSeq("onwrite",[r({bundle:e},s),i])}).then(function(){})}(n,f,e,s[e],t)})).then(function(){return e.experimentalCodeSplitting?{output:s}:s[i[0].id]})})}};return e.experimentalCodeSplitting||(f.imports=s.getImportIds(),f.exports=s.getExportNames(),f.modules=(l||n.getCache()).modules),!0===e.perf&&(f.getTimings=qr),f})}catch(t){return Promise.reject(t)}},t.VERSION=Gs,Object.defineProperty(t,"__esModule",{value:!0})});
11
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.rollup={})}(this,function(t){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,n)};function n(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=s;function s(t,e){if(!t)throw new Error(e||"Assertion failed")}s.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function o(t,e){return t(e={exports:{}},e.exports),e.exports}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function h(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}var c={inherits:o(function(t){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}),toArray:function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r<t.length;r+=2)n.push(parseInt(t[r]+t[r+1],16))}else for(var r=0;r<t.length;r++){var i=t.charCodeAt(r),s=i>>8,o=255&i;s?n.push(s,o):n.push(o)}else for(r=0;r<t.length;r++)n[r]=0|t[r];return n},toHex:function(t){for(var e="",n=0;n<t.length;n++)e+=h(t[n].toString(16));return e},htonl:a,toHex32:function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];"little"===e&&(i=a(i)),n+=u(i.toString(16))}return n},zero2:h,zero8:u,join32:function(t,e,n,r){var s=n-e;i(s%4==0);for(var o=new Array(s/4),a=0,h=e;a<o.length;a++,h+=4){var u;u="big"===r?t[h]<<24|t[h+1]<<16|t[h+2]<<8|t[h+3]:t[h+3]<<24|t[h+2]<<16|t[h+1]<<8|t[h],o[a]=u>>>0}return o},split32:function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var s=t[r];"big"===e?(n[i]=s>>>24,n[i+1]=s>>>16&255,n[i+2]=s>>>8&255,n[i+3]=255&s):(n[i+3]=s>>>24,n[i+2]=s>>>16&255,n[i+1]=s>>>8&255,n[i]=255&s)}return n},rotr32:function(t,e){return t>>>e|t<<32-e},rotl32:function(t,e){return t<<e|t>>>32-e},sum32:function(t,e){return t+e>>>0},sum32_3:function(t,e,n){return t+e+n>>>0},sum32_4:function(t,e,n,r){return t+e+n+r>>>0},sum32_5:function(t,e,n,r,i){return t+e+n+r+i>>>0},sum64:function(t,e,n,r){var i=t[e],s=r+t[e+1]>>>0,o=(s<r?1:0)+n+i;t[e]=o>>>0,t[e+1]=s},sum64_hi:function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},sum64_lo:function(t,e,n,r){return e+r>>>0},sum64_4_hi:function(t,e,n,r,i,s,o,a){var h=0,u=e;return h+=(u=u+r>>>0)<e?1:0,h+=(u=u+s>>>0)<s?1:0,t+n+i+o+(h+=(u=u+a>>>0)<a?1:0)>>>0},sum64_4_lo:function(t,e,n,r,i,s,o,a){return e+r+s+a>>>0},sum64_5_hi:function(t,e,n,r,i,s,o,a,h,u){var c=0,p=e;return c+=(p=p+r>>>0)<e?1:0,c+=(p=p+s>>>0)<s?1:0,c+=(p=p+a>>>0)<a?1:0,t+n+i+o+h+(c+=(p=p+u>>>0)<u?1:0)>>>0},sum64_5_lo:function(t,e,n,r,i,s,o,a,h,u){return e+r+s+a+u>>>0},rotr64_hi:function(t,e,n){return(e<<32-n|t>>>n)>>>0},rotr64_lo:function(t,e,n){return(t<<32-n|e>>>n)>>>0},shr64_hi:function(t,e,n){return t>>>n},shr64_lo:function(t,e,n){return(t<<32-n|e>>>n)>>>0}};function p(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var l=p;p.prototype.update=function(t,e){if(t=c.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=c.join32(t,0,t.length-n,this.endian);for(var r=0;r<t.length;r+=this._delta32)this._update(t,r,r+this._delta32)}return this},p.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},p.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,s=8;s<this.padLength;s++)r[i++]=0;return r};var f={BlockHash:l},d=c.rotr32;function m(t,e,n){return t&e^~t&n}function g(t,e,n){return t&e^t&n^e&n}function y(t,e,n){return t^e^n}var v={ft_1:function(t,e,n,r){return 0===t?m(e,n,r):1===t||3===t?y(e,n,r):2===t?g(e,n,r):void 0},ch32:m,maj32:g,p32:y,s0_256:function(t){return d(t,2)^d(t,13)^d(t,22)},s1_256:function(t){return d(t,6)^d(t,11)^d(t,25)},g0_256:function(t){return d(t,7)^d(t,18)^t>>>3},g1_256:function(t){return d(t,17)^d(t,19)^t>>>10}},x=c.sum32,_=c.sum32_4,E=c.sum32_5,b=v.ch32,A=v.maj32,S=v.s0_256,w=v.s1_256,P=v.g0_256,I=v.g1_256,k=f.BlockHash,C=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function N(){if(!(this instanceof N))return new N;k.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=C,this.W=new Array(64)}c.inherits(N,k);var R=N;N.blockSize=512,N.outSize=256,N.hmacStrength=192,N.padLength=64,N.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=_(I(n[r-2]),n[r-7],P(n[r-15]),n[r-16]);var s=this.h[0],o=this.h[1],a=this.h[2],h=this.h[3],u=this.h[4],c=this.h[5],p=this.h[6],l=this.h[7];for(i(this.k.length===n.length),r=0;r<n.length;r++){var f=E(l,w(u),b(u,c,p),this.k[r],n[r]),d=x(S(s),A(s,o,a));l=p,p=c,c=u,u=x(h,f),h=a,a=o,o=s,s=x(f,d)}this.h[0]=x(this.h[0],s),this.h[1]=x(this.h[1],o),this.h[2]=x(this.h[2],a),this.h[3]=x(this.h[3],h),this.h[4]=x(this.h[4],u),this.h[5]=x(this.h[5],c),this.h[6]=x(this.h[6],p),this.h[7]=x(this.h[7],l)},N.prototype._digest=function(t){return"hex"===t?c.toHex32(this.h,"big"):c.split32(this.h,"big")};for(var O={},M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",L=0;L<M.length;L++)O[M.charCodeAt(L)]=L;function T(t){for(var e=0,n=0,r=0,i=0,s=0,o=[],a=[],h=[],u=0,c=0,p=0,l=0,f=t.length;u<f;u++){var d=t.charCodeAt(u);if(44===d)h.length&&a.push(new Int16Array(h)),h=[],c=0;else if(59===d)h.length&&a.push(new Int16Array(h)),h=[],c=0,o.push(a),a=[],e=0;else{var m=O[d];if(void 0===m)throw new Error("Invalid character ("+String.fromCharCode(d)+")");var g=32&m;if(l+=(m&=31)<<p,g)p+=5;else{var y=1&l;l>>=1;var v=y?-l:l;0==c?(e+=v,h.push(e)):1===c?(n+=v,h.push(n)):2===c?(r+=v,h.push(r)):3===c?(i+=v,h.push(i)):4===c&&(s+=v,h.push(s)),c++,l=p=0}}}return h.length&&a.push(new Int16Array(h)),o.push(a),o}function D(t){var e="";t=t<0?-t<<1|1:t<<1;do{var n=31&t;(t>>=5)>0&&(n|=32),e+=M[n]}while(t>0);return e}var V=function(t,e,n){this.start=t,this.end=e,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};V.prototype.appendLeft=function(t){this.outro+=t},V.prototype.appendRight=function(t){this.intro=this.intro+t},V.prototype.clone=function(){var t=new V(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t},V.prototype.contains=function(t){return this.start<t&&t<this.end},V.prototype.eachNext=function(t){for(var e=this;e;)t(e),e=e.next},V.prototype.eachPrevious=function(t){for(var e=this;e;)t(e),e=e.previous},V.prototype.edit=function(t,e,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=e,this.edited=!0,this},V.prototype.prependLeft=function(t){this.outro=t+this.outro},V.prototype.prependRight=function(t){this.intro=t+this.intro},V.prototype.split=function(t){var e=t-this.start,n=this.original.slice(0,e),r=this.original.slice(e);this.original=n;var i=new V(t,this.end,r);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},V.prototype.toString=function(){return this.intro+this.content+this.outro},V.prototype.trimEnd=function(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var e=this.content.replace(t,"");return e.length?(e!==this.content&&this.split(this.start+e.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),!!this.intro.length||void 0)},V.prototype.trimStart=function(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var e=this.content.replace(t,"");return e.length?(e!==this.content&&(this.split(this.end-e.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),!!this.outro.length||void 0)};var z=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?z=window.btoa:"function"==typeof Buffer&&(z=function(t){return new Buffer(t).toString("base64")});var B=function(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=function(t){for(var e=0,n=0,r=0,i=0,s="",o=0;o<t.length;o++){var a=t[o];if(o>0&&(s+=";"),0!==a.length){for(var h=0,u=[],c=0,p=a;c<p.length;c++){var l=p[c],f=D(l[0]-h);h=l[0],l.length>1&&(f+=D(l[1]-e)+D(l[2]-n)+D(l[3]-r),e=l[1],n=l[2],r=l[3]),5===l.length&&(f+=D(l[4]-i),i=l[4]),u.push(f)}s+=u.join(",")}}return s}(t.mappings)};function W(t,e){var n=t.split(/[\/\\]/),r=e.split(/[\/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length)for(var i=n.length;i--;)n[i]="..";return n.concat(r).join("/")}B.prototype.toString=function(){return JSON.stringify(this)},B.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+z(this.toString())};var j=Object.prototype.toString;function U(t){return"[object Object]"===j.call(t)}function F(t){for(var e=t.split("\n"),n=[],r=0,i=0;r<e.length;r++)n.push(i),i+=e[r].length+1;return function(t){for(var e=0,r=n.length;e<r;){var i=e+r>>1;t<n[i]?r=i:e=i+1}var s=e-1;return{line:s,column:t-n[s]}}}var q=function(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};q.prototype.addEdit=function(t,e,n,r){if(e.length){var i=[this.generatedCodeColumn,t,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(e),this.pending=null},q.prototype.addUneditedChunk=function(t,e,n,r,i){for(var s=e.start,o=!0;s<e.end;)(this.hires||o||i[s])&&this.rawSegments.push([this.generatedCodeColumn,t,r.line,r.column]),"\n"===n[s]?(r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0):(r.column+=1,this.generatedCodeColumn+=1),s+=1,o=!1;this.pending=[this.generatedCodeColumn,t,r.line,r.column]},q.prototype.advance=function(t){if(t){var e=t.split("\n");if(e.length>1){for(var n=0;n<e.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=e[e.length-1].length}};var G="\n",H={insertLeft:!1,insertRight:!1,storeName:!1},K=function(t,e){void 0===e&&(e={});var n=new V(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:e.filename},indentExclusionRanges:{writable:!0,value:e.indentExclusionRanges},sourcemapLocations:{writable:!0,value:{}},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:function(t){var e=t.split("\n"),n=e.filter(function(t){return/^\t+/.test(t)}),r=e.filter(function(t){return/^ {2,}/.test(t)});if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";var i=r.reduce(function(t,e){var n=/^ +/.exec(e)[0].length;return Math.min(n,t)},1/0);return new Array(i+1).join(" ")}(t)}}),this.byStart[0]=n,this.byEnd[t.length]=n};K.prototype.addSourcemapLocation=function(t){this.sourcemapLocations[t]=!0},K.prototype.append=function(t){if("string"!=typeof t)throw new TypeError("outro content must be a string");return this.outro+=t,this},K.prototype.appendLeft=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byEnd[t];return n?n.appendLeft(e):this.intro+=e,this},K.prototype.appendRight=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byStart[t];return n?n.appendRight(e):this.outro+=e,this},K.prototype.clone=function(){for(var t=new K(this.original,{filename:this.filename}),e=this.firstChunk,n=t.firstChunk=t.lastSearchedChunk=e.clone();e;){t.byStart[n.start]=n,t.byEnd[n.end]=n;var r=e.next,i=r&&r.clone();i&&(n.next=i,i.previous=n,n=i),e=r}return t.lastChunk=n,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),Object.keys(this.sourcemapLocations).forEach(function(e){t.sourcemapLocations[e]=!0}),t},K.prototype.generateDecodedMap=function(t){var e=this;t=t||{};var n=Object.keys(this.storedNames),r=new q(t.hires),i=F(this.original);return this.intro&&r.advance(this.intro),this.firstChunk.eachNext(function(t){var s=i(t.start);t.intro.length&&r.advance(t.intro),t.edited?r.addEdit(0,t.content,s,t.storeName?n.indexOf(t.original):-1):r.addUneditedChunk(0,t,e.original,s,e.sourcemapLocations),t.outro.length&&r.advance(t.outro)}),{file:t.file?t.file.split(/[\/\\]/).pop():null,sources:[t.source?W(t.file||"",t.source):null],sourcesContent:t.includeContent?[this.original]:[null],names:n,mappings:r.raw}},K.prototype.generateMap=function(t){return new B(this.generateDecodedMap(t))},K.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},K.prototype.indent=function(t,e){var n=/^[^\r\n]/gm;if(U(t)&&(e=t,t=void 0),""===(t=void 0!==t?t:this.indentStr||"\t"))return this;var r={};(e=e||{}).exclude&&("number"==typeof e.exclude[0]?[e.exclude]:e.exclude).forEach(function(t){for(var e=t[0];e<t[1];e+=1)r[e]=!0});var i=!1!==e.indentStart,s=function(e){return i?""+t+e:(i=!0,e)};this.intro=this.intro.replace(n,s);for(var o=0,a=this.firstChunk;a;){var h=a.end;if(a.edited)r[o]||(a.content=a.content.replace(n,s),a.content.length&&(i="\n"===a.content[a.content.length-1]));else for(o=a.start;o<h;){if(!r[o]){var u=this.original[o];"\n"===u?i=!0:"\r"!==u&&i&&(i=!1,o===a.start?a.prependRight(t):(this._splitChunk(a,o),(a=a.next).prependRight(t)))}o+=1}o=a.end,a=a.next}return this.outro=this.outro.replace(n,s),this},K.prototype.insert=function(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},K.prototype.insertLeft=function(t,e){return H.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),H.insertLeft=!0),this.appendLeft(t,e)},K.prototype.insertRight=function(t,e){return H.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),H.insertRight=!0),this.prependRight(t,e)},K.prototype.move=function(t,e,n){if(n>=t&&n<=e)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(e),this._split(n);var r=this.byStart[t],i=this.byEnd[e],s=r.previous,o=i.next,a=this.byStart[n];if(!a&&i===this.lastChunk)return this;var h=a?a.previous:this.lastChunk;return s&&(s.next=o),o&&(o.previous=s),h&&(h.next=r),a&&(a.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=h,i.next=a||null,h||(this.firstChunk=r),a||(this.lastChunk=i),this},K.prototype.overwrite=function(t,e,n,r){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;if(e>this.original.length)throw new Error("end is out of bounds");if(t===e)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(t),this._split(e),!0===r&&(H.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),H.storeName=!0),r={storeName:!0});var i=void 0!==r&&r.storeName,s=void 0!==r&&r.contentOnly;if(i){var o=this.original.slice(t,e);this.storedNames[o]=!0}var a=this.byStart[t],h=this.byEnd[e];if(a){if(e>a.end&&a.next!==this.byStart[a.end])throw new Error("Cannot overwrite across a split point");if(a.edit(n,i,s),a!==h){for(var u=a.next;u!==h;)u.edit("",!1),u=u.next;u.edit("",!1)}}else{var c=new V(t,e,"").edit(n,i);h.next=c,c.previous=h}return this},K.prototype.prepend=function(t){if("string"!=typeof t)throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this},K.prototype.prependLeft=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byEnd[t];return n?n.prependLeft(e):this.intro=e+this.intro,this},K.prototype.prependRight=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byStart[t];return n?n.prependRight(e):this.outro=e+this.outro,this},K.prototype.remove=function(t,e){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t),this._split(e);for(var n=this.byStart[t];n;)n.intro="",n.outro="",n.edit(""),n=e>n.end?this.byStart[n.end]:null;return this},K.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""},K.prototype.lastLine=function(){var t=this.outro.lastIndexOf(G);if(-1!==t)return this.outro.substr(t+1);var e=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(-1!==(t=n.outro.lastIndexOf(G)))return n.outro.substr(t+1)+e;e=n.outro+e}if(n.content.length>0){if(-1!==(t=n.content.lastIndexOf(G)))return n.content.substr(t+1)+e;e=n.content+e}if(n.intro.length>0){if(-1!==(t=n.intro.lastIndexOf(G)))return n.intro.substr(t+1)+e;e=n.intro+e}}while(n=n.previous);return-1!==(t=this.intro.lastIndexOf(G))?this.intro.substr(t+1)+e:this.intro+e},K.prototype.slice=function(t,e){for(void 0===t&&(t=0),void 0===e&&(e=this.original.length);t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;for(var n="",r=this.firstChunk;r&&(r.start>t||r.end<=t);){if(r.start<e&&r.end>=e)return n;r=r.next}if(r&&r.edited&&r.start!==t)throw new Error("Cannot use replaced character "+t+" as slice start anchor.");for(var i=r;r;){!r.intro||i===r&&r.start!==t||(n+=r.intro);var s=r.start<e&&r.end>=e;if(s&&r.edited&&r.end!==e)throw new Error("Cannot use replaced character "+e+" as slice end anchor.");var o=i===r?t-r.start:0,a=s?r.content.length+e-r.end:r.content.length;if(n+=r.content.slice(o,a),!r.outro||s&&r.end!==e||(n+=r.outro),s)break;r=r.next}return n},K.prototype.snip=function(t,e){var n=this.clone();return n.remove(0,t),n.remove(e,n.original.length),n},K.prototype._split=function(t){if(!this.byStart[t]&&!this.byEnd[t])for(var e=this.lastSearchedChunk,n=t>e.end;e;){if(e.contains(t))return this._splitChunk(e,t);e=n?this.byStart[e.end]:this.byEnd[e.start]}},K.prototype._splitChunk=function(t,e){if(t.edited&&t.content.length){var n=F(this.original)(e);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+t.original+'")')}var r=t.split(e);return this.byEnd[e]=t,this.byStart[e]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,!0},K.prototype.toString=function(){for(var t=this.intro,e=this.firstChunk;e;)t+=e.toString(),e=e.next;return t+this.outro},K.prototype.isEmpty=function(){var t=this.firstChunk;do{if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1}while(t=t.next);return!0},K.prototype.length=function(){var t=this.firstChunk,e=0;do{e+=t.intro.length+t.content.length+t.outro.length}while(t=t.next);return e},K.prototype.trimLines=function(){return this.trim("[\\r\\n]")},K.prototype.trim=function(t){return this.trimStart(t).trimEnd(t)},K.prototype.trimEndAborted=function(t){var e=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var n=this.lastChunk;do{var r=n.end,i=n.trimEnd(e);if(n.end!==r&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1},K.prototype.trimEnd=function(t){return this.trimEndAborted(t),this},K.prototype.trimStartAborted=function(t){var e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var n=this.firstChunk;do{var r=n.end,i=n.trimStart(e);if(n.end!==r&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1},K.prototype.trimStart=function(t){return this.trimStartAborted(t),this};var Y=Object.prototype.hasOwnProperty,X=function(t){void 0===t&&(t={}),this.intro=t.intro||"",this.separator=void 0!==t.separator?t.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};X.prototype.addSource=function(t){if(t instanceof K)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!U(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach(function(e){Y.call(t,e)||(t[e]=t.content[e])}),void 0===t.separator&&(t.separator=this.separator),t.filename)if(Y.call(this.uniqueSourceIndexByFilename,t.filename)){var e=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==e.content)throw new Error("Illegal source: same filename ("+t.filename+"), different contents")}else this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});return this.sources.push(t),this},X.prototype.append=function(t,e){return this.addSource({content:new K(t),separator:e&&e.separator||""}),this},X.prototype.clone=function(){var t=new X({intro:this.intro,separator:this.separator});return this.sources.forEach(function(e){t.addSource({filename:e.filename,content:e.content.clone(),separator:e.separator})}),t},X.prototype.generateDecodedMap=function(t){var e=this;void 0===t&&(t={});var n=[];this.sources.forEach(function(t){Object.keys(t.content.storedNames).forEach(function(t){~n.indexOf(t)||n.push(t)})});var r=new q(t.hires);return this.intro&&r.advance(this.intro),this.sources.forEach(function(t,i){i>0&&r.advance(e.separator);var s=t.filename?e.uniqueSourceIndexByFilename[t.filename]:-1,o=t.content,a=F(o.original);o.intro&&r.advance(o.intro),o.firstChunk.eachNext(function(e){var i=a(e.start);e.intro.length&&r.advance(e.intro),t.filename?e.edited?r.addEdit(s,e.content,i,e.storeName?n.indexOf(e.original):-1):r.addUneditedChunk(s,e,o.original,i,o.sourcemapLocations):r.advance(e.content),e.outro.length&&r.advance(e.outro)}),o.outro&&r.advance(o.outro)}),{file:t.file?t.file.split(/[\/\\]/).pop():null,sources:this.uniqueSources.map(function(e){return t.file?W(t.file,e.filename):e.filename}),sourcesContent:this.uniqueSources.map(function(e){return t.includeContent?e.content:null}),names:n,mappings:r.raw}},X.prototype.generateMap=function(t){return new B(this.generateDecodedMap(t))},X.prototype.getIndentString=function(){var t={};return this.sources.forEach(function(e){var n=e.content.indentStr;null!==n&&(t[n]||(t[n]=0),t[n]+=1)}),Object.keys(t).sort(function(e,n){return t[e]-t[n]})[0]||"\t"},X.prototype.indent=function(t){var e=this;if(arguments.length||(t=this.getIndentString()),""===t)return this;var n=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(function(r,i){var s=void 0!==r.separator?r.separator:e.separator,o=n||i>0&&/\r?\n$/.test(s);r.content.indent(t,{exclude:r.indentExclusionRanges,indentStart:o}),n="\n"===r.content.lastChar()}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,function(e,n){return n>0?t+e:e})),this},X.prototype.prepend=function(t){return this.intro=t+this.intro,this},X.prototype.toString=function(){var t=this,e=this.sources.map(function(e,n){var r=void 0!==e.separator?e.separator:t.separator;return(n>0?r:"")+e.content.toString()}).join("");return this.intro+e},X.prototype.isEmpty=function(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some(function(t){return!t.content.isEmpty()})},X.prototype.length=function(){return this.sources.reduce(function(t,e){return t+e.content.length()},this.intro.length)},X.prototype.trimLines=function(){return this.trim("[\\r\\n]")},X.prototype.trim=function(t){return this.trimStart(t).trimEnd(t)},X.prototype.trimStart=function(t){var e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),!this.intro){var n,r=0;do{if(!(n=this.sources[r++]))break}while(!n.content.trimStartAborted(t))}return this},X.prototype.trimEnd=function(t){var e,n=new RegExp((t||"\\s")+"+$"),r=this.sources.length-1;do{if(!(e=this.sources[r--])){this.intro=this.intro.replace(n,"");break}}while(!e.content.trimEndAborted(t));return this};var $="ClassDeclaration",J="ExportDefaultDeclaration",Q="FunctionDeclaration",Z="Identifier",tt="Literal",et="MemberExpression",nt="TemplateLiteral",rt=function(){function t(t){var e=void 0===t?{}:t,n=e.withNew,r=void 0!==n&&n,i=e.args,s=void 0===i?[]:i,o=e.callIdentifier,a=void 0===o?void 0:o;this.withNew=r,this.args=s,this.callIdentifier=a}return t.create=function(t){return new this(t)},t.prototype.equals=function(t){return t&&this.callIdentifier===t.callIdentifier},t}(),it={UNKNOWN_KEY:!0},st=[],ot=[it];function at(t,e){return void 0===e&&(e=null),Object.create(e,t)}var ht={UNKNOWN_VALUE:!0},ut={included:!0,getLiteralValueAtPath:function(){return ht},getReturnExpressionWhenCalledAtPath:function(){return ut},hasEffectsWhenAccessedAtPath:function(t){return t.length>0},hasEffectsWhenAssignedAtPath:function(t){return t.length>0},hasEffectsWhenCalledAtPath:function(){return!0},include:function(){},deoptimizePath:function(){},toString:function(){return"[[UNKNOWN]]"}},ct={included:!0,getLiteralValueAtPath:function(){},getReturnExpressionWhenCalledAtPath:function(){return ut},hasEffectsWhenAccessedAtPath:function(t){return t.length>0},hasEffectsWhenAssignedAtPath:function(t){return t.length>0},hasEffectsWhenCalledAtPath:function(){return!0},include:function(){},deoptimizePath:function(){},toString:function(){return"undefined"}},pt={value:{returns:null,returnsPrimitive:ut,callsArgs:null,mutatesSelf:!1}},lt={value:{returns:null,returnsPrimitive:ut,callsArgs:null,mutatesSelf:!0}},ft={value:{returns:null,returnsPrimitive:ut,callsArgs:[0],mutatesSelf:!1}},dt=function(){function t(){this.included=!1}return t.prototype.getLiteralValueAtPath=function(){return ht},t.prototype.getReturnExpressionWhenCalledAtPath=function(t){return 1===t.length?Tt(Nt,t[0]):ut},t.prototype.hasEffectsWhenAccessedAtPath=function(t){return t.length>1},t.prototype.hasEffectsWhenAssignedAtPath=function(t){return t.length>1},t.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return 1!==t.length||Lt(Nt,t[0],this.included,e,n)},t.prototype.include=function(){this.included=!0},t.prototype.deoptimizePath=function(){},t.prototype.toString=function(){return"[[UNKNOWN ARRAY]]"},t}(),mt={value:{returns:dt,returnsPrimitive:null,callsArgs:null,mutatesSelf:!1}},gt={value:{returns:dt,returnsPrimitive:null,callsArgs:null,mutatesSelf:!0}},yt={value:{returns:dt,returnsPrimitive:null,callsArgs:[0],mutatesSelf:!1}},vt={value:{returns:dt,returnsPrimitive:null,callsArgs:[0],mutatesSelf:!0}},xt={included:!0,getLiteralValueAtPath:function(){return ht},getReturnExpressionWhenCalledAtPath:function(t){return 1===t.length?Tt(Rt,t[0]):ut},hasEffectsWhenAccessedAtPath:function(t){return t.length>1},hasEffectsWhenAssignedAtPath:function(t){return t.length>0},hasEffectsWhenCalledAtPath:function(t){if(1===t.length){var e=t[0];return"string"!=typeof e||!Rt[e]}return!0},include:function(){},deoptimizePath:function(){},toString:function(){return"[[UNKNOWN BOOLEAN]]"}},_t={value:{returns:null,returnsPrimitive:xt,callsArgs:null,mutatesSelf:!1}},Et={value:{returns:null,returnsPrimitive:xt,callsArgs:[0],mutatesSelf:!1}},bt={included:!0,getLiteralValueAtPath:function(){return ht},getReturnExpressionWhenCalledAtPath:function(t){return 1===t.length?Tt(Ot,t[0]):ut},hasEffectsWhenAccessedAtPath:function(t){return t.length>1},hasEffectsWhenAssignedAtPath:function(t){return t.length>0},hasEffectsWhenCalledAtPath:function(t){if(1===t.length){var e=t[0];return"string"!=typeof e||!Ot[e]}return!0},include:function(){},deoptimizePath:function(){},toString:function(){return"[[UNKNOWN NUMBER]]"}},At={value:{returns:null,returnsPrimitive:bt,callsArgs:null,mutatesSelf:!1}},St={value:{returns:null,returnsPrimitive:bt,callsArgs:null,mutatesSelf:!0}},wt={value:{returns:null,returnsPrimitive:bt,callsArgs:[0],mutatesSelf:!1}},Pt={included:!0,getLiteralValueAtPath:function(){return ht},getReturnExpressionWhenCalledAtPath:function(t){return 1===t.length?Tt(Mt,t[0]):ut},hasEffectsWhenAccessedAtPath:function(t){return t.length>1},hasEffectsWhenAssignedAtPath:function(t){return t.length>0},hasEffectsWhenCalledAtPath:function(t,e,n){return 1!==t.length||Lt(Mt,t[0],!0,e,n)},include:function(){},deoptimizePath:function(){},toString:function(){return"[[UNKNOWN STRING]]"}},It={value:{returns:null,returnsPrimitive:Pt,callsArgs:null,mutatesSelf:!1}},kt=function(){function t(){this.included=!1}return t.prototype.getLiteralValueAtPath=function(){return ht},t.prototype.getReturnExpressionWhenCalledAtPath=function(t){return 1===t.length?Tt(Ct,t[0]):ut},t.prototype.hasEffectsWhenAccessedAtPath=function(t){return t.length>1},t.prototype.hasEffectsWhenAssignedAtPath=function(t){return t.length>1},t.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return 1!==t.length||Lt(Ct,t[0],this.included,e,n)},t.prototype.include=function(){this.included=!0},t.prototype.deoptimizePath=function(){},t.prototype.toString=function(){return"[[UNKNOWN OBJECT]]"},t}(),Ct=at({hasOwnProperty:_t,isPrototypeOf:_t,propertyIsEnumerable:_t,toLocaleString:It,toString:It,valueOf:pt}),Nt=at({concat:mt,copyWithin:gt,every:Et,fill:gt,filter:yt,find:ft,findIndex:wt,forEach:ft,includes:_t,indexOf:At,join:It,lastIndexOf:At,map:yt,pop:lt,push:St,reduce:ft,reduceRight:ft,reverse:gt,shift:lt,slice:mt,some:Et,sort:vt,splice:gt,unshift:St},Ct),Rt=at({valueOf:_t},Ct),Ot=at({toExponential:It,toFixed:It,toLocaleString:It,toPrecision:It,valueOf:At},Ct),Mt=at({charAt:It,charCodeAt:At,codePointAt:At,concat:It,includes:_t,endsWith:_t,indexOf:At,lastIndexOf:At,localeCompare:At,match:_t,normalize:It,padEnd:It,padStart:It,repeat:It,replace:{value:{returns:null,returnsPrimitive:Pt,callsArgs:[1],mutatesSelf:!1}},search:At,slice:It,split:mt,startsWith:_t,substr:It,substring:It,toLocaleLowerCase:It,toLocaleUpperCase:It,toLowerCase:It,toUpperCase:It,trim:It,valueOf:It},Ct);function Lt(t,e,n,r,i){if("string"!=typeof e||!t[e])return!0;if(t[e].mutatesSelf&&n)return!0;if(!t[e].callsArgs)return!1;for(var s=0,o=t[e].callsArgs;s<o.length;s++){var a=o[s];if(r.args[a]&&r.args[a].hasEffectsWhenCalledAtPath(st,rt.create({withNew:!1,args:[],callIdentifier:{}}),i.getHasEffectsWhenCalledOptions()))return!0}return!1}function Tt(t,e){return"string"==typeof e&&t[e]?null!==t[e].returnsPrimitive?t[e].returnsPrimitive:new t[e].returns:ut}var Dt=function(){function t(t){this.exportName=null,this.safeExportName=null,this.included=!1,this.isId=!1,this.reexported=!1,this.isReassigned=!1,this.name=t,this.safeName=null}return t.prototype.addReference=function(t){},t.prototype.getName=function(t){return t&&this.safeName&&this.safeName!==this.name&&"$"===this.safeName[this.name.length]&&"$"===this.safeName[this.name.length+1]?(this.safeName=void 0,this.name):this.safeName||this.name},t.prototype.getLiteralValueAtPath=function(t,e,n){return ht},t.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return ut},t.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>0},t.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return!0},t.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return!0},t.prototype.include=function(){this.included=!0},t.prototype.deoptimizePath=function(t){},t.prototype.setSafeName=function(t){this.safeName=t},t.prototype.toString=function(){return this.name},t}(),Vt=function(t){function e(e,n,r,i){var s=t.call(this,e)||this;return s.additionalInitializers=null,s.expressionsToBeDeoptimized=[],s.declarations=n?[n]:[],s.init=r,s.deoptimizationTracker=i,s}return n(e,t),e.prototype.addDeclaration=function(t,e){this.declarations.push(t),null===this.additionalInitializers&&(this.additionalInitializers=null===this.init?[]:[this.init],this.init=ut,this.isReassigned=!0),null!==e&&this.additionalInitializers.push(e)},e.prototype.consolidateInitializers=function(){if(null!==this.additionalInitializers){for(var t=0,e=this.additionalInitializers;t<e.length;t++){e[t].deoptimizePath(ot)}this.additionalInitializers=null}},e.prototype.getLiteralValueAtPath=function(t,e,n){return this.isReassigned||!this.init||t.length>7||e.isTracked(this.init,t)?ht:(this.expressionsToBeDeoptimized.push(n),this.init.getLiteralValueAtPath(t,e.track(this.init,t),n))},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return this.isReassigned||!this.init||t.length>7||e.isTracked(this.init,t)?ut:(this.expressionsToBeDeoptimized.push(n),this.init.getReturnExpressionWhenCalledAtPath(t,e.track(this.init,t),n))},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return 0!==t.length&&(this.isReassigned||t.length>7||this.init&&!e.hasNodeBeenAccessedAtPath(t,this.init)&&this.init.hasEffectsWhenAccessedAtPath(t,e.addAccessedNodeAtPath(t,this.init)))},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return!!(this.included||t.length>7)||0!==t.length&&(this.isReassigned||this.init&&!e.hasNodeBeenAssignedAtPath(t,this.init)&&this.init.hasEffectsWhenAssignedAtPath(t,e.addAssignedNodeAtPath(t,this.init)))},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return t.length>7||(this.isReassigned||this.init&&!n.hasNodeBeenCalledAtPathWithOptions(t,this.init,e)&&this.init.hasEffectsWhenCalledAtPath(t,e,n.addCalledNodeAtPathWithOptions(t,this.init,e)))},e.prototype.include=function(){if(!this.included){this.included=!0;for(var t=0,e=this.declarations;t<e.length;t++){var n=e[t];n.included||n.include();for(var r=n.parent;!r.included&&(r.included=!0,"Program"!==r.type);)r=r.parent}}},e.prototype.deoptimizePath=function(t){if(!(t.length>7||this.isReassigned||this.deoptimizationTracker.track(this,t)))if(0===t.length){if(!this.isReassigned){this.isReassigned=!0;for(var e=0,n=this.expressionsToBeDeoptimized;e<n.length;e++){n[e].deoptimizeCache()}this.init&&this.init.deoptimizePath(ot)}}else this.init&&this.init.deoptimizePath(t)},e}(Dt);function zt(t){return t.isDefault}Vt.prototype.isLocal=!0;var Bt=function(t){function e(e,n,r){var i=t.call(this,e,n,n.declaration,r)||this;i.originalId=null;var s=n.declaration;return s.type!==Q&&s.type!==$||!s.id?s.type===Z&&(i.originalId=s):(i.hasId=!0,i.originalId=s.id),i}return n(e,t),e.prototype.addReference=function(t){this.hasId||(this.name=t.name)},e.prototype.getName=function(t){return!t&&this.safeName?this.safeName:this.referencesOriginal()?this.originalId.variable.getName():this.name},e.prototype.referencesOriginal=function(){return this.originalId&&(this.hasId||!this.originalId.variable.isReassigned)},e.prototype.getOriginalVariableName=function(){return this.originalId&&this.originalId.name||null},e}(Vt);Bt.prototype.isDefault=!0;var Wt={},jt="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),Ut="Int8x16 Int16x8 Int32x4 Float32x4 Float64x2".split(" "),Ft="abs add and bool check div equal extractLane fromFloat32x4 fromFloat32x4Bits fromFloat64x2 fromFloat64x2Bits fromInt16x8Bits fromInt32x4 fromInt32x4Bits fromInt8x16Bits greaterThan greaterThanOrEqual lessThan lessThanOrEqual load max maxNum min minNum mul neg not notEqual or reciprocalApproximation reciprocalSqrtApproximation replaceLane select selectBits shiftLeftByScalar shiftRightArithmeticByScalar shiftRightLogicalByScalar shuffle splat sqrt store sub swizzle xor".split(" "),qt=[];Ut.forEach(function(t){Ft.forEach(function(e){qt.push("SIMD."+t+"."+e)})}),["Array.isArray","Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape","Object","Object.create","Object.getNotifier","Object.getOwn","Object.getOwnPropertyDescriptor","Object.getOwnPropertyNames","Object.getOwnPropertySymbols","Object.getPrototypeOf","Object.is","Object.isExtensible","Object.isFrozen","Object.isSealed","Object.keys","Boolean","Number","Number.isFinite","Number.isInteger","Number.isNaN","Number.isSafeInteger","Number.parseFloat","Number.parseInt","Symbol","Symbol.for","Symbol.keyFor","Math.abs","Math.acos","Math.acosh","Math.asin","Math.asinh","Math.atan","Math.atan2","Math.atanh","Math.cbrt","Math.ceil","Math.clz32","Math.cos","Math.cosh","Math.exp","Math.expm1","Math.floor","Math.fround","Math.hypot","Math.imul","Math.log","Math.log10","Math.log1p","Math.log2","Math.max","Math.min","Math.pow","Math.random","Math.round","Math.sign","Math.sin","Math.sinh","Math.sqrt","Math.tan","Math.tanh","Math.trunc","Date","Date.UTC","Date.now","Date.parse","String","String.fromCharCode","String.fromCodePoint","String.raw","RegExp","Map","Set","WeakMap","WeakSet","ArrayBuffer","ArrayBuffer.isView","DataView","Promise.all","Promise.race","Promise.resolve","Intl.Collator","Intl.Collator.supportedLocalesOf","Intl.DateTimeFormat","Intl.DateTimeFormat.supportedLocalesOf","Intl.NumberFormat","Intl.NumberFormat.supportedLocalesOf"].concat(jt,jt.map(function(t){return t+".from"}),jt.map(function(t){return t+".of"}),Ut.map(function(t){return"SIMD."+t}),qt).forEach(function(t){return Wt[t]=!0});var Gt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.included=!0,e}return n(e,t),e.prototype.hasEffectsWhenAccessedAtPath=function(t){return t.length>0&&!this.isPureFunctionMember(t)&&!("Reflect"===this.name&&1===t.length)},e.prototype.hasEffectsWhenCalledAtPath=function(t){return!Wt[[this.name].concat(t).join(".")]},e.prototype.isPureFunctionMember=function(t){return Wt[[this.name].concat(t).join(".")]||t.length>=1&&Wt[[this.name].concat(t.slice(0,-1)).join(".")]||t.length>=2&&Wt[[this.name].concat(t.slice(0,-2)).join(".")]&&"prototype"===t[t.length-2]},e}(Dt),Ht=function(t){function e(e,n){var r=t.call(this,n)||this;return r.module=e,r.isNamespace="*"===n,r.referenced=!1,r}return n(e,t),e.prototype.addReference=function(t){this.referenced=!0,"default"!==this.name&&"*"!==this.name||this.module.suggestName(t.name)},e.prototype.include=function(){this.included||(this.included=!0,this.module.used=!0)},e}(Dt);Ht.prototype.isExternal=!0;var Kt="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public".split(" "),Yt="Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "),Xt=Object.create(null);Kt.concat(Yt).forEach(function(t){return Xt[t]=!0});var $t=/[^$_a-zA-Z0-9]/g,Jt=function(t){return/\d/.test(t[0])};function Qt(t){return t=t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()}).replace($t,"_"),(Jt(t)||Xt[t])&&(t="_"+t),t}var Zt=/^(?:\/|(?:[A-Za-z]:)?[\\|\/])/,te=/^\.?\.\//;function ee(t){return Zt.test(t)}function ne(t){return te.test(t)}function re(t){return t.replace(/\\/g,"/")}function ie(t){return t.split(/(\/|\\)/).pop()}function se(t){var e=/(\/|\\)[^\/\\]*$/.exec(t);if(!e)return".";var n=t.slice(0,-e[0].length);return n||"/"}function oe(t){var e=/\.[^.]+$/.exec(ie(t));return e?e[0]:""}function ae(t,e){for(var n=t.split(/[\/\\]/).filter(Boolean),r=e.split(/[\/\\]/).filter(Boolean);n[0]&&r[0]&&n[0]===r[0];)n.shift(),r.shift();for(;"."===r[0]||".."===r[0];){".."===r.shift()&&n.pop()}for(;n.pop();)r.unshift("..");return r.join("/")}function he(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift().split(/[\/\\]/);return t.forEach(function(t){if(ee(t))n=t.split(/[\/\\]/);else{for(var e=t.split(/[\/\\]/);"."===e[0]||".."===e[0];){".."===e.shift()&&n.pop()}n.push.apply(n,e)}}),n.join("/")}var ue=function(){function t(t){var e=t.graph,n=t.id;this.exportsNames=!1,this.exportsNamespace=!1,this.renderPath=void 0,this.renormalizeRenderPath=!1,this.isExternal=!0,this.isEntryPoint=!1,this.mostCommonSuggestion=0,this.reexported=!1,this.used=!1,this.execIndex=void 0,this.graph=e,this.id=n;var r=n.split(/[\\\/]/);this.name=Qt(r.pop()),this.nameSuggestions=Object.create(null),this.declarations=Object.create(null),this.exportedVariables=new Map}return t.prototype.setRenderPath=function(t,e){return t.paths&&(this.renderPath="function"==typeof t.paths?t.paths(this.id):t.paths[this.id]),this.renderPath||(ee(this.id)?(this.renderPath=re(ae(e,this.id)),this.renormalizeRenderPath=!0):this.renderPath=this.id),this.renderPath},t.prototype.suggestName=function(t){this.nameSuggestions[t]||(this.nameSuggestions[t]=0),this.nameSuggestions[t]+=1,this.nameSuggestions[t]>this.mostCommonSuggestion&&(this.mostCommonSuggestion=this.nameSuggestions[t],this.name=t)},t.prototype.warnUnusedImports=function(){var t=this,e=Object.keys(this.declarations).filter(function(e){if("*"===e)return!1;var n=t.declarations[e];return!n.included&&!t.reexported&&!n.referenced});if(0!==e.length){var n=1===e.length?"'"+e[0]+"' is":e.slice(0,-1).map(function(t){return"'"+t+"'"}).join(", ")+" and '"+e.slice(-1)+"' are";this.graph.warn({code:"UNUSED_EXTERNAL_IMPORT",source:this.id,names:e,message:n+" imported from external module '"+this.id+"' but never used"})}},t.prototype.traceExport=function(t,e){"default"!==t&&"*"!==t&&(this.exportsNames=!0),"*"===t&&(this.exportsNamespace=!0);var n=this.declarations[t];return n||(this.declarations[t]=n=new Ht(this,t),this.exportedVariables.set(n,t),n)},t}(),ce="Object.defineProperty(exports, '__esModule', { value: true });",pe="Object.defineProperty(exports,'__esModule',{value:true});";function le(t,e,n,r,i,s){void 0===s&&(s="return ");var o,a=i?"":" ";if(!n)return t.some(function(t){return"default"===t.exported&&(o=t.local,!0)}),o||e.some(function(t){return!!t.reexports&&t.reexports.some(function(e){return"default"===e.reexported&&(o=t.namedExportsMode?t.name+"."+e.imported:t.name,!0)})}),""+s+o+";";var h="";return e.forEach(function(t){var e=t.name,r=t.reexports;r&&n&&r.forEach(function(t){"*"===t.reexported&&(!i&&h&&(h+="\n"),h+="Object.keys("+e+").forEach(function"+a+"(key)"+a+"{"+a+"exports[key]"+a+"="+a+e+"[key];"+a+"});")})}),e.forEach(function(t){var e=t.name,s=t.imports,o=t.reexports,u=t.isChunk;o&&n&&o.forEach(function(t){if("default"!==t.imported||u)"*"!==t.imported?(h&&!i&&(h+="\n"),h+="exports."+t.reexported+a+"="+a+e+"."+t.imported+";"):"*"!==t.reexported&&(h&&!i&&(h+="\n"),h+="exports."+t.reexported+a+"="+a+e+";");else{var n=s&&s.some(function(t){return"*"===t.imported||"default"!==t.imported})||o&&o.some(function(t){return"default"!==t.imported&&"*"!==t.imported});h&&!i&&(h+="\n"),h+=n?"exports."+t.reexported+a+"="+a+e+(!1!==r?"__default":".default")+";":"exports."+t.reexported+a+"="+a+e+";"}})}),t.forEach(function(t){var e="exports."+t.exported,n=t.local;e!==n&&(h&&!i&&(h+="\n"),h+=""+e+a+"="+a+n+";")}),h}function fe(t,e,n){return t.map(function(t){var r=t.name,i=t.exportsNames,s=t.exportsDefault;if(t.namedExportsMode)return s&&!1!==e.interop?i?e.compact?n+" "+r+"__default='default'in "+r+"?"+r+"['default']:"+r+";":n+" "+r+"__default = 'default' in "+r+" ? "+r+"['default'] : "+r+";":e.compact?r+"="+r+"&&"+r+".hasOwnProperty('default')?"+r+"['default']:"+r+";":r+" = "+r+" && "+r+".hasOwnProperty('default') ? "+r+"['default'] : "+r+";":null}).filter(Boolean).join(e.compact?"":"\n")}var de={process:!0,events:!0,stream:!0,util:!0,path:!0,buffer:!0,querystring:!0,url:!0,string_decoder:!0,punycode:!0,http:!0,https:!0,os:!0,assert:!0,constants:!0,timers:!0,console:!0,vm:!0,zlib:!0,tty:!0,domain:!0};function me(t,e){var n=e.map(function(t){return t.id}).filter(function(t){return t in de});if(n.length){var r=1===n.length?"module ('"+n[0]+"')":"modules ("+n.slice(0,-1).map(function(t){return"'"+t+"'"}).join(", ")+" and '"+n.slice(-1)+"')";t.warn({code:"MISSING_NODE_BUILTINS",modules:n,message:"Creating a browser bundle that depends on Node.js built-in "+r+". You might need to include https://www.npmjs.com/package/rollup-plugin-node-builtins"})}}function ge(t,e,n){if("number"==typeof n)throw new Error("locate takes a { startIndex, offsetLine, offsetColumn } object as the third argument");return function(t,e){void 0===e&&(e={});var n=e.offsetLine||0,r=e.offsetColumn||0,i=t.split("\n"),s=0,o=i.map(function(t,e){var n=s+t.length+1,r={start:s,end:n,line:e};return s=n,r}),a=0;function h(t,e){return t.start<=e&&e<t.end}function u(t,e){return{line:n+t.line,column:r+e-t.start,character:e}}return function(e,n){"string"==typeof e&&(e=t.indexOf(e,n||0));for(var r=o[a],i=e>=r.end?1:-1;r;){if(h(r,e))return u(r,e);r=o[a+=i]}}}(t,n)(e,n&&n.startIndex)}function ye(t){return t.replace(/^\t+/,function(t){return t.split("\t").join(" ")})}function ve(t,e,n){var r=t.split("\n"),i=Math.max(0,e-3),s=Math.min(e+2,r.length);for(r=r.slice(i,s);!/\S/.test(r[r.length-1]);)r.pop(),s-=1;var o=String(s).length;return r.map(function(t,r){for(var s=i+r+1===e,a=String(r+i+1);a.length<o;)a=" "+a;if(s){var h=function(t){for(var e="";t--;)e+=" ";return e}(o+2+ye(t.slice(0,n)).length)+"^";return a+": "+ye(t)+"\n"+h}return a+": "+ye(t)}).join("\n")}function xe(t,e){throw t instanceof Error==!1&&(t=Object.assign(new Error(t.message),t)),e&&Object.assign(t,e),t}function _e(t,e,n,r){if(void 0!==e.line&&void 0!==e.column){var i=e.line,s=e.column;t.loc={file:r,line:i,column:s}}else{t.pos=e;var o=ge(n,e,{offsetLine:1});i=o.line,s=o.column;t.loc={file:r,line:i,column:s}}if(void 0===t.frame){var a=t.loc;i=a.line,s=a.column;t.frame=ve(n,i,s)}}var Ee=/^[a-zA-Z$_][a-zA-Z0-9$_]*$/;function be(t){return Ee.test(t)?"."+t:"['"+t+"']"}function Ae(t){return t.split(".").map(be).join("")}function Se(t,e,n,r,i){var s=t.split(".");r&&(s[0]=("function"==typeof r?r(s[0]):r[s[0]])||s[0]);var o=i?"":" ",a=s.pop(),h=e;return n?s.map(function(t){return""+(h+=be(t))+o+"="+o+h+o+"||"+o+"{}"}).concat(""+h+be(a)).join(","+o):s.map(function(t){return""+(h+=be(t))+o+"="+o+h+o+"||"+o+"{}"+(i?"":";")}).join(i?",":"\n")+(i&&s.length?";":"\n")}function we(t){for(var e=t.length;e--;){var n=t[e];if(n.exportsDefault||n.exportsNames)return t.slice(0,e+1)}return[]}var Pe=function(t){return"this"+Ae(t)};function Ie(t){return t?"global"+Ae(t):"null"}var ke={system:function(t,e,n){var r,i=e.graph,s=e.indentString,o=e.intro,a=e.outro,h=e.dependencies,u=e.exports,c=e.usesTopLevelAwait,p=n.compact?"":"\n",l=n.compact?"":" ",f=h.map(function(t){return"'"+t.id+"'"}),d=[],m=[],g=i.varOrConst;h.forEach(function(t){var e=t.imports,n=t.reexports,i=[];if(e&&e.forEach(function(t){d.push(t.local),"*"===t.imported?i.push(""+t.local+l+"="+l+"module;"):i.push(""+t.local+l+"="+l+"module."+t.imported+";")}),n){var o=!1;n.length>1||1===n.length&&("*"===n[0].reexported||"*"===n[0].imported)?(n.forEach(function(t){"*"===t.reexported&&(r||(r=function(t){var e=t.dependencies,n=t.exports,r=new Set(n.map(function(t){return t.exported}));return r.has("default")||r.add("default"),e.forEach(function(t){var e=t.reexports;e&&e.forEach(function(t){"*"===t.imported||r.has(t.reexported)||r.add(t.reexported)})}),r}({dependencies:h,exports:u})),o||(i.push(g+" _setter"+l+"="+l+"{};"),o=!0),i.push("for"+l+"(var _$p"+l+"in"+l+"module)"+l+"{"),i.push(s+"if"+l+"(!_starExcludes[_$p])"+l+"_setter[_$p]"+l+"="+l+"module[_$p];"),i.push("}"))}),n.forEach(function(t){"*"===t.imported&&"*"!==t.reexported&&i.push("exports('"+t.reexported+"',"+l+"module);")}),n.forEach(function(t){"*"!==t.reexported&&"*"!==t.imported&&(o||(i.push(g+" _setter"+l+"="+l+"{};"),o=!0),i.push("_setter."+t.reexported+l+"="+l+"module."+t.imported+";"))}),o&&i.push("exports(_setter);")):n.forEach(function(t){i.push("exports('"+t.reexported+"',"+l+"module."+t.imported+");")})}m.push(i.join(""+p+s+s+s))});var y=[],v=u.filter(function(t){return t.hoisted||t.uninitialized});if(1===v.length){var x=v[0];y.push("exports('"+x.exported+"',"+l+(x.uninitialized?"void 0":x.local)+");")}else if(v.length>1){y.push("exports({");for(var _=0;_<v.length;_++)x=v[_],y.push(""+s+x.exported+":"+l+(x.uninitialized?"void 0":x.local)+(_===v.length-1?"":","));y.push("});")}var E=r?""+p+s+g+" _starExcludes"+l+"="+l+"{"+l+Array.from(r).join(":"+l+"1,"+l)+(r.size?":"+l+"1":"")+l+"};":"",b=d.length?""+p+s+"var "+d.join(","+l)+";":"",A="System.register("+(n.name?"'"+n.name+"',"+l:"")+"["+f.join(","+l)+"],"+l+"function"+l+"(exports,"+l+"module)"+l+"{"+p;A+=s+"'use strict';"+E+b+p,A+=s+"return"+l+"{"+(m.length?""+p+s+s+"setters:"+l+"["+m.map(function(t){return t?"function"+l+"(module)"+l+"{"+p+s+s+s+t+p+s+s+"}":"function"+l+"()"+l+"{}"}).join(","+l)+"],":"")+p,A+=""+s+s+"execute:"+l+(c?"async"+l:"")+"function"+l+"()"+l+"{"+p+p,y.length&&(A+=""+s+s+s+y.join(""+p+s+s+s)+p+p);var S=""+p+p+s+s+"}";return S+=""+p+s+"}"+(n.compact?"":";"),S+=p+"});",o&&t.prepend(o),a&&t.append(a),t.indent(""+s+s+s).append(S).prepend(A)},amd:function(t,e,n){var r=e.graph,i=e.namedExportsMode,s=e.hasExports,o=e.indentString,a=e.intro,h=e.outro,u=e.dynamicImport,c=e.needsAmdModule,p=e.dependencies,l=e.exports,f=e.isEntryModuleFacade;me(r,p);var d=p.map(function(t){return"'"+t.id+"'"}),m=p.map(function(t){return t.name}),g=n.compact?"":"\n",y=n.compact?"":" ";i&&s&&(m.unshift("exports"),d.unshift("'exports'")),u&&(m.unshift("require"),d.unshift("'require'")),c&&(m.unshift("module"),d.unshift("'module'"));var v=n.amd||{},x=(v.id?"'"+v.id+"',"+y:"")+(d.length?"["+d.join(","+y)+"],"+y:""),_=!1!==n.strict?y+"'use strict';":"",E=(v.define||"define")+"("+x+"function"+y+"("+m.join(","+y)+")"+y+"{"+_+g+g,b=fe(p,n,r.varOrConst);b&&t.prepend(b+g+g),a&&t.prepend(a);var A=le(l,p,i,n.interop,n.compact);return A&&t.append(g+g+A),i&&s&&f&&n.esModule&&t.append(""+g+g+(n.compact?pe:ce)),h&&t.append(h),t.indent(o).append(g+g+"});").prepend(E)},cjs:function(t,e,n){var r=e.graph,i=e.isEntryModuleFacade,s=e.namedExportsMode,o=e.hasExports,a=e.intro,h=e.outro,u=e.dependencies,c=e.exports,p=n.compact?"":"\n",l=n.compact?"":" ";a=(!1===n.strict?a:"'use strict';"+p+p+a)+(s&&o&&i&&n.esModule?""+(n.compact?pe:ce)+p+p:"");var f,d=!1,m=r.varOrConst,g=!1!==n.interop;if(n.compact){var y=!1;f="",u.forEach(function(t){var e=t.id,n=t.namedExportsMode,r=t.isChunk,i=t.name,s=t.reexports,o=t.imports,a=t.exportsNames,h=t.exportsDefault;s||o?(f+=y?",":(f?";":"")+m+" ",y=!0,g&&!r&&h&&n?(d=!0,f+=a?i+"=require('"+e+"'),"+i+"__default=_interopDefault("+i+")":i+"=_interopDefault(require('"+e+"'))"):f+=i+"=require('"+e+"')"):(f+=y?";":",",y=!1,f+="require('"+e+"')")}),f.length&&(f+=";")}else f=u.map(function(t){var e=t.id,n=t.namedExportsMode,r=t.isChunk,i=t.name,s=t.reexports,o=t.imports,a=t.exportsNames,h=t.exportsDefault;return s||o?g&&!r&&h&&n?(d=!0,a?m+" "+i+" = require('"+e+"');\n"+m+" "+i+"__default = _interopDefault("+i+");":m+" "+i+" = _interopDefault(require('"+e+"'));"):m+" "+i+" = require('"+e+"');":"require('"+e+"');"}).join("\n");d&&(n.compact?a+="function _interopDefault(e){return(e&&(typeof e==='object')&&'default'in e)?e['default']:e}":a+="function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\n"),f&&(a+=f+p+p);var v=le(c,u,s,n.interop,n.compact,"module.exports"+l+"="+l);return t.prepend(a),v&&t.append(p+p+v),h&&t.append(h),t},es:function(t,e,n){var r=e.intro,i=e.outro,s=e.dependencies,o=e.exports,a=n.compact?"":" ",h=n.compact?"":"\n",u=s.map(function(t){var e=t.id,n=t.reexports,r=t.imports,i=t.name;if(!n&&!r)return"import"+a+"'"+e+"';";var s="";if(r){var o=r.find(function(t){return"default"===t.imported}),u=r.find(function(t){return"*"===t.imported});u&&(s+="import"+a+"*"+a+"as "+u.local+" from"+a+"'"+e+"';",r.length>1&&(s+=h)),o&&1===r.length?s+="import "+o.local+" from"+a+"'"+e+"';":(!u||r.length>1)&&(s+="import "+(o?o.local+","+a:"")+"{"+a+r.filter(function(t){return t!==o&&t!==u}).map(function(t){return t.imported===t.local?t.imported:t.imported+" as "+t.local}).join(","+a)+a+"}"+a+"from"+a+"'"+e+"';")}if(n){r&&(s+=h);var c=n.find(function(t){return"*"===t.reexported}),p=n.find(function(t){return"*"===t.imported&&"*"!==t.reexported});if(c){if(s+="export"+a+"*"+a+"from"+a+"'"+e+"';",1===n.length)return s;s+=h}if(p){if(r&&r.some(function(t){return"*"===t.imported&&t.local===i})||(s+="import"+a+"*"+a+"as "+i+" from"+a+"'"+e+"';"+h),s+="export"+a+"{"+a+(i===p.reexported?i:i+" as "+p.reexported)+" };",n.length===(c?2:1))return s;s+=h}s+="export"+a+"{"+a+n.filter(function(t){return t!==c&&t!==p}).map(function(t){return t.imported===t.reexported?t.imported:t.imported+" as "+t.reexported}).join(","+a)+a+"}"+a+"from"+a+"'"+e+"';"}return s}).join(h);u&&(r+=u+h+h),r&&t.prepend(r);var c=[],p=[];return o.forEach(function(t){"default"===t.exported?c.push("export default "+t.local+";"):p.push(t.exported===t.local?t.local:t.local+" as "+t.exported)}),p.length&&c.push("export"+a+"{"+a+p.join(","+a)+a+"};"),c.length&&t.append(h+h+c.join(h).trim()),i&&t.append(i),t.trim()},iife:function(t,e,n){var r,i=e.graph,s=e.namedExportsMode,o=e.hasExports,a=e.indentString,h=e.intro,u=e.outro,c=e.dependencies,p=e.exports,l=n.compact?"":" ",f=n.compact?"":"\n",d=n.extend,m=n.name,g=m&&-1!==m.indexOf(".");m&&!d&&!g&&(Jt(r=m)||Xt[r]||$t.test(r))&&xe({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:"Given name ("+m+") is not legal JS identifier. If you need this you can try --extend option"}),me(i,c);var y=we(c),v=y.map(function(t){return t.globalName||"null"}),x=y.map(function(t){return t.name});o&&!m&&xe({code:"INVALID_OPTION",message:"You must supply output.name for IIFE bundles"}),d?(v.unshift("("+Pe(m)+l+"="+l+Pe(m)+l+"||"+l+"{})"),x.unshift("exports")):s&&o&&(v.unshift("{}"),x.unshift("exports"));var _="(function"+l+"("+x+")"+l+"{"+f+(!1!==n.strict?a+"'use strict';"+f+f:"");o&&!d&&(_=(g?Pe(m):i.varOrConst+" "+m)+(l+"=")+l+_),g&&(_=Se(m,"this",!1,n.globals,n.compact)+_);var E=""+f+f+"}("+v+"));";!d&&s&&o&&(E=""+f+f+a+"return exports;"+E);var b=fe(c,n,i.varOrConst);b&&t.prepend(b+f+f),h&&t.prepend(h);var A=le(p,c,s,n.interop,n.compact);return A&&t.append(f+f+A),u&&t.append(u),t.indent(a).prepend(_).append(E)},umd:function(t,e,n){var r=e.graph,i=e.namedExportsMode,s=e.hasExports,o=e.indentString,a=e.intro,h=e.outro,u=e.dependencies,c=e.exports,p=n.compact?"":" ",l=n.compact?"":"\n",f=l+l+"})));";s&&!n.name&&xe({code:"INVALID_OPTION",message:"You must supply output.name for UMD bundles"}),me(r,u);var d=u.map(function(t){return"'"+t.id+"'"}),m=u.map(function(t){return"require('"+t.id+"')"}),g=we(u),y=g.map(function(t){return Ie(t.globalName)}),v=g.map(function(t){return t.name});i&&s&&(d.unshift("'exports'"),m.unshift("exports"),y.unshift("("+Se(n.name,"global",!0,n.globals,n.compact)+p+"="+p+(n.extend?""+Ie(n.name)+p+"||"+p:"")+"{})"),v.unshift("exports"));var x,_,E,b,A,S=n.amd||{},w=(S.id?"'"+S.id+"',"+p:"")+(d.length?"["+d.join(","+p)+"],"+p:""),P=S.define||"define",I=!i&&s?"module.exports"+p+"="+p:"",k=!i&&s?""+Se(n.name,"global",!0,n.globals,n.compact)+p+"="+p:"",C=!1!==n.strict?p+"'use strict';"+l:"";if(!0===n.noConflict){var N=void 0;!i&&s?N="var exports"+p+"="+p+"factory("+y+");":i&&(N="var exports"+p+"="+p+y.shift()+";"+l,N+=""+o+o+"factory("+["exports"].concat(y)+");"),x="(function()"+p+"{"+l,x+=""+o+o+"var current"+p+"="+p+(_=n.name,E=n.compact,b=_.split("."),A="global",b.map(function(t){return A+=be(t)}).join(E?"&&":" && "))+";"+l,x+=""+o+o+N+l,x+=""+o+o+Ie(n.name)+p+"="+p+"exports;"+l,x+=""+o+o+"exports.noConflict"+p+"="+p+"function()"+p+"{"+p,x+=""+Ie(n.name)+p+"="+p+"current;"+p+"return exports"+(n.compact?"":"; ")+"};"+l,x+=o+"})()"}else x="("+k+"factory("+y+"))";var R="(function"+p+"(global,"+p+"factory)"+p+"{"+l;R+=o+"typeof exports"+p+"==="+p+"'object'"+p+"&&"+p+"typeof module"+p+"!=="+p+"'undefined'"+p+"?",R+=""+p+I+"factory("+m.join(","+p)+")"+p+":"+l,R+=o+"typeof "+P+p+"==="+p+"'function'"+p+"&&"+p+P+".amd"+p+"?"+p+P+"("+w+"factory)"+p+":"+l,R+=""+o+x+";"+l,R+="}(this,"+p+"(function"+p+"("+v+")"+p+"{"+C+l;var O=fe(u,n,r.varOrConst);O&&t.prepend(O+l+l),a&&t.prepend(a);var M=le(c,u,i,n.interop,n.compact);return M&&t.append(l+l+M),i&&s&&n.esModule&&t.append(l+l+(n.compact?pe:ce)),h&&t.append(h),t.trim().indent(o).append(f).prepend(R)}},Ce=Object.create(null),Ne={isNoStatement:!0};function Re(t,e,n){var r,i;for(void 0===n&&(n=0),r=t.indexOf(e,n);;){if(-1===(n=t.indexOf("/",n))||n>r)return r;if(i=t.charCodeAt(++n),++n,47===i){if(0===(n=t.indexOf("\n",n)+1))return-1;n>r&&(r=t.indexOf(e,n))}else 42===i&&(n=t.indexOf("*/",n)+2)>r&&(r=t.indexOf(e,n))}}function Oe(t,e){var n,r;for(void 0===e&&(e=0),n=t.indexOf("\n",e);;){if(-1===(e=t.indexOf("/",e))||e>n)return n;if(47===(r=t.charCodeAt(++e)))return n;++e,42===r&&(e=t.indexOf("*/",e)+2)>n&&(n=t.indexOf("\n",e))}}function Me(t,e,n,r,i){if(0!==t.length){var s,o,a,h,u=t[0],c=!u.included||u.needsBoundaries;c&&(h=n+Oe(e.original.slice(n,u.start))+1);for(var p=1;p<=t.length;p++)s=u,o=h,a=c,c=void 0!==(u=t[p])&&(!u.included||u.needsBoundaries),a||c?(h=s.end+Oe(e.original.slice(s.end,void 0===u?r:u.start))+1,s.included?a?s.render(e,i,{start:o,end:h}):s.render(e,i):e.remove(o,h)):s.render(e,i)}}function Le(t,e,n,r){for(var i,s,o,a,h,u=[],c=n-1,p=0;p<t.length;p++){for(s=t[p],void 0!==i&&(c=i.end+Re(e.original.slice(i.end,s.start),",")),o=a=c+2+Oe(e.original.slice(c+1,s.start));32===(h=e.original.charCodeAt(o))||9===h||10===h||13===h;)o++;void 0!==i&&u.push({node:i,start:n,contentEnd:a,separator:c,end:o}),i=s,n=o}return u.push({node:i,start:n,separator:null,contentEnd:r,end:r}),u}var Te="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$";function De(t,e){void 0===e&&(e=!1);var n="",r=e?63:64;do{var i=t%r;t=Math.floor(t/r),n=Te[i]+n}while(0!==t);return n}var Ve,ze=function(){function t(t){void 0===t&&(t=null),this.isModuleScope=!1,this.parent=t,this.children=[],this.parent&&this.parent.children.push(this),this.variables=Object.create(null)}return t.prototype.addDeclaration=function(t,e,n,r){void 0===n&&(n=null);var i=t.name;return this.variables[i]?this.variables[i].addDeclaration(t,n):this.variables[i]=new Vt(t.name,t,n||ct,e),this.variables[i]},t.prototype.addExportDefaultDeclaration=function(t,e,n){return this.variables.default=new Bt(t,e,n),this.variables.default},t.prototype.addReturnExpression=function(t){this.parent&&this.parent.addReturnExpression(t)},t.prototype.contains=function(t){return t in this.variables||!!this.parent&&this.parent.contains(t)},t.prototype.deshadow=function(t,e){void 0===e&&(e=this.children);for(var n=0,r=Object.keys(this.variables);n<r.length;n++){var i=r[n],s=this.variables[i];if((!s.exportName||!s.isReassigned||s.isId)&&!s.isDefault){var o=s.getName(!0);if(t.has(o)){o=s.name;var a=void 0,h=1;do{a=o+"$$"+De(h++)}while(t.has(a));s.setSafeName(a)}}}for(var u=0,c=e;u<c.length;u++){c[u].deshadow(t)}},t.prototype.findLexicalBoundary=function(){return this.parent.findLexicalBoundary()},t.prototype.findVariable=function(t){return this.variables[t]||this.parent&&this.parent.findVariable(t)},t}(),Be=o(function(t,e){t.exports=function(){var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return o(t)?t:H(t)}function r(t){return a(t)?t:K(t)}function i(t){return h(t)?t:Y(t)}function s(t){return o(t)&&!u(t)?t:X(t)}function o(t){return!(!t||!t[p])}function a(t){return!(!t||!t[l])}function h(t){return!(!t||!t[f])}function u(t){return a(t)||h(t)}function c(t){return!(!t||!t[d])}e(r,n),e(i,n),e(s,n),n.isIterable=o,n.isKeyed=a,n.isIndexed=h,n.isAssociative=u,n.isOrdered=c,n.Keyed=r,n.Indexed=i,n.Set=s;var p="@@__IMMUTABLE_ITERABLE__@@",l="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",d="@@__IMMUTABLE_ORDERED__@@",m=5,g=1<<m,y=g-1,v={},x={value:!1},_={value:!1};function E(t){return t.value=!1,t}function b(t){t&&(t.value=!0)}function A(){}function S(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i<n;i++)r[i]=t[i+e];return r}function w(t){return void 0===t.size&&(t.size=t.__iterate(I)),t.size}function P(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?w(t)+e:e}function I(){return!0}function k(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function C(t,e){return R(t,e,0)}function N(t,e){return R(t,e,e)}function R(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var O=0,M=1,L=2,T="function"==typeof Symbol&&Symbol.iterator,D="@@iterator",V=T||D;function z(t){this.next=t}function B(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function W(){return{value:void 0,done:!0}}function j(t){return!!q(t)}function U(t){return t&&"function"==typeof t.next}function F(t){var e=q(t);return e&&e.call(t)}function q(t){var e=t&&(T&&t[T]||t[D]);if("function"==typeof e)return e}function G(t){return t&&"number"==typeof t.length}function H(t){return null==t?st():o(t)?t.toSeq():function(t){var e=ht(t)||"object"==typeof t&&new et(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function K(t){return null==t?st().toKeyedSeq():o(t)?a(t)?t.toSeq():t.fromEntrySeq():ot(t)}function Y(t){return null==t?st():o(t)?a(t)?t.entrySeq():t.toIndexedSeq():at(t)}function X(t){return(null==t?st():o(t)?a(t)?t.entrySeq():t:at(t)).toSetSeq()}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=O,z.VALUES=M,z.ENTRIES=L,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[V]=function(){return this},e(H,n),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(t,e){return ut(this,t,e,!0)},H.prototype.__iterator=function(t,e){return ct(this,t,e,!0)},e(K,H),K.prototype.toKeyedSeq=function(){return this},e(Y,H),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(t,e){return ut(this,t,e,!1)},Y.prototype.__iterator=function(t,e){return ct(this,t,e,!1)},e(X,H),X.of=function(){return X(arguments)},X.prototype.toSetSeq=function(){return this},H.isSeq=it,H.Keyed=K,H.Set=X,H.Indexed=Y;var $,J,Q,Z="@@__IMMUTABLE_SEQ__@@";function tt(t){this._array=t,this.size=t.length}function et(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function nt(t){this._iterable=t,this.size=t.length||t.size}function rt(t){this._iterator=t,this._iteratorCache=[]}function it(t){return!(!t||!t[Z])}function st(){return $||($=new tt([]))}function ot(t){var e=Array.isArray(t)?new tt(t).fromEntrySeq():U(t)?new rt(t).fromEntrySeq():j(t)?new nt(t).fromEntrySeq():"object"==typeof t?new et(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function at(t){var e=ht(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ht(t){return G(t)?new tt(t):U(t)?new rt(t):j(t)?new nt(t):void 0}function ut(t,e,n,r){var i=t._cache;if(i){for(var s=i.length-1,o=0;o<=s;o++){var a=i[n?s-o:o];if(!1===e(a[1],r?a[0]:o,t))return o+1}return o}return t.__iterateUncached(e,n)}function ct(t,e,n,r){var i=t._cache;if(i){var s=i.length-1,o=0;return new z(function(){var t=i[n?s-o:o];return o++>s?{value:void 0,done:!0}:B(e,r?t[0]:o-1,t[1])})}return t.__iteratorUncached(e,n)}function pt(t,e){return e?function t(e,n,r,i){return Array.isArray(n)?e.call(i,r,Y(n).map(function(r,i){return t(e,r,i,n)})):ft(n)?e.call(i,r,K(n).map(function(r,i){return t(e,r,i,n)})):n}(e,t,"",{"":t}):lt(t)}function lt(t){return Array.isArray(t)?Y(t).map(lt).toList():ft(t)?K(t).map(lt).toMap():t}function ft(t){return t&&(t.constructor===Object||void 0===t.constructor)}function dt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function mt(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||a(t)!==a(e)||h(t)!==h(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(c(t)){var r=t.entries();return e.every(function(t,e){var i=r.next().value;return i&&dt(i[1],t)&&(n||dt(i[0],e))})&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var s=t;t=e,e=s}var p=!0,l=e.__iterate(function(e,r){if(n?!t.has(e):i?!dt(e,t.get(r,v)):!dt(t.get(r,v),e))return p=!1,!1});return p&&t.size===l}function gt(t,e){if(!(this instanceof gt))return new gt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(J)return J;J=this}}function yt(t,e){if(!t)throw new Error(e)}function vt(t,e,n){if(!(this instanceof vt))return new vt(t,e,n);if(yt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function xt(){throw TypeError("Abstract")}function _t(){}function Et(){}function bt(){}H.prototype[Z]=!0,e(tt,Y),tt.prototype.get=function(t,e){return this.has(t)?this._array[P(this,t)]:e},tt.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===t(n[e?r-i:i],i,this))return i+1;return i},tt.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,i=0;return new z(function(){return i>r?{value:void 0,done:!0}:B(t,i,n[e?r-i++:i++])})},e(et,K),et.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},et.prototype.has=function(t){return this._object.hasOwnProperty(t)},et.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,s=0;s<=i;s++){var o=r[e?i-s:s];if(!1===t(n[o],o,this))return s+1}return s},et.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,s=0;return new z(function(){var o=r[e?i-s:s];return s++>i?{value:void 0,done:!0}:B(t,o,n[o])})},et.prototype[d]=!0,e(nt,Y),nt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=this._iterable,r=F(n),i=0;if(U(r))for(var s;!(s=r.next()).done&&!1!==t(s.value,i++,this););return i},nt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=F(n);if(!U(r))return new z(W);var i=0;return new z(function(){var e=r.next();return e.done?e:B(t,i++,e.value)})},e(rt,Y),rt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,i=this._iteratorCache,s=0;s<i.length;)if(!1===t(i[s],s++,this))return s;for(;!(n=r.next()).done;){var o=n.value;if(i[s]=o,!1===t(o,s++,this))break}return s},rt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,i=0;return new z(function(){if(i>=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return B(t,i,r[i++])})},e(gt,Y),gt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},gt.prototype.get=function(t,e){return this.has(t)?this._value:e},gt.prototype.includes=function(t){return dt(this._value,t)},gt.prototype.slice=function(t,e){var n=this.size;return k(t,e,n)?this:new gt(this._value,N(e,n)-C(t,n))},gt.prototype.reverse=function(){return this},gt.prototype.indexOf=function(t){return dt(this._value,t)?0:-1},gt.prototype.lastIndexOf=function(t){return dt(this._value,t)?this.size:-1},gt.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},gt.prototype.__iterator=function(t,e){var n=this,r=0;return new z(function(){return r<n.size?B(t,r++,n._value):{value:void 0,done:!0}})},gt.prototype.equals=function(t){return t instanceof gt?dt(this._value,t._value):mt(t)},e(vt,Y),vt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},vt.prototype.get=function(t,e){return this.has(t)?this._start+P(this,t)*this._step:e},vt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},vt.prototype.slice=function(t,e){return k(t,e,this.size)?this:(t=C(t,this.size),(e=N(e,this.size))<=t?new vt(0,0):new vt(this.get(t,this._end),this.get(e,this._end),this._step))},vt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},vt.prototype.lastIndexOf=function(t){return this.indexOf(t)},vt.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,s=0;s<=n;s++){if(!1===t(i,s,this))return s+1;i+=e?-r:r}return s},vt.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,s=0;return new z(function(){var o=i;return i+=e?-r:r,s>n?{value:void 0,done:!0}:B(t,s++,o)})},vt.prototype.equals=function(t){return t instanceof vt?this._start===t._start&&this._end===t._end&&this._step===t._step:mt(this,t)},e(xt,n),e(_t,xt),e(Et,xt),e(bt,xt),xt.Keyed=_t,xt.Indexed=Et,xt.Set=bt;var At="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function St(t){return t>>>1&1073741824|3221225471&t}function wt(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e,n,r=typeof t;if("number"===r){if(t!=t||t===1/0)return 0;var i=0|t;for(i!==t&&(i^=4294967295*t);t>4294967295;)i^=t/=4294967295;return St(i)}if("string"===r)return t.length>Mt?(void 0===(n=Dt[e=t])&&(n=Pt(e),Tt===Lt&&(Tt=0,Dt={}),Tt++,Dt[e]=n),n):Pt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===r)return function(t){var e;if(Nt&&void 0!==(e=It.get(t)))return e;if(void 0!==(e=t[Ot]))return e;if(!Ct){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ot]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++Rt,1073741824&Rt&&(Rt=0),Nt)It.set(t,e);else{if(void 0!==kt&&!1===kt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(Ct)Object.defineProperty(t,Ot,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Ot]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Ot]=e}}return e}(t);if("function"==typeof t.toString)return Pt(t.toString());throw new Error("Value type "+r+" cannot be hashed.")}function Pt(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return St(e)}var It,kt=Object.isExtensible,Ct=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Nt="function"==typeof WeakMap;Nt&&(It=new WeakMap);var Rt=0,Ot="__immutablehash__";"function"==typeof Symbol&&(Ot=Symbol(Ot));var Mt=16,Lt=255,Tt=0,Dt={};function Vt(t){yt(t!==1/0,"Cannot perform this action with an infinite size.")}function zt(t){return null==t?Qt():Bt(t)&&!c(t)?t:Qt().withMutations(function(e){var n=r(t);Vt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function Bt(t){return!(!t||!t[jt])}e(zt,_t),zt.of=function(){var e=t.call(arguments,0);return Qt().withMutations(function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},zt.prototype.toString=function(){return this.__toString("Map {","}")},zt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},zt.prototype.set=function(t,e){return Zt(this,t,e)},zt.prototype.setIn=function(t,e){return this.updateIn(t,v,function(){return e})},zt.prototype.remove=function(t){return Zt(this,t,v)},zt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return v})},zt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},zt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=function t(e,n,r,i){var s=e===v,o=n.next();if(o.done){var a=s?r:e,h=i(a);return h===a?e:h}yt(s||e&&e.set,"invalid keyPath");var u=o.value,c=s?v:e.get(u,v),p=t(c,n,r,i);return p===c?e:p===v?e.remove(u):(s?Qt():e).set(u,p)}(this,nn(t),e,n);return r===v?void 0:r},zt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Qt()},zt.prototype.merge=function(){return re(this,void 0,arguments)},zt.prototype.mergeWith=function(e){var n=t.call(arguments,1);return re(this,e,n)},zt.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Qt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]})},zt.prototype.mergeDeep=function(){return re(this,ie,arguments)},zt.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return re(this,se(e),n)},zt.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Qt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]})},zt.prototype.sort=function(t){return Ce(Ge(this,t))},zt.prototype.sortBy=function(t,e){return Ce(Ge(this,e,t))},zt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},zt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new A)},zt.prototype.asImmutable=function(){return this.__ensureOwner()},zt.prototype.wasAltered=function(){return this.__altered},zt.prototype.__iterator=function(t,e){return new Yt(this,t,e)},zt.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},zt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Jt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},zt.isMap=Bt;var Wt,jt="@@__IMMUTABLE_MAP__@@",Ut=zt.prototype;function Ft(t,e){this.ownerID=t,this.entries=e}function qt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Gt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function Ht(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function Kt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function Yt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&$t(t._root)}function Xt(t,e){return B(t,e[0],e[1])}function $t(t,e){return{node:t,index:0,__prev:e}}function Jt(t,e,n,r){var i=Object.create(Ut);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Qt(){return Wt||(Wt=Jt(0))}function Zt(t,e,n){var r,i;if(t._root){var s=E(x),o=E(_);if(r=te(t._root,t.__ownerID,0,void 0,e,n,s,o),!o.value)return t;i=t.size+(s.value?n===v?-1:1:0)}else{if(n===v)return t;i=1,r=new Ft(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?Jt(i,r):Qt()}function te(t,e,n,r,i,s,o,a){return t?t.update(e,n,r,i,s,o,a):s===v?t:(b(a),b(o),new Kt(e,r,[i,s]))}function ee(t){return t.constructor===Kt||t.constructor===Ht}function ne(t,e,n,r,i){if(t.keyHash===r)return new Ht(e,r,[t.entry,i]);var s,o=(0===n?t.keyHash:t.keyHash>>>n)&y,a=(0===n?r:r>>>n)&y,h=o===a?[ne(t,e,n+m,r,i)]:(s=new Kt(e,r,i),o<a?[t,s]:[s,t]);return new qt(e,1<<o|1<<a,h)}function re(t,e,n){for(var i=[],s=0;s<n.length;s++){var a=n[s],h=r(a);o(a)||(h=h.map(function(t){return pt(t)})),i.push(h)}return oe(t,e,i)}function ie(t,e,n){return t&&t.mergeDeep&&o(e)?t.mergeDeep(e):dt(t,e)?t:e}function se(t){return function(e,n,r){if(e&&e.mergeDeepWith&&o(n))return e.mergeDeepWith(t,n);var i=t(e,n,r);return dt(e,i)?e:i}}function oe(t,e,n){return 0===(n=n.filter(function(t){return 0!==t.size})).length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,v,function(t){return t===v?n:e(t,n,r)})}:function(e,n){t.set(n,e)},i=0;i<n.length;i++)n[i].forEach(r)}):t.constructor(n[0])}function ae(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function he(t,e,n,r){var i=r?t:S(t);return i[e]=n,i}Ut[jt]=!0,Ut.delete=Ut.remove,Ut.removeIn=Ut.deleteIn,Ft.prototype.get=function(t,e,n,r){for(var i=this.entries,s=0,o=i.length;s<o;s++)if(dt(n,i[s][0]))return i[s][1];return r},Ft.prototype.update=function(t,e,n,r,i,s,o){for(var a=i===v,h=this.entries,u=0,c=h.length;u<c&&!dt(r,h[u][0]);u++);var p=u<c;if(p?h[u][1]===i:a)return this;if(b(o),(a||!p)&&b(s),!a||1!==h.length){if(!p&&!a&&h.length>=ue)return function(t,e,n,r){t||(t=new A);for(var i=new Kt(t,wt(n),[n,r]),s=0;s<e.length;s++){var o=e[s];i=i.update(t,0,void 0,o[0],o[1])}return i}(t,h,r,i);var l=t&&t===this.ownerID,f=l?h:S(h);return p?a?u===c-1?f.pop():f[u]=f.pop():f[u]=[r,i]:f.push([r,i]),l?(this.entries=f,this):new Ft(t,f)}},qt.prototype.get=function(t,e,n,r){void 0===e&&(e=wt(n));var i=1<<((0===t?e:e>>>t)&y),s=this.bitmap;return 0==(s&i)?r:this.nodes[ae(s&i-1)].get(t+m,e,n,r)},qt.prototype.update=function(t,e,n,r,i,s,o){void 0===n&&(n=wt(r));var a=(0===e?n:n>>>e)&y,h=1<<a,u=this.bitmap,c=0!=(u&h);if(!c&&i===v)return this;var p=ae(u&h-1),l=this.nodes,f=c?l[p]:void 0,d=te(f,t,e+m,n,r,i,s,o);if(d===f)return this;if(!c&&d&&l.length>=ce)return function(t,e,n,r,i){for(var s=0,o=new Array(g),a=0;0!==n;a++,n>>>=1)o[a]=1&n?e[s++]:void 0;return o[r]=i,new Gt(t,s+1,o)}(t,l,u,a,d);if(c&&!d&&2===l.length&&ee(l[1^p]))return l[1^p];if(c&&d&&1===l.length&&ee(d))return d;var x=t&&t===this.ownerID,_=c?d?u:u^h:u|h,E=c?d?he(l,p,d,x):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),s=0,o=0;o<r;o++)o===e&&(s=1),i[o]=t[o+s];return i}(l,p,x):function(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var s=new Array(i),o=0,a=0;a<i;a++)a===e?(s[a]=n,o=-1):s[a]=t[a+o];return s}(l,p,d,x);return x?(this.bitmap=_,this.nodes=E,this):new qt(t,_,E)},Gt.prototype.get=function(t,e,n,r){void 0===e&&(e=wt(n));var i=(0===t?e:e>>>t)&y,s=this.nodes[i];return s?s.get(t+m,e,n,r):r},Gt.prototype.update=function(t,e,n,r,i,s,o){void 0===n&&(n=wt(r));var a=(0===e?n:n>>>e)&y,h=i===v,u=this.nodes,c=u[a];if(h&&!c)return this;var p=te(c,t,e+m,n,r,i,s,o);if(p===c)return this;var l=this.count;if(c){if(!p&&--l<pe)return function(t,e,n,r){for(var i=0,s=0,o=new Array(n),a=0,h=1,u=e.length;a<u;a++,h<<=1){var c=e[a];void 0!==c&&a!==r&&(i|=h,o[s++]=c)}return new qt(t,i,o)}(t,u,l,a)}else l++;var f=t&&t===this.ownerID,d=he(u,a,p,f);return f?(this.count=l,this.nodes=d,this):new Gt(t,l,d)},Ht.prototype.get=function(t,e,n,r){for(var i=this.entries,s=0,o=i.length;s<o;s++)if(dt(n,i[s][0]))return i[s][1];return r},Ht.prototype.update=function(t,e,n,r,i,s,o){void 0===n&&(n=wt(r));var a=i===v;if(n!==this.keyHash)return a?this:(b(o),b(s),ne(this,t,e,n,[r,i]));for(var h=this.entries,u=0,c=h.length;u<c&&!dt(r,h[u][0]);u++);var p=u<c;if(p?h[u][1]===i:a)return this;if(b(o),(a||!p)&&b(s),a&&2===c)return new Kt(t,this.keyHash,h[1^u]);var l=t&&t===this.ownerID,f=l?h:S(h);return p?a?u===c-1?f.pop():f[u]=f.pop():f[u]=[r,i]:f.push([r,i]),l?(this.entries=f,this):new Ht(t,this.keyHash,f)},Kt.prototype.get=function(t,e,n,r){return dt(n,this.entry[0])?this.entry[1]:r},Kt.prototype.update=function(t,e,n,r,i,s,o){var a=i===v,h=dt(r,this.entry[0]);return(h?i===this.entry[1]:a)?this:(b(o),a?void b(s):h?t&&t===this.ownerID?(this.entry[1]=i,this):new Kt(t,this.keyHash,[r,i]):(b(s),ne(this,t,e,wt(r),[r,i])))},Ft.prototype.iterate=Ht.prototype.iterate=function(t,e){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===t(n[e?i-r:r]))return!1},qt.prototype.iterate=Gt.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var s=n[e?i-r:r];if(s&&!1===s.iterate(t,e))return!1}},Kt.prototype.iterate=function(t,e){return t(this.entry)},e(Yt,z),Yt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,i=e.index++;if(r.entry){if(0===i)return Xt(t,r.entry)}else if(r.entries){if(n=r.entries.length-1,i<=n)return Xt(t,r.entries[this._reverse?n-i:i])}else if(n=r.nodes.length-1,i<=n){var s=r.nodes[this._reverse?n-i:i];if(s){if(s.entry)return Xt(t,s.entry);e=this._stack=$t(s,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ue=g/4,ce=g/2,pe=g/4;function le(t){var e=be();if(null==t)return e;if(fe(t))return t;var n=i(t),r=n.size;return 0===r?e:(Vt(r),r>0&&r<g?Ee(0,r,m,null,new ge(n.toArray())):e.withMutations(function(t){t.setSize(r),n.forEach(function(e,n){return t.set(n,e)})}))}function fe(t){return!(!t||!t[de])}e(le,Et),le.of=function(){return this(arguments)},le.prototype.toString=function(){return this.__toString("List [","]")},le.prototype.get=function(t,e){if((t=P(this,t))>=0&&t<this.size){var n=we(this,t+=this._origin);return n&&n.array[t&y]}return e},le.prototype.set=function(t,e){return function(t,e,n){if((e=P(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Pe(t,e).set(0,n):Pe(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,i=t._root,s=E(_);return e>=ke(t._capacity)?r=Ae(r,t.__ownerID,0,e,n,s):i=Ae(i,t.__ownerID,t._level,e,n,s),s.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):Ee(t._origin,t._capacity,t._level,i,r):t}(this,t,e)},le.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},le.prototype.insert=function(t,e){return this.splice(t,0,e)},le.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):be()},le.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Pe(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},le.prototype.pop=function(){return Pe(this,0,-1)},le.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Pe(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},le.prototype.shift=function(){return Pe(this,1)},le.prototype.merge=function(){return Ie(this,void 0,arguments)},le.prototype.mergeWith=function(e){var n=t.call(arguments,1);return Ie(this,e,n)},le.prototype.mergeDeep=function(){return Ie(this,ie,arguments)},le.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return Ie(this,se(e),n)},le.prototype.setSize=function(t){return Pe(this,0,t)},le.prototype.slice=function(t,e){var n=this.size;return k(t,e,n)?this:Pe(this,C(t,n),N(e,n))},le.prototype.__iterator=function(t,e){var n=0,r=_e(this,e);return new z(function(){var e=r();return e===xe?{value:void 0,done:!0}:B(t,n++,e)})},le.prototype.__iterate=function(t,e){for(var n,r=0,i=_e(this,e);(n=i())!==xe&&!1!==t(n,r++,this););return r},le.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ee(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},le.isList=fe;var de="@@__IMMUTABLE_LIST__@@",me=le.prototype;function ge(t,e){this.array=t,this.ownerID=e}me[de]=!0,me.delete=me.remove,me.setIn=Ut.setIn,me.deleteIn=me.removeIn=Ut.removeIn,me.update=Ut.update,me.updateIn=Ut.updateIn,me.mergeIn=Ut.mergeIn,me.mergeDeepIn=Ut.mergeDeepIn,me.withMutations=Ut.withMutations,me.asMutable=Ut.asMutable,me.asImmutable=Ut.asImmutable,me.wasAltered=Ut.wasAltered,ge.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&y;if(r>=this.array.length)return new ge([],t);var i,s=0===r;if(e>0){var o=this.array[r];if((i=o&&o.removeBefore(t,e-m,n))===o&&s)return this}if(s&&!i)return this;var a=Se(this,t);if(!s)for(var h=0;h<r;h++)a.array[h]=void 0;return i&&(a.array[r]=i),a},ge.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,i=n-1>>>e&y;if(i>=this.array.length)return this;if(e>0){var s=this.array[i];if((r=s&&s.removeAfter(t,e-m,n))===s&&i===this.array.length-1)return this}var o=Se(this,t);return o.array.splice(i+1),r&&(o.array[i]=r),o};var ye,ve,xe={};function _e(t,e){var n=t._origin,r=t._capacity,i=ke(r),s=t._tail;return o(t._root,t._level,0);function o(t,a,h){return 0===a?function(t,o){var a=o===i?s&&s.array:t&&t.array,h=o>n?0:n-o,u=r-o;return u>g&&(u=g),function(){if(h===u)return xe;var t=e?--u:h++;return a&&a[t]}}(t,h):function(t,i,s){var a,h=t&&t.array,u=s>n?0:n-s>>i,c=1+(r-s>>i);return c>g&&(c=g),function(){for(;;){if(a){var t=a();if(t!==xe)return t;a=null}if(u===c)return xe;var n=e?--c:u++;a=o(h&&h[n],i-m,s+(n<<i))}}}(t,a,h)}}function Ee(t,e,n,r,i,s,o){var a=Object.create(me);return a.size=e-t,a._origin=t,a._capacity=e,a._level=n,a._root=r,a._tail=i,a.__ownerID=s,a.__hash=o,a.__altered=!1,a}function be(){return ye||(ye=Ee(0,0,m))}function Ae(t,e,n,r,i,s){var o,a=r>>>n&y,h=t&&a<t.array.length;if(!h&&void 0===i)return t;if(n>0){var u=t&&t.array[a],c=Ae(u,e,n-m,r,i,s);return c===u?t:((o=Se(t,e)).array[a]=c,o)}return h&&t.array[a]===i?t:(b(s),o=Se(t,e),void 0===i&&a===o.array.length-1?o.array.pop():o.array[a]=i,o)}function Se(t,e){return e&&t&&e===t.ownerID?t:new ge(t?t.array.slice():[],e)}function we(t,e){if(e>=ke(t._capacity))return t._tail;if(e<1<<t._level+m){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&y],r-=m;return n}}function Pe(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new A,i=t._origin,s=t._capacity,o=i+e,a=void 0===n?s:n<0?s+n:i+n;if(o===i&&a===s)return t;if(o>=a)return t.clear();for(var h=t._level,u=t._root,c=0;o+c<0;)u=new ge(u&&u.array.length?[void 0,u]:[],r),c+=1<<(h+=m);c&&(o+=c,i+=c,a+=c,s+=c);for(var p=ke(s),l=ke(a);l>=1<<h+m;)u=new ge(u&&u.array.length?[u]:[],r),h+=m;var f=t._tail,d=l<p?we(t,a-1):l>p?new ge([],r):f;if(f&&l>p&&o<s&&f.array.length){for(var g=u=Se(u,r),v=h;v>m;v-=m){var x=p>>>v&y;g=g.array[x]=Se(g.array[x],r)}g.array[p>>>m&y]=f}if(a<s&&(d=d&&d.removeAfter(r,0,a)),o>=l)o-=l,a-=l,h=m,u=null,d=d&&d.removeBefore(r,0,o);else if(o>i||l<p){for(c=0;u;){var _=o>>>h&y;if(_!==l>>>h&y)break;_&&(c+=(1<<h)*_),h-=m,u=u.array[_]}u&&o>i&&(u=u.removeBefore(r,h,o-c)),u&&l<p&&(u=u.removeAfter(r,h,l-c)),c&&(o-=c,a-=c)}return t.__ownerID?(t.size=a-o,t._origin=o,t._capacity=a,t._level=h,t._root=u,t._tail=d,t.__hash=void 0,t.__altered=!0,t):Ee(o,a,h,u,d)}function Ie(t,e,n){for(var r=[],s=0,a=0;a<n.length;a++){var h=n[a],u=i(h);u.size>s&&(s=u.size),o(h)||(u=u.map(function(t){return pt(t)})),r.push(u)}return s>t.size&&(t=t.setSize(s)),oe(t,e,r)}function ke(t){return t<g?0:t-1>>>m<<m}function Ce(t){return null==t?Oe():Ne(t)?t:Oe().withMutations(function(e){var n=r(t);Vt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function Ne(t){return Bt(t)&&c(t)}function Re(t,e,n,r){var i=Object.create(Ce.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i}function Oe(){return ve||(ve=Re(Qt(),be()))}function Me(t,e,n){var r,i,s=t._map,o=t._list,a=s.get(e),h=void 0!==a;if(n===v){if(!h)return t;o.size>=g&&o.size>=2*s.size?(i=o.filter(function(t,e){return void 0!==t&&a!==e}),r=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=s.remove(e),i=a===o.size-1?o.pop():o.set(a,void 0))}else if(h){if(n===o.get(a)[1])return t;r=s,i=o.set(a,[e,n])}else r=s.set(e,o.size),i=o.set(o.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):Re(r,i)}function Le(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Te(t){this._iter=t,this.size=t.size}function De(t){this._iter=t,this.size=t.size}function Ve(t){this._iter=t,this.size=t.size}function ze(t){var e=Ze(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=tn,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(e===L){var r=t.__iterator(e,n);return new z(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===M?O:M,n)},e}function Be(t,e,n){var r=Ze(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var s=t.get(r,v);return s===v?i:e.call(n,s,r,t)},r.__iterateUncached=function(r,i){var s=this;return t.__iterate(function(t,i,o){return!1!==r(e.call(n,t,i,o),i,s)},i)},r.__iteratorUncached=function(r,i){var s=t.__iterator(L,i);return new z(function(){var i=s.next();if(i.done)return i;var o=i.value,a=o[0];return B(r,a,e.call(n,o[1],a,t),i)})},r}function We(t,e){var n=Ze(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=ze(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=tn,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function je(t,e,n,r){var i=Ze(t);return r&&(i.has=function(r){var i=t.get(r,v);return i!==v&&!!e.call(n,i,r,t)},i.get=function(r,i){var s=t.get(r,v);return s!==v&&e.call(n,s,r,t)?s:i}),i.__iterateUncached=function(i,s){var o=this,a=0;return t.__iterate(function(t,s,h){if(e.call(n,t,s,h))return a++,i(t,r?s:a-1,o)},s),a},i.__iteratorUncached=function(i,s){var o=t.__iterator(L,s),a=0;return new z(function(){for(;;){var s=o.next();if(s.done)return s;var h=s.value,u=h[0],c=h[1];if(e.call(n,c,u,t))return B(i,r?u:a++,c,s)}})},i}function Ue(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n===1/0?n=i:n|=0),k(e,n,i))return t;var s=C(e,i),o=N(n,i);if(s!=s||o!=o)return Ue(t.toSeq().cacheResult(),e,n,r);var a,h=o-s;h==h&&(a=h<0?0:h);var u=Ze(t);return u.size=0===a?a:t.size&&a||void 0,!r&&it(t)&&a>=0&&(u.get=function(e,n){return(e=P(this,e))>=0&&e<a?t.get(e+s,n):n}),u.__iterateUncached=function(e,n){var i=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(e,n);var o=0,h=!0,u=0;return t.__iterate(function(t,n){if(!h||!(h=o++<s))return u++,!1!==e(t,r?n:u-1,i)&&u!==a}),u},u.__iteratorUncached=function(e,n){if(0!==a&&n)return this.cacheResult().__iterator(e,n);var i=0!==a&&t.__iterator(e,n),o=0,h=0;return new z(function(){for(;o++<s;)i.next();if(++h>a)return{value:void 0,done:!0};var t=i.next();return r||e===M?t:B(e,h-1,e===O?void 0:t.value[1],t)})},u}function Fe(t,e,n,r){var i=Ze(t);return i.__iterateUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterate(i,s);var a=!0,h=0;return t.__iterate(function(t,s,u){if(!a||!(a=e.call(n,t,s,u)))return h++,i(t,r?s:h-1,o)}),h},i.__iteratorUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterator(i,s);var a=t.__iterator(L,s),h=!0,u=0;return new z(function(){var t,s,c;do{if((t=a.next()).done)return r||i===M?t:B(i,u++,i===O?void 0:t.value[1],t);var p=t.value;s=p[0],c=p[1],h&&(h=e.call(n,c,s,o))}while(h);return i===L?t:B(i,s,c,t)})},i}function qe(t,e,n){var r=Ze(t);return r.__iterateUncached=function(r,i){var s=0,a=!1;return function t(h,u){var c=this;h.__iterate(function(i,h){return(!e||u<e)&&o(i)?t(i,u+1):!1===r(i,n?h:s++,c)&&(a=!0),!a},i)}(t,0),s},r.__iteratorUncached=function(r,i){var s=t.__iterator(r,i),a=[],h=0;return new z(function(){for(;s;){var t=s.next();if(!1===t.done){var u=t.value;if(r===L&&(u=u[1]),e&&!(a.length<e)||!o(u))return n?t:B(r,h++,u,t);a.push(s),s=u.__iterator(r,i)}else s=a.pop()}return{value:void 0,done:!0}})},r}function Ge(t,e,n){e||(e=en);var r=a(t),i=0,s=t.toSeq().map(function(e,r){return[r,e,i++,n?n(e,r,t):e]}).toArray();return s.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){s[e].length=2}:function(t,e){s[e]=t[1]}),r?K(s):h(t)?Y(s):X(s)}function He(t,e,n){if(e||(e=en),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return Ke(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return Ke(e,t,n)?n:t})}function Ke(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Ye(t,e,r){var i=Ze(t);return i.size=new tt(r).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(M,e),i=0;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},i.__iteratorUncached=function(t,i){var s=r.map(function(t){return t=n(t),F(i?t.reverse():t)}),o=0,a=!1;return new z(function(){var n;return a||(n=s.map(function(t){return t.next()}),a=n.some(function(t){return t.done})),a?{value:void 0,done:!0}:B(t,o++,e.apply(null,n.map(function(t){return t.value})))})},i}function Xe(t,e){return it(t)?e:t.constructor(e)}function $e(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Je(t){return Vt(t.size),w(t)}function Qe(t){return a(t)?r:h(t)?i:s}function Ze(t){return Object.create((a(t)?K:h(t)?Y:X).prototype)}function tn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function en(t,e){return t>e?1:t<e?-1:0}function nn(t){var e=F(t);if(!e){if(!G(t))throw new TypeError("Expected iterable or array-like: "+t);e=F(n(t))}return e}function rn(t,e){var n,r=function(s){if(s instanceof r)return s;if(!(this instanceof r))return new r(s);if(!n){n=!0;var o=Object.keys(t);!function(t,e){try{e.forEach(function(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){yt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}.bind(void 0,t))}catch(t){}}(i,o),i.size=o.length,i._name=e,i._keys=o,i._defaultValues=t}this._map=zt(s)},i=r.prototype=Object.create(sn);return i.constructor=r,r}e(Ce,zt),Ce.of=function(){return this(arguments)},Ce.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ce.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Ce.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Oe()},Ce.prototype.set=function(t,e){return Me(this,t,e)},Ce.prototype.remove=function(t){return Me(this,t,v)},Ce.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ce.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Ce.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Ce.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Re(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Ce.isOrderedMap=Ne,Ce.prototype[d]=!0,Ce.prototype.delete=Ce.prototype.remove,e(Le,K),Le.prototype.get=function(t,e){return this._iter.get(t,e)},Le.prototype.has=function(t){return this._iter.has(t)},Le.prototype.valueSeq=function(){return this._iter.valueSeq()},Le.prototype.reverse=function(){var t=this,e=We(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Le.prototype.map=function(t,e){var n=this,r=Be(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},Le.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?Je(this):0,function(i){return t(i,e?--n:n++,r)}),e)},Le.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(M,e),r=e?Je(this):0;return new z(function(){var i=n.next();return i.done?i:B(t,e?--r:r++,i.value,i)})},Le.prototype[d]=!0,e(Te,Y),Te.prototype.includes=function(t){return this._iter.includes(t)},Te.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},Te.prototype.__iterator=function(t,e){var n=this._iter.__iterator(M,e),r=0;return new z(function(){var e=n.next();return e.done?e:B(t,r++,e.value,e)})},e(De,X),De.prototype.has=function(t){return this._iter.includes(t)},De.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},De.prototype.__iterator=function(t,e){var n=this._iter.__iterator(M,e);return new z(function(){var e=n.next();return e.done?e:B(t,e.value,e.value,e)})},e(Ve,K),Ve.prototype.entrySeq=function(){return this._iter.toSeq()},Ve.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){$e(e);var r=o(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},Ve.prototype.__iterator=function(t,e){var n=this._iter.__iterator(M,e);return new z(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){$e(r);var i=o(r);return B(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}})},Te.prototype.cacheResult=Le.prototype.cacheResult=De.prototype.cacheResult=Ve.prototype.cacheResult=tn,e(rn,_t),rn.prototype.toString=function(){return this.__toString(an(this)+" {","}")},rn.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},rn.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},rn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=on(this,Qt()))},rn.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+an(this));if(this._map&&!this._map.has(t)){var n=this._defaultValues[t];if(e===n)return this}var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:on(this,r)},rn.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:on(this,e)},rn.prototype.wasAltered=function(){return this._map.wasAltered()},rn.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},rn.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},rn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?on(this,e,t):(this.__ownerID=t,this._map=e,this)};var sn=rn.prototype;function on(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function an(t){return t._name||t.constructor.name||"Record"}function hn(t){return null==t?mn():un(t)&&!c(t)?t:mn().withMutations(function(e){var n=s(t);Vt(n.size),n.forEach(function(t){return e.add(t)})})}function un(t){return!(!t||!t[pn])}sn.delete=sn.remove,sn.deleteIn=sn.removeIn=Ut.removeIn,sn.merge=Ut.merge,sn.mergeWith=Ut.mergeWith,sn.mergeIn=Ut.mergeIn,sn.mergeDeep=Ut.mergeDeep,sn.mergeDeepWith=Ut.mergeDeepWith,sn.mergeDeepIn=Ut.mergeDeepIn,sn.setIn=Ut.setIn,sn.update=Ut.update,sn.updateIn=Ut.updateIn,sn.withMutations=Ut.withMutations,sn.asMutable=Ut.asMutable,sn.asImmutable=Ut.asImmutable,e(hn,bt),hn.of=function(){return this(arguments)},hn.fromKeys=function(t){return this(r(t).keySeq())},hn.prototype.toString=function(){return this.__toString("Set {","}")},hn.prototype.has=function(t){return this._map.has(t)},hn.prototype.add=function(t){return fn(this,this._map.set(t,!0))},hn.prototype.remove=function(t){return fn(this,this._map.remove(t))},hn.prototype.clear=function(){return fn(this,this._map.clear())},hn.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n<e.length;n++)s(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},hn.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return s(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.every(function(t){return t.includes(n)})||t.remove(n)})})},hn.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return s(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.some(function(t){return t.includes(n)})&&t.remove(n)})})},hn.prototype.merge=function(){return this.union.apply(this,arguments)},hn.prototype.mergeWith=function(e){var n=t.call(arguments,1);return this.union.apply(this,n)},hn.prototype.sort=function(t){return gn(Ge(this,t))},hn.prototype.sortBy=function(t,e){return gn(Ge(this,e,t))},hn.prototype.wasAltered=function(){return this._map.wasAltered()},hn.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},hn.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},hn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},hn.isSet=un;var cn,pn="@@__IMMUTABLE_SET__@@",ln=hn.prototype;function fn(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function dn(t,e){var n=Object.create(ln);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function mn(){return cn||(cn=dn(Qt()))}function gn(t){return null==t?En():yn(t)?t:En().withMutations(function(e){var n=s(t);Vt(n.size),n.forEach(function(t){return e.add(t)})})}function yn(t){return un(t)&&c(t)}ln[pn]=!0,ln.delete=ln.remove,ln.mergeDeep=ln.merge,ln.mergeDeepWith=ln.mergeWith,ln.withMutations=Ut.withMutations,ln.asMutable=Ut.asMutable,ln.asImmutable=Ut.asImmutable,ln.__empty=mn,ln.__make=dn,e(gn,hn),gn.of=function(){return this(arguments)},gn.fromKeys=function(t){return this(r(t).keySeq())},gn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},gn.isOrderedSet=yn;var vn,xn=gn.prototype;function _n(t,e){var n=Object.create(xn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function En(){return vn||(vn=_n(Oe()))}function bn(t){return null==t?kn():An(t)?t:kn().unshiftAll(t)}function An(t){return!(!t||!t[wn])}xn[d]=!0,xn.__empty=En,xn.__make=_n,e(bn,Et),bn.of=function(){return this(arguments)},bn.prototype.toString=function(){return this.__toString("Stack [","]")},bn.prototype.get=function(t,e){var n=this._head;for(t=P(this,t);n&&t--;)n=n.next;return n?n.value:e},bn.prototype.peek=function(){return this._head&&this._head.value},bn.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):In(t,e)},bn.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;Vt(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):In(e,n)},bn.prototype.pop=function(){return this.slice(1)},bn.prototype.unshift=function(){return this.push.apply(this,arguments)},bn.prototype.unshiftAll=function(t){return this.pushAll(t)},bn.prototype.shift=function(){return this.pop.apply(this,arguments)},bn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):kn()},bn.prototype.slice=function(t,e){if(k(t,e,this.size))return this;var n=C(t,this.size),r=N(e,this.size);if(r!==this.size)return Et.prototype.slice.call(this,t,e);for(var i=this.size-n,s=this._head;n--;)s=s.next;return this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):In(i,s)},bn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?In(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},bn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},bn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new z(function(){if(r){var e=r.value;return r=r.next,B(t,n++,e)}return{value:void 0,done:!0}})},bn.isStack=An;var Sn,wn="@@__IMMUTABLE_STACK__@@",Pn=bn.prototype;function In(t,e,n,r){var i=Object.create(Pn);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function kn(){return Sn||(Sn=In(0))}function Cn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}Pn[wn]=!0,Pn.withMutations=Ut.withMutations,Pn.asMutable=Ut.asMutable,Pn.asImmutable=Ut.asImmutable,Pn.wasAltered=Ut.wasAltered,n.Iterator=z,Cn(n,{toArray:function(){Vt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new Te(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new Le(this,!0)},toMap:function(){return zt(this.toKeyedSeq())},toObject:function(){Vt(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Ce(this.toKeyedSeq())},toOrderedSet:function(){return gn(a(this)?this.valueSeq():this)},toSet:function(){return hn(a(this)?this.valueSeq():this)},toSetSeq:function(){return new De(this)},toSeq:function(){return h(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return bn(a(this)?this.valueSeq():this)},toList:function(){return le(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var e=t.call(arguments,0);return Xe(this,function(t,e){var n=a(t),i=[t].concat(e).map(function(t){return o(t)?n&&(t=r(t)):t=n?ot(t):at(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var s=i[0];if(s===t||n&&a(s)||h(t)&&h(s))return s}var u=new tt(i);return n?u=u.toKeyedSeq():h(t)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=i.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),u}(this,e))},includes:function(t){return this.some(function(e){return dt(e,t)})},entries:function(){return this.__iterator(L)},every:function(t,e){Vt(this.size);var n=!0;return this.__iterate(function(r,i,s){if(!t.call(e,r,i,s))return n=!1,!1}),n},filter:function(t,e){return Xe(this,je(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return Vt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Vt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""}),e},keys:function(){return this.__iterator(O)},map:function(t,e){return Xe(this,Be(this,t,e))},reduce:function(t,e,n){var r,i;return Vt(this.size),arguments.length<2?i=!0:r=e,this.__iterate(function(e,s,o){i?(i=!1,r=e):r=t.call(n,r,e,s,o)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Xe(this,We(this,!0))},slice:function(t,e){return Xe(this,Ue(this,t,e,!0))},some:function(t,e){return!this.every(Ln(t),e)},sort:function(t){return Xe(this,Ge(this,t))},values:function(){return this.__iterator(M)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return w(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=zt().asMutable();return t.__iterate(function(i,s){r.update(e.call(n,i,s,t),0,function(t){return t+1})}),r.asImmutable()}(this,t,e)},equals:function(t){return mt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new tt(t._cache);var e=t.toSeq().map(Mn).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Ln(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate(function(n,i,s){if(t.call(e,n,i,s))return r=[i,n],!1}),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(I)},flatMap:function(t,e){return Xe(this,function(t,e,n){var r=Qe(t);return t.toSeq().map(function(i,s){return r(e.call(n,i,s,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return Xe(this,qe(this,t,!0))},fromEntrySeq:function(){return new Ve(this)},get:function(t,e){return this.find(function(e,n){return dt(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,i=nn(t);!(n=i.next()).done;){var s=n.value;if((r=r&&r.get?r.get(s,v):v)===v)return e}return r},groupBy:function(t,e){return function(t,e,n){var r=a(t),i=(c(t)?Ce():zt()).asMutable();t.__iterate(function(s,o){i.update(e.call(n,s,o,t),function(t){return(t=t||[]).push(r?[o,s]:s),t})});var s=Qe(t);return i.map(function(e){return Xe(t,s(e))})}(this,t,e)},has:function(t){return this.get(t,v)!==v},hasIn:function(t){return this.getIn(t,v)!==v},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return dt(e,t)})},keySeq:function(){return this.toSeq().map(On).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return He(this,t)},maxBy:function(t,e){return He(this,e,t)},min:function(t){return He(this,t?Tn(t):zn)},minBy:function(t,e){return He(this,e?Tn(e):zn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Xe(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Xe(this,Fe(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Ln(t),e)},sortBy:function(t,e){return Xe(this,Ge(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Xe(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Xe(this,function(t,e,n){var r=Ze(t);return r.__iterateUncached=function(r,i){var s=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return t.__iterate(function(t,i,a){return e.call(n,t,i,a)&&++o&&r(t,i,s)}),o},r.__iteratorUncached=function(r,i){var s=this;if(i)return this.cacheResult().__iterator(r,i);var o=t.__iterator(L,i),a=!0;return new z(function(){if(!a)return{value:void 0,done:!0};var t=o.next();if(t.done)return t;var i=t.value,h=i[0],u=i[1];return e.call(n,u,h,s)?r===L?t:B(r,h,u,t):(a=!1,{value:void 0,done:!0})})},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Ln(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=c(t),n=a(t),r=e?1:0;return function(t,e){return e=At(e,3432918353),e=At(e<<15|e>>>-15,461845907),e=At(e<<13|e>>>-13,5),e=At((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=St((e=At(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+Bn(wt(t),wt(e))|0}:function(t,e){r=r+Bn(wt(t),wt(e))|0}:e?function(t){r=31*r+wt(t)|0}:function(t){r=r+wt(t)|0}),r)}(this))}});var Nn=n.prototype;Nn[p]=!0,Nn[V]=Nn.values,Nn.__toJS=Nn.toArray,Nn.__toStringMapper=Dn,Nn.inspect=Nn.toSource=function(){return this.toString()},Nn.chain=Nn.flatMap,Nn.contains=Nn.includes,Cn(r,{flip:function(){return Xe(this,ze(this))},mapEntries:function(t,e){var n=this,r=0;return Xe(this,this.toSeq().map(function(i,s){return t.call(e,[s,i],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Xe(this,this.toSeq().flip().map(function(r,i){return t.call(e,r,i,n)}).flip())}});var Rn=r.prototype;function On(t,e){return e}function Mn(t,e){return[e,t]}function Ln(t){return function(){return!t.apply(this,arguments)}}function Tn(t){return function(){return-t.apply(this,arguments)}}function Dn(t){return"string"==typeof t?JSON.stringify(t):String(t)}function Vn(){return S(arguments)}function zn(t,e){return t<e?1:t>e?-1:0}function Bn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return Rn[l]=!0,Rn[V]=Nn.entries,Rn.__toJS=Nn.toObject,Rn.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Dn(t)},Cn(i,{toKeyedSeq:function(){return new Le(this,!1)},filter:function(t,e){return Xe(this,je(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Xe(this,We(this,!1))},slice:function(t,e){return Xe(this,Ue(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=C(t,t<0?this.count():this.size);var r=this.slice(0,t);return Xe(this,1===n?r:r.concat(S(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(t){return Xe(this,qe(this,t,!1))},get:function(t,e){return(t=P(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=P(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Xe(this,function(t,e){var n=Ze(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var i=this,s=0;return t.__iterate(function(t,r){return(!s||!1!==n(e,s++,i))&&!1!==n(t,s++,i)},r),s},n.__iteratorUncached=function(n,r){var i,s=t.__iterator(M,r),o=0;return new z(function(){return(!i||o%2)&&(i=s.next()).done?i:o%2?B(n,o++,e):B(n,o++,i.value,i)})},n}(this,t))},interleave:function(){var t=[this].concat(S(arguments)),e=Ye(this.toSeq(),Y.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Xe(this,n)},keySeq:function(){return vt(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Xe(this,Fe(this,t,e,!1))},zip:function(){return Xe(this,Ye(this,Vn,[this].concat(S(arguments))))},zipWith:function(t){var e=S(arguments);return e[0]=this,Xe(this,Ye(this,t,e))}}),i.prototype[f]=!0,i.prototype[d]=!0,Cn(s,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),s.prototype.has=Nn.includes,s.prototype.contains=s.prototype.includes,Cn(K,r.prototype),Cn(Y,i.prototype),Cn(X,s.prototype),Cn(_t,r.prototype),Cn(Et,i.prototype),Cn(bt,s.prototype),{Iterable:n,Seq:H,Collection:xt,Map:zt,OrderedMap:Ce,List:le,Stack:bn,Set:hn,OrderedSet:gn,Record:rn,Range:vt,Repeat:gt,is:dt,fromJS:pt}}()});!function(t){t[t.IGNORED_LABELS=0]="IGNORED_LABELS",t[t.ACCESSED_NODES=1]="ACCESSED_NODES",t[t.ARGUMENTS_VARIABLES=2]="ARGUMENTS_VARIABLES",t[t.ASSIGNED_NODES=3]="ASSIGNED_NODES",t[t.IGNORE_BREAK_STATEMENTS=4]="IGNORE_BREAK_STATEMENTS",t[t.IGNORE_RETURN_AWAIT_YIELD=5]="IGNORE_RETURN_AWAIT_YIELD",t[t.NODES_CALLED_AT_PATH_WITH_OPTIONS=6]="NODES_CALLED_AT_PATH_WITH_OPTIONS",t[t.REPLACED_VARIABLE_INITS=7]="REPLACED_VARIABLE_INITS",t[t.RETURN_EXPRESSIONS_ACCESSED_AT_PATH=8]="RETURN_EXPRESSIONS_ACCESSED_AT_PATH",t[t.RETURN_EXPRESSIONS_ASSIGNED_AT_PATH=9]="RETURN_EXPRESSIONS_ASSIGNED_AT_PATH",t[t.RETURN_EXPRESSIONS_CALLED_AT_PATH=10]="RETURN_EXPRESSIONS_CALLED_AT_PATH"}(Ve||(Ve={}));var We={},je=function(){function t(t){this.optionValues=t}return t.create=function(){return new this(Be.Map())},t.prototype.get=function(t){return this.optionValues.get(t)},t.prototype.remove=function(e){return new t(this.optionValues.remove(e))},t.prototype.set=function(e,n){return new t(this.optionValues.set(e,n))},t.prototype.setIn=function(e,n){return new t(this.optionValues.setIn(e,n))},t.prototype.addAccessedNodeAtPath=function(t,e){return this.setIn([Ve.ACCESSED_NODES,e].concat(t,[We]),!0)},t.prototype.addAccessedReturnExpressionAtPath=function(t,e){return this.setIn([Ve.RETURN_EXPRESSIONS_ACCESSED_AT_PATH,e].concat(t,[We]),!0)},t.prototype.addAssignedNodeAtPath=function(t,e){return this.setIn([Ve.ASSIGNED_NODES,e].concat(t,[We]),!0)},t.prototype.addAssignedReturnExpressionAtPath=function(t,e){return this.setIn([Ve.RETURN_EXPRESSIONS_ASSIGNED_AT_PATH,e].concat(t,[We]),!0)},t.prototype.addCalledNodeAtPathWithOptions=function(t,e,n){return this.setIn([Ve.NODES_CALLED_AT_PATH_WITH_OPTIONS,e].concat(t,[We,n]),!0)},t.prototype.addCalledReturnExpressionAtPath=function(t,e){return this.setIn([Ve.RETURN_EXPRESSIONS_CALLED_AT_PATH,e].concat(t,[We]),!0)},t.prototype.getArgumentsVariables=function(){return this.get(Ve.ARGUMENTS_VARIABLES)||[]},t.prototype.getHasEffectsWhenCalledOptions=function(){return this.setIgnoreReturnAwaitYield().setIgnoreBreakStatements(!1).setIgnoreNoLabels()},t.prototype.getReplacedVariableInit=function(t){return this.optionValues.getIn([Ve.REPLACED_VARIABLE_INITS,t])},t.prototype.hasNodeBeenAccessedAtPath=function(t,e){return this.optionValues.getIn([Ve.ACCESSED_NODES,e].concat(t,[We]))},t.prototype.hasNodeBeenAssignedAtPath=function(t,e){return this.optionValues.getIn([Ve.ASSIGNED_NODES,e].concat(t,[We]))},t.prototype.hasNodeBeenCalledAtPathWithOptions=function(t,e,n){var r=this.optionValues.getIn([Ve.NODES_CALLED_AT_PATH_WITH_OPTIONS,e].concat(t,[We]));return r&&r.find(function(t,e){return e.equals(n)})},t.prototype.hasReturnExpressionBeenAccessedAtPath=function(t,e){return this.optionValues.getIn([Ve.RETURN_EXPRESSIONS_ACCESSED_AT_PATH,e].concat(t,[We]))},t.prototype.hasReturnExpressionBeenAssignedAtPath=function(t,e){return this.optionValues.getIn([Ve.RETURN_EXPRESSIONS_ASSIGNED_AT_PATH,e].concat(t,[We]))},t.prototype.hasReturnExpressionBeenCalledAtPath=function(t,e){return this.optionValues.getIn([Ve.RETURN_EXPRESSIONS_CALLED_AT_PATH,e].concat(t,[We]))},t.prototype.ignoreBreakStatements=function(){return this.get(Ve.IGNORE_BREAK_STATEMENTS)},t.prototype.ignoreLabel=function(t){return this.optionValues.getIn([Ve.IGNORED_LABELS,t])},t.prototype.ignoreReturnAwaitYield=function(){return this.get(Ve.IGNORE_RETURN_AWAIT_YIELD)},t.prototype.replaceVariableInit=function(t,e){return this.setIn([Ve.REPLACED_VARIABLE_INITS,t],e)},t.prototype.setArgumentsVariables=function(t){return this.set(Ve.ARGUMENTS_VARIABLES,t)},t.prototype.setIgnoreBreakStatements=function(t){return void 0===t&&(t=!0),this.set(Ve.IGNORE_BREAK_STATEMENTS,t)},t.prototype.setIgnoreLabel=function(t){return this.setIn([Ve.IGNORED_LABELS,t],!0)},t.prototype.setIgnoreNoLabels=function(){return this.remove(Ve.IGNORED_LABELS)},t.prototype.setIgnoreReturnAwaitYield=function(t){return void 0===t&&(t=!0),this.set(Ve.IGNORE_RETURN_AWAIT_YIELD,t)},t}(),Ue={Program:["body"],Literal:[]};var Fe=je.create(),qe=function(){function t(t,e,n){this.keys=Ue[t.type]||function(t){return Ue[t.type]=Object.keys(t).filter(function(e){return"object"==typeof t[e]}),Ue[t.type]}(t),this.parent=e,this.context=e.context,this.createScope(n),this.parseNode(t),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}return t.prototype.bind=function(){for(var t=0,e=this.keys;t<e.length;t++){var n=this[e[t]];if(null!==n)if(Array.isArray(n))for(var r=0,i=n;r<i.length;r++){var s=i[r];null!==s&&s.bind()}else n.bind()}},t.prototype.createScope=function(t){this.scope=t},t.prototype.declare=function(t,e){},t.prototype.getLiteralValueAtPath=function(t,e,n){return ht},t.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return ut},t.prototype.hasEffects=function(t){for(var e=0,n=this.keys;e<n.length;e++){var r=this[n[e]];if(null!==r)if(Array.isArray(r))for(var i=0,s=r;i<s.length;i++){var o=s[i];if(null!==o&&o.hasEffects(t))return!0}else if(r.hasEffects(t))return!0}return!1},t.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>0},t.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return!0},t.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return!0},t.prototype.include=function(){this.included=!0;for(var t=0,e=this.keys;t<e.length;t++){var n=this[e[t]];if(null!==n)if(Array.isArray(n))for(var r=0,i=n;r<i.length;r++){var s=i[r];null!==s&&s.include()}else n.include()}},t.prototype.includeWithAllDeclaredVariables=function(){this.include()},t.prototype.initialise=function(){this.included=!1},t.prototype.insertSemicolon=function(t){";"!==t.original[this.end-1]&&t.appendLeft(this.end,";")},t.prototype.locate=function(){var t=ge(this.context.code,this.start,{offsetLine:1});return t.file=this.context.fileName,t.toString=function(){return JSON.stringify(t)},t},t.prototype.parseNode=function(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n[e];if(!this.hasOwnProperty(r)){var i=t[r];if("object"!=typeof i||null===i)this[r]=i;else if(Array.isArray(i)){this[r]=[];for(var s=0,o=i;s<o.length;s++){var a=o[s];this[r].push(null===a?null:new(this.context.nodeConstructors[a.type]||this.context.nodeConstructors.UnknownNode)(a,this,this.scope))}}else this[r]=new(this.context.nodeConstructors[i.type]||this.context.nodeConstructors.UnknownNode)(i,this,this.scope)}}},t.prototype.deoptimizePath=function(t){},t.prototype.render=function(t,e){for(var n=0,r=this.keys;n<r.length;n++){var i=this[r[n]];if(null!==i)if(Array.isArray(i))for(var s=0,o=i;s<o.length;s++){var a=o[s];null!==a&&a.render(t,e)}else i.render(t,e)}},t.prototype.shouldBeIncluded=function(){return this.included||this.hasEffects(Fe)},t.prototype.toString=function(){return this.context.code.slice(this.start,this.end)},t}(),Ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createScope=function(t){this.scope=new ze(t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>1},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return t.length>1},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return this.body.hasEffectsWhenCalledAtPath(t,e,n)||this.superClass&&this.superClass.hasEffectsWhenCalledAtPath(t,e,n)},e.prototype.initialise=function(){this.included=!1,null!==this.id&&this.id.declare("class",this)},e}(qe);function He(t){return t.type===$}var Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.initialise=function(){t.prototype.initialise.call(this),null!==this.id&&(this.id.variable.isId=!0)},e.prototype.parseNode=function(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),t.prototype.parseNode.call(this,e)},e.prototype.render=function(e,n){"system"===n.format&&this.id&&this.id.variable.exportName&&e.appendLeft(this.end," exports('"+this.id.variable.exportName+"', "+this.id.variable.getName()+");"),t.prototype.render.call(this,e,n)},e}(Ge),Ye=function(t,e){var n=parseInt(t[0],10);return n<e.getArgumentsVariables().length&&e.getArgumentsVariables()[n]||ut},Xe=function(t){function e(e,n){var r=t.call(this,"arguments",null,ut,n)||this;return r.parameters=e,r}return n(e,t),e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>1&&Ye(t,e).hasEffectsWhenAccessedAtPath(t.slice(1),e)},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return 0===t.length||this.included||Ye(t,e).hasEffectsWhenAssignedAtPath(t.slice(1),e)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return 0===t.length||Ye(t,n).hasEffectsWhenCalledAtPath(t.slice(1),e,n)},e.prototype.deoptimizePath=function(t){var e=parseInt(t[0],10);t.length>0&&e>=0&&this.parameters[e]&&this.parameters[e].deoptimizePath(t.slice(1))},e}(Vt),$e=function(t){function e(e){return t.call(this,"this",null,null,e)||this}return n(e,t),e.prototype.getLiteralValueAtPath=function(){return ht},e.prototype.hasEffectsWhenAccessedAtPath=function(e,n){return this._getInit(n).hasEffectsWhenAccessedAtPath(e,n)||t.prototype.hasEffectsWhenAccessedAtPath.call(this,e,n)},e.prototype.hasEffectsWhenAssignedAtPath=function(e,n){return this._getInit(n).hasEffectsWhenAssignedAtPath(e,n)||t.prototype.hasEffectsWhenAssignedAtPath.call(this,e,n)},e.prototype.hasEffectsWhenCalledAtPath=function(e,n,r){return this._getInit(r).hasEffectsWhenCalledAtPath(e,n,r)||t.prototype.hasEffectsWhenCalledAtPath.call(this,e,n,r)},e.prototype._getInit=function(t){return t.getReplacedVariableInit(this)||ut},e}(Vt),Je=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parameters=[],r.deoptimizationTracker=n,r.hoistedBodyVarScope=new ze(r),r}return n(e,t),e.prototype.addParameterDeclaration=function(t){var e,n=t.name;return n in this.hoistedBodyVarScope.variables?(e=this.hoistedBodyVarScope.variables[n]).addDeclaration(t,null):e=new Vt(n,t,ut,this.deoptimizationTracker),this.variables[n]=e,this.parameters.push(e),e},e.prototype.getParameterVariables=function(){return this.parameters},e}(ze),Qe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.returnExpressions=[],e.returnExpression=null,e}return n(e,t),e.prototype.addReturnExpression=function(t){this.returnExpressions.push(t)},e.prototype.getReturnExpression=function(){return null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression},e.prototype.updateReturnExpression=function(){if(1===this.returnExpressions.length)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=ut;for(var t=0,e=this.returnExpressions;t<e.length;t++){e[t].deoptimizePath(ot)}}},e}(Je),Ze=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.variables.arguments=new Xe(t.prototype.getParameterVariables.call(r),n),r.variables.this=new $e(n),r}return n(e,t),e.prototype.findLexicalBoundary=function(){return this},e.prototype.getOptionsWhenCalledWith=function(e,n){var r=this,i=e.args,s=e.withNew;return n.replaceVariableInit(this.variables.this,s?new kt:ut).setArgumentsVariables(i.map(function(e,n){return t.prototype.getParameterVariables.call(r)[n]||e}))},e}(Qe),tn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createScope=function(t){this.scope=new Ze(t,this.context.deoptimizationTracker)},e.prototype.getReturnExpressionWhenCalledAtPath=function(t){return 0===t.length?this.scope.getReturnExpression():ut},e.prototype.hasEffects=function(t){return this.id&&this.id.hasEffects(t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t){return!(t.length<=1)&&(t.length>2||"prototype"!==t[0]||this.isPrototypeDeoptimized)},e.prototype.hasEffectsWhenAssignedAtPath=function(t){return!(t.length<=1)&&(t.length>2||"prototype"!==t[0]||this.isPrototypeDeoptimized)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){if(t.length>0)return!0;for(var r=this.scope.getOptionsWhenCalledWith(e,n),i=0,s=this.params;i<s.length;i++){if(s[i].hasEffects(r))return!0}return this.body.hasEffects(r)},e.prototype.include=function(){this.scope.variables.arguments.include(),t.prototype.include.call(this)},e.prototype.initialise=function(){this.included=!1,this.isPrototypeDeoptimized=!1,null!==this.id&&this.id.declare("function",this);for(var t=0,e=this.params;t<e.length;t++){e[t].declare("parameter",ut)}this.body.addImplicitReturnExpressionToScope()},e.prototype.parseNode=function(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope),t.prototype.parseNode.call(this,e)},e.prototype.deoptimizePath=function(t){1===t.length&&("prototype"===t[0]?this.isPrototypeDeoptimized=!0:t[0]===it&&(this.isPrototypeDeoptimized=!0,this.scope.getReturnExpression().deoptimizePath(ot)))},e}(qe);tn.prototype.preventChildBlockScope=!0;var en=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.initialise=function(){t.prototype.initialise.call(this),null!==this.id&&(this.id.variable.isId=!0)},e.prototype.parseNode=function(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),t.prototype.parseNode.call(this,e)},e}(tn),nn=/\s/;var rn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.initialise=function(){this.included=!1,this.declarationName=this.declaration.id&&this.declaration.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.context.getModuleName(),this,this.context.deoptimizationTracker),this.context.addExport(this)},e.prototype.render=function(t,e,n){var r=void 0===n?Ce:n,i=r.start,s=r.end,o=function(t,e){for(void 0===e&&(e=0),e=Re(t,"default",e)+7;nn.test(t[e]);)e++;return e}(t.original,this.start);if(this.declaration.type===Q)this.renderNamedDeclaration(t,o,"function",null===this.declaration.id,e);else if(He(this.declaration))this.renderNamedDeclaration(t,o,"class",null===this.declaration.id,e);else{if(this.variable.referencesOriginal())return void("system"===e.format&&this.variable.exportName?t.overwrite(i,s,"exports('"+this.variable.exportName+"', "+this.variable.getName()+");"):t.remove(i,s));if(!this.variable.included)return t.remove(this.start,o),this.declaration.render(t,e,{renderedParentType:"ExpressionStatement",isCalleeOfRenderedParent:!1}),void(";"!==t.original[this.end-1]&&t.appendLeft(this.end,";"));this.renderVariableDeclaration(t,o,e)}this.declaration.render(t,e)},e.prototype.renderNamedDeclaration=function(t,e,n,r,i){var s=this.variable.getName();t.remove(this.start,e),r&&t.appendLeft(function(t,e,n){void 0===n&&(n=0);var r=Re(t,e,n)+e.length;t=t.slice(r,Re(t,"{",r));var i=Re(t,"*");return-1===i?r:r+i+1}(t.original,n,e)," "+s),"system"===i.format&&He(this.declaration)&&this.variable.exportName&&t.appendLeft(this.end," exports('"+this.variable.exportName+"', "+s+");")},e.prototype.renderVariableDeclaration=function(t,e,n){var r="system"===n.format&&this.variable.exportName?"exports('"+this.variable.exportName+"', ":"";t.overwrite(this.start,e,this.context.varOrConst+" "+this.variable.getName()+" = "+r);var i=59===t.original.charCodeAt(this.end-1);r?t.appendRight(i?this.end-1:this.end,")"+(i?"":";")):i||t.appendLeft(this.end,";")},e}(qe);rn.prototype.needsBoundaries=!0;var sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this);for(var e=0,n=this.elements;e<n.length;e++){var r=n[e];null!==r&&r.deoptimizePath(ot)}},e.prototype.getReturnExpressionWhenCalledAtPath=function(t){return 1!==t.length?ut:Tt(Nt,t[0])},e.prototype.hasEffectsWhenAccessedAtPath=function(t){return t.length>1},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return 1!==t.length||Lt(Nt,t[0],this.included,e,n)},e}(qe),on=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.declare=function(t,e){for(var n=0,r=this.elements;n<r.length;n++){var i=r[n];null!==i&&i.declare(t,ut)}},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){if(t.length>0)return!0;for(var n=0,r=this.elements;n<r.length;n++){var i=r[n];if(null!==i&&i.hasEffectsWhenAssignedAtPath(st,e))return!0}return!1},e.prototype.deoptimizePath=function(t){if(0===t.length)for(var e=0,n=this.elements;e<n.length;e++){var r=n[e];null!==r&&r.deoptimizePath(t)}},e}(qe),an=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.addDeclaration=function(e,n,r,i){return void 0===r&&(r=null),void 0===i&&(i=!1),i?this.parent.addDeclaration(e,n,r,!0):t.prototype.addDeclaration.call(this,e,n,r,!1)},e}(ze),hn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.addImplicitReturnExpressionToScope=function(){var t=this.body[this.body.length-1];t&&"ReturnStatement"===t.type||this.scope.addReturnExpression(ut)},e.prototype.createScope=function(t){this.scope=this.parent.preventChildBlockScope?t:new an(t)},e.prototype.hasEffects=function(t){for(var e=0,n=this.body;e<n.length;e++){if(n[e].hasEffects(t))return!0}},e.prototype.include=function(){this.included=!0;for(var t=0,e=this.body;t<e.length;t++){var n=e[t];n.shouldBeIncluded()&&n.include()}},e.prototype.render=function(e,n){this.body.length?Me(this.body,e,this.start+1,this.end-1,n):t.prototype.render.call(this,e,n)},e}(qe),un=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createScope=function(t){this.scope=new Qe(t,this.context.deoptimizationTracker)},e.prototype.getReturnExpressionWhenCalledAtPath=function(t){return 0===t.length?this.scope.getReturnExpression():ut},e.prototype.hasEffects=function(t){return!1},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>1},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return t.length>1},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){if(t.length>0)return!0;for(var r=0,i=this.params;r<i.length;r++){if(i[r].hasEffects(n))return!0}return this.body.hasEffects(n)},e.prototype.initialise=function(){this.included=!1;for(var t=0,e=this.params;t<e.length;t++){e[t].declare("parameter",ut)}this.body instanceof hn?this.body.addImplicitReturnExpressionToScope():this.scope.addReturnExpression(this.body)},e.prototype.parseNode=function(e){"BlockStatement"===e.body.type&&(this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope)),t.prototype.parseNode.call(this,e)},e.prototype.deoptimizePath=function(t){1===t.length&&t[0]===it&&this.scope.getReturnExpression().deoptimizePath(ot)},e}(qe);un.prototype.preventChildBlockScope=!0;var cn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.left.deoptimizePath(st),this.right.deoptimizePath(ot)},e.prototype.hasEffects=function(t){return this.right.hasEffects(t)||this.left.hasEffects(t)||this.left.hasEffectsWhenAssignedAtPath(st,t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>0&&this.right.hasEffectsWhenAccessedAtPath(t,e)},e.prototype.render=function(t,e){this.left.render(t,e),this.right.render(t,e),"system"===e.format&&this.left.variable&&this.left.variable.exportName&&(t.prependLeft(t.original.indexOf("=",this.left.end)+1," exports('"+this.left.variable.exportName+"',"),t.prependRight(this.right.end,")"))},e}(qe),pn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.left.deoptimizePath(st),this.right.deoptimizePath(ot)},e.prototype.declare=function(t,e){this.left.declare(t,e)},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return t.length>0||this.left.hasEffectsWhenAssignedAtPath(st,e)},e.prototype.deoptimizePath=function(t){0===t.length&&this.left.deoptimizePath(t)},e.prototype.render=function(t,e,n){var r=(void 0===n?Ce:n).isShorthandProperty;this.left.render(t,e,{isShorthandProperty:r}),this.right.render(t,e)},e}(qe),ln=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.include=function(){if(t.prototype.include.call(this),!this.context.usesTopLevelAwait){var e=this.parent;do{if(e instanceof tn||e instanceof un)return}while(e=e.parent);this.context.usesTopLevelAwait=!0}},e.prototype.hasEffects=function(e){return t.prototype.hasEffects.call(this,e)||!e.ignoreReturnAwaitYield()},e.prototype.render=function(e,n){t.prototype.render.call(this,e,n)},e}(qe),fn={"==":function(t,e){return t==e},"!=":function(t,e){return t!=e},"===":function(t,e){return t===e},"!==":function(t,e){return t!==e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"<<":function(t,e){return t<<e},">>":function(t,e){return t>>e},">>>":function(t,e){return t>>>e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"|":function(t,e){return t|e},"^":function(t,e){return t^e},"&":function(t,e){return t&e},"**":function(t,e){return Math.pow(t,e)},in:function(){return ht},instanceof:function(){return ht}},dn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getLiteralValueAtPath=function(t,e,n){if(t.length>0)return ht;var r=this.left.getLiteralValueAtPath(st,e,n);if(r===ht)return ht;var i=this.right.getLiteralValueAtPath(st,e,n);if(i===ht)return ht;var s=fn[this.operator];return s?s(r,i):ht},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>1},e}(qe),mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(e){return t.prototype.hasEffects.call(this,e)||!e.ignoreBreakStatements()||this.label&&!e.ignoreLabel(this.label.name)},e}(qe),gn={},yn=new(function(){function t(t){void 0===t&&(t=Be.Map()),this.entityPaths=t}return t.prototype.isTracked=function(t,e){return this.entityPaths.getIn([t].concat(e,[gn]))},t.prototype.track=function(e,n){return new t(this.entityPaths.setIn([e].concat(n,[gn]),!0))},t}());function vn(t){return t.type===Z}var xn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){this.bound||(this.bound=!0,null===this.variable&&function t(e,n){return"MemberExpression"===e.type?!e.computed&&t(e.object,e):"Identifier"===e.type&&(!n||("MemberExpression"===n.type||"MethodDefinition"===n.type?n.computed||e===n.object:"Property"===n.type?n.computed||e===n.value:"ExportSpecifier"!==n.type||e===n.local))}(this,this.parent)&&(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)),null!==this.variable&&this.variable.isLocal&&null!==this.variable.additionalInitializers&&this.variable.consolidateInitializers())},e.prototype.declare=function(t,e){switch(t){case"var":case"function":this.variable=this.scope.addDeclaration(this,this.context.deoptimizationTracker,e,!0);break;case"let":case"const":case"class":this.variable=this.scope.addDeclaration(this,this.context.deoptimizationTracker,e,!1);break;case"parameter":this.variable=this.scope.addParameterDeclaration(this);break;default:throw new Error("Unexpected identifier kind "+t+".")}},e.prototype.getLiteralValueAtPath=function(t,e,n){return null!==this.variable?this.variable.getLiteralValueAtPath(t,e,n):ht},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return null!==this.variable?this.variable.getReturnExpressionWhenCalledAtPath(t,e,n):ut},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return this.variable&&this.variable.hasEffectsWhenAccessedAtPath(t,e)},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return!this.variable||this.variable.hasEffectsWhenAssignedAtPath(t,e)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return!this.variable||this.variable.hasEffectsWhenCalledAtPath(t,e,n)},e.prototype.include=function(){this.included||(this.included=!0,null===this.variable||this.variable.included||(this.variable.include(),this.context.requestTreeshakingPass()))},e.prototype.initialise=function(){this.included=!1,this.bound=!1,this.variable||(this.variable=null)},e.prototype.deoptimizePath=function(t){this.bound||this.bind(),null!==this.variable&&(0===t.length&&this.name in this.context.imports&&!this.scope.contains(this.name)&&this.disallowImportReassignment(),this.variable.deoptimizePath(t))},e.prototype.render=function(t,e,n){var r=void 0===n?Ce:n,i=r.renderedParentType,s=r.isCalleeOfRenderedParent,o=r.isShorthandProperty;if(this.variable){var a=this.variable.getName();a!==this.name&&(t.overwrite(this.start,this.end,a,{storeName:!0,contentOnly:!0}),o&&t.prependRight(this.start,this.name+": ")),"eval"===a&&"CallExpression"===i&&s&&t.appendRight(this.start,"0, ")}},e.prototype.disallowImportReassignment=function(){this.context.error({code:"ILLEGAL_REASSIGNMENT",message:"Illegal reassignment to import '"+this.name+"'"},this.start)},e}(qe),_n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){(t.prototype.bind.call(this),this.callee instanceof xn)&&(this.scope.findVariable(this.callee.name).isNamespace&&this.context.error({code:"CANNOT_CALL_NAMESPACE",message:"Cannot call a namespace ('"+this.callee.name+"')"},this.start),"eval"===this.callee.name&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en#avoiding-eval"},this.start));null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(st,yn,this));for(var e=0,n=this.arguments;e<n.length;e++){n[e].deoptimizePath(ot)}},e.prototype.deoptimizeCache=function(){if(this.returnExpression!==ut){this.returnExpression=ut;for(var t=0,e=this.expressionsToBeDeoptimized;t<e.length;t++){e[t].deoptimizeCache()}}},e.prototype.getLiteralValueAtPath=function(t,e,n){return null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(st,e,this)),this.returnExpression===ut||e.isTracked(this.returnExpression,t)?ht:(this.expressionsToBeDeoptimized.push(n),this.returnExpression.getLiteralValueAtPath(t,e.track(this.returnExpression,t),n))},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(st,e,this)),this.returnExpression===ut||e.isTracked(this.returnExpression,t)?ut:(this.expressionsToBeDeoptimized.push(n),this.returnExpression.getReturnExpressionWhenCalledAtPath(t,e.track(this.returnExpression,t),n))},e.prototype.hasEffects=function(t){for(var e=0,n=this.arguments;e<n.length;e++){if(n[e].hasEffects(t))return!0}return this.callee.hasEffects(t)||this.callee.hasEffectsWhenCalledAtPath(st,this.callOptions,t.getHasEffectsWhenCalledOptions())},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>0&&!e.hasReturnExpressionBeenAccessedAtPath(t,this)&&this.returnExpression.hasEffectsWhenAccessedAtPath(t,e.addAccessedReturnExpressionAtPath(t,this))},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return 0===t.length||!e.hasReturnExpressionBeenAssignedAtPath(t,this)&&this.returnExpression.hasEffectsWhenAssignedAtPath(t,e.addAssignedReturnExpressionAtPath(t,this))},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){if(n.hasReturnExpressionBeenCalledAtPath(t,this))return!1;var r=n.addCalledReturnExpressionAtPath(t,this);return this.hasEffects(r)||this.returnExpression.hasEffectsWhenCalledAtPath(t,e,r)},e.prototype.include=function(){t.prototype.include.call(this),this.returnExpression.included||this.returnExpression.include()},e.prototype.initialise=function(){this.included=!1,this.returnExpression=null,this.callOptions=rt.create({withNew:!1,args:this.arguments,callIdentifier:this}),this.expressionsToBeDeoptimized=[]},e.prototype.deoptimizePath=function(t){t.length>0&&!this.context.deoptimizationTracker.track(this,t)&&(null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(st,yn,this)),this.returnExpression.deoptimizePath(t))},e}(qe),En=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.addDeclaration=function(e,n,r,i){return void 0===r&&(r=null),void 0===i&&(i=!1),i?this.parent.addDeclaration(e,n,r,!0):t.prototype.addDeclaration.call(this,e,n,r,!1)},e}(Je),bn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createScope=function(t){this.scope=new En(t,this.context.deoptimizationTracker)},e.prototype.initialise=function(){this.included=!1,this.param&&this.param.declare("parameter",ut)},e.prototype.parseNode=function(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope),t.prototype.parseNode.call(this,e)},e}(qe);bn.prototype.preventChildBlockScope=!0;var An=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return t.length>0||null!==this.classConstructor&&this.classConstructor.hasEffectsWhenCalledAtPath(st,e,n)},e.prototype.initialise=function(){this.included=!1;for(var t=0,e=this.body;t<e.length;t++){var n=e[t];if("constructor"===n.kind)return void(this.classConstructor=n)}this.classConstructor=null},e}(qe),Sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Ge),wn=function(){function t(t){this.expressions=t}return t.prototype.getLiteralValueAtPath=function(){return ht},t.prototype.getReturnExpressionWhenCalledAtPath=function(e,n,r){return new t(this.expressions.map(function(t){return t.getReturnExpressionWhenCalledAtPath(e,n,r)}))},t.prototype.hasEffectsWhenAccessedAtPath=function(t,e){for(var n=0,r=this.expressions;n<r.length;n++){if(r[n].hasEffectsWhenAccessedAtPath(t,e))return!0}return!1},t.prototype.hasEffectsWhenAssignedAtPath=function(t,e){for(var n=0,r=this.expressions;n<r.length;n++){if(r[n].hasEffectsWhenAssignedAtPath(t,e))return!0}return!1},t.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){for(var r=0,i=this.expressions;r<i.length;r++){if(i[r].hasEffectsWhenCalledAtPath(t,e,n))return!0}return!1},t.prototype.include=function(){},t.prototype.deoptimizePath=function(t){for(var e=0,n=this.expressions;e<n.length;e++){n[e].deoptimizePath(t)}},t}(),Pn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.isBranchResolutionAnalysed||this.analyseBranchResolution()},e.prototype.deoptimizeCache=function(){if(null!==this.usedBranch){this.usedBranch=null,this.unusedBranch.deoptimizePath(ot);for(var t=0,e=this.expressionsToBeDeoptimized;t<e.length;t++){e[t].deoptimizeCache()}}},e.prototype.getLiteralValueAtPath=function(t,e,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?ht:(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getLiteralValueAtPath(t,e,n))},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?new wn([this.consequent.getReturnExpressionWhenCalledAtPath(t,e,n),this.alternate.getReturnExpressionWhenCalledAtPath(t,e,n)]):(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getReturnExpressionWhenCalledAtPath(t,e,n))},e.prototype.hasEffects=function(t){return!!this.test.hasEffects(t)||(null===this.usedBranch?this.consequent.hasEffects(t)||this.alternate.hasEffects(t):this.usedBranch.hasEffects(t))},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return 0!==t.length&&(null===this.usedBranch?this.consequent.hasEffectsWhenAccessedAtPath(t,e)||this.alternate.hasEffectsWhenAccessedAtPath(t,e):this.usedBranch.hasEffectsWhenAccessedAtPath(t,e))},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return 0===t.length||(null===this.usedBranch?this.consequent.hasEffectsWhenAssignedAtPath(t,e)||this.alternate.hasEffectsWhenAssignedAtPath(t,e):this.usedBranch.hasEffectsWhenAssignedAtPath(t,e))},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return null===this.usedBranch?this.consequent.hasEffectsWhenCalledAtPath(t,e,n)||this.alternate.hasEffectsWhenCalledAtPath(t,e,n):this.usedBranch.hasEffectsWhenCalledAtPath(t,e,n)},e.prototype.initialise=function(){this.included=!1,this.isBranchResolutionAnalysed=!1,this.usedBranch=null,this.unusedBranch=null,this.expressionsToBeDeoptimized=[]},e.prototype.include=function(){this.included=!0,null===this.usedBranch||this.test.shouldBeIncluded()?(this.test.include(),this.consequent.include(),this.alternate.include()):this.usedBranch.include()},e.prototype.deoptimizePath=function(t){t.length>0&&(this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?(this.consequent.deoptimizePath(t),this.alternate.deoptimizePath(t)):this.usedBranch.deoptimizePath(t))},e.prototype.render=function(e,n,r){var i=void 0===r?Ce:r,s=i.renderedParentType,o=i.isCalleeOfRenderedParent;this.test.included?t.prototype.render.call(this,e,n):(e.remove(this.start,this.usedBranch.start),e.remove(this.usedBranch.end,this.end),this.usedBranch.render(e,n,{renderedParentType:s||this.parent.type,isCalleeOfRenderedParent:s?o:this.parent.callee===this}))},e.prototype.analyseBranchResolution=function(){this.isBranchResolutionAnalysed=!0;var t=this.test.getLiteralValueAtPath(st,yn,this);t!==ht&&(t?(this.usedBranch=this.consequent,this.unusedBranch=this.alternate):(this.usedBranch=this.alternate,this.unusedBranch=this.consequent))},e}(qe),In=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return this.test.hasEffects(t)||this.body.hasEffects(t.setIgnoreBreakStatements())},e}(qe),kn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(t,e){"BlockStatement"!==this.parent.type&&"Program"!==this.parent.type||t.remove(this.start,this.end)},e}(qe),Cn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.initialise=function(){this.included=!1,this.context.addExport(this)},e.prototype.render=function(t,e,n){var r=void 0===n?Ce:n,i=r.start,s=r.end;t.remove(i,s)},e}(qe);Cn.prototype.needsBoundaries=!0;var Nn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){null!==this.declaration&&this.declaration.bind()},e.prototype.hasEffects=function(t){return this.declaration&&this.declaration.hasEffects(t)},e.prototype.initialise=function(){this.included=!1,this.context.addExport(this)},e.prototype.render=function(t,e,n){var r=void 0===n?Ce:n,i=r.start,s=r.end;null===this.declaration?t.remove(i,s):(t.remove(this.start,this.declaration.start),this.declaration.render(t,e,{start:i,end:s}))},e}(qe);Nn.prototype.needsBoundaries=!0;var Rn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.initialise=function(){this.included=!1,this.directive&&"use strict"!==this.directive&&"Program"===this.parent.type&&this.context.warn({code:"MODULE_LEVEL_DIRECTIVE",message:"Module level directives cause errors when bundled, '"+this.directive+"' was ignored."},this.start)},e.prototype.shouldBeIncluded=function(){return this.directive&&"use strict"!==this.directive?"Program"!==this.parent.type:t.prototype.shouldBeIncluded.call(this)},e.prototype.render=function(e,n){t.prototype.render.call(this,e,n),this.included&&this.insertSemicolon(e)},e}(qe),On=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){this.left.bind(),this.left.deoptimizePath(st),this.right.bind(),this.body.bind()},e.prototype.createScope=function(t){this.scope=new an(t)},e.prototype.hasEffects=function(t){return this.left&&(this.left.hasEffects(t)||this.left.hasEffectsWhenAssignedAtPath(st,t))||this.right&&this.right.hasEffects(t)||this.body.hasEffects(t.setIgnoreBreakStatements())},e.prototype.include=function(){this.included=!0,this.left.includeWithAllDeclaredVariables(),this.left.deoptimizePath(st),this.right.include(),this.body.include()},e.prototype.render=function(t,e){this.left.render(t,e,Ne),this.right.render(t,e,Ne),this.body.render(t,e)},e}(qe),Mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){this.left.bind(),this.left.deoptimizePath(st),this.right.bind(),this.body.bind()},e.prototype.createScope=function(t){this.scope=new an(t)},e.prototype.hasEffects=function(t){return this.left&&(this.left.hasEffects(t)||this.left.hasEffectsWhenAssignedAtPath(st,t))||this.right&&this.right.hasEffects(t)||this.body.hasEffects(t.setIgnoreBreakStatements())},e.prototype.include=function(){this.included=!0,this.left.includeWithAllDeclaredVariables(),this.left.deoptimizePath(st),this.right.include(),this.body.include()},e.prototype.render=function(t,e){this.left.render(t,e,Ne),this.right.render(t,e,Ne),this.body.render(t,e)},e}(qe),Ln=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createScope=function(t){this.scope=new an(t)},e.prototype.hasEffects=function(t){return this.init&&this.init.hasEffects(t)||this.test&&this.test.hasEffects(t)||this.update&&this.update.hasEffects(t)||this.body.hasEffects(t.setIgnoreBreakStatements())},e.prototype.render=function(t,e){this.init&&this.init.render(t,e,Ne),this.test&&this.test.render(t,e,Ne),this.update&&this.update.render(t,e,Ne),this.body.render(t,e)},e}(qe),Tn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(tn),Dn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.isTestValueAnalysed||(this.testValue=ht,this.isTestValueAnalysed=!0,this.testValue=this.test.getLiteralValueAtPath(st,yn,this))},e.prototype.deoptimizeCache=function(){this.testValue=ht},e.prototype.hasEffects=function(t){return!!this.test.hasEffects(t)||(this.testValue===ht?this.consequent.hasEffects(t)||null!==this.alternate&&this.alternate.hasEffects(t):this.testValue?this.consequent.hasEffects(t):null!==this.alternate&&this.alternate.hasEffects(t))},e.prototype.include=function(){this.included=!0,(this.testValue===ht||this.test.shouldBeIncluded())&&this.test.include(),(this.testValue===ht||this.testValue)&&this.consequent.shouldBeIncluded()&&this.consequent.include(),null===this.alternate||this.testValue!==ht&&this.testValue||!this.alternate.shouldBeIncluded()||this.alternate.include()},e.prototype.initialise=function(){this.included=!1,this.isTestValueAnalysed=!1},e.prototype.render=function(t,e){if(this.test.included||(this.testValue?null!==this.alternate&&this.alternate.included:this.consequent.included))this.test.included?this.test.render(t,e):t.overwrite(this.test.start,this.test.end,this.testValue?"true":"false"),this.consequent.included?this.consequent.render(t,e):t.overwrite(this.consequent.start,this.consequent.end,";"),null!==this.alternate&&(this.alternate.included?this.alternate.render(t,e):t.remove(this.consequent.end,this.alternate.end));else{var n=this.testValue?this.consequent:this.alternate;t.remove(this.start,n.start),t.remove(n.end,this.end),n.render(t,e)}},e}(qe),Vn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.initialise=function(){this.included=!1,this.resolutionNamespace=void 0,this.resolutionInterop=!1,this.rendered=!1,this.context.addDynamicImport(this)},e.prototype.renderFinalResolution=function(t,e){this.rendered&&t.overwrite(this.parent.arguments[0].start,this.parent.arguments[0].end,e)},e.prototype.render=function(t,e){if(this.rendered=!0,this.resolutionNamespace){var n=e.compact?"":" ",r=e.compact?"":";";t.overwrite(this.parent.start,this.parent.end,"Promise.resolve().then(function"+n+"()"+n+"{"+n+"return "+this.resolutionNamespace+r+n+"})")}else{var i=function(t,e){switch(t){case"cjs":return{left:"Promise.resolve(require(",right:"))",interopLeft:"Promise.resolve({"+(n=e?"":" ")+"default:"+n+"require(",interopRight:")"+n+"})"};case"amd":var n,r=e?"c":"resolve",i=e?"e":"reject";return{left:"new Promise(function"+(n=e?"":" ")+"("+r+","+n+i+")"+n+"{"+n+"require([",right:"],"+n+r+","+n+i+")"+n+"})",interopLeft:"new Promise(function"+n+"("+r+","+n+i+")"+n+"{"+n+"require([",interopRight:"],"+n+"function"+n+"(m)"+n+"{"+n+r+"({"+n+"default:"+n+"m"+n+"})"+n+"},"+n+i+")"+n+"})"};case"system":return{left:"module.import(",right:")"}}}(e.format,e.compact);if(i){var s=this.resolutionInterop&&i.interopLeft||i.left;t.overwrite(this.parent.start,this.parent.arguments[0].start,s);var o=this.resolutionInterop&&i.interopRight||i.right;t.overwrite(this.parent.arguments[0].end,this.parent.end,o)}}},e.prototype.setResolution=function(t,e){void 0===e&&(e=void 0),this.rendered=!1,this.resolutionInterop=t,this.resolutionNamespace=e},e}(qe),zn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){},e.prototype.initialise=function(){this.included=!1,this.context.addImport(this)},e.prototype.hasEffects=function(){return!1},e.prototype.render=function(t,e,n){var r=void 0===n?Ce:n,i=r.start,s=r.end;t.remove(i,s)},e}(qe);zn.prototype.needsBoundaries=!0;var Bn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return this.body.hasEffects(t.setIgnoreLabel(this.label.name).setIgnoreBreakStatements())},e}(qe);var Wn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getLiteralValueAtPath=function(t){return t.length>0?ht:this.value},e.prototype.getReturnExpressionWhenCalledAtPath=function(t){return 1!==t.length?ut:Tt(this.members,t[0])},e.prototype.hasEffectsWhenAccessedAtPath=function(t){return null===this.value?t.length>0:t.length>1},e.prototype.hasEffectsWhenAssignedAtPath=function(t){return t.length>0},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return 1!==t.length||Lt(this.members,t[0],this.included,e,n)},e.prototype.initialise=function(){this.included=!1,this.members=function(t){switch(typeof t){case"boolean":return Rt;case"number":return Ot;case"string":return Mt;default:return Object.create(null)}}(this.value)},e.prototype.render=function(t,e){"string"==typeof this.value&&t.indentExclusionRanges.push([this.start+1,this.end-1])},e}(qe),jn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.isBranchResolutionAnalysed||this.analyseBranchResolution()},e.prototype.deoptimizeCache=function(){if(null!==this.usedBranch){this.usedBranch=null,this.unusedBranch.deoptimizePath(ot);for(var t=0,e=this.expressionsToBeDeoptimized;t<e.length;t++){e[t].deoptimizeCache()}}},e.prototype.getLiteralValueAtPath=function(t,e,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?ht:(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getLiteralValueAtPath(t,e,n))},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?new wn([this.left.getReturnExpressionWhenCalledAtPath(t,e,n),this.right.getReturnExpressionWhenCalledAtPath(t,e,n)]):(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getReturnExpressionWhenCalledAtPath(t,e,n))},e.prototype.hasEffects=function(t){return null===this.usedBranch?this.left.hasEffects(t)||this.right.hasEffects(t):this.usedBranch.hasEffects(t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return 0!==t.length&&(null===this.usedBranch?this.left.hasEffectsWhenAccessedAtPath(t,e)||this.right.hasEffectsWhenAccessedAtPath(t,e):this.usedBranch.hasEffectsWhenAccessedAtPath(t,e))},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return 0===t.length||(null===this.usedBranch?this.left.hasEffectsWhenAssignedAtPath(t,e)||this.right.hasEffectsWhenAssignedAtPath(t,e):this.usedBranch.hasEffectsWhenAssignedAtPath(t,e))},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return null===this.usedBranch?this.left.hasEffectsWhenCalledAtPath(t,e,n)||this.right.hasEffectsWhenCalledAtPath(t,e,n):this.usedBranch.hasEffectsWhenCalledAtPath(t,e,n)},e.prototype.include=function(){this.included=!0,null===this.usedBranch||this.unusedBranch.shouldBeIncluded()?(this.left.include(),this.right.include()):this.usedBranch.include()},e.prototype.initialise=function(){this.included=!1,this.isBranchResolutionAnalysed=!1,this.usedBranch=null,this.unusedBranch=null,this.expressionsToBeDeoptimized=[]},e.prototype.deoptimizePath=function(t){t.length>0&&(this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?(this.left.deoptimizePath(t),this.right.deoptimizePath(t)):this.usedBranch.deoptimizePath(t))},e.prototype.render=function(e,n,r){var i=void 0===r?Ce:r,s=i.renderedParentType,o=i.isCalleeOfRenderedParent;this.left.included&&this.right.included?t.prototype.render.call(this,e,n):(e.remove(this.start,this.usedBranch.start),e.remove(this.usedBranch.end,this.end),this.usedBranch.render(e,n,{renderedParentType:s||this.parent.type,isCalleeOfRenderedParent:s?o:this.parent.callee===this}))},e.prototype.analyseBranchResolution=function(){this.isBranchResolutionAnalysed=!0;var t=this.left.getLiteralValueAtPath(st,yn,this);t!==ht&&(("||"===this.operator?t:!t)?(this.usedBranch=this.left,this.unusedBranch=this.right):(this.usedBranch=this.right,this.unusedBranch=this.left))},e}(qe);function Un(t,e){var n=ie(e||t),r=oe(t);return n.endsWith(r)&&(n=n.substr(0,n.length-r.length)),n}function Fn(t){return"undefined"!=typeof process&&ee(t)?ae(process.cwd(),t):t}function qn(t){return"/"!==t[0]&&("."!==t[1]||"/"!==t[2]&&("."!==t[2]||"/"!==t[3]))&&-1===t.indexOf(":")}function Gn(t){return t.computed?function(t){if(t instanceof Wn)return String(t.value);return null}(t.property):t.property.name}function Hn(t){var e=t.propertyKey,n=t.object;if("string"==typeof e){if(n instanceof xn)return[{key:n.name,pos:n.start},{key:e,pos:t.property.start}];if(n.type===et){var r=Hn(n);return r&&r.concat([{key:e,pos:t.property.start}])}}return null}var Kn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.variable=null,e}return n(e,t),e.prototype.bind=function(){if(!this.bound){this.bound=!0;var e=Hn(this),n=e&&this.scope.findVariable(e[0].key);if(n&&n.isNamespace){var r=this.resolveNamespaceVariables(n,e.slice(1));r?"string"==typeof r?this.replacement=r:(r.isExternal&&r.module&&r.module.suggestName(e[0].key),this.variable=r):t.prototype.bind.call(this)}else t.prototype.bind.call(this),null===this.propertyKey&&this.analysePropertyKey()}},e.prototype.deoptimizeCache=function(){for(var t=0,e=this.expressionsToBeDeoptimized;t<e.length;t++){e[t].deoptimizeCache()}},e.prototype.getLiteralValueAtPath=function(t,e,n){return null!==this.variable?this.variable.getLiteralValueAtPath(t,e,n):(null===this.propertyKey&&this.analysePropertyKey(),this.expressionsToBeDeoptimized.push(n),this.object.getLiteralValueAtPath([this.propertyKey].concat(t),e,n))},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return null!==this.variable?this.variable.getReturnExpressionWhenCalledAtPath(t,e,n):(null===this.propertyKey&&this.analysePropertyKey(),this.expressionsToBeDeoptimized.push(n),this.object.getReturnExpressionWhenCalledAtPath([this.propertyKey].concat(t),e,n))},e.prototype.hasEffects=function(t){return this.property.hasEffects(t)||this.object.hasEffects(t)||this.context.propertyReadSideEffects&&this.object.hasEffectsWhenAccessedAtPath([this.propertyKey],t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return 0!==t.length&&(null!==this.variable?this.variable.hasEffectsWhenAccessedAtPath(t,e):this.object.hasEffectsWhenAccessedAtPath([this.propertyKey].concat(t),e))},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return null!==this.variable?this.variable.hasEffectsWhenAssignedAtPath(t,e):this.object.hasEffectsWhenAssignedAtPath([this.propertyKey].concat(t),e)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return null!==this.variable?this.variable.hasEffectsWhenCalledAtPath(t,e,n):this.object.hasEffectsWhenCalledAtPath([this.propertyKey].concat(t),e,n)},e.prototype.include=function(){this.included||(this.included=!0,null===this.variable||this.variable.included||(this.variable.include(),this.context.requestTreeshakingPass())),this.object.include(),this.property.include()},e.prototype.initialise=function(){this.included=!1,this.propertyKey=Gn(this),this.variable=null,this.bound=!1,this.replacement=null,this.expressionsToBeDeoptimized=[]},e.prototype.deoptimizePath=function(t){this.bound||this.bind(),0===t.length&&this.disallowNamespaceReassignment(),this.variable?this.variable.deoptimizePath(t):(null===this.propertyKey&&this.analysePropertyKey(),this.object.deoptimizePath([this.propertyKey].concat(t)))},e.prototype.render=function(e,n,r){var i=void 0===r?Ce:r,s=i.renderedParentType,o=i.isCalleeOfRenderedParent,a="CallExpression"===s&&o;if(this.variable||this.replacement){var h=this.variable?this.variable.getName():this.replacement;a&&(h="0, "+h),e.overwrite(this.start,this.end,h,{storeName:!0,contentOnly:!0})}else a&&e.appendRight(this.start,"0, "),t.prototype.render.call(this,e,n)},e.prototype.disallowNamespaceReassignment=function(){this.object instanceof xn&&this.scope.findVariable(this.object.name).isNamespace&&this.context.error({code:"ILLEGAL_NAMESPACE_REASSIGNMENT",message:"Illegal reassignment to import '"+this.object.name+"'"},this.start)},e.prototype.resolveNamespaceVariables=function(t,e){if(0===e.length)return t;if(!t.isNamespace)return null;var n=e[0].key,r=t.isExternal?t.module.traceExport(n):t.context.traceExport(n);if(!r){var i=t.isExternal?t.module.id:t.context.fileName;return this.context.warn({code:"MISSING_EXPORT",missing:n,importer:Fn(this.context.fileName),exporter:Fn(i),message:"'"+n+"' is not exported by '"+Fn(i)+"'",url:"https://rollupjs.org/guide/en#error-name-is-not-exported-by-module-"},e[0].pos),"undefined"}return this.resolveNamespaceVariables(r,e.slice(1))},e.prototype.analysePropertyKey=function(){this.propertyKey=it;var t=this.property.getLiteralValueAtPath(st,yn,this);this.propertyKey=t===ht?it:String(t)},e}(qe),Yn="(typeof document !== 'undefined' ? document.currentScript && document.currentScript.src || document.baseURI : new (typeof URL !== 'undefined' ? URL : require('ur'+'l').URL)('file:' + __filename).href)",Xn={amd:"new URL((typeof process !== 'undefined' && process.versions && process.versions.node ? 'file:' : '') + module.uri).href",cjs:"new (typeof URL !== 'undefined' ? URL : require('ur'+'l').URL)((process.browser ? '' : 'file:') + __filename, process.browser && document.baseURI).href",iife:Yn,umd:Yn},$n="(typeof document!=='undefined'?document.currentScript&&document.currentScript.src||document.baseURI:new(typeof URL!=='undefined'?URL:require('ur'+'l').URL)('file:'+__filename).href)",Jn={amd:"new URL((typeof process!=='undefined'&&process.versions&&process.versions.node?'file:':'')+module.uri).href",cjs:"new(typeof URL!=='undefined'?URL:require('ur'+'l').URL)((process.browser?'':'file:')+__filename,process.browser&&document.baseURI).href",iife:$n,umd:$n},Qn=function(t,e){var n=e?"":" ";return"new"+n+"(typeof URL"+n+"!=="+n+"'undefined'"+n+"?"+n+"URL"+n+":"+n+"require('ur'+'l').URL)((typeof document"+n+"!=="+n+"'undefined'"+n+"?"+n+"document.currentScript"+n+"&&"+n+"document.currentScript.src"+n+"||"+n+"document.baseURI"+n+":"+n+"'file:'"+n+"+"+n+"__filename)"+n+"+"+n+"'/../"+t+"').href"},Zn={amd:function(t,e){var n=e?"":" ";return"new URL((typeof process"+n+"!=="+n+"'undefined'"+n+"&&"+n+"process.versions"+n+"&&"+n+"process.versions.node"+n+"?"+n+"'file:'"+n+":"+n+"'')"+n+"+"+n+"module.uri"+n+"+"+n+"'/../"+t+"').href"},cjs:function(t,e){var n=e?"":" ";return"new"+n+"(typeof URL"+n+"!=="+n+"'undefined'"+n+"?"+n+"URL"+n+":"+n+"require('ur'+'l').URL)((process.browser"+n+"?"+n+"''"+n+":"+n+"'file:')"+n+"+"+n+"__dirname"+n+"+"+n+"'/"+t+"',"+n+"process.browser"+n+"&&"+n+"document.baseURI).href"},es:function(t,e){return"new URL('../"+t+"',"+(e?"":" ")+"import.meta.url).href"},system:function(t,e){return"new URL('../"+t+"',"+(e?"":" ")+"module.url).href"},iife:Qn,umd:Qn},tr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.initialise=function(){"import"===this.meta.name&&(this.rendered=!1,this.context.addImportMeta(this)),this.included=!1},e.prototype.render=function(e,n){"import"===this.meta.name&&(this.rendered=!0),t.prototype.render.call(this,e,n)},e.prototype.renderFinalMechanism=function(t,e,n,r){if(!this.rendered)return!1;if(this.parent instanceof Kn==!1)return!1;var i,s=this.parent;if(s.property instanceof xn)i=s.property.name;else{if(!(s.property instanceof Wn&&"string"==typeof s.property.value))return!1;i=s.property.value}if(i.startsWith("ROLLUP_ASSET_URL_")){var o=this.context.getAssetFileName(i.substr(17)),a=re(ae(se(e),o));return t.overwrite(s.start,s.end,Zn[n](a,r)),!0}if("system"===n)t.overwrite(this.meta.start,this.meta.end,"module");else if("url"===i){var h=(r?Jn:Xn)[n];return h&&t.overwrite(s.start,s.end,h),!0}return!1},e}(qe),er=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return this.key.hasEffects(t)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return t.length>0||this.value.hasEffectsWhenCalledAtPath(st,e,n)},e}(qe),nr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this);for(var e=0,n=this.arguments;e<n.length;e++){n[e].deoptimizePath(ot)}},e.prototype.hasEffects=function(t){for(var e=0,n=this.arguments;e<n.length;e++){if(n[e].hasEffects(t))return!0}return this.callee.hasEffectsWhenCalledAtPath(st,this.callOptions,t.getHasEffectsWhenCalledOptions())},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>1},e.prototype.initialise=function(){this.included=!1,this.callOptions=rt.create({withNew:!0,args:this.arguments,callIdentifier:this})},e}(qe),rr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.argument.deoptimizePath([it,it])},e}(qe),ir=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),null===this.propertyMap&&this.buildPropertyMap()},e.prototype.deoptimizeCache=function(){this.hasUnknownDeoptimizedProperty||this.deoptimizeAllProperties()},e.prototype.getLiteralValueAtPath=function(t,e,n){null===this.propertyMap&&this.buildPropertyMap();var r=t[0];return 0===t.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths[r]?ht:1!==t.length||this.propertyMap[r]||0!==this.unmatchablePropertiesRead.length?!this.propertyMap[r]||null===this.propertyMap[r].exactMatchRead||this.propertyMap[r].propertiesRead.length>1?ht:(this.expressionsToBeDeoptimized[r]?this.expressionsToBeDeoptimized[r].push(n):this.expressionsToBeDeoptimized[r]=[n],this.propertyMap[r].exactMatchRead.getLiteralValueAtPath(t.slice(1),e,n)):void(this.expressionsToBeDeoptimized[r]?this.expressionsToBeDeoptimized[r].push(n):this.expressionsToBeDeoptimized[r]=[n])},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){null===this.propertyMap&&this.buildPropertyMap();var r=t[0];return 0===t.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths[r]?ut:1!==t.length||!Ct[r]||0!==this.unmatchablePropertiesRead.length||this.propertyMap[r]&&null!==this.propertyMap[r].exactMatchRead?!this.propertyMap[r]||null===this.propertyMap[r].exactMatchRead||this.propertyMap[r].propertiesRead.length>1?ut:(this.expressionsToBeDeoptimized[r]?this.expressionsToBeDeoptimized[r].push(n):this.expressionsToBeDeoptimized[r]=[n],this.propertyMap[r].exactMatchRead.getReturnExpressionWhenCalledAtPath(t.slice(1),e,n)):Tt(Ct,r)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){if(0===t.length)return!1;var n=t[0];if(t.length>1&&(this.hasUnknownDeoptimizedProperty||"string"!=typeof n||this.deoptimizedPaths[n]||!this.propertyMap[n]||null===this.propertyMap[n].exactMatchRead))return!0;for(var r=t.slice(1),i=0,s="string"!=typeof n?this.properties:this.propertyMap[n]?this.propertyMap[n].propertiesRead:[];i<s.length;i++){if(s[i].hasEffectsWhenAccessedAtPath(r,e))return!0}return!1},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){if(0===t.length)return!1;var n=t[0];if(t.length>1&&(this.hasUnknownDeoptimizedProperty||"string"!=typeof n||this.deoptimizedPaths[n]||!this.propertyMap[n]||null===this.propertyMap[n].exactMatchRead))return!0;for(var r=t.slice(1),i=0,s="string"!=typeof n?this.properties:t.length>1?this.propertyMap[n].propertiesRead:this.propertyMap[n]?this.propertyMap[n].propertiesSet:[];i<s.length;i++){if(s[i].hasEffectsWhenAssignedAtPath(r,e))return!0}return!1},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){var r=t[0];if(0===t.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths[r]||(this.propertyMap[r]?!this.propertyMap[r].exactMatchRead:t.length>1||!Ct[r]))return!0;for(var i=t.slice(1),s=0,o=this.propertyMap[r]?this.propertyMap[r].propertiesRead:[];s<o.length;s++){if(o[s].hasEffectsWhenCalledAtPath(i,e,n))return!0}return!(1!==t.length||!Ct[r])&&Lt(Ct,r,this.included,e,n)},e.prototype.initialise=function(){this.included=!1,this.hasUnknownDeoptimizedProperty=!1,this.deoptimizedPaths=Object.create(null),this.propertyMap=null,this.expressionsToBeDeoptimized=Object.create(null)},e.prototype.deoptimizePath=function(t){if(!this.hasUnknownDeoptimizedProperty)if(null===this.propertyMap&&this.buildPropertyMap(),0!==t.length){var e=t[0];if(1===t.length){if("string"!=typeof e)return void this.deoptimizeAllProperties();if(!this.deoptimizedPaths[e]&&(this.deoptimizedPaths[e]=!0,this.expressionsToBeDeoptimized[e]))for(var n=0,r=this.expressionsToBeDeoptimized[e];n<r.length;n++){r[n].deoptimizeCache()}}for(var i=1===t.length?ot:t.slice(1),s=0,o="string"==typeof e?this.propertyMap[e]?this.propertyMap[e].propertiesRead:[]:this.properties;s<o.length;s++){o[s].deoptimizePath(i)}}else this.deoptimizeAllProperties()},e.prototype.deoptimizeAllProperties=function(){this.hasUnknownDeoptimizedProperty=!0;for(var t=0,e=this.properties;t<e.length;t++){e[t].deoptimizePath(ot)}for(var n=0,r=Object.keys(this.expressionsToBeDeoptimized);n<r.length;n++)for(var i=r[n],s=0,o=this.expressionsToBeDeoptimized[i];s<o.length;s++){o[s].deoptimizeCache()}},e.prototype.render=function(e,n,r){var i=(void 0===r?Ce:r).renderedParentType;t.prototype.render.call(this,e,n),"ExpressionStatement"===i&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))},e.prototype.buildPropertyMap=function(){var t,e;this.propertyMap=Object.create(null),this.unmatchablePropertiesRead=[],this.unmatchablePropertiesWrite=[];for(var n=this.properties.length-1;n>=0;n--){var r=this.properties[n];if(r instanceof rr)this.unmatchablePropertiesRead.push(r);else{var i="get"!==r.kind,s="set"!==r.kind,o=void 0;if(r.computed){var a=r.key.getLiteralValueAtPath(st,yn,this);if(a===ht){s?this.unmatchablePropertiesRead.push(r):this.unmatchablePropertiesWrite.push(r);continue}o=String(a)}else o=r.key instanceof xn?r.key.name:String(r.key.value);var h=this.propertyMap[o];h?(s&&null===h.exactMatchRead&&(h.exactMatchRead=r,(t=h.propertiesRead).push.apply(t,[r].concat(this.unmatchablePropertiesRead))),i&&!s&&null===h.exactMatchWrite&&(h.exactMatchWrite=r,(e=h.propertiesSet).push.apply(e,[r].concat(this.unmatchablePropertiesWrite)))):this.propertyMap[o]={exactMatchRead:s?r:null,propertiesRead:s?[r].concat(this.unmatchablePropertiesRead):[],exactMatchWrite:i?r:null,propertiesSet:i&&!s?[r].concat(this.unmatchablePropertiesWrite):[]}}}},e}(qe),sr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.declare=function(t,e){for(var n=0,r=this.properties;n<r.length;n++){r[n].declare(t,e)}},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){if(t.length>0)return!0;for(var n=0,r=this.properties;n<r.length;n++){if(r[n].hasEffectsWhenAssignedAtPath(st,e))return!0}return!1},e.prototype.deoptimizePath=function(t){if(0===t.length)for(var e=0,n=this.properties;e<n.length;e++){n[e].deoptimizePath(t)}},e}(qe),or=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){for(var e=0,n=this.body;e<n.length;e++){if(n[e].hasEffects(t))return!0}},e.prototype.include=function(){this.included=!0;for(var t=0,e=this.body;t<e.length;t++){var n=e[t];n.shouldBeIncluded()&&n.include()}},e.prototype.render=function(e,n){this.body.length?Me(this.body,e,this.start,this.end,n):t.prototype.render.call(this,e,n)},e}(qe),ar=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.declarationInit=null,e}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),"get"===this.kind&&null===this.returnExpression&&this.updateReturnExpression(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([it,it])},e.prototype.declare=function(t,e){this.declarationInit=e,this.value.declare(t,ut)},e.prototype.deoptimizeCache=function(){throw new Error("Unexpected deoptimization")},e.prototype.getLiteralValueAtPath=function(t,e,n){return"set"===this.kind?ht:"get"===this.kind?(null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression.getLiteralValueAtPath(t,e,n)):this.value.getLiteralValueAtPath(t,e,n)},e.prototype.getReturnExpressionWhenCalledAtPath=function(t,e,n){return"set"===this.kind?ut:"get"===this.kind?(null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression.getReturnExpressionWhenCalledAtPath(t,e,n)):this.value.getReturnExpressionWhenCalledAtPath(t,e,n)},e.prototype.hasEffects=function(t){return this.key.hasEffects(t)||this.value.hasEffects(t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return"get"===this.kind?this.value.hasEffectsWhenCalledAtPath(st,this.accessorCallOptions,e.getHasEffectsWhenCalledOptions())||t.length>0&&this.returnExpression.hasEffectsWhenAccessedAtPath(t,e):this.value.hasEffectsWhenAccessedAtPath(t,e)},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return"get"===this.kind?0===t.length||this.returnExpression.hasEffectsWhenAssignedAtPath(t,e):"set"===this.kind?t.length>0||this.value.hasEffectsWhenCalledAtPath(st,this.accessorCallOptions,e.getHasEffectsWhenCalledOptions()):this.value.hasEffectsWhenAssignedAtPath(t,e)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return"get"===this.kind?this.returnExpression.hasEffectsWhenCalledAtPath(t,e,n):this.value.hasEffectsWhenCalledAtPath(t,e,n)},e.prototype.initialise=function(){this.included=!1,this.returnExpression=null,this.accessorCallOptions=rt.create({withNew:!1,callIdentifier:this})},e.prototype.deoptimizePath=function(t){"get"===this.kind?t.length>0&&(null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression.deoptimizePath(t)):"set"!==this.kind&&this.value.deoptimizePath(t)},e.prototype.render=function(t,e){this.shorthand||this.key.render(t,e),this.value.render(t,e,{isShorthandProperty:this.shorthand})},e.prototype.updateReturnExpression=function(){this.returnExpression=ut,this.returnExpression=this.value.getReturnExpressionWhenCalledAtPath(st,yn,this)},e}(qe),hr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.declarationInit=null,e}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),null!==this.declarationInit&&this.declarationInit.deoptimizePath([it,it])},e.prototype.declare=function(t,e){this.argument.declare(t,ut),this.declarationInit=e},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return t.length>0||this.argument.hasEffectsWhenAssignedAtPath(st,e)},e.prototype.deoptimizePath=function(t){0===t.length&&this.argument.deoptimizePath(st)},e}(qe),ur=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return!t.ignoreReturnAwaitYield()||this.argument&&this.argument.hasEffects(t)},e.prototype.initialise=function(){this.included=!1,this.scope.addReturnExpression(this.argument||ut)},e.prototype.render=function(t,e){this.argument&&(this.argument.render(t,e),this.argument.start===this.start+6&&t.prependLeft(this.start+6," "))},e}(qe),cr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getLiteralValueAtPath=function(t,e,n){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(t,e,n)},e.prototype.hasEffects=function(t){for(var e=0,n=this.expressions;e<n.length;e++){if(n[e].hasEffects(t))return!0}return!1},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>0&&this.expressions[this.expressions.length-1].hasEffectsWhenAccessedAtPath(t,e)},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return 0===t.length||this.expressions[this.expressions.length-1].hasEffectsWhenAssignedAtPath(t,e)},e.prototype.hasEffectsWhenCalledAtPath=function(t,e,n){return this.expressions[this.expressions.length-1].hasEffectsWhenCalledAtPath(t,e,n)},e.prototype.include=function(){this.included=!0;for(var t=0;t<this.expressions.length-1;t++){var e=this.expressions[t];e.shouldBeIncluded()&&e.include()}this.expressions[this.expressions.length-1].include()},e.prototype.deoptimizePath=function(t){t.length>0&&this.expressions[this.expressions.length-1].deoptimizePath(t)},e.prototype.render=function(t,e,n){for(var r,i=void 0===n?Ce:n,s=i.renderedParentType,o=i.isCalleeOfRenderedParent,a=0,h=0,u=0,c=Le(this.expressions,t,this.start,this.end);u<c.length;u++){var p=c[u],l=p.node,f=p.start,d=p.end;l.included?(h++,0===a&&(a=f),r=d,l===this.expressions[this.expressions.length-1]&&1===h?l.render(t,e,{renderedParentType:s||this.parent.type,isCalleeOfRenderedParent:s?o:this.parent.callee===this}):l.render(t,e)):t.remove(f,d)}h>1&&s&&(t.prependRight(a,"("),t.appendLeft(r,")"))},e}(qe),pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.include=function(){this.included=!0,this.test&&this.test.include();for(var t=0,e=this.consequent;t<e.length;t++){var n=e[t];n.shouldBeIncluded()&&n.include()}},e.prototype.render=function(e,n){if(this.consequent.length){this.test&&this.test.render(e,n);var r=this.test?this.test.end:Re(e.original,"default",this.start)+7,i=Re(e.original,":",r)+1;Me(this.consequent,e,i,this.end,n)}else t.prototype.render.call(this,e,n)},e}(qe),lr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createScope=function(t){this.scope=new an(t)},e.prototype.hasEffects=function(e){return t.prototype.hasEffects.call(this,e.setIgnoreBreakStatements())},e}(qe),fr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){(t.prototype.bind.call(this),this.tag.type===Z)&&(this.scope.findVariable(this.tag.name).isNamespace&&this.context.error({code:"CANNOT_CALL_NAMESPACE",message:"Cannot call a namespace ('"+this.tag.name+"')"},this.start),"eval"===this.tag.name&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en#avoiding-eval"},this.start))},e.prototype.hasEffects=function(e){return t.prototype.hasEffects.call(this,e)||this.tag.hasEffectsWhenCalledAtPath(st,this.callOptions,e.getHasEffectsWhenCalledOptions())},e.prototype.initialise=function(){this.included=!1,this.callOptions=rt.create({withNew:!1,callIdentifier:this})},e}(qe),dr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return!1},e}(qe);var mr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getLiteralValueAtPath=function(t){return t.length>0||1!==this.quasis.length?ht:this.quasis[0].value.cooked},e.prototype.render=function(e,n){e.indentExclusionRanges.push([this.start,this.end]),t.prototype.render.call(this,e,n)},e}(qe),gr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),this.variable=this.scope.findVariable("this")},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>0&&this.variable.hasEffectsWhenAccessedAtPath(t,e)},e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return this.variable.hasEffectsWhenAssignedAtPath(t,e)},e.prototype.initialise=function(){this.included=!1,this.variable=null,this.alias=this.scope.findLexicalBoundary().isModuleScope?this.context.moduleContext:null,"undefined"===this.alias&&this.context.warn({code:"THIS_IS_UNDEFINED",message:"The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten",url:"https://rollupjs.org/guide/en#error-this-is-undefined"},this.start)},e.prototype.render=function(t,e){null!==this.alias&&t.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!1})},e}(qe),yr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return!0},e}(qe),vr={"-":function(t){return-t},"+":function(t){return+t},"!":function(t){return!t},"~":function(t){return~t},typeof:function(t){return typeof t},void:function(){},delete:function(){return ht}},xr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),"delete"===this.operator&&this.argument.deoptimizePath(st)},e.prototype.getLiteralValueAtPath=function(t,e,n){if(t.length>0)return ht;var r=this.argument.getLiteralValueAtPath(st,e,n);return r===ht?ht:vr[this.operator](r)},e.prototype.hasEffects=function(t){return this.argument.hasEffects(t)||"delete"===this.operator&&this.argument.hasEffectsWhenAssignedAtPath(st,t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return"void"===this.operator?t.length>0:t.length>1},e}(qe),_r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return!0},e}(qe),Er=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){(t.prototype.bind.call(this),this.argument.deoptimizePath(st),vn(this.argument))&&(this.scope.findVariable(this.argument.name).isReassigned=!0)},e.prototype.hasEffects=function(t){return this.argument.hasEffects(t)||this.argument.hasEffectsWhenAssignedAtPath(st,t)},e.prototype.hasEffectsWhenAccessedAtPath=function(t,e){return t.length>1},e.prototype.render=function(t,e){this.argument.render(t,e);var n=this.argument.variable;if("system"===e.format&&n&&n.exportName){var r=n.getName();if(this.prefix)t.overwrite(this.start,this.end,"exports('"+n.exportName+"', "+this.operator+r+")");else{var i=void 0;switch(this.operator){case"++":i=r+" + 1";break;case"--":i=r+" - 1"}t.overwrite(this.start,this.end,"(exports('"+n.exportName+"', "+i+"), "+r+this.operator+")")}}},e}(qe);function br(t){return t.safeName&&-1!==t.safeName.indexOf(".")&&t.exportName&&t.isReassigned}var Ar=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffectsWhenAssignedAtPath=function(t,e){return!1},e.prototype.includeWithAllDeclaredVariables=function(){this.included=!0;for(var t=0,e=this.declarations;t<e.length;t++){e[t].include()}},e.prototype.include=function(){this.included=!0;for(var t=0,e=this.declarations;t<e.length;t++){var n=e[t];n.shouldBeIncluded()&&n.include()}},e.prototype.initialise=function(){this.included=!1;for(var t=0,e=this.declarations;t<e.length;t++){e[t].declareDeclarator(this.kind)}},e.prototype.deoptimizePath=function(t){for(var e=0,n=this.declarations;e<n.length;e++){n[e].deoptimizePath(st)}},e.prototype.render=function(t,e,n){if(void 0===n&&(n=Ce),this.declarations.every(function(t){return t.included&&(!t.id.variable||!t.id.variable.exportName)})){for(var r=0,i=this.declarations;r<i.length;r++){i[r].render(t,e)}n.isNoStatement||59===t.original.charCodeAt(this.end-1)||t.appendLeft(this.end,";")}else this.renderReplacedDeclarations(t,e,n)},e.prototype.renderReplacedDeclarations=function(t,e,n){var r,i,s=n.start,o=void 0===s?this.start:s,a=n.end,h=void 0===a?this.end:a,u=n.isNoStatement,c=Le(this.declarations,t,this.start+this.kind.length,this.end-(59===t.original.charCodeAt(this.end-1)?1:0)),p=(i=/\n\s*$/.test(t.slice(this.start,c[0].start))?this.start+this.kind.length:c[0].start)-1;t.remove(this.start,p);for(var l,f,d=!1,m=!1,g="",y=0,v=c;y<v.length;y++){var x=v[y],_=x.node,E=x.start,b=x.separator,A=x.contentEnd,S=x.end;!_.included||vn(_.id)&&br(_.id.variable)&&null===_.init?t.remove(E,S):(l="",f="",vn(_.id)&&br(_.id.variable)?(m&&(g+=";"),d=!1):("system"===e.format&&null!==_.init&&vn(_.id)&&_.id.variable.exportName&&(t.prependLeft(t.original.indexOf("=",_.id.end)+1," exports('"+(_.id.variable.safeExportName||_.id.variable.exportName)+"',"),f+=")"),d?g+=",":(m&&(g+=";"),l+=this.kind+" ",d=!0)),i===p+1?t.overwrite(p,i,g+l):(t.overwrite(p,p+1,g),t.appendLeft(i,l)),_.render(t,e),r=A,i=S,m=!0,p=b,g=f)}m?this.renderDeclarationEnd(t,g,p,r,i,!u):t.remove(o,h)},e.prototype.renderDeclarationEnd=function(t,e,n,r,i,s){return 59===t.original.charCodeAt(this.end-1)&&t.remove(this.end-1,this.end),s&&(e+=";"),null!==n?(10!==t.original.charCodeAt(r-1)||10!==t.original.charCodeAt(this.end)&&13!==t.original.charCodeAt(this.end)||(r--,13===t.original.charCodeAt(r)&&r--),r===n+1?t.overwrite(n,i,e):(t.overwrite(n,n+1,e),t.remove(r,i))):t.appendLeft(i,e),e},e}(qe),Sr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.declareDeclarator=function(t){this.id.declare(t,this.init||ct)},e.prototype.deoptimizePath=function(t){this.id.deoptimizePath(t)},e.prototype.render=function(e,n){null===this.init||this.init.included?t.prototype.render.call(this,e,n):(e.remove(this.id.end,this.end),this.id.render(e,n))},e}(qe),wr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasEffects=function(t){return this.test.hasEffects(t)||this.body.hasEffects(t.setIgnoreBreakStatements())},e}(qe),Pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.bind=function(){t.prototype.bind.call(this),null!==this.argument&&this.argument.deoptimizePath(ot)},e.prototype.hasEffects=function(t){return!t.ignoreReturnAwaitYield()||this.argument&&this.argument.hasEffects(t)},e.prototype.render=function(t,e){this.argument&&(this.argument.render(t,e),this.argument.start===this.start+5&&t.prependLeft(this.start+5," "))},e}(qe),Ir={ArrayExpression:sn,ArrayPattern:on,ArrowFunctionExpression:un,AssignmentExpression:cn,AssignmentPattern:pn,AwaitExpression:ln,BinaryExpression:dn,BlockStatement:hn,BreakStatement:mn,CallExpression:_n,CatchClause:bn,ClassBody:An,ClassDeclaration:Ke,ClassExpression:Sn,ConditionalExpression:Pn,DoWhileStatement:In,EmptyStatement:kn,ExportAllDeclaration:Cn,ExportDefaultDeclaration:rn,ExportNamedDeclaration:Nn,ExpressionStatement:Rn,ForStatement:Ln,ForInStatement:On,ForOfStatement:Mn,FunctionDeclaration:en,FunctionExpression:Tn,Identifier:xn,IfStatement:Dn,Import:Vn,ImportDeclaration:zn,LabeledStatement:Bn,Literal:Wn,LogicalExpression:jn,MemberExpression:Kn,MetaProperty:tr,MethodDefinition:er,NewExpression:nr,ObjectExpression:ir,ObjectPattern:sr,Program:or,Property:ar,RestElement:hr,ReturnStatement:ur,SequenceExpression:cr,SpreadElement:rr,SwitchCase:pr,SwitchStatement:lr,TaggedTemplateExpression:fr,TemplateElement:dr,TemplateLiteral:mr,ThisExpression:gr,ThrowStatement:yr,TryStatement:qe,UnaryExpression:xr,UnknownNode:_r,UpdateExpression:Er,VariableDeclarator:Sr,VariableDeclaration:Ar,WhileStatement:wr,YieldExpression:Pr},kr=function(t,e){if(t.isNamespace&&!t.isExternal)for(var n=0,r=t.context.getExports();n<r.length;n++){var i=r[n];kr(t.context.traceExport(i),e)}e.add(t.getName())},Cr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.context=n,r.isModuleScope=!0,r.variables.this=new Vt("this",null,ct,n.deoptimizationTracker),r}return n(e,t),e.prototype.deshadow=function(e,n){void 0===n&&(n=this.children);for(var r=new Set(e),i=0,s=Object.keys(this.context.imports);i<s.length;i++){var o=s[i],a=this.context.imports[o];if(!a.module.isExternal&&!this.context.isCrossChunkImport(a)){for(var h=0,u=a.module.getAllExports();h<u.length;h++){var c=u[h];kr(a.module.traceExport(c),r)}if("*"!==a.name){var p=a.module.traceExport(a.name);if(!p){this.context.warn({code:"NON_EXISTENT_EXPORT",name:a.name,source:a.module.id,message:"Non-existent export '"+a.name+"' is imported from "+Fn(a.module.id)},a.start);continue}(c=p.getName())!==a.name&&r.add(c),"default"!==a.name&&a.name!==o&&r.add(a.name)}}}t.prototype.deshadow.call(this,r,n)},e.prototype.findLexicalBoundary=function(){return this},e.prototype.findVariable=function(t){return this.variables[t]?this.variables[t]:this.context.traceVariable(t)||this.parent.findVariable(t)},e}(ze);var Nr={Identifier:function(t,e){t.push(e.name)},ObjectPattern:function(t,e){e.properties.forEach(function(e){e instanceof hr?Nr[e.argument.type](t,e.argument):Nr[e.value.type](t,e.value)})},ArrayPattern:function(t,e){e.elements.forEach(function(e){e&&Nr[e.type](t,e)})},RestElement:function(t,e){Nr[e.argument.type](t,e.argument)},AssignmentPattern:function(t,e){Nr[e.left.type](t,e.left)}},Rr=function(t){function e(e,n){var r=t.call(this,e.getModuleName())||this;r.originals=Object.create(null),r.needsNamespaceBlock=!1,r.referencedEarly=!1,r.references=[],r.containsExternalNamespace=!1,r.context=e,r.module=n;for(var i=0,s=r.context.getExports().concat(r.context.getReexports());i<s.length;i++){var o=s[i];"*"===o[0]&&o.length>1&&(r.containsExternalNamespace=!0),r.originals[o]=r.context.traceExport(o)}return r}return n(e,t),e.prototype.addReference=function(t){this.references.push(t),this.name=t.name},e.prototype.include=function(){if(!this.included){this.containsExternalNamespace&&this.context.error({code:"NAMESPACE_CANNOT_CONTAIN_EXTERNAL",message:'Cannot create an explicit namespace object for module "'+this.context.getModuleName()+'" because it contains a reexported external namespace',id:this.module.id},void 0),this.context.includeNamespace(),this.included=!0,this.needsNamespaceBlock=!0;for(var t=0,e=this.references;t<e.length;t++){if(e[t].context.getModuleExecIndex()<=this.context.getModuleExecIndex()){this.referencedEarly=!0;break}}for(var n=0,r=Object.keys(this.originals);n<r.length;n++){var i=r[n];this.originals[i].include()}}},e.prototype.renderFirst=function(){return this.referencedEarly},e.prototype.deoptimizePath=function(){for(var t in this.originals)this.originals[t].deoptimizePath(ot)},e.prototype.renderBlock=function(t){var e=this,n=t.compact?"":" ",r=t.compact?"":"\n",i=t.indent,s=Object.keys(this.originals).map(function(r){var s=e.originals[r];return e.referencedEarly||s.isReassigned?i+"get "+r+n+"()"+n+"{"+n+"return "+s.getName()+(t.compact?"":";")+n+"}":""+i+r+": "+s.getName()}),o=this.getName(),a=t.freeze?"/*#__PURE__*/Object.freeze":"",h=this.context.varOrConst+" "+o+" = "+(t.namespaceToStringTag?"{"+r+s.join(","+r)+r+"};":a+"({"+r+s.join(","+r)+r+"});");return t.namespaceToStringTag&&(h+=r+"if"+n+"(typeof Symbol"+n+"!=="+n+"'undefined'"+n+"&&"+n+"Symbol.toStringTag)"+r,h+=i+"Object.defineProperty("+o+","+n+"Symbol.toStringTag,"+n+"{"+n+"value:"+n+"'Module'"+n+"});"+r,h+="else"+(r||" "),h+=i+"Object.defineProperty("+o+","+n+"'toString',"+n+"{"+n+"value:"+n+"function"+n+"()"+n+"{"+n+"return"+n+"'[object Module]'"+(t.compact?";":"")+n+"}"+n+"});"+r,h+=a+"("+o+");"),"system"===t.format&&this.exportName&&(h+=r+"exports('"+this.exportName+"',"+n+o+");"),h},e}(Dt);Rr.prototype.isNamespace=!0;var Or="sourceMa";Or+="ppingURL";var Mr=new RegExp("^#\\s+"+Or+"=.+\\n?"),Lr=function(){},Tr=function(){return 0},Dr=function(){return 0},Vr=function(){return 0},zr={},Br=function(t){return 1e3*t[0]+t[1]/1e6};function Wr(t,e){switch(e){case 1:return"# "+t;case 2:return"## "+t;case 3:return t;default:return" ".repeat(e-4)+"- "+t}}function jr(t,e){void 0===e&&(e=3),t=Wr(t,e),zr.hasOwnProperty(t)||(zr[t]={totalMemory:0,startTime:void 0,startMemory:void 0,time:0,memory:0});var n=Vr();zr[t].startTime=Tr(),zr[t].startMemory=n}function Ur(t,e){if(void 0===e&&(e=3),t=Wr(t,e),zr.hasOwnProperty(t)){var n=Vr();zr[t].time+=Dr(zr[t].startTime),zr[t].totalMemory=Math.max(zr[t].totalMemory,n),zr[t].memory+=n-zr[t].startMemory}}function Fr(){var t={};return Object.keys(zr).forEach(function(e){t[e]=[zr[e].time,zr[e].memory,zr[e].totalMemory]}),t}var qr=Lr,Gr=Lr,Hr={transform:!0,transformBundle:!0,load:!0,resolveId:!0,ongenerate:!0,onwrite:!0,resolveDynamicImport:!0};function Kr(t,e){for(var n={},r=function(r){if(!0===Hr[r]){var i="plugin "+e;t.name&&(i+=" ("+t.name+")"),i+=" - "+r,n[r]=function(){qr(i,4);var e=t[r].apply(this===n?t:this,arguments);return Gr(i,4),e&&"function"==typeof e.then&&(qr(i+" (async)",4),e.then(function(){return Gr(i+" (async)",4)})),e}}else n[r]=t[r]},i=0,s=Object.keys(t);i<s.length;i++){r(s[i])}return n}function Yr(t){t.perf?(zr={},"undefined"!=typeof process&&"function"==typeof process.hrtime?(Tr=process.hrtime.bind(process),Dr=function(t){return Br(process.hrtime(t))}):"undefined"!=typeof performance&&"function"==typeof performance.now&&(Tr=performance.now.bind(performance),Dr=function(t){return performance.now()-t}),"undefined"!=typeof process&&"function"==typeof process.memoryUsage&&(Vr=function(){return process.memoryUsage().heapUsed}),qr=jr,Gr=Ur,t.plugins=t.plugins.map(Kr)):(qr=Lr,Gr=Lr)}var Xr={ecmaVersion:2019,sourceType:"module",preserveParens:!1};function $r(t,e,n,r){e.error({code:"MISSING_EXPORT",message:"'"+t+"' is not exported by "+Fn(n),url:"https://rollupjs.org/guide/en#error-name-is-not-exported-by-module-"},r)}var Jr=function(){function t(t,e){this.usesTopLevelAwait=!1,this.namespaceVariable=void 0,this.needsTreeshakingPass=!1,this.id=e,this.chunkAlias=void 0,this.graph=t,this.comments=[],this.dynamicImports=[],this.importMetas=[],this.dynamicImportResolutions=[],this.isEntryPoint=!1,this.execIndex=null,this.entryPointsHash=new Uint8Array(10),this.excludeFromSourcemap=/\0/.test(e),this.context=t.getModuleContext(e),this.sources=[],this.dependencies=[],this.imports=Object.create(null),this.exports=Object.create(null),this.exportsAll=Object.create(null),this.reexports=Object.create(null),this.exportAllSources=[],this.exportAllModules=null}return t.prototype.setSource=function(t){var e=this,n=t.code,i=t.originalCode,s=t.originalSourcemap,o=t.ast,a=t.sourcemapChain,h=t.resolvedIds,u=t.transformDependencies,c=t.customTransformCache;this.code=n,this.originalCode=i,this.originalSourcemap=s,this.sourcemapChain=a,this.transformDependencies=u,this.customTransformCache=c,qr("generate ast",3),this.esTreeAst=o||function(t,e,n){try{return e(t.code,r({},Xr,n,{onComment:function(e,n,r,i){return t.comments.push({block:e,text:n,start:r,end:i})}}))}catch(e){var i=e.message.replace(/ \(\d+:\d+\)$/,"");t.id.endsWith(".json")?i+=" (Note that you need rollup-plugin-json to import JSON files)":t.id.endsWith(".js")||(i+=" (Note that you need plugins to import files that are not JavaScript)"),t.error({code:"PARSE_ERROR",message:i},e.pos)}}(this,this.graph.acornParse,this.graph.acornOptions),Gr("generate ast",3),this.resolvedIds=h||Object.create(null);var p=this.id;this.magicString=new K(n,{filename:this.excludeFromSourcemap?null:p,indentExclusionRanges:[]}),this.removeExistingSourceMap(),qr("analyse ast",3),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),code:n,error:this.error.bind(this),fileName:p,getAssetFileName:this.graph.pluginDriver.getAssetFileName,getExports:this.getExports.bind(this),getReexports:this.getReexports.bind(this),getModuleExecIndex:function(){return e.execIndex},getModuleName:this.basename.bind(this),imports:this.imports,includeNamespace:this.includeNamespace.bind(this),isCrossChunkImport:function(t){return t.module.chunk!==e.chunk},magicString:this.magicString,moduleContext:this.context,nodeConstructors:Ir,propertyReadSideEffects:!this.graph.treeshake||this.graph.treeshakingOptions.propertyReadSideEffects,deoptimizationTracker:this.graph.deoptimizationTracker,requestTreeshakingPass:function(){return e.needsTreeshakingPass=!0},traceExport:this.traceExport.bind(this),traceVariable:this.traceVariable.bind(this),treeshake:this.graph.treeshake,usesTopLevelAwait:!1,varOrConst:this.graph.varOrConst,warn:this.warn.bind(this)},this.scope=new Cr(this.graph.scope,this.astContext),this.ast=new or(this.esTreeAst,{type:"Module",context:this.astContext},this.scope),Gr("analyse ast",3)},t.prototype.removeExistingSourceMap=function(){for(var t=0,e=this.comments;t<e.length;t++){var n=e[t];!n.block&&Mr.test(n.text)&&this.magicString.remove(n.start,n.end)}},t.prototype.addExport=function(t){var e,n,r=t.source&&t.source.value;if(r)if(-1===this.sources.indexOf(r)&&this.sources.push(r),"ExportAllDeclaration"===t.type)this.exportAllSources.push(r);else for(var i=0,s=t.specifiers;i<s.length;i++){var o=(g=s[i]).exported.name;(this.exports[o]||this.reexports[o])&&this.error({code:"DUPLICATE_EXPORT",message:"A module cannot have multiple exports with the same name ('"+o+"')"},g.start),this.reexports[o]={start:g.start,source:r,localName:g.local.name,module:null}}else if(function(t){return t.type===J}(t))this.exports.default&&this.error({code:"DUPLICATE_EXPORT",message:"A module can only have one default export"},t.start),this.exports.default={localName:"default",identifier:t.variable.getOriginalVariableName(),node:t};else if(t.declaration){var a=t.declaration;if("VariableDeclaration"===a.type)for(var h=0,u=a.declarations;h<u.length;h++)for(var c=u[h],p=0,l=(e=c.id,void 0,n=[],Nr[e.type](n,e),n);p<l.length;p++){var f=l[p];this.exports[f]={localName:f,node:t}}else{f=a.id.name;this.exports[f]={localName:f,node:t}}}else for(var d=0,m=t.specifiers;d<m.length;d++){f=(g=m[d]).local.name;var g,y=g.exported.name;(this.exports[y]||this.reexports[y])&&this.error({code:"DUPLICATE_EXPORT",message:"A module cannot have multiple exports with the same name ('"+y+"')"},g.start),this.exports[y]={localName:f,node:t}}},t.prototype.addImport=function(t){var e=t.source.value;-1===this.sources.indexOf(e)&&this.sources.push(e);for(var n=0,r=t.specifiers;n<r.length;n++){var i=r[n],s=i.local.name;this.imports[s]&&this.error({code:"DUPLICATE_IMPORT",message:"Duplicated import '"+s+"'"},i.start);var o="ImportDefaultSpecifier"===i.type,a="ImportNamespaceSpecifier"===i.type,h=o?"default":a?"*":i.imported.name;this.imports[s]={source:e,start:i.start,name:h,module:null}}},t.prototype.addDynamicImport=function(t){this.dynamicImports.push(t)},t.prototype.addImportMeta=function(t){this.importMetas.push(t)},t.prototype.basename=function(){var t=ie(this.id),e=oe(this.id);return Qt(e?t.slice(0,-e.length):t)},t.prototype.markPublicExports=function(){for(var t=0,e=this.getExports();t<e.length;t++){var n=e[t];(s=this.traceExport(n)).exportName=n,s.deoptimizePath(ot),s.include(),s.isNamespace&&(s.needsNamespaceBlock=!0)}for(var r=0,i=this.getReexports();r<i.length;r++){var s,o=i[r];(s=this.traceExport(o)).exportName=o,s.isExternal?s.reexported=s.module.reexported=!0:(s.include(),s.deoptimizePath(ot))}},t.prototype.linkDependencies=function(){for(var t=this,e=0,n=this.sources;e<n.length;e++){var r=n[e],i=this.resolvedIds[r];if(i){var s=this.graph.moduleById.get(i);this.dependencies.push(s)}}var o=function(e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=e[r[n]],s=t.resolvedIds[i.source];i.module=t.graph.moduleById.get(s)}};o(this.imports),o(this.reexports),this.exportAllModules=this.exportAllSources.map(function(e){var n=t.resolvedIds[e];return t.graph.moduleById.get(n)})},t.prototype.bindReferences=function(){this.ast.bind()},t.prototype.getDynamicImportExpressions=function(){return this.dynamicImports.map(function(t){var e=t.parent.arguments[0];if(function(t){return t.type===nt}(e)){if(0===e.expressions.length&&1===e.quasis.length)return e.quasis[0].value.cooked}else{if(!function(t){return t.type===tt}(e))return e;if("string"==typeof e.value)return e.value}})},t.prototype.error=function(t,e){if(void 0!==e){t.pos=e;var n=ge(this.code,e,{offsetLine:1});try{n=function(t,e){for(var n=t.filter(function(t){return t.mappings});n.length>0;){var r=n.pop(),i=r.mappings[e.line-1],s=!1;if(void 0!==i)for(var o=0,a=i;o<a.length;o++){var h=a[o];if(h[0]>=e.column){if(h.length<4)break;e={line:h[2]+1,column:h[3],source:r.sources[h[1]],name:r.names[h[4]]},s=!0;break}}if(!s)throw new Error("Can't resolve original location of error.")}return e}(this.sourcemapChain,n)}catch(t){this.warn({loc:{file:this.id,line:n.line,column:n.column},pos:e,message:"Error when using sourcemap for reporting an error: "+t.message,code:"SOURCEMAP_ERROR"},void 0)}t.loc={file:this.id,line:n.line,column:n.column},t.frame=ve(this.originalCode,n.line,n.column)}xe(t)},t.prototype.getAllExports=function(){var t=Object.assign(Object.create(null),this.exports,this.reexports);return this.exportAllModules.forEach(function(e){if(e.isExternal)t["*"+e.id]=!0;else for(var n=0,r=e.getAllExports();n<r.length;n++){var i=r[n];"default"!==i&&(t[i]=!0)}}),Object.keys(t)},t.prototype.getExports=function(){return Object.keys(this.exports)},t.prototype.getReexports=function(){var t=Object.create(null);for(var e in this.reexports)t[e]=!0;return this.exportAllModules.forEach(function(e){if(e.isExternal)t["*"+e.id]=!0;else for(var n=0,r=e.getExports().concat(e.getReexports());n<r.length;n++){var i=r[n];"default"!==i&&(t[i]=!0)}}),Object.keys(t)},t.prototype.includeAllInBundle=function(){!function t(e){e.included=!0,e.variable&&!e.variable.included&&e.variable.include();for(var n=0,r=e.keys;n<r.length;n++){var i=e[r[n]];if(null!==i)if(Array.isArray(i))for(var s=0,o=i;s<o.length;s++){var a=o[s];null!==a&&t(a)}else t(i)}}(this.ast)},t.prototype.isIncluded=function(){return this.ast.included},t.prototype.include=function(){return this.needsTreeshakingPass=!1,this.ast.shouldBeIncluded()&&this.ast.include(),this.needsTreeshakingPass},t.prototype.getOrCreateNamespace=function(){return this.namespaceVariable?this.namespaceVariable:this.namespaceVariable=new Rr(this.astContext,this)},t.prototype.includeNamespace=function(){var t=this.getOrCreateNamespace();if(!t.needsNamespaceBlock){var e=!1;for(var n in this.reexports){e=!0;var r=this.reexports[n];this.imports[n]={source:r.source,start:r.start,name:r.localName,module:r.module},t.originals[n]=r.module.traceExport(r.localName)}this.chunk&&this.chunk.linked&&e&&this.chunk.linkModule(this)}},t.prototype.render=function(t){var e=this.magicString.clone();return this.ast.render(e,t),this.usesTopLevelAwait=this.astContext.usesTopLevelAwait,e},t.prototype.toJSON=function(){return{id:this.id,dependencies:this.dependencies.map(function(t){return t.id}),transformDependencies:this.transformDependencies,transformAssets:this.transformAssets,code:this.code,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,ast:this.esTreeAst,sourcemapChain:this.sourcemapChain,resolvedIds:this.resolvedIds,customTransformCache:this.customTransformCache}},t.prototype.traceVariable=function(t){if(t in this.scope.variables)return this.scope.variables[t];if(t in this.imports){var e=this.imports[t],n=e.module;if(!n.isExternal&&"*"===e.name)return n.getOrCreateNamespace();var r=n.traceExport(e.name);return r||$r(e.name,this,n.id,e.start),r}return null},t.prototype.getRenderedExports=function(){var t=[],e=[];for(var n in this.exports){var r=this.exports[n];(r.node&&r.node.included?t:e).push(n)}return{renderedExports:t,removedExports:e}},t.prototype.traceExport=function(t,e){if("*"===t[0])return 1===t.length?this.getOrCreateNamespace():this.graph.moduleById.get(t.slice(1)).traceExport("*");var n=this.reexports[t];if(n)return(o=n.module.traceExport(n.localName))||$r(n.localName,this,n.module.id,n.start),o;var r=this.exports[t];if(r){var i=r.localName;return o=this.traceVariable(i)||this.graph.scope.findVariable(i)}if("default"!==t)for(var s=0;s<this.exportAllModules.length;s+=1){var o;if(o=this.exportAllModules[s].traceExport(t,!0))return o}return this.graph.shimMissingExports&&!e?this.shimMissingExport(t):void 0},t.prototype.warn=function(t,e){if(void 0!==e){t.pos=e;var n=ge(this.code,e,{offsetLine:1}),r=n.line,i=n.column;t.loc={file:this.id,line:r,column:i},t.frame=ve(this.code,r,i)}t.id=this.id,this.graph.warn(t)},t.prototype.shimMissingExport=function(t){return this.exports[t]||this.graph.warn({message:'Missing export "'+t+'" has been shimmed in module '+Fn(this.id)+".",code:"SHIMMED_EXPORT",exportName:t,exporter:Fn(this.id)}),this.exports[t]={localName:"_missingExportShim"},this.graph.exportShimVariable},t}(),Qr=function(){function t(t,e){this.isOriginal=!0,this.filename=t,this.content=e}return t.prototype.traceSegment=function(t,e,n){return{line:t,column:e,name:n,source:this}},t}(),Zr=function(){function t(t,e){this.sources=e,this.names=t.names,this.mappings=t.mappings}return t.prototype.traceMappings=function(){for(var t=[],e=[],n=[],r=[],i=0,s=this.mappings;i<s.length;i++){for(var o=[],a=0,h=s[i];a<h.length;a++){var u=h[a],c=this.sources[u[1]];if(c){var p=c.traceSegment(u[2],u[3],this.names[u[4]]);if(p){var l=t.lastIndexOf(p.source.filename);-1===l?(l=t.length,t.push(p.source.filename),e[l]=p.source.content):null==e[l]?e[l]=p.source.content:null!=p.source.content&&e[l]!==p.source.content&&xe({message:"Multiple conflicting contents for sourcemap source "+p.source.filename});var f=[u[0],l,p.line,p.column];if(p.name){var d=n.indexOf(p.name);-1===d&&(d=n.length,n.push(p.name)),f[4]=d}o.push(f)}}}r.push(o)}return{sources:t,sourcesContent:e,names:n,mappings:r}},t.prototype.traceSegment=function(t,e,n){var r=this.mappings[t];if(!r)return null;for(var i=0,s=r.length-1;i<=s;){var o=i+s>>1,a=r[o];if(a[0]===e){var h=this.sources[a[1]];return h?h.traceSegment(a[2],a[3],this.names[a[4]]||n):null}a[0]>e?s=o-1:i=o+1}return null},t}();function ti(t){var e=t.split("\n"),n=e.filter(function(t){return/^\t+/.test(t)}),r=e.filter(function(t){return/^ {2,}/.test(t)});if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";var i=r.reduce(function(t,e){var n=/^ +/.exec(e)[0].length;return Math.min(n,t)},1/0);return new Array(i+1).join(" ")}function ei(t,e,n){return qn(t)||xe({code:"INVALID_PATTERN",message:'Invalid output pattern "'+t+'" for '+e+", cannot be an absolute or relative URL or path."}),t.replace(/\[(\w+)\]/g,function(t,r){var i=n(r);return void 0===i&&xe({code:"INVALID_PATTERN_REPLACEMENT",message:'"'+r+'" is not a valid substitution name in output option '+e+" pattern."}),qn(i)||xe({code:"INVALID_PATTERN_REPLACEMENT",message:'Invalid replacement "'+i+'" for "'+r+'" in '+e+" pattern, must be a plain path name."}),i})}function ni(t,e){if(t in e==!1)return t;var n=oe(t);t=t.substr(0,t.length-n.length);for(var r,i=1;e[r=t+ ++i+n];);return r}var ri=function(){function t(t,e){this.hasDynamicImport=!1,this.indentString=void 0,this.exportMode="named",this.usedModules=void 0,this.id=void 0,this.linked=!1,this.imports=new Map,this.exports=new Map,this.exportNames=Object.create(null),this.dependencies=void 0,this.entryModule=void 0,this.isEntryModuleFacade=!1,this.isManualChunk=!1,this.renderedHash=void 0,this.renderedModuleSources=void 0,this.renderedSource=void 0,this.renderedSourceLength=void 0,this.needsExportsShim=!1,this.renderedDeclarations=void 0,this.graph=t,this.orderedModules=e,this.isEmpty=!0;for(var n=0,r=e;n<r.length;n++){var i=r[n];this.isEmpty&&i.isIncluded()&&(this.isEmpty=!1),i.chunkAlias&&(this.isManualChunk=!0),i.chunk=this,i.isEntryPoint&&!this.entryModule&&(this.entryModule=i,this.isEntryModuleFacade=!0)}this.entryModule?this.name=Qt(ie(this.entryModule.chunkAlias||this.orderedModules[0].chunkAlias||this.entryModule.id)):this.name="__chunk_"+ ++t.curChunkIndex}return t.prototype.getImportIds=function(){return this.dependencies.map(function(t){return t.id})},t.prototype.getExportNames=function(){return Object.keys(this.exportNames)},t.prototype.inlineChunkDependencies=function(t,e){for(var n=0,r=t.dependencies;n<r.length;n++){var i=r[n];if(i instanceof ue)-1===this.dependencies.indexOf(i)&&this.dependencies.push(i);else{if(i===this||-1!==this.dependencies.indexOf(i))continue;i.isEmpty||this.dependencies.push(i),e&&this.inlineChunkDependencies(i,!0)}}},t.prototype.linkFacade=function(t){this.dependencies=[t.chunk],this.entryModule=t,this.isEntryModuleFacade=!0;for(var e=0,n=t.getAllExports();e<n.length;e++){var r=n[e],i=t.traceExport(r);this.exports.set(i,t),this.exportNames[r]=i}},t.prototype.link=function(){this.dependencies=[];for(var t=0,e=this.orderedModules;t<e.length;t++){var n=e[t];this.linkModule(n)}this.linked=!0},t.prototype.linkModule=function(t){for(var e=0,n=t.dependencies;e<n.length;e++){var r=n[e];if(r.chunk!==this){var i=void 0;if(r instanceof Jr)i=r.chunk;else{if(!r.used&&this.graph.isPureExternalModule(r.id))continue;i=r}-1===this.dependencies.indexOf(i)&&this.dependencies.push(i)}}for(var s=0,o=Object.keys(t.imports);s<o.length;s++){var a=o[s],h=t.imports[a];this.traceImport(h.name,h.module)}for(var u=0,c=t.dynamicImportResolutions;u<c.length;u++){var p=c[u].resolution;this.hasDynamicImport=!0,p instanceof Jr&&p.chunk===this&&p.getOrCreateNamespace().include()}},t.prototype.populateEntryExports=function(t){for(var e=Array.from(this.entryModule.getAllExports().entries()),n=[],r=0,i=e;r<i.length;r++){var s=i[r],o=s[0],a=s[1];if((g=this.traceExport(a,this.entryModule))&&(!g.variable||g.variable.included||g.variable.isExternal)&&(n[o]=g,g.variable)){g.module.chunk&&g.module.chunk.exports.set(g.variable,g.module);var h=this.exportNames[a];h&&h!==g.variable&&(this.isEntryModuleFacade=!1)}}for(var u=function(t){if(n.every(function(e){return e.variable!==t}))return c.isEntryModuleFacade=!1,{value:void 0}},c=this,p=0,l=Array.from(this.exports.keys());p<l.length;p++){var f=u(l[p]);if("object"==typeof f)return f.value}if(t||this.isEntryModuleFacade)for(var d=0,m=e;d<m.length;d++){var g,y=m[d];o=y[0],a=y[1];if(g=n[o]){if(g.variable){if(!g.variable.included&&!g.variable.isExternal)continue;this.exports.set(g.variable,g.module)}this.exportNames[a]=g.variable}}},t.prototype.traceImport=function(t,e){var n=this.traceExport(t,e);if(n){if(n.variable.isNamespace)for(var r=n.variable.originals||n.variable.module.declarations,i=0,s=Object.keys(r);i<s.length;i++){var o=s[i],a=r[o];if(a.included)if(n.variable.module instanceof Jr)this.traceImport(o,n.variable.module);else n.variable.module.traceExport(o).included&&this.imports.set(a,n.variable.module)}return n.module.chunk!==this&&n.variable.included?(this.imports.set(n.variable,n.module),n.module instanceof Jr&&n.module.chunk.exports.set(n.variable,n.module),n):n}},t.prototype.traceExport=function(t,e){if("*"===t[0]||e instanceof ue)return{variable:e.traceExport(t),module:e};if(e.chunk!==this)return e.isEntryPoint&&!e.chunk.isEmpty?{variable:e.traceExport(t),module:e}:e.chunk.traceExport(t,e);var n=e.exports[t];if(n){var r=e.imports[n.localName];return r?this.traceImport(r.name,r.module):{variable:e.traceExport(t),module:e}}var i=e.reexports[t];if(i)return this.traceExport(i.localName,i.module);if("default"!==t)for(var s=0;s<e.exportAllModules.length;s++){var o=e.exportAllModules[s];if(o.traceExport(t,!0))return this.traceExport(t,o)}},t.prototype.getVariableExportName=function(t){for(var e=0,n=Object.keys(this.exportNames);e<n.length;e++){var r=n[e];if(this.exportNames[r]===t)return r}},t.prototype.generateInternalExports=function(t){if(!this.isEntryModuleFacade){var e,n="system"===t.format||"es"===t.format||t.compact,r=0;this.exportNames=Object.create(null);var i=Array.from(this.exports.keys());if(n)for(var s=0,o=i;s<o.length;s++){var a=o[s];49===(e=De(++r)).charCodeAt(0)&&(e=De(r+=9*Math.pow(64,e.length-1))),this.exportNames[e]=a}else for(var h=0,u=i;h<u.length;h++){for(r=0,e=(a=u[h]).name;this.exportNames[e];)e=a.name+"$"+ ++r;this.exportNames[e]=a}}},t.prototype.prepareDynamicImports=function(){for(var t=0,e=this.orderedModules;t<e.length;t++)for(var n=e[t],r=0;r<n.dynamicImportResolutions.length;r++){var i=n.dynamicImports[r],s=n.dynamicImportResolutions[r].resolution;if(s)if(s instanceof Jr)if(s.chunk===this){var o=s.getOrCreateNamespace();i.setResolution(!1,o.getName())}else i.setResolution(!1);else s instanceof ue?i.setResolution(!0):i.setResolution(!1)}},t.prototype.finaliseDynamicImports=function(){for(var t=0;t<this.orderedModules.length;t++)for(var e=this.orderedModules[t],n=this.renderedModuleSources[t],r=0;r<e.dynamicImportResolutions.length;r++){var i=e.dynamicImports[r],s=e.dynamicImportResolutions[r].resolution;if(s)if(s instanceof Jr){if(s.chunk!==this){var o=re(ae(se(this.id),s.chunk.id));o.startsWith("../")||(o="./"+o),i.renderFinalResolution(n,'"'+o+'"')}}else s instanceof ue?i.renderFinalResolution(n,'"'+s.id+'"'):i.renderFinalResolution(n,s)}},t.prototype.finaliseImportMetas=function(t){for(var e=!1,n=0;n<this.orderedModules.length;n++)for(var r=this.orderedModules[n],i=this.renderedModuleSources[n],s=0,o=r.importMetas;s<o.length;s++){o[s].renderFinalMechanism(i,this.id,t.format,t.compact)&&(e=!0)}return e},t.prototype.setIdentifierRenderResolutions=function(t){var e=this;this.needsExportsShim=!1;var n=Object.create(null),r="es"===t.format||"system"===t.format;function i(t){for(var e=t;n[e];)e=t+"$"+De(n[t]++,!0);return n[e]=1,e}Object.keys(this.graph.scope.variables).forEach(function(t){return n[t]=1}),"system"===t.format&&(n._setter=n._starExcludes=n._$p=1);var s=new Set;r||this.dependencies.forEach(function(t){var e=i(t.name);s.add(e),t.name=e});for(var o=0,a=Object.keys(this.exportNames);o<a.length;o++){var h=a[o],u=this.exportNames[h];u===this.graph.exportShimVariable&&(this.needsExportsShim=!0),u&&u.exportName!==h&&(u.exportName=h)}Array.from(this.imports.entries()).forEach(function(e){var n,o=e[0],a=e[1];if(a instanceof ue)n="*"===o.name?a.name:"default"===o.name?!1!==t.interop&&(a.exportsNamespace||!r&&a.exportsNames)?a.name+"__default":a.name:r?o.name:a.name+"."+o.name,r&&(n=i(n),s.add(n));else if(r)n=i(o.name),s.add(n);else{var h=a.chunk;n="default"===h.exportMode?h.name:h.name+"."+a.chunk.getVariableExportName(o)}n&&o.setSafeName(n)}),this.orderedModules.forEach(function(t){e.deconflictExportsOfModule(t,i,r)}),this.graph.scope.deshadow(s,this.orderedModules.map(function(t){return t.scope}))},t.prototype.deconflictExportsOfModule=function(t,e,n){Object.keys(t.scope.variables).forEach(function(r){var i=t.scope.variables[r];if(zt(i)&&i.referencesOriginal())i.setSafeName(null);else if(!zt(i)||!i.hasId){var s=void 0;if(n||!i.isReassigned||i.isId)s=e(i.name);else{var o=i.exportName;s=o?"exports."+o:e(i.name)}i.setSafeName(s)}});var r=t.getOrCreateNamespace();r.needsNamespaceBlock&&r.setSafeName(e(r.name))},t.prototype.getChunkDependencyDeclarations=function(t,e){for(var n=this,r=new Map,i=0,s=Object.keys(this.exportNames);i<s.length;i++){var o=s[i],a=void 0,h=void 0;if("*"===o[0])a=this.graph.moduleById.get(o.substr(1)),h=o="*";else{var u=this.exportNames[o],c=this.exports.get(u);if(c.chunk===this)continue;c instanceof Jr?(a=c.chunk,h=c.chunk.getVariableExportName(u)):(a=c,h=u.name)}var p=r.get(a);p||r.set(a,p=[]),p.push({imported:h,reexported:o})}var l=[];return this.dependencies.forEach(function(i){var s,o=Array.from(n.imports.entries()).filter(function(t){var e=t[1];return e instanceof Jr?e.chunk===i:e===i});if(o.length){s=[];for(var a=0,h=o;a<h.length;a++){var u=h[a],c=u[0],p=u[1],f=c.safeName||c.name,d=void 0;d=p instanceof ue?c.name:p.chunk.getVariableExportName(c),s.push({local:f,imported:d})}}var m,g,y,v,x=r.get(i),_=!0;i instanceof ue?(m=i.exportsNames||i.exportsNamespace,g="default"in i.declarations):(m=!0,g=!1,_="default"!==i.exportMode),i instanceof ue&&(y=i.renderPath||i.setRenderPath(t,e),"umd"!==t.format&&"iife"!==t.format||(v=function(t,e,n,r){var i;return"function"==typeof e?i=e(t.id):e&&(i=e[t.id]),i||(r?(n.warn({code:"MISSING_GLOBAL_NAME",source:t.id,guess:t.name,message:"No name was provided for external module '"+t.id+"' in output.globals – guessing '"+t.name+"'"}),t.name):void 0)}(i,t.globals,n.graph,m||g))),l.push({id:y,namedExportsMode:_,globalName:v,name:i.name,isChunk:!i.isExternal,exportsNames:m,exportsDefault:g,reexports:x,imports:s})}),l},t.prototype.getChunkExportDeclarations=function(){for(var t=[],e=function(e){if("*"===e[0])return"continue";var r=n.exportNames[e];if(n.exports.get(r).chunk!==n)return"continue";var i=!1,s=!1;r instanceof Vt?(r.init===ct&&(s=!0),r.declarations.forEach(function(t){t.type===J?t.declaration.type===Q&&(i=!0):t.parent.type===Q&&(i=!0)})):r instanceof Gt&&(i=!0);var o=r.getName();t.push({local:o,exported:"*"===e?o:e,hoisted:i,uninitialized:s})},n=this,r=0,i=Object.keys(this.exportNames);r<i.length;r++){e(i[r])}return t},t.prototype.getRenderedHash=function(){if(this.renderedHash)return this.renderedHash;var t=R();return t.update(this.renderedSource.toString()),this.renderedHash=t.digest("hex")},t.prototype.postVisitChunkDependencies=function(e){var n=new Set;return function r(i){if(!n.has(i)){if(n.add(i),i instanceof t)for(var s=0,o=i.dependencies;s<o.length;s++)if(r(o[s]))return!0;return!0===e(i)}}(this)},t.prototype.computeFullHash=function(t,e){var n=R();return n.update(this.getRenderedHash()),n.update(t.hash),n.update(e.format),n.update(this.dependencies.length),this.postVisitChunkDependencies(function(t){t instanceof ue?n.update(":"+t.renderPath):n.update(t.getRenderedHash())}),n.digest("hex").substr(0,8)},t.prototype.preRender=function(e,n){qr("render modules",3);var r=new X({separator:e.compact?"":"\n\n"});this.usedModules=[],this.indentString=e.compact?"":function(t,e){if(!0!==e.indent)return e.indent||"";for(var n=0;n<t.length;n++){var r=ti(t[n].originalCode);if(null!==r)return r}return"\t"}(this.orderedModules,e);var i=e.compact?"":"\n",s=e.compact?"":" ",o={compact:e.compact,freeze:!1!==e.freeze,esModule:!1!==e.esModule,namespaceToStringTag:!0===e.namespaceToStringTag,indent:this.indentString,format:e.format};if(this.isEntryModuleFacade)for(var a=0,h=this.dependencies;a<h.length;a++){(f=h[a])instanceof t&&this.inlineChunkDependencies(f,!0)}else for(var u=0,c=Array.from(this.imports.values());u<c.length;u++){var p=(m=c[u])instanceof Jr?m.chunk:m;-1===this.dependencies.indexOf(p)&&this.dependencies.push(p)}for(var l=0;l<this.dependencies.length;l++){var f;(f=this.dependencies[l])instanceof t&&f.isEmpty&&(this.dependencies.splice(l--,1),this.inlineChunkDependencies(f,!1))}this.setIdentifierRenderResolutions(e),this.prepareDynamicImports();var d="";this.renderedModules=Object.create(null),this.renderedModuleSources=[];for(l=0;l<this.orderedModules.length;l++){var m,g=(m=this.orderedModules[l]).render(o);g.trim(),e.compact&&-1!==g.lastLine().indexOf("//")&&g.append("\n"),this.renderedModuleSources.push(g);var y=m.getRenderedExports(),v=y.renderedExports,x=y.removedExports;this.renderedModules[m.id]={renderedExports:v,removedExports:x,renderedLength:g.length(),originalLength:m.originalCode.length};var _=m.getOrCreateNamespace();if((_.needsNamespaceBlock||!g.isEmpty())&&(r.addSource(g),this.usedModules.push(m),_.needsNamespaceBlock)){var E=_.renderBlock(o);_.renderFirst()?d+=i+E:r.addSource(new K(E))}}d&&r.prepend(d+i+i),this.needsExportsShim&&r.prepend(""+i+this.graph.varOrConst+" _missingExportShim"+s+"="+s+"void 0;"+i+i),e.compact?this.renderedSource=r:this.renderedSource=r.trim(),this.renderedSourceLength=void 0,this.renderedHash=void 0,0===this.getExportNames().length&&0===this.getImportIds().length&&this.isEmpty&&this.graph.warn({code:"EMPTY_BUNDLE",message:"Generated an empty bundle"}),this.renderedDeclarations={dependencies:this.getChunkDependencyDeclarations(e,n),exports:"none"===this.exportMode?[]:this.getChunkExportDeclarations()},Gr("render modules",3)},t.prototype.getRenderedSourceLength=function(){return void 0!==this.renderedSourceLength?this.renderedSourceLength:this.renderedSourceLength=this.renderedSource.length()},t.prototype.merge=function(t,e,n,r){var i=this;if(this.isEntryModuleFacade||t.isEntryModuleFacade)throw new Error("Internal error: Code splitting chunk merges not supported for facades");for(var s=0,o=t.orderedModules;s<o.length;s++){(p=o[s]).chunk=this,this.orderedModules.push(p)}for(var a=0,h=Array.from(t.imports.entries());a<h.length;a++){var u=h[a],c=u[0],p=u[1];this.imports.has(c)||p.chunk===this||this.imports.set(c,p)}for(var l=0,f=Array.from(t.exports.entries());l<f.length;l++){var d=f[l];c=d[0],p=d[1];this.exports.has(c)||this.exports.set(c,p)}var m=this.exportNames;this.generateInternalExports(n);for(var g,y,v=function(t,e){if(t.imports)for(var n=0,r=t.imports;n<r.length;n++){var s=r[n];s.imported=i.getVariableExportName(e[s.imported])}if(t.reexports)for(var o=0,a=t.reexports;o<a.length;o++){var h=a[o];h.imported=i.getVariableExportName(e[h.imported])}},x=0,_=e;x<_.length;x++)for(var E=_[x],b=void 0,A=0;A<E.dependencies.length;A++){var S=E.dependencies[A];if(S!==t&&S!==this||!b)S===t?(E.dependencies[A]=this,v(b=E.renderedDeclarations.dependencies[A],t.exportNames)):S===this&&v(b=E.renderedDeclarations.dependencies[A],m);else{var w=E.renderedDeclarations.dependencies[A];v(w,S===t?t.exportNames:m),g=b,(y=w).imports&&(g.imports?g.imports=g.imports.concat(y.imports):g.imports=y.imports),y.reexports&&(g.reexports?g.reexports=g.reexports.concat(y.reexports):g.reexports=y.reexports),!g.exportsNames&&y.exportsNames&&(g.exportsNames=!0),!g.exportsDefault&&y.exportsDefault&&(g.exportsDefault=!0),g.name=i.name,E.renderedDeclarations.dependencies.splice(A,1),E.dependencies.splice(A--,1)}}this.preRender(n,r)},t.prototype.generateIdPreserveModules=function(t){return this.id=re(ae(t,this.entryModule.id))},t.prototype.generateId=function(t,e,n,r,i){var s=this,o=ni(ei(t,e,function(t){switch(t){case"format":return"es"===r.format?"esm":r.format;case"hash":return s.computeFullHash(n,r);case"name":if(s.entryModule&&s.entryModule.chunkAlias)return s.entryModule.chunkAlias;for(var e=0,i=s.orderedModules;e<i.length;e++){var o=i[e];if(o.chunkAlias)return o.chunkAlias}return"chunk"}}),i);this.id=o},t.prototype.render=function(e,n,r){var i=this;if(qr("render format",3),!this.renderedSource)throw new Error("Internal error: Chunk render called before preRender");var s=ke[e.format];s||xe({code:"INVALID_OPTION",message:"Invalid format: "+e.format+" - valid options are "+Object.keys(ke).join(", ")});for(var o=0;o<this.dependencies.length;o++){var a=this.dependencies[o];if(!(a instanceof ue)||a.renormalizeRenderPath){var h=this.renderedDeclarations.dependencies[o],u=a instanceof ue?h.id:a.id,c=this.id?re(ae(se(this.id),u)):u;c.startsWith("../")||(c="./"+c),a instanceof t&&(h.namedExportsMode="default"!==a.exportMode),h.id=c}}this.finaliseDynamicImports();var p=this.finaliseImportMetas(e),l=0!==this.renderedDeclarations.exports.length||this.renderedDeclarations.dependencies.some(function(t){return t.reexports&&0!==t.reexports.length}),f=this.orderedModules.some(function(t){return t.usesTopLevelAwait});f&&"es"!==e.format&&"system"!==e.format&&xe({code:"INVALID_TLA_FORMAT",message:"Module format "+e.format+' does not support top-level await. Use the "es" or "system" output formats rather.'});var d=s(this.renderedSource,{indentString:this.indentString,namedExportsMode:"default"!==this.exportMode,hasExports:l,intro:n.intro,outro:n.outro,dynamicImport:this.hasDynamicImport,needsAmdModule:p,dependencies:this.renderedDeclarations.dependencies,exports:this.renderedDeclarations.exports,graph:this.graph,isEntryModuleFacade:this.isEntryModuleFacade,usesTopLevelAwait:f},e);n.banner&&d.prepend(n.banner),n.footer&&d.append(n.footer);var m=d.toString();Gr("render format",3);var g=null,y=[];return function(t){var e=t.graph,n=t.chunk,r=t.renderChunk,i=t.code,s=t.sourcemapChain,o=t.options,a=function(t,e,n){if(null==e)return t;"string"==typeof e&&(e={code:e,map:void 0});var r="string"==typeof e.map?JSON.parse(e.map):e.map;return r&&"string"==typeof r.mappings&&(r.mappings=T(r.mappings)),null!==r&&s.push(r||{missing:!0,plugin:n.name}),e.code},h=!1,u=!0;return e.pluginDriver.hookReduceArg0("renderChunk",[i,r,o],a).then(function(t){return u=!1,e.pluginDriver.hookReduceArg0("transformChunk",[t,o,n],a)}).then(function(t){return h=!0,e.pluginDriver.hookReduceArg0("transformBundle",[t,o,n],a)}).catch(function(t){if(u)throw t;xe(t,{code:h?"BAD_BUNDLE_TRANSFORMER":"BAD_CHUNK_TRANSFORMER",message:"Error transforming "+(h?"bundle":"chunk")+(t.plugin?" with '"+t.plugin+"' plugin":"")+": "+t.message,plugin:t.plugin})})}({graph:this.graph,chunk:this,renderChunk:r,code:m,sourcemapChain:y,options:e}).then(function(t){if(e.sourcemap){qr("sourcemap",3);var n=void 0;if(n=e.file?he(e.sourcemapFile||e.file):e.dir?he(e.dir,i.id):he(i.id),i.graph.pluginDriver.hasLoadersOrTransforms){var r=d.generateDecodedMap({});g=function(t,e,n,r,i){var s=r.filter(function(t){return!t.excludeFromSourcemap}).map(function(e){var n,r=e.sourcemapChain,i=e.originalSourcemap;if(i){var s=i.sources,o=i.sourcesContent||[];if(null==s||s.length<=1&&null==s[0])n=new Qr(e.id,o[0]),r=[i].concat(r);else{var a=se(e.id)||".",h=i.sourceRoot||".",u=s.map(function(t,e){return new Qr(he(a,h,t),o[e])});n=new Zr(i,u)}}else n=new Qr(e.id,e.originalCode);return r.forEach(function(e){e.missing&&(t.graph.warn({code:"SOURCEMAP_BROKEN",plugin:e.plugin,message:"Sourcemap is likely to be incorrect: a plugin"+(e.plugin?" ('"+e.plugin+"')":"")+" was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help",url:"https://rollupjs.org/guide/en#warning-sourcemap-is-likely-to-be-incorrect"}),e={names:[],mappings:""}),n=new Zr(e,[n])}),n}),o=new Zr(n,s);i.forEach(function(t){o=new Zr(t,[o])});var a=o.traceMappings(),h=a.sources,u=a.sourcesContent,c=a.names,p=a.mappings;if(e){var l=se(e);h=h.map(function(t){return ae(l,t)}),e=ie(e)}return new B({file:e,sources:h,sourcesContent:u,names:c,mappings:p})}(i,n,r,i.usedModules,y)}else g=d.generateMap({file:n,includeContent:!0});g.sources=g.sources.map(function(t){return re(e.sourcemapPathTransform?e.sourcemapPathTransform(t):t)}),Gr("sourcemap",3)}return!0!==e.compact&&"\n"!==t[t.length-1]&&(t+="\n"),{code:t,map:g}})},t}();var ii={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},si="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",oi={5:si,6:si+" const class extends export import super"},ai=/^in(stanceof)?$/,hi="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ui="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",ci=new RegExp("["+hi+"]"),pi=new RegExp("["+hi+ui+"]");hi=ui=null;var li=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,190,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,26,230,43,117,63,32,0,257,0,11,39,8,0,22,0,12,39,3,3,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,68,12,0,67,12,65,1,31,6129,15,754,9486,286,82,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],fi=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,280,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function di(t,e){for(var n=65536,r=0;r<e.length;r+=2){if((n+=e[r])>t)return!1;if((n+=e[r+1])>=t)return!0}}function mi(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&ci.test(String.fromCharCode(t)):!1!==e&&di(t,li)))}function gi(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&pi.test(String.fromCharCode(t)):!1!==e&&(di(t,li)||di(t,fi)))))}var yi=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function vi(t,e){return new yi(t,{beforeExpr:!0,binop:e})}var xi={beforeExpr:!0},_i={startsExpr:!0},Ei={};function bi(t,e){return void 0===e&&(e={}),e.keyword=t,Ei[t]=new yi(t,e)}var Ai={num:new yi("num",_i),regexp:new yi("regexp",_i),string:new yi("string",_i),name:new yi("name",_i),eof:new yi("eof"),bracketL:new yi("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new yi("]"),braceL:new yi("{",{beforeExpr:!0,startsExpr:!0}),braceR:new yi("}"),parenL:new yi("(",{beforeExpr:!0,startsExpr:!0}),parenR:new yi(")"),comma:new yi(",",xi),semi:new yi(";",xi),colon:new yi(":",xi),dot:new yi("."),question:new yi("?",xi),arrow:new yi("=>",xi),template:new yi("template"),invalidTemplate:new yi("invalidTemplate"),ellipsis:new yi("...",xi),backQuote:new yi("`",_i),dollarBraceL:new yi("${",{beforeExpr:!0,startsExpr:!0}),eq:new yi("=",{beforeExpr:!0,isAssign:!0}),assign:new yi("_=",{beforeExpr:!0,isAssign:!0}),incDec:new yi("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new yi("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:vi("||",1),logicalAND:vi("&&",2),bitwiseOR:vi("|",3),bitwiseXOR:vi("^",4),bitwiseAND:vi("&",5),equality:vi("==/!=/===/!==",6),relational:vi("</>/<=/>=",7),bitShift:vi("<</>>/>>>",8),plusMin:new yi("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:vi("%",10),star:vi("*",10),slash:vi("/",10),starstar:new yi("**",{beforeExpr:!0}),_break:bi("break"),_case:bi("case",xi),_catch:bi("catch"),_continue:bi("continue"),_debugger:bi("debugger"),_default:bi("default",xi),_do:bi("do",{isLoop:!0,beforeExpr:!0}),_else:bi("else",xi),_finally:bi("finally"),_for:bi("for",{isLoop:!0}),_function:bi("function",_i),_if:bi("if"),_return:bi("return",xi),_switch:bi("switch"),_throw:bi("throw",xi),_try:bi("try"),_var:bi("var"),_const:bi("const"),_while:bi("while",{isLoop:!0}),_with:bi("with"),_new:bi("new",{beforeExpr:!0,startsExpr:!0}),_this:bi("this",_i),_super:bi("super",_i),_class:bi("class",_i),_extends:bi("extends",xi),_export:bi("export"),_import:bi("import"),_null:bi("null",_i),_true:bi("true",_i),_false:bi("false",_i),_in:bi("in",{beforeExpr:!0,binop:7}),_instanceof:bi("instanceof",{beforeExpr:!0,binop:7}),_typeof:bi("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:bi("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:bi("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Si=/\r\n?|\n|\u2028|\u2029/,wi=new RegExp(Si.source,"g");function Pi(t,e){return 10===t||13===t||!e&&(8232===t||8233===t)}var Ii=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ki=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ci=Object.prototype,Ni=Ci.hasOwnProperty,Ri=Ci.toString;function Oi(t,e){return Ni.call(t,e)}var Mi=Array.isArray||function(t){return"[object Array]"===Ri.call(t)},Li=function(t,e){this.line=t,this.column=e};Li.prototype.offset=function(t){return new Li(this.line,this.column+t)};var Ti=function(t,e,n){this.start=e,this.end=n,null!==t.sourceFile&&(this.source=t.sourceFile)};function Di(t,e){for(var n=1,r=0;;){wi.lastIndex=r;var i=wi.exec(t);if(!(i&&i.index<e))return new Li(n,e-r);++n,r=i.index+i[0].length}}var Vi={ecmaVersion:7,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1,plugins:{}};function zi(t){var e={};for(var n in Vi)e[n]=t&&Oi(t,n)?t[n]:Vi[n];if(e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),Mi(e.onToken)){var r=e.onToken;e.onToken=function(t){return r.push(t)}}return Mi(e.onComment)&&(e.onComment=function(t,e){return function(n,r,i,s,o,a){var h={type:n?"Block":"Line",value:r,start:i,end:s};t.locations&&(h.loc=new Ti(this,o,a)),t.ranges&&(h.range=[i,s]),e.push(h)}}(e,e.onComment)),e}var Bi={};function Wi(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var ji=function(t,e,n){this.options=t=zi(t),this.sourceFile=t.sourceFile,this.keywords=Wi(oi[t.ecmaVersion>=6?6:5]);var r="";if(!t.allowReserved){for(var i=t.ecmaVersion;!(r=ii[i]);i--);"module"===t.sourceType&&(r+=" await")}this.reservedWords=Wi(r);var s=(r?r+" ":"")+ii.strict;this.reservedWordsStrict=Wi(s),this.reservedWordsStrictBind=Wi(s+" "+ii.strictBind),this.input=String(e),this.containsEsc=!1,this.loadPlugins(t.plugins),n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Si).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Ai.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.inFunction=this.inGenerator=this.inAsync=!1,this.yieldPos=this.awaitPos=0,this.labels=[],0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterFunctionScope(),this.regexpState=null};ji.prototype.isKeyword=function(t){return this.keywords.test(t)},ji.prototype.isReservedWord=function(t){return this.reservedWords.test(t)},ji.prototype.extend=function(t,e){this[t]=e(this[t])},ji.prototype.loadPlugins=function(t){for(var e in t){var n=Bi[e];if(!n)throw new Error("Plugin '"+e+"' not found");n(this,t[e])}},ji.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};var Ui=ji.prototype,Fi=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)"|;)/;function qi(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}Ui.strictDirective=function(t){for(;;){ki.lastIndex=t,t+=ki.exec(this.input)[0].length;var e=Fi.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2]))return!0;t+=e[0].length}},Ui.eat=function(t){return this.type===t&&(this.next(),!0)},Ui.isContextual=function(t){return this.type===Ai.name&&this.value===t&&!this.containsEsc},Ui.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},Ui.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},Ui.canInsertSemicolon=function(){return this.type===Ai.eof||this.type===Ai.braceR||Si.test(this.input.slice(this.lastTokEnd,this.start))},Ui.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ui.semicolon=function(){this.eat(Ai.semi)||this.insertSemicolon()||this.unexpected()},Ui.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},Ui.expect=function(t){this.eat(t)||this.unexpected()},Ui.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")},Ui.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var n=e?t.parenthesizedAssign:t.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},Ui.checkExpressionErrors=function(t,e){if(!t)return!1;var n=t.shorthandAssign,r=t.doubleProto;if(!e)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},Ui.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Ui.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var Gi=ji.prototype;Gi.parseTopLevel=function(t){var e={};for(t.body||(t.body=[]);this.type!==Ai.eof;){var n=this.parseStatement(!0,!0,e);t.body.push(n)}return this.adaptDirectivePrologue(t.body),this.next(),this.options.ecmaVersion>=6&&(t.sourceType=this.options.sourceType),this.finishNode(t,"Program")};var Hi={kind:"loop"},Ki={kind:"switch"};Gi.isLet=function(){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ki.lastIndex=this.pos;var t=ki.exec(this.input),e=this.pos+t[0].length,n=this.input.charCodeAt(e);if(91===n||123===n)return!0;if(mi(n,!0)){for(var r=e+1;gi(this.input.charCodeAt(r),!0);)++r;var i=this.input.slice(e,r);if(!ai.test(i))return!0}return!1},Gi.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ki.lastIndex=this.pos;var t=ki.exec(this.input),e=this.pos+t[0].length;return!(Si.test(this.input.slice(this.pos,e))||"function"!==this.input.slice(e,e+8)||e+8!==this.input.length&&gi(this.input.charAt(e+8)))},Gi.parseStatement=function(t,e,n){var r,i=this.type,s=this.startNode();switch(this.isLet()&&(i=Ai._var,r="let"),i){case Ai._break:case Ai._continue:return this.parseBreakContinueStatement(s,i.keyword);case Ai._debugger:return this.parseDebuggerStatement(s);case Ai._do:return this.parseDoStatement(s);case Ai._for:return this.parseForStatement(s);case Ai._function:return!t&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1);case Ai._class:return t||this.unexpected(),this.parseClass(s,!0);case Ai._if:return this.parseIfStatement(s);case Ai._return:return this.parseReturnStatement(s);case Ai._switch:return this.parseSwitchStatement(s);case Ai._throw:return this.parseThrowStatement(s);case Ai._try:return this.parseTryStatement(s);case Ai._const:case Ai._var:return r=r||this.value,t||"var"===r||this.unexpected(),this.parseVarStatement(s,r);case Ai._while:return this.parseWhileStatement(s);case Ai._with:return this.parseWithStatement(s);case Ai.braceL:return this.parseBlock();case Ai.semi:return this.parseEmptyStatement(s);case Ai._export:case Ai._import:return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===Ai._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return t||this.unexpected(),this.next(),this.parseFunctionStatement(s,!0);var o=this.value,a=this.parseExpression();return i===Ai.name&&"Identifier"===a.type&&this.eat(Ai.colon)?this.parseLabeledStatement(s,o,a):this.parseExpressionStatement(s,a)}},Gi.parseBreakContinueStatement=function(t,e){var n="break"===e;this.next(),this.eat(Ai.semi)||this.insertSemicolon()?t.label=null:this.type!==Ai.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==t.label||i.name===t.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(t.label&&n)break}}return r===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,n?"BreakStatement":"ContinueStatement")},Gi.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},Gi.parseDoStatement=function(t){return this.next(),this.labels.push(Hi),t.body=this.parseStatement(!1),this.labels.pop(),this.expect(Ai._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(Ai.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},Gi.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Hi),this.enterLexicalScope(),this.expect(Ai.parenL),this.type===Ai.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var n=this.isLet();if(this.type===Ai._var||this.type===Ai._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),!(this.type===Ai._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==r.declarations.length||"var"!==i&&r.declarations[0].init?(e>-1&&this.unexpected(e),this.parseFor(t,r)):(this.options.ecmaVersion>=9&&(this.type===Ai._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,r))}var s=new qi,o=this.parseExpression(!0,s);return this.type===Ai._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===Ai._in?e>-1&&this.unexpected(e):t.await=e>-1),this.toAssignable(o,!1,s),this.checkLVal(o),this.parseForIn(t,o)):(this.checkExpressionErrors(s,!0),e>-1&&this.unexpected(e),this.parseFor(t,o))},Gi.parseFunctionStatement=function(t,e){return this.next(),this.parseFunction(t,!0,!1,e)},Gi.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement(!this.strict&&this.type===Ai._function),t.alternate=this.eat(Ai._else)?this.parseStatement(!this.strict&&this.type===Ai._function):null,this.finishNode(t,"IfStatement")},Gi.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Ai.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},Gi.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(Ai.braceL),this.labels.push(Ki),this.enterLexicalScope();for(var n=!1;this.type!==Ai.braceR;)if(this.type===Ai._case||this.type===Ai._default){var r=this.type===Ai._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),r?e.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,e.test=null),this.expect(Ai.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(!0));return this.exitLexicalScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},Gi.parseThrowStatement=function(t){return this.next(),Si.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Yi=[];Gi.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===Ai._catch){var e=this.startNode();this.next(),this.eat(Ai.parenL)?(e.param=this.parseBindingAtom(),this.enterLexicalScope(),this.checkLVal(e.param,"let"),this.expect(Ai.parenR)):(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterLexicalScope()),e.body=this.parseBlock(!1),this.exitLexicalScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(Ai._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},Gi.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},Gi.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Hi),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"WhileStatement")},Gi.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement(!1),this.finishNode(t,"WithStatement")},Gi.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},Gi.parseLabeledStatement=function(t,e,n){for(var r=0,i=this.labels;r<i.length;r+=1){i[r].name===e&&this.raise(n.start,"Label '"+e+"' is already declared")}for(var s=this.type.isLoop?"loop":this.type===Ai._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var a=this.labels[o];if(a.statementStart!==t.start)break;a.statementStart=this.start,a.kind=s}return this.labels.push({name:e,kind:s,statementStart:this.start}),t.body=this.parseStatement(!0),("ClassDeclaration"===t.body.type||"VariableDeclaration"===t.body.type&&"var"!==t.body.kind||"FunctionDeclaration"===t.body.type&&(this.strict||t.body.generator||t.body.async))&&this.raiseRecoverable(t.body.start,"Invalid labeled declaration"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")},Gi.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},Gi.parseBlock=function(t){void 0===t&&(t=!0);var e=this.startNode();for(e.body=[],this.expect(Ai.braceL),t&&this.enterLexicalScope();!this.eat(Ai.braceR);){var n=this.parseStatement(!0);e.body.push(n)}return t&&this.exitLexicalScope(),this.finishNode(e,"BlockStatement")},Gi.parseFor=function(t,e){return t.init=e,this.expect(Ai.semi),t.test=this.type===Ai.semi?null:this.parseExpression(),this.expect(Ai.semi),t.update=this.type===Ai.parenR?null:this.parseExpression(),this.expect(Ai.parenR),this.exitLexicalScope(),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"ForStatement")},Gi.parseForIn=function(t,e){var n=this.type===Ai._in?"ForInStatement":"ForOfStatement";return this.next(),"ForInStatement"===n&&("AssignmentPattern"===e.type||"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(this.strict||"Identifier"!==e.declarations[0].id.type))&&this.raise(e.start,"Invalid assignment in for-in loop head"),t.left=e,t.right="ForInStatement"===n?this.parseExpression():this.parseMaybeAssign(),this.expect(Ai.parenR),this.exitLexicalScope(),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,n)},Gi.parseVar=function(t,e,n){for(t.declarations=[],t.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(Ai.eq)?r.init=this.parseMaybeAssign(e):"const"!==n||this.type===Ai._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||e&&(this.type===Ai._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(Ai.comma))break}return t},Gi.parseVarId=function(t,e){t.id=this.parseBindingAtom(e),this.checkLVal(t.id,e,!1)},Gi.parseFunction=function(t,e,n,r){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(t.generator=this.eat(Ai.star)),this.options.ecmaVersion>=8&&(t.async=!!r),e&&(t.id="nullableID"===e&&this.type!==Ai.name?null:this.parseIdent(),t.id&&this.checkLVal(t.id,this.inModule&&!this.inFunction?"let":"var"));var i=this.inGenerator,s=this.inAsync,o=this.yieldPos,a=this.awaitPos,h=this.inFunction;return this.inGenerator=t.generator,this.inAsync=t.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),e||(t.id=this.type===Ai.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n),this.inGenerator=i,this.inAsync=s,this.yieldPos=o,this.awaitPos=a,this.inFunction=h,this.finishNode(t,e?"FunctionDeclaration":"FunctionExpression")},Gi.parseFunctionParams=function(t){this.expect(Ai.parenL),t.params=this.parseBindingList(Ai.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Gi.parseClass=function(t,e){this.next(),this.parseClassId(t,e),this.parseClassSuper(t);var n=this.startNode(),r=!1;for(n.body=[],this.expect(Ai.braceL);!this.eat(Ai.braceR);){var i=this.parseClassMember(n);i&&"MethodDefinition"===i.type&&"constructor"===i.kind&&(r&&this.raise(i.start,"Duplicate constructor in the same class"),r=!0)}return t.body=this.finishNode(n,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},Gi.parseClassMember=function(t){var e=this;if(this.eat(Ai.semi))return null;var n=this.startNode(),r=function(t,r){void 0===r&&(r=!1);var i=e.start,s=e.startLoc;return!!e.eatContextual(t)&&(!(e.type===Ai.parenL||r&&e.canInsertSemicolon())||(n.key&&e.unexpected(),n.computed=!1,n.key=e.startNodeAt(i,s),n.key.name=t,e.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var i=this.eat(Ai.star),s=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(Ai.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var o=n.key;return n.computed||n.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?n.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),i&&this.raise(o.start,"Constructor can't be a generator"),s&&this.raise(o.start,"Constructor can't be an async method"),n.kind="constructor"),this.parseClassMethod(t,n,i,s),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},Gi.parseClassMethod=function(t,e,n,r){e.value=this.parseMethod(n,r),t.body.push(this.finishNode(e,"MethodDefinition"))},Gi.parseClassId=function(t,e){t.id=this.type===Ai.name?this.parseIdent():!0===e?this.unexpected():null},Gi.parseClassSuper=function(t){t.superClass=this.eat(Ai._extends)?this.parseExprSubscripts():null},Gi.parseExport=function(t,e){if(this.next(),this.eat(Ai.star))return this.expectContextual("from"),this.type!==Ai.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(Ai._default)){var n;if(this.checkExport(e,"default",this.lastTokStart),this.type===Ai._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),t.declaration=this.parseFunction(r,"nullableID",!1,n)}else if(this.type===Ai._class){var i=this.startNode();t.declaration=this.parseClass(i,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(!0),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==Ai.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var s=0,o=t.specifiers;s<o.length;s+=1){var a=o[s];this.checkUnreserved(a.local)}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},Gi.checkExport=function(t,e,n){t&&(Oi(t,e)&&this.raiseRecoverable(n,"Duplicate export '"+e+"'"),t[e]=!0)},Gi.checkPatternExport=function(t,e){var n=e.type;if("Identifier"===n)this.checkExport(t,e.name,e.start);else if("ObjectPattern"===n)for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(t,s)}else if("ArrayPattern"===n)for(var o=0,a=e.elements;o<a.length;o+=1){var h=a[o];h&&this.checkPatternExport(t,h)}else"Property"===n?this.checkPatternExport(t,e.value):"AssignmentPattern"===n?this.checkPatternExport(t,e.left):"RestElement"===n?this.checkPatternExport(t,e.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(t,e.expression)},Gi.checkVariableExport=function(t,e){if(t)for(var n=0,r=e;n<r.length;n+=1){var i=r[n];this.checkPatternExport(t,i.id)}},Gi.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Gi.parseExportSpecifiers=function(t){var e=[],n=!0;for(this.expect(Ai.braceL);!this.eat(Ai.braceR);){if(n)n=!1;else if(this.expect(Ai.comma),this.afterTrailingComma(Ai.braceR))break;var r=this.startNode();r.local=this.parseIdent(!0),r.exported=this.eatContextual("as")?this.parseIdent(!0):r.local,this.checkExport(t,r.exported.name,r.exported.start),e.push(this.finishNode(r,"ExportSpecifier"))}return e},Gi.parseImport=function(t){return this.next(),this.type===Ai.string?(t.specifiers=Yi,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===Ai.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},Gi.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===Ai.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,"let"),t.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(Ai.comma))return t}if(this.type===Ai.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLVal(r.local,"let"),t.push(this.finishNode(r,"ImportNamespaceSpecifier")),t}for(this.expect(Ai.braceL);!this.eat(Ai.braceR);){if(e)e=!1;else if(this.expect(Ai.comma),this.afterTrailingComma(Ai.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,"let"),t.push(this.finishNode(i,"ImportSpecifier"))}return t},Gi.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},Gi.isDirectiveCandidate=function(t){return"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var Xi=ji.prototype;Xi.toAssignable=function(t,e,n){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Can not use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,e),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==t.kind&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),"AssignmentPattern"===t.argument.type&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(t.expression,e);break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return t},Xi.toAssignableList=function(t,e){for(var n=t.length,r=0;r<n;r++){var i=t[r];i&&this.toAssignable(i,e)}if(n){var s=t[n-1];6===this.options.ecmaVersion&&e&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return t},Xi.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},Xi.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==Ai.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},Xi.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case Ai.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(Ai.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case Ai.braceL:return this.parseObj(!0)}return this.parseIdent()},Xi.parseBindingList=function(t,e,n){for(var r=[],i=!0;!this.eat(t);)if(i?i=!1:this.expect(Ai.comma),e&&this.type===Ai.comma)r.push(null);else{if(n&&this.afterTrailingComma(t))break;if(this.type===Ai.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),r.push(s),this.type===Ai.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},Xi.parseBindingListItem=function(t){return t},Xi.parseMaybeDefault=function(t,e,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(Ai.eq))return n;var r=this.startNodeAt(t,e);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},Xi.checkLVal=function(t,e,n){switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(e?"Binding ":"Assigning to ")+t.name+" in strict mode"),n&&(Oi(n,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),n[t.name]=!0),e&&"none"!==e&&(("var"===e&&!this.canDeclareVarName(t.name)||"var"!==e&&!this.canDeclareLexicalName(t.name))&&this.raiseRecoverable(t.start,"Identifier '"+t.name+"' has already been declared"),"var"===e?this.declareVarName(t.name):this.declareLexicalName(t.name));break;case"MemberExpression":e&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ObjectPattern":for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkLVal(s,e,n)}break;case"Property":this.checkLVal(t.value,e,n);break;case"ArrayPattern":for(var o=0,a=t.elements;o<a.length;o+=1){var h=a[o];h&&this.checkLVal(h,e,n)}break;case"AssignmentPattern":this.checkLVal(t.left,e,n);break;case"RestElement":this.checkLVal(t.argument,e,n);break;case"ParenthesizedExpression":this.checkLVal(t.expression,e,n);break;default:this.raise(t.start,(e?"Binding":"Assigning to")+" rvalue")}};var $i=ji.prototype;$i.checkPropClash=function(t,e,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===t.type||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var r,i=t.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=t.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===s&&(e.proto&&(n&&n.doubleProto<0?n.doubleProto=i.start:this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),e.proto=!0);else{var o=e[r="$"+r];if(o)("init"===s?this.strict&&o.init||o.get||o.set:o.init||o[s])&&this.raiseRecoverable(i.start,"Redefinition of property");else o=e[r]={init:!1,get:!1,set:!1};o[s]=!0}}},$i.parseExpression=function(t,e){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(t,e);if(this.type===Ai.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(Ai.comma);)s.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(s,"SequenceExpression")}return i},$i.parseMaybeAssign=function(t,e,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1,i=-1,s=-1;e?(i=e.parenthesizedAssign,s=e.trailingComma,e.parenthesizedAssign=e.trailingComma=-1):(e=new qi,r=!0);var o=this.start,a=this.startLoc;this.type!==Ai.parenL&&this.type!==Ai.name||(this.potentialArrowAt=this.start);var h=this.parseMaybeConditional(t,e);if(n&&(h=n.call(this,h,o,a)),this.type.isAssign){var u=this.startNodeAt(o,a);return u.operator=this.value,u.left=this.type===Ai.eq?this.toAssignable(h,!1,e):h,r||qi.call(e),e.shorthandAssign=-1,this.checkLVal(h),this.next(),u.right=this.parseMaybeAssign(t),this.finishNode(u,"AssignmentExpression")}return r&&this.checkExpressionErrors(e,!0),i>-1&&(e.parenthesizedAssign=i),s>-1&&(e.trailingComma=s),h},$i.parseMaybeConditional=function(t,e){var n=this.start,r=this.startLoc,i=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return i;if(this.eat(Ai.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(Ai.colon),s.alternate=this.parseMaybeAssign(t),this.finishNode(s,"ConditionalExpression")}return i},$i.parseExprOps=function(t,e){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(e,!1);return this.checkExpressionErrors(e)?i:i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,t)},$i.parseExprOp=function(t,e,n,r,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==Ai._in)&&s>r){var o=this.type===Ai.logicalOR||this.type===Ai.logicalAND,a=this.value;this.next();var h=this.start,u=this.startLoc,c=this.parseExprOp(this.parseMaybeUnary(null,!1),h,u,s,i),p=this.buildBinary(e,n,t,c,a,o);return this.parseExprOp(p,e,n,r,i)}return t},$i.buildBinary=function(t,e,n,r,i,s){var o=this.startNodeAt(t,e);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")},$i.parseMaybeUnary=function(t,e){var n,r=this.start,i=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))n=this.parseAwait(),e=!0;else if(this.type.prefix){var s=this.startNode(),o=this.type===Ai.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),o?this.checkLVal(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):e=!0,n=this.finishNode(s,o?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(t),this.checkExpressionErrors(t))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var a=this.startNodeAt(r,i);a.operator=this.value,a.prefix=!1,a.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(a,"UpdateExpression")}}return!e&&this.eat(Ai.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},$i.parseExprSubscripts=function(t){var e=this.start,n=this.startLoc,r=this.parseExprAtom(t),i="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(t)||i)return r;var s=this.parseSubscripts(r,e,n);return t&&"MemberExpression"===s.type&&(t.parenthesizedAssign>=s.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=s.start&&(t.parenthesizedBind=-1)),s},$i.parseSubscripts=function(t,e,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(t.start,t.end),s=void 0;;)if((s=this.eat(Ai.bracketL))||this.eat(Ai.dot)){var o=this.startNodeAt(e,n);o.object=t,o.property=s?this.parseExpression():this.parseIdent(!0),o.computed=!!s,s&&this.expect(Ai.bracketR),t=this.finishNode(o,"MemberExpression")}else if(!r&&this.eat(Ai.parenL)){var a=new qi,h=this.yieldPos,u=this.awaitPos;this.yieldPos=0,this.awaitPos=0;var c=this.parseExprList(Ai.parenR,this.options.ecmaVersion>=8,!1,a);if(i&&!this.canInsertSemicolon()&&this.eat(Ai.arrow))return this.checkPatternErrors(a,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=u,this.parseArrowExpression(this.startNodeAt(e,n),c,!0);this.checkExpressionErrors(a,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=u||this.awaitPos;var p=this.startNodeAt(e,n);p.callee=t,p.arguments=c,t=this.finishNode(p,"CallExpression")}else{if(this.type!==Ai.backQuote)return t;var l=this.startNodeAt(e,n);l.tag=t,l.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(l,"TaggedTemplateExpression")}},$i.parseExprAtom=function(t){var e,n=this.potentialArrowAt===this.start;switch(this.type){case Ai._super:return this.inFunction||this.raise(this.start,"'super' outside of function or class"),e=this.startNode(),this.next(),this.type!==Ai.dot&&this.type!==Ai.bracketL&&this.type!==Ai.parenL&&this.unexpected(),this.finishNode(e,"Super");case Ai._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case Ai.name:var r=this.start,i=this.startLoc,s=this.containsEsc,o=this.parseIdent(this.type!==Ai.name);if(this.options.ecmaVersion>=8&&!s&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(Ai._function))return this.parseFunction(this.startNodeAt(r,i),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(Ai.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===Ai.name&&!s)return o=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(Ai.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[o],!0)}return o;case Ai.regexp:var a=this.value;return(e=this.parseLiteral(a.value)).regex={pattern:a.pattern,flags:a.flags},e;case Ai.num:case Ai.string:return this.parseLiteral(this.value);case Ai._null:case Ai._true:case Ai._false:return(e=this.startNode()).value=this.type===Ai._null?null:this.type===Ai._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case Ai.parenL:var h=this.start,u=this.parseParenAndDistinguishExpression(n);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(t.parenthesizedAssign=h),t.parenthesizedBind<0&&(t.parenthesizedBind=h)),u;case Ai.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(Ai.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression");case Ai.braceL:return this.parseObj(!1,t);case Ai._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case Ai._class:return this.parseClass(this.startNode(),!1);case Ai._new:return this.parseNew();case Ai.backQuote:return this.parseTemplate();default:this.unexpected()}},$i.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(e,"Literal")},$i.parseParenExpression=function(){this.expect(Ai.parenL);var t=this.parseExpression();return this.expect(Ai.parenR),t},$i.parseParenAndDistinguishExpression=function(t){var e,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,o=this.start,a=this.startLoc,h=[],u=!0,c=!1,p=new qi,l=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Ai.parenR;){if(u?u=!1:this.expect(Ai.comma),i&&this.afterTrailingComma(Ai.parenR,!0)){c=!0;break}if(this.type===Ai.ellipsis){s=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===Ai.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}h.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var d=this.start,m=this.startLoc;if(this.expect(Ai.parenR),t&&!this.canInsertSemicolon()&&this.eat(Ai.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=l,this.awaitPos=f,this.parseParenArrowList(n,r,h);h.length&&!c||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(p,!0),this.yieldPos=l||this.yieldPos,this.awaitPos=f||this.awaitPos,h.length>1?((e=this.startNodeAt(o,a)).expressions=h,this.finishNodeAt(e,"SequenceExpression",d,m)):e=h[0]}else e=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,r);return g.expression=e,this.finishNode(g,"ParenthesizedExpression")}return e},$i.parseParenItem=function(t){return t},$i.parseParenArrowList=function(t,e,n){return this.parseArrowExpression(this.startNodeAt(t,e),n)};var Ji=[];$i.parseNew=function(){var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(Ai.dot)){t.meta=e;var n=this.containsEsc;return t.property=this.parseIdent(!0),("target"!==t.property.name||n)&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raiseRecoverable(t.start,"new.target can only be used in functions"),this.finishNode(t,"MetaProperty")}var r=this.start,i=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),this.eat(Ai.parenL)?t.arguments=this.parseExprList(Ai.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Ji,this.finishNode(t,"NewExpression")},$i.parseTemplateElement=function(t){var e=t.isTagged,n=this.startNode();return this.type===Ai.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===Ai.backQuote,this.finishNode(n,"TemplateElement")},$i.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:e});for(n.quasis=[r];!r.tail;)this.type===Ai.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Ai.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(Ai.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(n,"TemplateLiteral")},$i.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===Ai.name||this.type===Ai.num||this.type===Ai.string||this.type===Ai.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Ai.star)&&!Si.test(this.input.slice(this.lastTokEnd,this.start))},$i.parseObj=function(t,e){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(Ai.braceR);){if(r)r=!1;else if(this.expect(Ai.comma),this.afterTrailingComma(Ai.braceR))break;var s=this.parseProperty(t,e);t||this.checkPropClash(s,i,e),n.properties.push(s)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")},$i.parseProperty=function(t,e){var n,r,i,s,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Ai.ellipsis))return t?(o.argument=this.parseIdent(!1),this.type===Ai.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===Ai.parenL&&e&&(e.parenthesizedAssign<0&&(e.parenthesizedAssign=this.start),e.parenthesizedBind<0&&(e.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,e),this.type===Ai.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(t||e)&&(i=this.start,s=this.startLoc),t||(n=this.eat(Ai.star)));var a=this.containsEsc;return this.parsePropertyName(o),!t&&!a&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(Ai.star),this.parsePropertyName(o,e)):r=!1,this.parsePropertyValue(o,t,n,r,i,s,e,a),this.finishNode(o,"Property")},$i.parsePropertyValue=function(t,e,n,r,i,s,o,a){if((n||r)&&this.type===Ai.colon&&this.unexpected(),this.eat(Ai.colon))t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===Ai.parenL)e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(n,r);else if(e||a||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===Ai.comma||this.type===Ai.braceR)this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?(this.checkUnreserved(t.key),t.kind="init",e?t.value=this.parseMaybeDefault(i,s,t.key):this.type===Ai.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),t.value=this.parseMaybeDefault(i,s,t.key)):t.value=t.key,t.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var h="get"===t.kind?0:1;if(t.value.params.length!==h){var u=t.value.start;"get"===t.kind?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")}},$i.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(Ai.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(Ai.bracketR),t.key;t.computed=!1}return t.key=this.type===Ai.num||this.type===Ai.string?this.parseExprAtom():this.parseIdent(!0)},$i.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=!1,t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},$i.parseMethod=function(t,e){var n=this.startNode(),r=this.inGenerator,i=this.inAsync,s=this.yieldPos,o=this.awaitPos,a=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=t),this.options.ecmaVersion>=8&&(n.async=!!e),this.inGenerator=n.generator,this.inAsync=n.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),this.expect(Ai.parenL),n.params=this.parseBindingList(Ai.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=r,this.inAsync=i,this.yieldPos=s,this.awaitPos=o,this.inFunction=a,this.finishNode(n,"FunctionExpression")},$i.parseArrowExpression=function(t,e,n){var r=this.inGenerator,i=this.inAsync,s=this.yieldPos,o=this.awaitPos,a=this.inFunction;return this.enterFunctionScope(),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!n),this.inGenerator=!1,this.inAsync=t.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0),this.inGenerator=r,this.inAsync=i,this.yieldPos=s,this.awaitPos=o,this.inFunction=a,this.finishNode(t,"ArrowFunctionExpression")},$i.parseFunctionBody=function(t,e){var n=e&&this.type!==Ai.braceL,r=this.strict,i=!1;if(n)t.body=this.parseMaybeAssign(),t.expression=!0,this.checkParams(t,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);r&&!s||(i=this.strictDirective(this.end))&&s&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var o=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(t,!r&&!i&&!e&&this.isSimpleParamList(t.params)),t.body=this.parseBlock(!1),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=o}this.exitFunctionScope(),this.strict&&t.id&&this.checkLVal(t.id,"none"),this.strict=r},$i.isSimpleParamList=function(t){for(var e=0,n=t;e<n.length;e+=1){if("Identifier"!==n[e].type)return!1}return!0},$i.checkParams=function(t,e){for(var n={},r=0,i=t.params;r<i.length;r+=1){var s=i[r];this.checkLVal(s,"var",e?null:n)}},$i.parseExprList=function(t,e,n,r){for(var i=[],s=!0;!this.eat(t);){if(s)s=!1;else if(this.expect(Ai.comma),e&&this.afterTrailingComma(t))break;var o=void 0;n&&this.type===Ai.comma?o=null:this.type===Ai.ellipsis?(o=this.parseSpread(r),r&&this.type===Ai.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},$i.checkUnreserved=function(t){var e=t.start,n=t.end,r=t.name;(this.inGenerator&&"yield"===r&&this.raiseRecoverable(e,"Can not use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(e,"Can not use 'await' as identifier inside an async function"),this.isKeyword(r)&&this.raise(e,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(e,n).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(e,"Can not use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+r+"' is reserved"))},$i.parseIdent=function(t,e){var n=this.startNode();return t&&"never"===this.options.allowReserved&&(t=!1),this.type===Ai.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,"class"!==n.name&&"function"!==n.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(),this.finishNode(n,"Identifier"),t||this.checkUnreserved(n),n},$i.parseYield=function(){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===Ai.semi||this.canInsertSemicolon()||this.type!==Ai.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(Ai.star),t.argument=this.parseMaybeAssign()),this.finishNode(t,"YieldExpression")},$i.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0),this.finishNode(t,"AwaitExpression")};var Qi=ji.prototype;Qi.raise=function(t,e){var n=Di(this.input,t);e+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(e);throw r.pos=t,r.loc=n,r.raisedAt=this.pos,r},Qi.raiseRecoverable=Qi.raise,Qi.curPosition=function(){if(this.options.locations)return new Li(this.curLine,this.pos-this.lineStart)};var Zi=ji.prototype,ts=Object.assign||function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];for(var r=0,i=e;r<i.length;r+=1){var s=i[r];for(var o in s)Oi(s,o)&&(t[o]=s[o])}return t};Zi.enterFunctionScope=function(){this.scopeStack.push({var:{},lexical:{},childVar:{},parentLexical:{}})},Zi.exitFunctionScope=function(){this.scopeStack.pop()},Zi.enterLexicalScope=function(){var t=this.scopeStack[this.scopeStack.length-1],e={var:{},lexical:{},childVar:{},parentLexical:{}};this.scopeStack.push(e),ts(e.parentLexical,t.lexical,t.parentLexical)},Zi.exitLexicalScope=function(){var t=this.scopeStack.pop(),e=this.scopeStack[this.scopeStack.length-1];ts(e.childVar,t.var,t.childVar)},Zi.canDeclareVarName=function(t){var e=this.scopeStack[this.scopeStack.length-1];return!Oi(e.lexical,t)&&!Oi(e.parentLexical,t)},Zi.canDeclareLexicalName=function(t){var e=this.scopeStack[this.scopeStack.length-1];return!Oi(e.lexical,t)&&!Oi(e.var,t)&&!Oi(e.childVar,t)},Zi.declareVarName=function(t){this.scopeStack[this.scopeStack.length-1].var[t]=!0},Zi.declareLexicalName=function(t){this.scopeStack[this.scopeStack.length-1].lexical[t]=!0};var es=function(t,e,n){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new Ti(t,n)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},ns=ji.prototype;function rs(t,e,n,r){return t.type=e,t.end=n,this.options.locations&&(t.loc.end=r),this.options.ranges&&(t.range[1]=n),t}ns.startNode=function(){return new es(this,this.start,this.startLoc)},ns.startNodeAt=function(t,e){return new es(this,t,e)},ns.finishNode=function(t,e){return rs.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},ns.finishNodeAt=function(t,e,n,r){return rs.call(this,t,e,n,r)};var is=function(t,e,n,r,i){this.token=t,this.isExpr=!!e,this.preserveSpace=!!n,this.override=r,this.generator=!!i},ss={b_stat:new is("{",!1),b_expr:new is("{",!0),b_tmpl:new is("${",!1),p_stat:new is("(",!1),p_expr:new is("(",!0),q_tmpl:new is("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new is("function",!1),f_expr:new is("function",!0),f_expr_gen:new is("function",!0,!1,null,!0),f_gen:new is("function",!1,!1,null,!0)},os=ji.prototype;os.initialContext=function(){return[ss.b_stat]},os.braceIsBlock=function(t){var e=this.curContext();return e===ss.f_expr||e===ss.f_stat||(t!==Ai.colon||e!==ss.b_stat&&e!==ss.b_expr?t===Ai._return||t===Ai.name&&this.exprAllowed?Si.test(this.input.slice(this.lastTokEnd,this.start)):t===Ai._else||t===Ai.semi||t===Ai.eof||t===Ai.parenR||t===Ai.arrow||(t===Ai.braceL?e===ss.b_stat:t!==Ai._var&&t!==Ai.name&&!this.exprAllowed):!e.isExpr)},os.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},os.updateContext=function(t){var e,n=this.type;n.keyword&&t===Ai.dot?this.exprAllowed=!1:(e=n.updateContext)?e.call(this,t):this.exprAllowed=n.beforeExpr},Ai.parenR.updateContext=Ai.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===ss.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},Ai.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?ss.b_stat:ss.b_expr),this.exprAllowed=!0},Ai.dollarBraceL.updateContext=function(){this.context.push(ss.b_tmpl),this.exprAllowed=!0},Ai.parenL.updateContext=function(t){var e=t===Ai._if||t===Ai._for||t===Ai._with||t===Ai._while;this.context.push(e?ss.p_stat:ss.p_expr),this.exprAllowed=!0},Ai.incDec.updateContext=function(){},Ai._function.updateContext=Ai._class.updateContext=function(t){t.beforeExpr&&t!==Ai.semi&&t!==Ai._else&&(t!==Ai.colon&&t!==Ai.braceL||this.curContext()!==ss.b_stat)?this.context.push(ss.f_expr):this.context.push(ss.f_stat),this.exprAllowed=!1},Ai.backQuote.updateContext=function(){this.curContext()===ss.q_tmpl?this.context.pop():this.context.push(ss.q_tmpl),this.exprAllowed=!1},Ai.star.updateContext=function(t){if(t===Ai._function){var e=this.context.length-1;this.context[e]===ss.f_expr?this.context[e]=ss.f_expr_gen:this.context[e]=ss.f_gen}this.exprAllowed=!0},Ai.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==Ai.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var as={$LONE:["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","Emoji_Modifier","Emoji_Modifier_Base","Emoji_Presentation","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"],General_Category:["Cased_Letter","LC","Close_Punctuation","Pe","Connector_Punctuation","Pc","Control","Cc","cntrl","Currency_Symbol","Sc","Dash_Punctuation","Pd","Decimal_Number","Nd","digit","Enclosing_Mark","Me","Final_Punctuation","Pf","Format","Cf","Initial_Punctuation","Pi","Letter","L","Letter_Number","Nl","Line_Separator","Zl","Lowercase_Letter","Ll","Mark","M","Combining_Mark","Math_Symbol","Sm","Modifier_Letter","Lm","Modifier_Symbol","Sk","Nonspacing_Mark","Mn","Number","N","Open_Punctuation","Ps","Other","C","Other_Letter","Lo","Other_Number","No","Other_Punctuation","Po","Other_Symbol","So","Paragraph_Separator","Zp","Private_Use","Co","Punctuation","P","punct","Separator","Z","Space_Separator","Zs","Spacing_Mark","Mc","Surrogate","Cs","Symbol","S","Titlecase_Letter","Lt","Unassigned","Cn","Uppercase_Letter","Lu"],Script:["Adlam","Adlm","Ahom","Anatolian_Hieroglyphs","Hluw","Arabic","Arab","Armenian","Armn","Avestan","Avst","Balinese","Bali","Bamum","Bamu","Bassa_Vah","Bass","Batak","Batk","Bengali","Beng","Bhaiksuki","Bhks","Bopomofo","Bopo","Brahmi","Brah","Braille","Brai","Buginese","Bugi","Buhid","Buhd","Canadian_Aboriginal","Cans","Carian","Cari","Caucasian_Albanian","Aghb","Chakma","Cakm","Cham","Cherokee","Cher","Common","Zyyy","Coptic","Copt","Qaac","Cuneiform","Xsux","Cypriot","Cprt","Cyrillic","Cyrl","Deseret","Dsrt","Devanagari","Deva","Duployan","Dupl","Egyptian_Hieroglyphs","Egyp","Elbasan","Elba","Ethiopic","Ethi","Georgian","Geor","Glagolitic","Glag","Gothic","Goth","Grantha","Gran","Greek","Grek","Gujarati","Gujr","Gurmukhi","Guru","Han","Hani","Hangul","Hang","Hanunoo","Hano","Hatran","Hatr","Hebrew","Hebr","Hiragana","Hira","Imperial_Aramaic","Armi","Inherited","Zinh","Qaai","Inscriptional_Pahlavi","Phli","Inscriptional_Parthian","Prti","Javanese","Java","Kaithi","Kthi","Kannada","Knda","Katakana","Kana","Kayah_Li","Kali","Kharoshthi","Khar","Khmer","Khmr","Khojki","Khoj","Khudawadi","Sind","Lao","Laoo","Latin","Latn","Lepcha","Lepc","Limbu","Limb","Linear_A","Lina","Linear_B","Linb","Lisu","Lycian","Lyci","Lydian","Lydi","Mahajani","Mahj","Malayalam","Mlym","Mandaic","Mand","Manichaean","Mani","Marchen","Marc","Masaram_Gondi","Gonm","Meetei_Mayek","Mtei","Mende_Kikakui","Mend","Meroitic_Cursive","Merc","Meroitic_Hieroglyphs","Mero","Miao","Plrd","Modi","Mongolian","Mong","Mro","Mroo","Multani","Mult","Myanmar","Mymr","Nabataean","Nbat","New_Tai_Lue","Talu","Newa","Nko","Nkoo","Nushu","Nshu","Ogham","Ogam","Ol_Chiki","Olck","Old_Hungarian","Hung","Old_Italic","Ital","Old_North_Arabian","Narb","Old_Permic","Perm","Old_Persian","Xpeo","Old_South_Arabian","Sarb","Old_Turkic","Orkh","Oriya","Orya","Osage","Osge","Osmanya","Osma","Pahawh_Hmong","Hmng","Palmyrene","Palm","Pau_Cin_Hau","Pauc","Phags_Pa","Phag","Phoenician","Phnx","Psalter_Pahlavi","Phlp","Rejang","Rjng","Runic","Runr","Samaritan","Samr","Saurashtra","Saur","Sharada","Shrd","Shavian","Shaw","Siddham","Sidd","SignWriting","Sgnw","Sinhala","Sinh","Sora_Sompeng","Sora","Soyombo","Soyo","Sundanese","Sund","Syloti_Nagri","Sylo","Syriac","Syrc","Tagalog","Tglg","Tagbanwa","Tagb","Tai_Le","Tale","Tai_Tham","Lana","Tai_Viet","Tavt","Takri","Takr","Tamil","Taml","Tangut","Tang","Telugu","Telu","Thaana","Thaa","Thai","Tibetan","Tibt","Tifinagh","Tfng","Tirhuta","Tirh","Ugaritic","Ugar","Vai","Vaii","Warang_Citi","Wara","Yi","Yiii","Zanabazar_Square","Zanb"]};Array.prototype.push.apply(as.$LONE,as.General_Category),as.gc=as.General_Category,as.sc=as.Script_Extensions=as.scx=as.Script;var hs=ji.prototype,us=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function cs(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function ps(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function ls(t){return t>=65&&t<=90||t>=97&&t<=122}function fs(t){return ls(t)||95===t}function ds(t){return fs(t)||ms(t)}function ms(t){return t>=48&&t<=57}function gs(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function ys(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function vs(t){return t>=48&&t<=55}us.prototype.reset=function(t,e,n){var r=-1!==n.indexOf("u");this.start=0|t,this.source=e+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},us.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},us.prototype.at=function(t){var e=this.source,n=e.length;if(t>=n)return-1;var r=e.charCodeAt(t);return!this.switchU||r<=55295||r>=57344||t+1>=n?r:(r<<10)+e.charCodeAt(t+1)-56613888},us.prototype.nextIndex=function(t){var e=this.source,n=e.length;if(t>=n)return n;var r=e.charCodeAt(t);return!this.switchU||r<=55295||r>=57344||t+1>=n?t+1:t+2},us.prototype.current=function(){return this.at(this.pos)},us.prototype.lookahead=function(){return this.at(this.nextIndex(this.pos))},us.prototype.advance=function(){this.pos=this.nextIndex(this.pos)},us.prototype.eat=function(t){return this.current()===t&&(this.advance(),!0)},hs.validateRegExpFlags=function(t){for(var e=t.validFlags,n=t.flags,r=0;r<n.length;r++){var i=n.charAt(r);-1===e.indexOf(i)&&this.raise(t.start,"Invalid regular expression flag"),n.indexOf(i,r+1)>-1&&this.raise(t.start,"Duplicate regular expression flag")}},hs.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},hs.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,n=t.backReferenceNames;e<n.length;e+=1){var r=n[e];-1===t.groupNames.indexOf(r)&&t.raise("Invalid named capture referenced")}},hs.regexp_disjunction=function(t){for(this.regexp_alternative(t);t.eat(124);)this.regexp_alternative(t);this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},hs.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},hs.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!(t.switchU?!this.regexp_eatAtom(t):!this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},hs.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!n,!0}return t.pos=e,!1},hs.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},hs.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},hs.regexp_eatBracedQuantifier=function(t,e){var n=t.pos;if(t.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue),t.eat(125)))return-1!==i&&i<r&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=n}return!1},hs.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},hs.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},hs.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)&&t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}t.pos=e}return!1},hs.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},hs.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},hs.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},hs.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!ps(e)&&(t.lastIntValue=e,t.advance(),!0)},hs.regexp_eatPatternCharacters=function(t){for(var e=t.pos,n=0;-1!==(n=t.current())&&!ps(n);)t.advance();return t.pos!==e},hs.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e)&&(t.advance(),!0)},hs.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t))return-1!==t.groupNames.indexOf(t.lastStringValue)&&t.raise("Duplicate capture group name"),void t.groupNames.push(t.lastStringValue);t.raise("Invalid group")}},hs.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},hs.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=cs(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=cs(t.lastIntValue);return!0}return!1},hs.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,n=t.current();return t.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t)&&(n=t.lastIntValue),function(t){return mi(t,!0)||36===t||95===t}(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},hs.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,n=t.current();return t.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t)&&(n=t.lastIntValue),function(t){return gi(t,!0)||36===t||95===t||8204===t||8205===t}(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},hs.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},hs.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var n=t.lastIntValue;if(t.switchU)return n>t.maxBackReference&&(t.maxBackReference=n),!0;if(n<=t.numCapturingParens)return!0;t.pos=e}return!1},hs.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},hs.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},hs.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},hs.regexp_eatZero=function(t){return 48===t.current()&&!ms(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},hs.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},hs.regexp_eatControlLetter=function(t){var e=t.current();return!!ls(e)&&(t.lastIntValue=e%32,t.advance(),!0)},hs.regexp_eatRegExpUnicodeEscapeSequence=function(t){var e,n=t.pos;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var r=t.lastIntValue;if(t.switchU&&r>=55296&&r<=56319){var i=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var s=t.lastIntValue;if(s>=56320&&s<=57343)return t.lastIntValue=1024*(r-55296)+(s-56320)+65536,!0}t.pos=i,t.lastIntValue=r}return!0}if(t.switchU&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&((e=t.lastIntValue)>=0&&e<=1114111))return!0;t.switchU&&t.raise("Invalid unicode escape"),t.pos=n}return!1},hs.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e)&&(t.lastIntValue=e,t.advance(),!0)},hs.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1},hs.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(t){return 100===t||68===t||115===t||83===t||119===t||87===t}(e))return t.lastIntValue=-1,t.advance(),!0;if(t.switchU&&this.options.ecmaVersion>=9&&(80===e||112===e)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125))return!0;t.raise("Invalid property name")}return!1},hs.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var n=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,n,r),!0}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var i=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,i),!0}return!1},hs.regexp_validateUnicodePropertyNameAndValue=function(t,e,n){as.hasOwnProperty(e)&&-1!==as[e].indexOf(n)||t.raise("Invalid property name")},hs.regexp_validateUnicodePropertyNameOrValue=function(t,e){-1===as.$LONE.indexOf(e)&&t.raise("Invalid property name")},hs.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";fs(e=t.current());)t.lastStringValue+=cs(e),t.advance();return""!==t.lastStringValue},hs.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";ds(e=t.current());)t.lastStringValue+=cs(e),t.advance();return""!==t.lastStringValue},hs.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},hs.regexp_eatCharacterClass=function(t){if(t.eat(91)){if(t.eat(94),this.regexp_classRanges(t),t.eat(93))return!0;t.raise("Unterminated character class")}return!1},hs.regexp_classRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var n=t.lastIntValue;!t.switchU||-1!==e&&-1!==n||t.raise("Invalid character class"),-1!==e&&-1!==n&&e>n&&t.raise("Range out of order in character class")}}},hs.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var n=t.current();(99===n||vs(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var r=t.current();return 93!==r&&(t.lastIntValue=r,t.advance(),!0)},hs.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},hs.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!ms(e)&&95!==e)&&(t.lastIntValue=e%32,t.advance(),!0)},hs.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},hs.regexp_eatDecimalDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;ms(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==e},hs.regexp_eatHexDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;gs(n=t.current());)t.lastIntValue=16*t.lastIntValue+ys(n),t.advance();return t.pos!==e},hs.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var n=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*n+t.lastIntValue:t.lastIntValue=8*e+n}else t.lastIntValue=e;return!0}return!1},hs.regexp_eatOctalDigit=function(t){var e=t.current();return vs(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},hs.regexp_eatFixedHexDigits=function(t,e){var n=t.pos;t.lastIntValue=0;for(var r=0;r<e;++r){var i=t.current();if(!gs(i))return t.pos=n,!1;t.lastIntValue=16*t.lastIntValue+ys(i),t.advance()}return!0};var xs=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Ti(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},_s=ji.prototype;function Es(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}_s.next=function(){this.options.onToken&&this.options.onToken(new xs(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},_s.getToken=function(){return this.next(),new xs(this)},"undefined"!=typeof Symbol&&(_s[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===Ai.eof,value:e}}}}),_s.curContext=function(){return this.context[this.context.length-1]},_s.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(Ai.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},_s.readToken=function(t){return mi(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},_s.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);return t<=55295||t>=57344?t:(t<<10)+this.input.charCodeAt(this.pos+1)-56613888},_s.skipBlockComment=function(){var t,e=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(wi.lastIndex=n;(t=wi.exec(this.input))&&t.index<this.pos;)++this.curLine,this.lineStart=t.index+t[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,r),n,this.pos,e,this.curPosition())},_s.skipLineComment=function(t){for(var e=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!Pi(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,n,this.curPosition())},_s.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&t<14||t>=5760&&Ii.test(String.fromCharCode(t))))break t;++this.pos}}},_s.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=t,this.value=e,this.updateContext(n)},_s.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(Ai.ellipsis)):(++this.pos,this.finishToken(Ai.dot))},_s.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(Ai.assign,2):this.finishOp(Ai.slash,1)},_s.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),n=1,r=42===t?Ai.star:Ai.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++n,r=Ai.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(Ai.assign,n+1):this.finishOp(r,n)},_s.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.finishOp(124===t?Ai.logicalOR:Ai.logicalAND,2):61===e?this.finishOp(Ai.assign,2):this.finishOp(124===t?Ai.bitwiseOR:Ai.bitwiseAND,1)},_s.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Ai.assign,2):this.finishOp(Ai.bitwiseXOR,1)},_s.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Si.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Ai.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(Ai.assign,2):this.finishOp(Ai.plusMin,1)},_s.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),n=1;return e===t?(n=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(Ai.assign,n+1):this.finishOp(Ai.bitShift,n)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(n=2),this.finishOp(Ai.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},_s.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(Ai.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Ai.arrow)):this.finishOp(61===t?Ai.eq:Ai.prefix,1)},_s.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Ai.parenL);case 41:return++this.pos,this.finishToken(Ai.parenR);case 59:return++this.pos,this.finishToken(Ai.semi);case 44:return++this.pos,this.finishToken(Ai.comma);case 91:return++this.pos,this.finishToken(Ai.bracketL);case 93:return++this.pos,this.finishToken(Ai.bracketR);case 123:return++this.pos,this.finishToken(Ai.braceL);case 125:return++this.pos,this.finishToken(Ai.braceR);case 58:return++this.pos,this.finishToken(Ai.colon);case 63:return++this.pos,this.finishToken(Ai.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Ai.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 126:return this.finishOp(Ai.prefix,1)}this.raise(this.pos,"Unexpected character '"+Es(t)+"'")},_s.finishOp=function(t,e){var n=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,n)},_s.readRegexp=function(){for(var t,e,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Si.test(r)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if("["===r)e=!0;else if("]"===r&&e)e=!1;else if("/"===r&&!e)break;t="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var a=this.regexpState||(this.regexpState=new us(this));a.reset(n,i,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var h=null;try{h=new RegExp(i,o)}catch(t){}return this.finishToken(Ai.regexp,{pattern:i,flags:o,value:h})},_s.readInt=function(t,e){for(var n=this.pos,r=0,i=0,s=null==e?1/0:e;i<s;++i){var o=this.input.charCodeAt(this.pos),a=void 0;if((a=o>=97?o-97+10:o>=65?o-65+10:o>=48&&o<=57?o-48:1/0)>=t)break;++this.pos,r=r*t+a}return this.pos===n||null!=e&&this.pos-n!==e?null:r},_s.readRadixNumber=function(t){this.pos+=2;var e=this.readInt(t);return null==e&&this.raise(this.start+2,"Expected number in radix "+t),mi(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Ai.num,e)},_s.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10)||this.raise(e,"Invalid number");var n=this.pos-e>=2&&48===this.input.charCodeAt(e);n&&this.strict&&this.raise(e,"Invalid number"),n&&/[89]/.test(this.input.slice(e,this.pos))&&(n=!1);var r=this.input.charCodeAt(this.pos);46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),mi(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i=this.input.slice(e,this.pos),s=n?parseInt(i,8):parseFloat(i);return this.finishToken(Ai.num,s)},_s.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},_s.readString=function(t){for(var e="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===t)break;92===r?(e+=this.input.slice(n,this.pos),e+=this.readEscapedChar(!1),n=this.pos):(Pi(r,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(n,this.pos++),this.finishToken(Ai.string,e)};var bs={};_s.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==bs)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},_s.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw bs;this.raise(t,e)},_s.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==Ai.template&&this.type!==Ai.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(Ai.template,t)):36===n?(this.pos+=2,this.finishToken(Ai.dollarBraceL)):(++this.pos,this.finishToken(Ai.backQuote));if(92===n)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(Pi(n)){switch(t+=this.input.slice(e,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},_s.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(Ai.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},_s.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Es(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:if(e>=48&&e<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,e=this.input.charCodeAt(this.pos),"0"===n&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-n.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return String.fromCharCode(e)}},_s.readHexChar=function(t){var e=this.pos,n=this.readInt(16,t);return null===n&&this.invalidStringToken(e,"Bad character escape sequence"),n},_s.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(gi(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,t+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(e?mi:gi)(o,r)||this.invalidStringToken(s,"Invalid Unicode escape"),t+=Es(o),n=this.pos}e=!1}return t+this.input.slice(n,this.pos)},_s.readWord=function(){var t=this.readWord1(),e=Ai.name;return this.keywords.test(t)&&(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+t),e=Ei[t]),this.finishToken(e,t)};var As,Ss,ws;var Ps,Is=Object.freeze({version:"5.7.3",parse:function(t,e){return new ji(e,t).parse()},parseExpressionAt:function(t,e,n){var r=new ji(n,t,e);return r.nextToken(),r.parseExpression()},tokenizer:function(t,e){return new ji(e,t)},get parse_dammit(){return As},get LooseParser(){return Ss},get pluginsLoose(){return ws},addLooseExports:function(t,e,n){As=t,Ss=e,ws=n},Parser:ji,plugins:Bi,defaultOptions:Vi,Position:Li,SourceLocation:Ti,getLineInfo:Di,Node:es,TokenType:yi,tokTypes:Ai,keywordTypes:Ei,TokContext:is,tokContexts:ss,isIdentifierChar:gi,isIdentifierStart:mi,Token:xs,isNewLine:Pi,lineBreak:Si,lineBreakG:wi,nonASCIIwhitespace:Ii}),ks=o(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.tokTypes;return e._import.startsExpr=!0,t.plugins.dynamicImport=function(t){t.extend("parseStatement",function(t){return function(){var n=this.startNode();if(this.type===e._import&&function(){return this.input[this.pos]}.call(this)===e.parenL.label){var r=this.parseExpression();return this.parseExpressionStatement(n,r)}for(var i=arguments.length,s=Array(i),o=0;o<i;o++)s[o]=arguments[o];return t.apply(this,s)}}),t.extend("parseExprAtom",function(t){return function(r){return this.type===e._import?function(){var t=this.startNode();return this.next(),this.type!==e.parenL&&this.unexpected(),this.finishNode(t,n)}.call(this):t.call(this,r)}})},t};var n=e.DynamicImportKey="Import"}),Cs=(Ps=ks)&&Ps.__esModule&&Object.prototype.hasOwnProperty.call(Ps,"default")?Ps.default:Ps;ks.DynamicImportKey;const Ns=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;var Rs=function(t){const e=t.tokTypes,n=t=>{Ns.lastIndex=t.pos;let e=Ns.exec(t.input),n=t.pos+e[0].length;return"."===t.input.slice(n,n+1)};return t.plugins.importMeta=function(t){t.extend("parseExprAtom",function(t){return function(r){if(this.type!==e._import||!n(this))return t.call(this,r);this.options.allowImportExportEverywhere||this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'");let i=this.startNode();return i.meta=this.parseIdent(!0),this.expect(e.dot),i.property=this.parseIdent(!0),"meta"!==i.property.name&&this.raiseRecoverable(i.property.start,"The only valid meta property for import is import.meta"),this.finishNode(i,"MetaProperty")}}),t.extend("parseStatement",function(t){return function(r,i,s){if(this.type!==e._import)return t.call(this,r,i,s);if(!n(this))return t.call(this,r,i,s);let o=this.startNode(),a=this.parseExpression();return this.parseExpressionStatement(o,a)}})},t},Os=function(t){function e(){return t.call(this,"undefined")||this}return n(e,t),e.prototype.getLiteralValueAtPath=function(){},e}(Dt),Ms=function(t){function e(){var e=t.call(this)||this;return e.variables.undefined=new Os,e}return n(e,t),e.prototype.findVariable=function(t){return this.variables[t]?this.variables[t]:this.variables[t]=new Gt(t)},e.prototype.deshadow=function(e,n){void 0===n&&(n=this.children),t.prototype.deshadow.call(this,e,n)},e}(ze),Ls=function(){return{tracked:!1,unknownPath:null,paths:Object.create(null)}},Ts=function(){function t(){this.entityPaths=new Map}return t.prototype.track=function(t,e){var n=this.entityPaths.get(t);n||(n=Ls(),this.entityPaths.set(t,n));for(var r,i=0;i<e.length;){var s=e[i];"string"==typeof s?(r=n.paths[s])||(r=Ls(),n.paths[s]=r):(r=n.unknownPath)||(r=Ls(),n.unknownPath=r),n=r,i++}var o=n.tracked;return n.tracked=!0,o},t}();function Ds(t,e,n){return{emitAsset:function(r,i){var s;"string"==typeof r&&qn(r)||xe({code:"INVALID_ASSET_NAME",message:"Plugin error creating asset, name is not a plain (non relative or absolute URL) string name."});do{var o=R();s?o.update(s):o.update(r),s=o.digest("hex").substr(0,8)}while(t.has(s));var a={name:r,source:i,fileName:void 0};return e&&void 0!==i&&Vs(a,e,n),t.set(s,a),s},setAssetSource:function(r,i){var s=t.get(r);s||xe({code:"ASSET_NOT_FOUND",message:"Plugin error - Unable to set asset source for unknown asset "+r+"."}),void 0!==s.source&&xe({code:"ASSET_SOURCE_ALREADY_SET",message:"Plugin error - Unable to set asset source for "+s.name+", source already set."}),"string"==typeof i||i||xe({code:"ASSET_SOURCE_MISSING",message:"Plugin error creating asset "+name+", setAssetSource call without a source."}),s.source=i,e&&Vs(s,e,n)},getAssetFileName:function(e){var n=t.get(e);return n||xe({code:"ASSET_NOT_FOUND",message:"Plugin error - Unable to get asset filename for unknown asset "+e+"."}),void 0===n.fileName&&xe({code:"ASSET_NOT_FINALISED",message:"Plugin error - Unable to get asset file name for asset "+e+". Ensure that the source is set and that generate is called first."}),n.fileName}}}function Vs(t,e,n){var r=function(t,e,n){return void 0===t.source&&xe({code:"ASSET_SOURCE_NOT_FOUND",message:"Plugin error creating asset "+t.name+" - no asset source set."}),t.fileName?t.fileName:ni(ei(n,"assetFileNames",function(e){switch(e){case"hash":var n=R();return n.update(e),n.update(":"),n.update(t.source),n.digest("hex").substr(0,8);case"name":return t.name.substr(0,t.name.length-oe(t.name).length);case"extname":return oe(t.name);case"ext":return oe(t.name).substr(1)}}),e)}(t,e,n);t.fileName=r,e[r]=t.source}var zs=97,Bs=48;function Ws(t){return t<10?String.fromCharCode(Bs+t):String.fromCharCode(zs+(t-10))}function js(t){for(var e="",n=0;n<t.length;n++){var r=t[n];e+=Ws(r>>4),e+=Ws(15&r)}return e}function Us(t){for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=512*Math.random();return e}function Fs(t,e){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var qs="0.66.6",Gs=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];throw new Error("Cannot use fs."+t+" inside browser")}},Hs=Gs("lstatSync"),Ks=Gs("readdirSync"),Ys=Gs("readFileSync"),Xs=Gs("realpathSync"),$s=Gs("writeFile");function Js(t){return{name:"Rollup Core",resolveId:function(t){return function(e,n){return"undefined"==typeof process&&xe({code:"MISSING_PROCESS",message:"It looks like you're using Rollup in a non-Node.js environment. This means you must supply a plugin with custom resolveId and load functions",url:"https://rollupjs.org/guide/en#a-simple-example"}),void 0===n||ee(e)||"."===e[0]?(r=he(n?se(n):he(),e),i=t.preserveSymlinks,(s=Qs(r,i))||((s=Qs(r+".mjs",i))?s:s=Qs(r+".js",i))):null;var r,i,s}}(t),load:function(t){return Ys(t,"utf-8")},resolveDynamicImport:function(t,e){if("string"==typeof t)return this.resolveId(t,e)}}}function Qs(t,e){try{var n=Hs(t);if(!e&&n.isSymbolicLink())return Qs(Xs(t),e);if(e&&n.isSymbolicLink()||n.isFile()){var r=ie(t);if(-1!==Ks(se(t)).indexOf(r))return t}}catch(t){}}function Zs(t,e,n,r){var i=(e.plugins||[]).concat([Js(e)]),s=Ds(t.assetsById),o=s.emitAsset,a=s.getAssetFileName,h=s.setAssetSource,u=[],c=!1,p=i.map(function(e){var i,s,p=!0;if("string"!=typeof e.cacheKey&&("string"!=typeof e.name?p=!1:(-1!==u.indexOf(e.name)&&(p=!1),u.push(e.name))),!c&&(e.load||e.transform||e.transformBundle||e.transformChunk)&&(c=!0),n)if(p){var l=e.cacheKey||e.name;s=n[l]||(n[l]=Object.create(null)),i={has:function(t){var e=s[t];return!!e&&(e[0]=0,!0)},get:function(t){var e=s[t];if(e)return e[0]=0,e[1]},set:function(t,e){s[t]=[0,e]},delete:function(t){return delete s[t]}}}else i=no(e.name);else i=to;return{addWatchFile:function(e){t.finished&&this.error("addWatchFile can only be called during the build."),t.watchFiles[e]=!0},cache:i,emitAsset:o,error:function(t){"string"==typeof t&&(t={message:t}),t.code&&(t.pluginCode=t.code),t.code="PLUGIN_ERROR",t.plugin=e.name||"(anonymous plugin)",xe(t)},isExternal:function(e,n,r){return void 0===r&&(r=!1),t.isExternal(e,n,r)},getAssetFileName:a,meta:{rollupVersion:qs},parse:t.contextParse,resolveId:function(t,e){return d.hookFirst("resolveId",[t,e])},setAssetSource:h,warn:function(n){"string"==typeof n&&(n={message:n}),n.code&&(n.pluginCode=n.code),n.code="PLUGIN_WARNING",n.plugin=e.name||"(anonymous plugin)",t.warn(n)},watcher:r}});function l(t,e,n,r,s){void 0===r&&(r=!1);var o=i[n],a=p[n],h=o[t];if(h){if(s&&(!(a=s(a,o))||a===p[n]))throw new Error("Internal Rollup error: hookContext must return a new context object.");try{if("function"!=typeof h){if(r)return h;xe({code:"INVALID_PLUGIN_HOOK",message:"Error running plugin hook "+t+" for "+(o.name||"Plugin at pos "+(n+1))+", expected a function hook."})}return h.apply(a,e)}catch(e){"string"==typeof e&&(e={message:e}),"PLUGIN_ERROR"!==e.code&&(e.code&&(e.pluginCode=e.code),e.code="PLUGIN_ERROR"),e.plugin=o.name||"Plugin at pos "+n,e.hook=t,xe(e)}}}function f(t,e,n,r,s){void 0===r&&(r=!1);var o=i[n],a=p[n],h=o[t];if(h){if(s&&(!(a=s(a,o))||a===p[n]))throw new Error("Internal Rollup error: hookContext must return a new context object.");return Promise.resolve().then(function(){if("function"!=typeof h){if(r)return h;xe({code:"INVALID_PLUGIN_HOOK",message:"Error running plugin hook "+t+" for "+(o.name||"Plugin at pos "+(n+1))+", expected a function hook."})}return h.apply(a,e)}).catch(function(e){"string"==typeof e&&(e={message:e}),"PLUGIN_ERROR"!==e.code&&(e.code&&(e.pluginCode=e.code),e.code="PLUGIN_ERROR"),e.plugin=o.name||"Plugin at pos "+n,e.hook=t,xe(e)})}}var d={emitAsset:o,getAssetFileName:a,hasLoadersOrTransforms:c,hookSeq:function(t,e,n){for(var r=Promise.resolve(),s=function(i){r=r.then(function(){return f(t,e,i,!1,n)})},o=0;o<i.length;o++)s(o);return r},hookSeqSync:function(t,e,n){for(var r=0;r<i.length;r++)l(t,e,r,!1,n)},hookFirst:function(t,e,n){for(var r=Promise.resolve(),s=function(i){r=r.then(function(r){return null!=r?r:f(t,e,i,!1,n)})},o=0;o<i.length;o++)s(o);return r},hookParallel:function(t,e,n){for(var r=[],s=0;s<i.length;s++){var o=f(t,e,s,!1,n);o&&r.push(o)}return Promise.all(r).then(function(){})},hookReduceArg0:function(t,e,n,r){for(var s=e[0],o=e.slice(1),a=Promise.resolve(s),h=function(e){a=a.then(function(s){var a=f(t,[s].concat(o),e,!1,r);return a?a.then(function(t){return n(s,t,i[e])}):s})},u=0;u<i.length;u++)h(u);return a},hookReduceValue:function(t,e,n,r,s){for(var o=Promise.resolve(e),a=function(e){o=o.then(function(o){var a=f(t,n,e,!0,s);return a?a.then(function(t){return r(o,t,i[e])}):o})},h=0;h<i.length;h++)a(h);return o}};return d}var to={has:function(){return!1},get:function(){},set:function(){},delete:function(){return!1}};function eo(t){xe(t?{code:"DUPLICATE_PLUGIN_NAME",message:"The plugin name "+t+" is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user)."}:{code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."})}var no=function(t){return{has:function(){return eo(t),!1},get:function(){eo(t)},set:function(){eo(t)},delete:function(){return eo(t),!1}}};var ro=function(){function t(t,e){var n=this;if(this.curChunkIndex=0,this.externalModules=[],this.moduleById=new Map,this.assetsById=new Map,this.modules=[],this.watchFiles=Object.create(null),this.finished=!1,this.curChunkIndex=0,this.deoptimizationTracker=new Ts,this.cachedModules=new Map,t.cache&&t.cache.modules)for(var i=0,s=t.cache.modules;i<s.length;i++){var o=s[i];this.cachedModules.set(o.id,o)}if(!1!==t.cache)for(var a in this.pluginCache=t.cache&&t.cache.plugins||Object.create(null),this.pluginCache)for(var h=this.pluginCache[a],u=0,c=Object.keys(h);u<c.length;u++){h[E=c[u]][0]++}if(this.cacheExpiry=t.experimentalCacheExpiry,!t.input)throw new Error("You must supply options.input to rollup");if(this.treeshake=!1!==t.treeshake,this.treeshake)if(this.treeshakingOptions={propertyReadSideEffects:!t.treeshake||!1!==t.treeshake.propertyReadSideEffects,pureExternalModules:!!t.treeshake&&t.treeshake.pureExternalModules},!0===this.treeshakingOptions.pureExternalModules)this.isPureExternalModule=function(){return!0};else if("function"==typeof this.treeshakingOptions.pureExternalModules)this.isPureExternalModule=this.treeshakingOptions.pureExternalModules;else if(Array.isArray(this.treeshakingOptions.pureExternalModules)){var p=new Set(this.treeshakingOptions.pureExternalModules);this.isPureExternalModule=function(t){return p.has(t)}}else this.isPureExternalModule=function(){return!1};else this.isPureExternalModule=function(){return!1};if(this.contextParse=function(t,e){return void 0===e&&(e={}),n.acornParse(t,r({},Xr,e,n.acornOptions))},this.pluginDriver=Zs(this,t,this.pluginCache,e),e){var l=function(t){return n.pluginDriver.hookSeqSync("watchChange",[t])};e.on("change",l),e.once("restart",function(){e.removeListener("change",l)})}if("function"==typeof t.external){var f=t.external;this.isExternal=function(t,e,n){return!t.startsWith("\0")&&f(t,e,n)}}else{var d=t.external,m=new Set(Array.isArray(d)?d:d?[d]:[]);this.isExternal=function(t){return m.has(t)}}this.shimMissingExports=t.shimMissingExports,this.scope=new Ms;for(var g=0,y=["module","exports","_interopDefault"];g<y.length;g++){a=y[g];this.scope.findVariable(a)}this.exportShimVariable=this.scope.findVariable("_missingExportShim"),this.context=String(t.context);var v,x=t.moduleContext;if("function"==typeof x)this.getModuleContext=function(t){return x(t)||n.context};else if("object"==typeof x){var _=new Map;for(var E in x)_.set(he(E),x[E]);this.getModuleContext=function(t){return _.get(t)||n.context}}else this.getModuleContext=function(){return n.context};this.onwarn=t.onwarn||(v=Object.create(null),function(t){var e=t.toString();e in v||(console.error(e),v[e]=!0)}),this.varOrConst=t.preferConst?"const":"var",this.acornOptions=t.acorn||{};var b=[];b.push(Cs),b.push(Rs),this.acornOptions.plugins=this.acornOptions.plugins||{},this.acornOptions.plugins.dynamicImport=!0,this.acornOptions.plugins.importMeta=!0,t.experimentalTopLevelAwait&&(this.acornOptions.allowAwaitOutsideFunction=!0);var A=t.acornInjectPlugins;b.push.apply(b,Array.isArray(A)?A:A?[A]:[]),this.acornParse=b.reduce(function(t,e){return e(t)},Is).parse}return t.prototype.getCache=function(){for(var t in this.pluginCache){for(var e=this.pluginCache[t],n=!0,r=0,i=Object.keys(e);r<i.length;r++){var s=i[r];e[s][0]>=this.cacheExpiry?delete e[s]:n=!1}n&&delete this.pluginCache[t]}return{modules:this.modules.map(function(t){return t.toJSON()}),plugins:this.pluginCache}},t.prototype.finaliseAssets=function(t){var e=Object.create(null);return this.assetsById.forEach(function(n){void 0!==n.source&&Vs(n,e,t)}),e},t.prototype.loadModule=function(t){var e=this;return this.pluginDriver.hookFirst("resolveId",[t,void 0]).then(function(n){return!1===n&&xe({code:"UNRESOLVED_ENTRY",message:"Entry module cannot be external"}),null==n&&xe({code:"UNRESOLVED_ENTRY",message:"Could not resolve entry ("+t+")"}),e.fetchModule(n,void 0)})},t.prototype.link=function(){for(var t=0,e=this.modules;t<e.length;t++){e[t].linkDependencies()}for(var n=0,r=this.modules;n<r.length;n++){r[n].bindReferences()}},t.prototype.includeMarked=function(t){if(this.treeshake){var e=void 0,n=1;do{qr("treeshaking pass "+n,3),e=!1;for(var r=0,i=t;r<i.length;r++){i[r].include()&&(e=!0)}Gr("treeshaking pass "+n++,3)}while(e)}else for(var s=0,o=t;s<o.length;s++){o[s].includeAllInBundle()}},t.prototype.loadEntryModules=function(t,e){var n,r,i=this,s=!1;"string"==typeof t&&(t=[t]),Array.isArray(t)?(s=!0,r=t.concat([]),n=t):(r=Object.keys(t),n=r.map(function(e){return t[e]}));var o=n.concat([]);return e&&Object.keys(e).forEach(function(t){e[t].forEach(function(t){-1===o.indexOf(t)&&o.push(t)})}),Promise.all(o.map(function(t){return i.loadModule(t)})).then(function(t){if(s)for(var i=0;i<r.length;i++)r[i]=Un(t[i].id,r[i]);var a,h=t.slice(0,n.length);if(e){a={};for(var u=0,c=Object.keys(e);u<c.length;u++){var p=c[u],l=e[p];a[p]=l.map(function(e){var n=o.indexOf(e);return t[n]})}}return{entryModules:h,entryModuleAliases:r,manualChunkModules:a}})},t.prototype.build=function(t,e,n,r){var i=this;return qr("parse modules",2),this.loadEntryModules(t,e).then(function(t){var e=t.entryModules,s=t.entryModuleAliases,o=t.manualChunkModules;Gr("parse modules",2),qr("analyse dependency graph",2);for(var a=0;a<e.length;a++){var h=e[a],u=e.indexOf(h,a+1);-1!==u&&xe({code:"DUPLICATE_ENTRY_POINTS",message:"Duplicate entry points detected. The input entries "+s[a]+" and "+s[u]+" both point to the same module, "+h.id})}i.link();var c=i.analyseExecution(e,!r&&!n,n,o),p=c.orderedModules,l=c.dynamicImports,f=c.dynamicImportAliases;if(s)for(a=e.length-1;a>=0;a--)e[a].chunkAlias=s[a];if(n){h=e[0];if(e.length>1)throw new Error("Internal Error: can only inline dynamic imports for single-file builds.");for(var d=0,m=l;d<m.length;d++){h!==(g=m[d])&&g.markPublicExports(),g.getOrCreateNamespace().include()}}else for(a=0;a<l.length;a++){var g=l[a];-1===e.indexOf(g)&&(e.push(g),g.chunkAlias||(g.chunkAlias=f[a]))}Gr("analyse dependency graph",2),qr("mark included statements",2);for(var y=0,v=e;y<v.length;y++){(h=v[y]).markPublicExports()}i.includeMarked(p);for(var x=0,_=i.externalModules;x<_.length;x++){_[x].warnUnusedImports()}Gr("mark included statements",2),qr("generate chunks",2);var E=[];if(r)for(var b=0,A=p;b<A.length;b++){k=A[b];var S=new ri(i,[k]);!k.isEntryPoint&&S.isEmpty||(S.entryModule=k),E.push(S)}else{for(var w={},P=0,I=p;P<I.length;P++){var k,C=js((k=I[P]).entryPointsHash),N=w[C];N?N.push(k):w[C]=[k]}for(var R in w){var O=w[R].sort(function(t,e){return t.execIndex>e.execIndex?1:-1}),M=new ri(i,O);E.push(M)}}for(var L=0,T=E;L<T.length;L++){(M=T[L]).link()}for(var D=0,V=E=E.filter(function(t){return!t.isEmpty||t.entryModule||t.isManualChunk});D<V.length;D++){M=V[D];(r||M.entryModule)&&M.populateEntryExports(r)}if(!r)for(var z=0,B=e;z<B.length;z++){if(!(h=B[z]).chunk.isEntryModuleFacade){var W=new ri(i,[]);W.linkFacade(h),E.push(W)}}return Gr("generate chunks",2),i.finished=!0,E})},t.prototype.analyseExecution=function(t,e,n,r){var i,s,o,a,h,u,c=this,p={},l=[],f=[],d=[],m=function(t){e&&(a.chunkAlias?(t.chunkAlias=a.chunkAlias,t.entryPointsHash=h):function(t,e){for(var n=0;n<t.length;n++)t[n]=t[n]^e[n]}(t.entryPointsHash,h));for(var n=0,r=t.dependencies;n<r.length;n++){var i=r[n];i instanceof ue||(i.id in u?p[i.id]||c.warnCycle(i.id,t.id,u):(u[i.id]=t.id,i.isEntryPoint||i.chunkAlias||m(i)))}for(var s=0,o=t.dynamicImportResolutions;s<o.length;s++){var g=o[s];g.resolution instanceof Jr&&(e&&(g.resolution.chunkAlias||Fs(g.resolution.entryPointsHash,a.entryPointsHash))||-1===f.indexOf(g.resolution)&&(f.push(g.resolution),d.push(g.alias)))}p[t.id]||(p[t.id]=!0,t.execIndex=l.length,l.push(t))};if(e&&r)for(var g=0,y=Object.keys(r);g<y.length;g++){var v=y[g];h=Us(10);for(var x=0,_=r[v];x<_.length;x++)(a=_[x]).chunkAlias&&xe({code:"INVALID_CHUNK",message:"Cannot assign "+ae(process.cwd(),a.id)+' to the "'+v+'" chunk as it is already in the "'+a.chunkAlias+'" chunk.\nTry defining "'+v+'" first in the manualChunks definitions of the Rollup configuration.'}),a.chunkAlias=v,(i={})[a.id]=null,u=i,m(a)}for(var E=0,b=t;E<b.length;E++)(a=b[E]).isEntryPoint=!0,h=Us(10),(s={})[a.id]=null,u=s,m(a);for(var A=0,S=f;A<S.length;A++)(a=S[A]).isEntryPoint||(n||(a.isEntryPoint=!0),h=Us(10),(o={})[a.id]=null,u=o,m(a));return{orderedModules:l,dynamicImports:f,dynamicImportAliases:d}},t.prototype.warnCycle=function(t,e,n){for(var r=[Fn(t)],i=e;i!==t&&(r.push(Fn(i)),i=n[i]););r.push(r[0]),r.reverse(),this.warn({code:"CIRCULAR_DEPENDENCY",importer:r[0],message:"Circular dependency: "+r.join(" -> ")})},t.prototype.fetchModule=function(t,e){var n=this,i=this.moduleById.get(t);if(i){if(i.isExternal)throw new Error("Cannot fetch external module "+t);return Promise.resolve(i)}var s=new Jr(this,t);return this.moduleById.set(t,s),this.watchFiles[t]=!0,qr("load modules",3),Promise.resolve(this.pluginDriver.hookFirst("load",[t])).catch(function(n){Gr("load modules",3);var r="Could not load "+t;throw e&&(r+=" (imported by "+e+")"),r+=": "+n.message,new Error(r)}).then(function(e){return Gr("load modules",3),"string"==typeof e?e:e&&"object"==typeof e&&"string"==typeof e.code?e:void xe({code:"BAD_LOADER",message:"Error loading "+Fn(t)+": plugin load hook should return a string, a { code, map } object, or nothing/null"})}).then(function(e){var i="string"==typeof e?{code:e,ast:null}:e,o=n.cachedModules.get(t);if(o&&!o.customTransformCache&&o.originalCode===i.code){if(o.transformAssets)for(var a=0,h=o.transformAssets;a<h.length;a++){var u=h[a];n.pluginDriver.emitAsset(u.name,u.source)}return o}return function(t,e,n){var i=n.id,s=[],o="string"==typeof e.map?JSON.parse(e.map):e.map;o&&"string"==typeof o.mappings&&(o.mappings=T(o.mappings));var a,h,u,c,p=t.pluginDriver.emitAsset,l=e.code,f=e.ast,d=!1,m=e.code;return t.pluginDriver.hookReduceArg0("transform",[m,i],function(e,r,o){if(!d&&u.used&&(d=!0),d){if(r&&Array.isArray(r.dependencies))for(var c=0,p=r.dependencies;c<p.length;c++){var l=p[c],m=he(se(i),l);t.watchFiles[m]||(t.watchFiles[m]=!0)}}else if(h.length&&(n.transformAssets=h),r&&Array.isArray(r.dependencies)){a||(a=[]);for(var g=0,y=r.dependencies;g<y.length;g++)l=y[g],a.push(he(se(i),l))}return null==r?e:("string"==typeof r?r={code:r,ast:void 0,map:void 0}:"string"==typeof r.map&&(r.map=JSON.parse(r.map)),r.map&&"string"==typeof r.map.mappings&&(r.map.mappings=T(r.map.mappings)),null!==r.map&&s.push(r.map||{missing:!0,plugin:o.name}),f=r.ast,r.code)},function(e,n){var s,o,a,l;return n.cacheKey?d=!0:(o=e.cache,(a={used:!1,cache:void 0}).cache={has:function(t){return a.used=!0,o.has(t)},get:function(t){return a.used=!0,o.get(t)},set:function(t,e){return a.used=!0,o.set(t,e)},delete:function(t){return a.used=!0,o.delete(t)}},u=a),s=function(t,e){var n=[];return{assets:n,emitAsset:function(r,i){var s=e(r,i),o=t.get(s);return n.push({name:o.name,source:o.source,fileName:void 0}),s}}}(t.assetsById,p),h=s.assets,l=s.emitAsset,r({},e,{cache:u?u.cache:e.cache,warn:function(e,r){"string"==typeof e&&(e={message:e}),r&&_e(e,r,m,i),e.code&&(e.pluginCode=e.code),e.id=i,e.code="PLUGIN_WARNING",e.plugin=n.name||"(anonymous plugin)",e.hook="transform",t.warn(e)},error:function(t,e){"string"==typeof t&&(t={message:t}),e&&_e(t,e,m,i),t.code&&(t.pluginCode=t.code),t.id=i,t.code="PLUGIN_ERROR",t.plugin=n.name||"(anonymous plugin)",t.hook="transform",xe(t)},emitAsset:l,setAssetSource:function(t,n){if(e.setAssetSource(t,n),!d&&!c)try{this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitAsset with a source, or call setAssetSource in another hook."})}catch(t){c=t}}})}).catch(function(t){"string"==typeof t&&(t={message:t}),"PLUGIN_ERROR"!==t.code&&(t.code&&(t.pluginCode=t.code),t.code="PLUGIN_ERROR"),t.id=i,xe(t)}).then(function(t){if(!d&&c)throw c;return{code:t,transformDependencies:a,originalCode:l,originalSourcemap:o,ast:f,sourcemapChain:s,customTransformCache:d}})}(n,i,s)}).then(function(e){return s.setSource(e),n.modules.push(s),n.moduleById.set(t,s),n.fetchAllDependencies(s).then(function(){for(var t in s.exports)"default"!==t&&(s.exportsAll[t]=s.id);return s.exportAllSources.forEach(function(t){var e=s.resolvedIds[t],r=n.moduleById.get(e);if(!r.isExternal)for(var i in r.exportsAll)i in s.exportsAll?n.warn({code:"NAMESPACE_CONFLICT",reexporter:s.id,name:i,sources:[s.exportsAll[i],r.exportsAll[i]],message:"Conflicting namespaces: "+Fn(s.id)+" re-exports '"+i+"' from both "+Fn(s.exportsAll[i])+" and "+Fn(r.exportsAll[i])+" (will be ignored)"}):s.exportsAll[i]=r.exportsAll[i]}),s})})},t.prototype.fetchAllDependencies=function(t){var e=this,n=Promise.all(t.getDynamicImportExpressions().map(function(n,r){return Promise.resolve(e.pluginDriver.hookFirst("resolveDynamicImport",[n,t.id])).then(function(i){if(i){var s=Un(i,"string"==typeof n?n:void 0);if("string"!=typeof n)t.dynamicImportResolutions[r]={alias:s,resolution:i};else{if(!e.isExternal(i,t.id,!0))return e.fetchModule(i,t.id).then(function(e){t.dynamicImportResolutions[r]={alias:s,resolution:e}});var o=void 0;e.moduleById.has(i)?o=e.moduleById.get(i):(o=new ue({graph:e,id:i}),e.externalModules.push(o),e.moduleById.set(i,t)),t.dynamicImportResolutions[r]={alias:s,resolution:o},o.exportsNamespace=!0}}else t.dynamicImportResolutions[r]={alias:void 0,resolution:void 0}})})).then(function(){});return n.catch(function(){}),Promise.all(t.sources.map(function(n){return Promise.resolve().then(function(){var r=t.resolvedIds[n];return r||!e.isExternal(n,t.id,!1)&&e.pluginDriver.hookFirst("resolveId",[n,t.id])}).then(function(r){var i=r||(ne(n)?he(t.id,"..",n):n),s=!1===r||e.isExternal(i,t.id,!0);if(r||s||(ne(n)&&xe({code:"UNRESOLVED_IMPORT",message:"Could not resolve '"+n+"' from "+Fn(t.id)}),!1!==r&&e.warn({code:"UNRESOLVED_IMPORT",source:n,importer:Fn(t.id),message:"'"+n+"' is imported by "+Fn(t.id)+", but could not be resolved – treating it as an external dependency",url:"https://rollupjs.org/guide/en#warning-treating-module-as-external-dependency"}),s=!0),!s)return t.resolvedIds[n]=r,e.fetchModule(r,t.id);if(t.resolvedIds[n]=i,!e.moduleById.has(i)){var o=new ue({graph:e,id:i});e.externalModules.push(o),e.moduleById.set(i,o)}var a=e.moduleById.get(i);for(var h in a instanceof ue==!1&&xe({code:"INVALID_EXTERNAL_ID",message:"'"+n+"' is imported as an external by "+Fn(t.id)+", but is already an existing non-external module id."}),t.imports){var u=t.imports[h];if(u.source!==n)return;a.traceExport(u.name)}})})).then(function(){return n})},t.prototype.warn=function(t){t.toString=function(){var e="";return t.plugin&&(e+="("+t.plugin+" plugin) "),t.loc&&(e+=Fn(t.loc.file)+" ("+t.loc.line+":"+t.loc.column+") "),e+=t.message},this.onwarn(t)},t}();function io(t){switch(typeof t){case"function":return t();case"string":return t;default:return""}}var so=function(t,e){return e?t+"\n"+e:t},oo=function(t,e){return e?t+"\n\n"+e:t};function ao(t,e){xe({code:"INVALID_EXPORT_OPTION",message:"'"+t+"' was specified for output.exports, but entry module has following exports: "+e.join(", ")})}function ho(t,e){var n=e.exports,r=e.name,i=e.format,s=t.getExportNames();return"default"===n?1===s.length&&"default"===s[0]||ao("default",s):"none"===n&&s.length&&ao("none",s),n&&"auto"!==n||(0===s.length?n="none":1===s.length&&"default"===s[0]?n="default":(t.isEntryModuleFacade&&"es"!==i&&-1!==s.indexOf("default")&&t.graph.warn({code:"MIXED_EXPORTS",message:"Using named and default exports together. Consumers of your bundle will have to use "+(r||"bundle")+"['default'] to access the default export, which may not be what you want. Use `output.exports: 'named'` to disable this warning",url:"https://rollupjs.org/guide/en#output-exports-exports"}),n="named")),/(?:default|named|none)/.test(n)||xe({code:"INVALID_EXPORT_OPTION",message:"output.exports must be 'default', 'named', 'none', 'auto', or left unspecified (defaults to 'auto')",url:"https://rollupjs.org/guide/en#output-exports-exports"}),n}function uo(t,e){var n=[];return e.input&&function(){!t.input&&t.entry&&function(e,r){n.push({new:r,old:e}),r in t||(t[r]=t[e]);delete t[e]}("entry","input");t.dest&&i("dest","file");t.moduleName&&i("moduleName","name");t.name&&i("name","name");t.extend&&i("extend","extend");t.globals&&i("globals","globals");t.indent&&i("indent","indent");t.noConflict&&i("noConflict","noConflict");t.paths&&i("paths","paths");t.sourcemap&&i("sourcemap","sourcemap");t.sourceMap&&i("sourceMap","sourcemap");t.sourceMapFile&&i("sourceMapFile","sourcemapFile");t.useStrict&&i("useStrict","strict");t.strict&&i("strict","strict");t.format&&i("format","format");t.banner&&i("banner","banner");t.footer&&i("footer","footer");t.intro&&i("intro","intro");t.outro&&i("outro","outro");t.interop&&i("interop","interop");t.freeze&&i("freeze","freeze");t.exports&&i("exports","exports");if(t.targets){n.push({old:"targets",new:"output"}),t.output=t.targets.map(function(e){return r({},e,t.output)}),delete t.targets;var e=!1;t.output.forEach(function(t){t.dest&&(e||(n.push({old:"targets.dest",new:"output.file"}),e=!0),t.file=t.dest,delete t.dest)})}t.pureExternalModules&&(n.push({old:"pureExternalModules",new:"treeshake.pureExternalModules"}),void 0===t.treeshake&&(t.treeshake={}),t.treeshake&&(t.treeshake.pureExternalModules=t.pureExternalModules),delete t.pureExternalModules)}(),e.output&&t.output&&t.output.moduleId&&(t.output.amd={id:t.moduleId},n.push({old:"moduleId",new:"amd"}),delete t.output.moduleId),n;function i(e,r){n.push({new:"output."+r,old:e}),t.output=t.output||{},r in t.output||(t.output[r]=t[e]),delete t[e]}}var co=function(t,e){return function(n,r){return void 0!==e[n]?e[n]:void 0!==t[n]?t[n]:r}},po=function(t){return t&&"object"!=typeof t?{}:t},lo=function(t,e,n){var i=po(e[n]),s=po(t[n]);return void 0!==i?i&&s?r({},s,i):i:s},fo=function(t){"string"==typeof t?console.warn(t):console.warn(t.message)},mo=function(t,e,n){return void 0===n&&(n=fo),e.silent?function(){}:t.onwarn?function(e){return t.onwarn(e,n)}:n},go=function(t,e){var n=t.external;return"function"==typeof n?function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return n.apply(void 0,[t].concat(r))||-1!==e.external.indexOf(t)}:(n||[]).concat(e.external)},yo={c:"config",e:"external",f:"format",g:"globals",h:"help",i:"input",m:"sourcemap",n:"name",o:"file",v:"version",w:"watch"};function vo(t){var e=t.config,n=void 0===e?{}:e,i=t.command,s=void 0===i?{}:i,o=t.deprecateConfig,a=t.defaultOnWarnHandler,h=function(t,e,n){void 0===e&&(e={});void 0===n&&(n={input:!0,output:!0});var r=[];e.id&&(r.push({old:"-u/--id",new:"--amd.id"}),(e.amd||(e.amd={})).id=e.id);"string"==typeof e.output&&(r.push({old:"--output",new:"--file"}),e.output={file:e.output});e.d&&(r.push({old:"-d",new:"--indent"}),e.indent=e.d);return r.push.apply(r,uo(t,n)),r}(n,s,o),u=function(t){var e=r({},t);e.external=(t.external||"").split(","),t.globals&&(e.globals=Object.create(null),t.globals.split(",").forEach(function(t){var n=t.split(":");e.globals[n[0]]=n[1],-1===e.external.indexOf(n[0])&&e.external.push(n[0])}));return e}(s),c=function(t,e,n){void 0===e&&(e={});var r=co(t,e),i={acorn:t.acorn,acornInjectPlugins:t.acornInjectPlugins,cache:r("cache"),experimentalCacheExpiry:r("experimentalCacheExpiry",10),context:t.context,experimentalCodeSplitting:r("experimentalCodeSplitting"),experimentalPreserveModules:r("experimentalPreserveModules"),experimentalTopLevelAwait:r("experimentalTopLevelAwait"),external:go(t,e),inlineDynamicImports:r("inlineDynamicImports",!1),input:r("input"),manualChunks:r("manualChunks"),chunkGroupingSize:r("chunkGroupingSize",5e3),optimizeChunks:r("optimizeChunks"),moduleContext:t.moduleContext,onwarn:mo(t,e,n),perf:r("perf",!1),plugins:t.plugins,preferConst:r("preferConst"),preserveSymlinks:r("preserveSymlinks"),treeshake:lo(t,e,"treeshake"),shimMissingExports:r("shimMissingExports"),watch:t.watch};if(Array.isArray(i.input))i.entry=i.input[0];else if("object"==typeof i.input)for(var s in i.input){i.entry=i.input[s];break}else i.entry=i.input;return i}(n,u,a);u.output&&Object.assign(u,u.output);var p=n.output,l=Array.isArray(p)?p:p?[p]:[];0===l.length&&l.push({});var f=l.map(function(t){return function(t,e){void 0===e&&(e={});var n=co(t,e),i=n("format");return{amd:r({},t.amd,e.amd),assetFileNames:n("assetFileNames"),banner:n("banner"),dir:n("dir"),chunkFileNames:n("chunkFileNames"),compact:n("compact",!1),entryFileNames:n("entryFileNames"),esModule:n("esModule",!0),exports:n("exports"),extend:n("extend"),file:n("file"),footer:n("footer"),format:"esm"===i?"es":i,freeze:n("freeze",!0),globals:n("globals"),indent:n("indent",!0),interop:n("interop",!0),intro:n("intro"),name:n("name"),namespaceToStringTag:n("namespaceToStringTag",!1),noConflict:n("noConflict"),outro:n("outro"),paths:n("paths"),sourcemap:n("sourcemap"),sourcemapFile:n("sourcemapFile"),sourcemapPathTransform:n("sourcemapPathTransform"),strict:n("strict",!0)}}(t,u)}),d=[],m=Object.keys(c);xo(d,Object.keys(n),m,"input option",/^output$/);var g=Object.keys(f[0]);xo(d,f.reduce(function(t,e){return t.concat(Object.keys(e))},[]),g,"output option");var y=g.filter(function(t){return"sourcemapPathTransform"!==t});return xo(d,Object.keys(u),m.concat(y,Object.keys(yo),"config","environment","silent"),"CLI flag",/^_|output|(config.*)$/),{inputOptions:c,outputOptions:f,deprecations:h,optionError:d.length>0?d.join("\n"):null}}function xo(t,e,n,r,i){void 0===i&&(i=/$./);var s=e.filter(function(t){return-1===n.indexOf(t)&&!i.test(t)});s.length>0&&t.push("Unknown "+r+": "+s.join(", ")+". Allowed options: "+n.sort().join(", "))}function _o(t,e){e({code:"DEPRECATED_OPTIONS",message:"The following options have been renamed — please update your config: "+t.map(function(t){return t.old+" -> "+t.new}).join(", "),deprecations:t})}var Eo,bo={get:function(){throw new Error("bundle.generate(...) now returns a Promise instead of a { code, map } object")}};function Ao(t,e){return e.options&&e.options(t)||t}function So(t){if(!t)throw new Error("You must supply an options object to rollup");var e=vo({config:t,deprecateConfig:{input:!0}}),n=e.inputOptions,r=e.deprecations,i=e.optionError;i&&n.onwarn({message:i,code:"UNKNOWN_OPTION"}),r.length&&_o(r,n.onwarn),function(t){if(t.transform||t.load||t.resolveId||t.resolveExternal)throw new Error("The `transform`, `load`, `resolveId` and `resolveExternal` options are deprecated in favour of a unified plugin API. See https://rollupjs.org/guide/en#plugins")}(n);var s=n.plugins;return n.plugins=Array.isArray(s)?s.filter(Boolean):s?[s]:[],(n=n.plugins.reduce(Ao,n)).experimentalCodeSplitting||(n.inlineDynamicImports=!0,n.manualChunks&&xe({code:"INVALID_OPTION",message:'"manualChunks" option is only supported for experimentalCodeSplitting.'}),n.optimizeChunks&&xe({code:"INVALID_OPTION",message:'"optimizeChunks" option is only supported for experimentalCodeSplitting.'}),(n.input instanceof Array||"object"==typeof n.input)&&xe({code:"INVALID_OPTION",message:"Multiple inputs are only supported for experimentalCodeSplitting."})),n.inlineDynamicImports?(n.manualChunks&&xe({code:"INVALID_OPTION",message:'"manualChunks" option is not supported for inlineDynamicImports.'}),n.optimizeChunks&&xe({code:"INVALID_OPTION",message:'"optimizeChunks" option is not supported for inlineDynamicImports.'}),(n.input instanceof Array||"object"==typeof n.input)&&xe({code:"INVALID_OPTION",message:"Multiple inputs are not supported for inlineDynamicImports."})):n.experimentalPreserveModules&&(n.inlineDynamicImports&&xe({code:"INVALID_OPTION",message:"experimentalPreserveModules does not support the inlineDynamicImports option."}),n.manualChunks&&xe({code:"INVALID_OPTION",message:"experimentalPreserveModules does not support the manualChunks option."}),n.optimizeChunks&&xe({code:"INVALID_OPTION",message:"experimentalPreserveModules does not support the optimizeChunks option."})),n}function wo(t){return"string"==typeof t.code}t.rollup=function(t){try{var e=So(t);Yr(e);var n=new ro(e,Eo);return Eo=void 0,delete e.cache,qr("BUILD",1),n.pluginDriver.hookParallel("buildStart").then(function(){return n.build(e.input,e.manualChunks,e.inlineDynamicImports,e.experimentalPreserveModules)}).then(function(t){return n.pluginDriver.hookParallel("buildEnd").then(function(){return t})},function(t){return n.pluginDriver.hookParallel("buildEnd",[t]).then(function(){throw t})}).then(function(i){var s;Gr("BUILD",1);var o="string"==typeof e.input||e.input instanceof Array&&1===e.input.length;if(!e.experimentalPreserveModules&&o)for(var a=0,h=i;a<h.length;a++){var u=h[a];if(void 0!==u.entryModule){if(s){s=void 0;break}s=u}}var c=!1;function p(t,a){var h=function(t,e){if(!e)throw new Error("You must supply an options object");var n=vo({config:{output:r({},e,e.output,t.output)},deprecateConfig:{output:!0}});if(n.optionError)throw new Error(n.optionError);var i=n.outputOptions[0],s=n.deprecations;return s.length&&_o(s,t.onwarn),function(t){if("es6"===t.format&&xe({message:"The `es6` output format is deprecated – use `es` instead",url:"https://rollupjs.org/guide/en#output-format-f-format"}),t.format||xe({message:"You must specify output.format, which can be one of 'amd', 'cjs', 'system', 'esm', 'iife' or 'umd'",url:"https://rollupjs.org/guide/en#output-format-f-format"}),t.moduleId&&t.amd)throw new Error("Cannot have both output.amd and output.moduleId")}(i),i}(e,t);e.experimentalCodeSplitting&&("string"==typeof h.file&&"string"==typeof h.dir&&xe({code:"INVALID_OPTION",message:"Build must set either output.file for a single-file build or output.dir when generating multiple chunks."}),i.length>1&&("umd"!==h.format&&"iife"!==h.format||xe({code:"INVALID_OPTION",message:"UMD and IIFE output formats are not supported with the experimentalCodeSplitting option."}),h.sourcemapFile&&xe({code:"INVALID_OPTION",message:'"sourcemapFile" is only supported for single-file builds.'})),s||"string"!=typeof h.file||xe({code:"INVALID_OPTION",message:o?"When building a bundle using dynamic imports, the output.dir option must be used, not output.file. Alternatively set inlineDynamicImports: true to output a single file.":"When building multiple entry point inputs, the output.dir option must be used, not output.file."})),!h.file&&e.experimentalCodeSplitting&&(s=void 0),qr("GENERATE",1);var u=h.assetFileNames||"assets/[name]-[hash][extname]",p=n.finaliseAssets(u),l=function(t){if(1===t.length)return se(t[0]);var e=t.slice(1).reduce(function(t,e){var n,r=e.split(/\/+|\\+/);for(n=0;t[n]===r[n]&&n<Math.min(t.length,r.length);n++);return t.slice(0,n)},t[0].split(/\/+|\\+/));return e.length>1?e.join("/"):"/"}(i.filter(function(t){return t.entryModule}).map(function(t){return t.entryModule.id}));return n.pluginDriver.hookParallel("renderStart").then(function(){return t=h,e=n.pluginDriver,Promise.all([e.hookReduceValue("banner",io(t.banner),[],so),e.hookReduceValue("footer",io(t.footer),[],so),e.hookReduceValue("intro",io(t.intro),[],oo),e.hookReduceValue("outro",io(t.outro),[],oo)]).then(function(t){var e=t[0],n=t[1],r=t[2],i=t[3];return r&&(r+="\n\n"),i&&(i="\n\n"+i),e.length&&(e+="\n"),n.length&&(n="\n"+n),{intro:r,outro:i,banner:e,footer:n,hash:new Uint8Array(4)}}).catch(function(t){xe({code:"ADDON_ERROR",message:"Could not retrieve "+t.hook+". Check configuration of "+t.plugin+".\n\tError Message: "+t.message})});var t,e}).then(function(t){for(var o=0,a=i;o<a.length;o++){var u=a[o];e.experimentalPreserveModules||u.generateInternalExports(h),u.isEntryModuleFacade&&(u.exportMode=ho(u,h))}for(var f=0,d=i;f<d.length;f++)(u=d[f]).preRender(h,l);!c&&e.optimizeChunks&&(function(t,e,n,r){for(var i,s=function(s){var o=t[s],a=[];if(o.postVisitChunkDependencies(function(t){t instanceof ri&&a.push(t)}),a.length<2)return i=s,"continue";var h,u=1,c=!0,p=a[0],l=a[1],f=function(t){return!(t.isEntryModuleFacade||t.isManualChunk||!l||l.isEntryModuleFacade||t.getRenderedSourceLength()>n)},d=function(){if(c)return f(p)&&(c=!1),"continue";var i=n-h.getRenderedSourceLength()-p.getRenderedSourceLength();if(i<=0)return f(p)||(c=!0),"continue";var o=new Set;p.postVisitChunkDependencies(function(t){return o.add(t)});var d=new Set([p,h]);if(h.postVisitChunkDependencies(function(t){return t!==p&&t!==h&&!o.has(t)&&(t instanceof ue||(i-=t.getRenderedSourceLength())<=0||void d.add(t))}))return f(p)||(c=!0),"continue";if(p.postVisitChunkDependencies(function(t){return!d.has(t)&&(t instanceof ue||(i-=t.getRenderedSourceLength())<=0||void 0)}))return f(p)||(c=!0),"continue";var m=t.indexOf(p);m<=s&&s--,t.splice(m,1),h.merge(p,t,e,r),a.splice(--u,1),p=h,l&&!f(l)&&(c=!0)};do{d()}while(h=p,p=l,l=a[++u],p);i=s},o=0;o<t.length;o++)s(o),o=i}(i,h,e.chunkGroupingSize,l),c=!0);for(var m={},g=0;g<i.length;g++)if((u=i[g])===s)s.id=ie(h.file||(e.input instanceof Array?e.input[0]:e.input));else if(e.experimentalPreserveModules)u.generateIdPreserveModules(l);else{var y=void 0,v=void 0;u.isEntryModuleFacade?(y=h.entryFileNames||"[name].js",v="output.entryFileNames"):(y=h.chunkFileNames||"[name]-[hash].js",v="output.chunkFileNames"),u.generateId(y,v,t,h,m),m[u.id]=!0}for(g=0;g<i.length;g++)u=i[g],p[u.id]={fileName:u.id,isEntry:void 0!==u.entryModule,imports:u.getImportIds(),exports:u.getExportNames(),modules:u.renderedModules,code:void 0,map:void 0};return Promise.all(i.map(function(e){var i=p[e.id];return e.render(h,t,i).then(function(t){return i.code=t.code,i.map=t.map,n.pluginDriver.hookParallel("ongenerate",[r({bundle:i},h),i])})})).then(function(){})}).catch(function(t){return n.pluginDriver.hookParallel("renderError",[t]).then(function(){throw t})}).then(function(){var t=new Map(n.assetsById),e=Ds(t,p,u);return n.pluginDriver.hookSeq("generateBundle",[h,p,a],function(t){return r({},t,e)}).then(function(){t.forEach(function(t){void 0===t.fileName&&Vs(t,p,u)})})}).then(function(){return Gr("GENERATE",1),p})}var l=!1===t.cache?void 0:n.getCache(),f={cache:l,watchFiles:Object.keys(n.watchFiles),generate:function(t){var n=p(t,!1).then(function(t){return e.experimentalCodeSplitting?{output:t}:t[i[0].id]});return Object.defineProperty(n,"code",bo),Object.defineProperty(n,"map",bo),n},write:function(t){return!e.experimentalCodeSplitting||t&&(t.dir||t.file)?e.experimentalCodeSplitting||t&&t.file||xe({code:"MISSING_OPTION",message:"You must specify output.file."}):xe({code:"MISSING_OPTION",message:"You must specify output.file or output.dir for the build."}),p(t,!0).then(function(s){return Promise.all(Object.keys(s).map(function(e){return function(t,e,n,i,s){var o,a,h=he(s.dir||se(s.file),n);if(wo(i)){if(a=i.code,s.sourcemap&&i.map){var u=void 0;"inline"===s.sourcemap?u=i.map.toUrl():(u=ie(n)+".map",o=$s(h+".map",i.map.toString())),a+="//# "+Or+"="+u+"\n"}}else a=i;return $s(h,a).then(function(){return o}).then(function(){return wo(i)&&t.pluginDriver.hookSeq("onwrite",[r({bundle:e},s),i])}).then(function(){})}(n,f,e,s[e],t)})).then(function(){return e.experimentalCodeSplitting?{output:s}:s[i[0].id]})})}};return e.experimentalCodeSplitting||(f.imports=s.getImportIds(),f.exports=s.getExportNames(),f.modules=(l||n.getCache()).modules),!0===e.perf&&(f.getTimings=Fr),f})}catch(t){return Promise.reject(t)}},t.VERSION=qs,Object.defineProperty(t,"__esModule",{value:!0})});
12
12
  //# sourceMappingURL=rollup.browser.js.map