@rollup/browser 5.0.0-1 → 5.0.0-2

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,10 +1,10 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v5.0.0-1
4
- Sun, 18 Oct 2026 06:06:25 GMT - commit ed75a6895d5bc62fdbff91b9d48e22e6e281e3bc
3
+ Rollup.js v5.0.0-2
4
+ Sun, 01 Nov 2026 08:56:25 GMT - commit 4009894760dbcbff5ba6cefa494787cc54ffaa62
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
8
8
  Released under the MIT License.
9
9
  */
10
- var e="5.0.0-1",t=",".charCodeAt(0),n=";".charCodeAt(0),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),r=new Uint8Array(128);for(let e=0;e<64;e++){const t=s.charCodeAt(e);i[e]=t,r[t]=e}function o(e){let t=0,n=0,s=0;do{const i=e.next();s=r[i],t|=(31&s)<<n,n+=5}while(32&s);return t}function a(e){return 1&e?-2147483648|-(e>>>1):e>>>1}function l(e,t){do{let n=31&t;(t>>>=5)>0&&(n|=32),e.write(i[n])}while(t>0)}function c(e){return e<0?-e<<1|1:e<<1}function u(e,n){return!(e.pos>=n)&&e.peek()!==t}var d="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},h=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){const{buffer:t}=this;t[this.pos++]=e,16384===this.pos&&(this.out+=d.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:n}=this;return n>0?t+d.decode(e.subarray(0,n)):t}},p=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:n}=this,s=t.indexOf(e,n);return-1===s?t.length:s}};function f(e){e.sort(m)}function m(e,t){return e[0]-t[0]}function g(e){const s=new h;let i=0,r=0,o=0,a=0;for(let u=0;u<e.length;u++){const d=e[u];if(u>0&&s.write(n),0===d.length)continue;let h=0;for(let e=0;e<d.length;e++){const n=d[e];e>0&&s.write(t),l(s,c(n[0]-h)),h=n[0],1!==n.length&&(l(s,c(n[1]-i)),l(s,c(n[2]-r)),l(s,c(n[3]-o)),i=n[1],r=n[2],o=n[3],4!==n.length&&(l(s,c(n[4]-a)),a=n[4]))}}return s.flush()}var y=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}},b=class e{constructor(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const t=new e(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}contains(e){return this.start<e&&e<this.end}eachNext(e){e(this);let t=this.next;for(;t;)e(t),t=t.next}eachPrevious(e){e(this);let t=this.previous;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){const n=t-this.start,s=this.original.slice(0,n),i=this.original.slice(n);this.original=s;const r=new e(t,this.end,i);return r.outro=this.outro,this.outro="",this.end=t,this.edited?(r.edit("",!1,!0),this.content=""):this.content=s,r.next=this.next,r.next&&(r.next.previous=r),r.previous=this,this.next=r,r}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.edited?this.edit(t,this.storeName,!0):this.split(this.start+t.length).edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.edited?this.edit(t,this.storeName,!0):(this.split(this.end-t.length),this.edit("",void 0,!0))),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)}},E=class extends Error{name="MagicStringError";constructor(e,t){super(`[MagicString] ${e}`,t)}};function x(){if("undefined"!=typeof globalThis&&"function"==typeof globalThis.btoa)return e=>globalThis.btoa(unescape(encodeURIComponent(e)));const e=globalThis.Buffer;return e?t=>e.from(t,"utf-8").toString("base64"):()=>{throw new E("unsupported environment: `btoa` or `Buffer` is required")}}const v=x();var A=class{constructor(e){if(this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings="string"==typeof e.mappings?e.mappings:g(e.mappings),void 0!==e.x_google_ignoreList&&(this.x_google_ignoreList=e.x_google_ignoreList),void 0!==e.debugId&&(this.debugId=e.debugId),void 0!==e.rangeMappings){let t=!1;for(const n of e.rangeMappings)if(0!==n.length){t=!0;break}t&&(this.rangeMappings=function(e){if(0===e.length)return"";const t=new h;for(let s=0;s<e.length;s++){const i=e[s];s>0&&t.write(n);let r=0;for(let e=0;e<i.length;e++){const n=i[e];l(t,n-r),r=n}}return t.flush()}(e.rangeMappings))}}toString(){return JSON.stringify(this)}toUrl(){return`data:application/json;charset=utf-8;base64,${v(this.toString())}`}};function S(e){const t=[0];for(let n=e.indexOf("\n");-1!==n;n=e.indexOf("\n",n+1))t.push(n+1);return function(e){let n=0,s=t.length;for(;n<s;){const i=n+s>>1;e<t[i]?s=i:n=i+1}const i=n-1;return{line:i,column:e-t[i]}}}function P(e,t){const n=e.split(/[/\\]/),s=t.split(/[/\\]/);for(n.pop();n[0]===s[0];)n.shift(),s.shift();if(n.length){let e=n.length;for(;e--;)n[e]=".."}return n.concat(s).join("/")}const $=Object.prototype.toString;function w(e){return"[object Object]"===$.call(e)}const I=(()=>{const e=new Uint8Array(64);for(let t=0;t<64;t++)e[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(t);return e})(),C=new Uint8Array(16384);function k(e,t){t=t<0?-t<<1|1:t<<1;do{let n=31&t;(t>>>=5)>0&&(n|=32),C[e++]=I[n]}while(t>0);return e}const N=new TextDecoder;var O=class{constructor(){this.out="",this.pos=0,this.lines=[],this.buffered=0,this.needsComma=!1,this.prevGenColumn=0,this.prevSourceIndex=0,this.prevSourceLine=0,this.prevSourceColumn=0,this.prevNameIndex=0}endLine(e){this.lines.push(e),this.buffered+=e.length+1,this.buffered>=4096&&this.drain(null)}segments(e){this.drain(e)}finish(e){return this.drain(e),this.flush(),this.out}drain(e){const t=this.lines,n=t.length;for(let s=0;s<=n;s++){const i=s<n?t[s]:e;if(null===i)break;for(let e=0;e<i.length;e++){this.pos>16348&&this.flush();const t=i[e];this.needsComma&&(C[this.pos++]=44),this.needsComma=!0,this.pos=k(this.pos,t[0]-this.prevGenColumn),this.prevGenColumn=t[0],this.pos=k(this.pos,t[1]-this.prevSourceIndex),this.prevSourceIndex=t[1],this.pos=k(this.pos,t[2]-this.prevSourceLine),this.prevSourceLine=t[2],this.pos=k(this.pos,t[3]-this.prevSourceColumn),this.prevSourceColumn=t[3],5===t.length&&(this.pos=k(this.pos,t[4]-this.prevNameIndex),this.prevNameIndex=t[4])}s<n&&(this.pos>16348&&this.flush(),C[this.pos++]=59,this.needsComma=!1,this.prevGenColumn=0)}t.length=0,this.buffered=0,this.flush()}flush(){this.out+=N.decode(C.subarray(0,this.pos)),this.pos=0}};function R(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||95===e}var D=class{constructor(e,t=null){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.rawRangeMappings=[],this.rawRangeMappingsIndices=this.rawRangeMappings[this.generatedCodeLine]=[],this.encoder=t}nextLine(){null===this.encoder?(this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[]):(this.encoder.endLine(this.rawSegments),this.rawSegments=[],this.generatedCodeLine+=1),this.generatedCodeColumn=0,this.rawRangeMappings[this.generatedCodeLine]=this.rawRangeMappingsIndices=[]}addEdit(e,t,n,s){if(t.length){const i=t.length-1;let r=t.indexOf("\n",0),o=-1;for(;r>=0&&i>r;){const i=[this.generatedCodeColumn,e,n.line,n.column];s>=0&&i.push(s),this.rawSegments.push(i),this.nextLine(),o=r,r=t.indexOf("\n",r+1)}const a=[this.generatedCodeColumn,e,n.line,n.column];s>=0&&a.push(s),this.rawSegments.push(a),this.advance(t.slice(o+1))}}addUneditedChunk(e,t,n,s,i){const r=t.end;let o=t.start;if(this.hires){const i="boundary"===this.hires,a="experimental-range"===this.hires,l=a?null:this.encoder;let c=!1;for(;o<r;){null!==l&&this.rawSegments.length>=4096&&(l.segments(this.rawSegments),this.rawSegments.length=0),a&&o+1>=r&&this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column]);const u=n.charCodeAt(o);10===u?(s.line+=1,s.column=0,this.nextLine(),c=!1):(i?R(u)?c||(this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column]),c=!0):(this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column]),c=!1):a?o===t.start&&(this.rawRangeMappingsIndices.push(this.rawSegments.length),this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column])):this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column]),s.column+=1,this.generatedCodeColumn+=1),o+=1}}else{const t=i.bits;for(;o<r;){let i=n.indexOf("\n",o);if((-1===i||i>r)&&(i=r),i>o){this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column]);for(let n=o+1>>5,r=i-1>>5;n<=r;n++){let r=t[n];if(!r)continue;const a=n<<5;for(;r;){const t=r&-r,n=a+31-Math.clz32(t);if(n>o&&n<i){const t=n-o;this.rawSegments.push([this.generatedCodeColumn+t,e,s.line,s.column+t])}r^=t}}s.column+=i-o,this.generatedCodeColumn+=i-o}if(i===r)break;s.line+=1,s.column=0,this.nextLine(),o=i+1}}}advance(e){if(!e)return;const t=e.lastIndexOf("\n");for(let t=e.indexOf("\n");-1!==t;t=e.indexOf("\n",t+1))this.nextLine();this.generatedCodeColumn+=e.length-t-1}};const M="\n",_="\n".charCodeAt(0),L="\r".charCodeAt(0),T={insertLeft:!1,insertRight:!1,storeName:!1};function B(e,t,n,s,i,r){if(!e.includes("$"))return e;let o="",a=0;for(;a<e.length;){const l=e.indexOf("$",a);if(-1===l){o+=e.slice(a);break}o+=e.slice(a,l);const c=e[l+1];let u="$",d=1;if("$"===c)d=2;else if("&"===c)u=t,d=2;else if("`"===c)u=s.slice(0,n),d=2;else if("'"===c)u=s.slice(n+t.length),d=2;else if("<"===c&&void 0!==r){const t=e.indexOf(">",l+2);-1!==t&&(u=r[e.slice(l+2,t)]??"",d=t+1-l)}else if(c>="0"&&c<="9"){const t=e[l+2],n=t>="0"&&t<="9"?Number(c+t):NaN,s=Number(c);n>=1&&n<=i.length?(u=i[n-1]??"",d=3):s>=1&&s<=i.length&&(u=i[s-1]??"",d=2)}o+=u,a=l+d}return o}var z=class e{constructor(e,t={}){const n=new b(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},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:new Map([[0,n]])},byEnd:{writable:!0,value:new Map([[e.length,n]])},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new y},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:t.ignoreList},offset:{writable:!0,value:t.offset||0},hasMovedChunks:{writable:!0,value:!1}})}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if("string"!=typeof e)throw new E("content must be a string, got "+typeof e);return this.outro+=e,this}appendLeft(e,t){if(e+=this.offset,"string"!=typeof t)throw new E("content must be a string, got "+typeof t);this._split(e);const n=this.byEnd.get(e);return n?n.appendLeft(t):this.intro+=t,this}appendRight(e,t){if(e+=this.offset,"string"!=typeof t)throw new E("content must be a string, got "+typeof t);this._split(e);const n=this.byStart.get(e);return n?n.appendRight(t):this.outro+=t,this}clone(){const t=new e(this.original,{filename:this.filename,ignoreList:this.ignoreList,offset:this.offset});let n=this.firstChunk,s=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart.set(s.start,s),t.byEnd.set(s.end,s);const e=n.next,i=e&&e.clone();i&&(s.next=i,i.previous=s,s=i),n=e}return t.lastChunk=s,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new y(this.sourcemapLocations),t.storedNames={...this.storedNames},t.intro=this.intro,t.outro=this.outro,t.hasMovedChunks=this.hasMovedChunks,t}generateDecodedMap(e){const t=new D((e=e||{}).hires),n=this._generateMappings(t);return{...this._mapProperties(e,n),mappings:t.raw,rangeMappings:t.rawRangeMappings}}generateMap(e){e=e||{};const t=new O,n=new D(e.hires,t),s=this._generateMappings(n);return new A({...this._mapProperties(e,s),mappings:t.finish(n.rawSegments),rangeMappings:n.rawRangeMappings})}_generateMappings(e){const t=Object.keys(this.storedNames),n=S(this.original);return this.intro&&e.advance(this.intro),this.firstChunk.eachNext(s=>{const i=n(s.start);s.intro.length&&e.advance(s.intro),s.edited?e.addEdit(0,s.content,i,s.storeName?t.indexOf(s.original):-1):e.addUneditedChunk(0,s,this.original,i,this.sourcemapLocations),s.outro.length&&e.advance(s.outro)}),this.outro&&e.advance(this.outro),t}_mapProperties(e,t){return{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?P(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:t,x_google_ignoreList:this.ignoreList?[0]:void 0}}_ensureindentStr(){void 0===this.indentStr&&(this.indentStr=function(e){const t=e.split("\n"),n=t.filter(e=>/^\t+/.test(e)),s=t.filter(e=>/^ {2,}/.test(e));if(0===n.length&&0===s.length)return null;if(n.length>=s.length)return"\t";const i=s.reduce((e,t)=>{const n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return" ".repeat(i)}(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),null===this.indentStr?"\t":this.indentStr}indent(e,t){const n=/^[^\r\n]/gm;if(w(e)&&(t=e,e=void 0),void 0===e&&(this._ensureindentStr(),e=this.indentStr||"\t"),""===e)return this;const s=e,i={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach(e=>{for(let t=e[0];t<e[1];t+=1)i[t]=!0});let r=!1!==t.indentStart;const o=e=>{if(""===e)return e;const t=e.replace(n,(e,t)=>t>0||r?`${s}${e}`:e);return r="\n"===e[e.length-1],t};this.intro=o(this.intro);let a=0,l=this.firstChunk;const c=e=>{r=!1,e===l.start?l.appendRight(s):(this._splitChunk(l,e),l=l.next,l.prependRight(s))};for(;l;){const e=l.end;if(i[l.start]||(l.intro=o(l.intro)),l.edited)i[a]||(l.content=o(l.content));else if(t.exclude)for(a=l.start;a<e;){if(!i[a]){const e=this.original.charCodeAt(a);e===_?r=!0:e!==L&&r&&c(a)}a+=1}else for(a=l.start;a<e;){if(!r){const t=this.original.indexOf(M,a);if(-1===t||t>=e)break;r=!0,a=t+1;continue}const t=this.original.charCodeAt(a);t!==_&&t!==L?(c(a),a+=1):a+=1}i[l.end-1]||(l.outro=o(l.outro)),a=l.end,l=l.next}return this.outro=o(this.outro),this}insert(){throw new E("insert() is deprecated, use appendLeft() or prependRight()")}insertLeft(e,t){return T.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),T.insertLeft=!0),this.appendLeft(e,t)}insertRight(e,t){return T.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),T.insertRight=!0),this.prependRight(e,t)}move(e,t,n,s="right"){if(e+=this.offset,t+=this.offset,n+=this.offset,e===t)return this;if(n>=e&&n<=t)throw new E("cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);const i=this.byStart.get(e),r=this.byEnd.get(t);if(this.hasMovedChunks){let n=i;for(;n!==r;)if(n=n.next,!n||n.start<e||n.end>t)throw new E(`cannot move ${e} to ${t} because an earlier move split that range`)}const o=i.previous,a=r.next;let l,c;if("left"===s)if(l=this.byEnd.get(n)??null,l){if(l.next===i)return this;c=l.next}else{if(i===this.firstChunk)return this;c=this.firstChunk}else if(c=this.byStart.get(n)??null,c){if(c.previous===r)return this;l=c.previous}else{if(r===this.lastChunk)return this;l=this.lastChunk}return o&&(o.next=a),a&&(a.previous=o),l&&(l.next=i),c&&(c.previous=r),i.previous||(this.firstChunk=r.next),r.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=l,r.next=c||null,l||(this.firstChunk=i),c||(this.lastChunk=r),this.hasMovedChunks=!0,this}overwrite(e,t,n,s){const i="object"==typeof s&&s?s:{};return this.update(e,t,n,{...i,overwrite:!i.contentOnly})}update(e,t,n,s){if(e+=this.offset,t+=this.offset,"string"!=typeof n)throw new E("content must be a string, got "+typeof n);if(0!==this.original.length&&(e<0&&(e=Math.max(0,e+this.original.length)),t<0&&(t=Math.max(0,t+this.original.length))),e<0)throw new E(`start ${e} is out of bounds`);if(t>this.original.length)throw new E(`end ${t} is out of bounds`);if(e===t)throw new E(`cannot overwrite a zero-length range at ${e}, use appendLeft() or prependRight()`);if(e>t)throw new E(`end must be greater than start (start: ${e}, end: ${t})`);this._split(e),this._split(t),!0===s&&(T.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),T.storeName=!0),s={storeName:!0});const i="object"==typeof s&&s?s:{},r=i.storeName||!1,o=i.overwrite||!1;if(r){const n=this.original.slice(e,t);Object.defineProperty(this.storedNames,n,{writable:!0,value:!0,enumerable:!0})}const a=this.byStart.get(e),l=this.byEnd.get(t);if(a){let e=a;for(;e!==l;){if(e.next!==this.byStart.get(e.end))throw new E("cannot overwrite across a split point");e=e.next,e.edit("",!1,!o)}a.edit(n,r,!o)}else{const s=new b(e,t,"").edit(n,r);l.next=s,s.previous=l}return this}prepend(e){if("string"!=typeof e)throw new E("content must be a string, got "+typeof e);return this.intro=e+this.intro,this}prependLeft(e,t){if(e+=this.offset,"string"!=typeof t)throw new E("content must be a string, got "+typeof t);this._split(e);const n=this.byEnd.get(e);return n?n.prependLeft(t):this.intro=t+this.intro,this}prependRight(e,t){if(e+=this.offset,"string"!=typeof t)throw new E("content must be a string, got "+typeof t);this._split(e);const n=this.byStart.get(e);return n?n.prependRight(t):this.outro=t+this.outro,this}remove(e,t){if(e+=this.offset,t+=this.offset,0!==this.original.length&&(e<0&&(e=Math.max(0,e+this.original.length)),t<0&&(t=Math.max(0,t+this.original.length))),e===t)return this;if(e<0||t>this.original.length)throw new E(`range ${e}–${t} is out of bounds`);if(e>t)throw new E(`end must be greater than start (start: ${e}, end: ${t})`);this._split(e),this._split(t);let n=this.byStart.get(e);for(;n;)n.start>e&&(n.intro=""),n.end<t&&(n.outro=""),n.edit("",!1,!0),n=t>n.end?this.byStart.get(n.end):null;return this}reset(e,t){if(e+=this.offset,t+=this.offset,0!==this.original.length&&(e<0&&(e=Math.max(0,e+this.original.length)),t<0&&(t=Math.max(0,t+this.original.length))),e===t)return this;if(e<0||t>this.original.length)throw new E(`range ${e}–${t} is out of bounds`);if(e>t)throw new E(`end must be greater than start (start: ${e}, end: ${t})`);this._split(e),this._split(t);let n=this.byStart.get(e);for(;n;)n.reset(),n=t>n.end?this.byStart.get(n.end):null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;for(;e;){if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1];e=e.previous}return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(M);if(-1!==e)return this.outro.substr(e+1);let t=this.outro,n=this.lastChunk;for(;n;){if(n.outro.length>0){if(e=n.outro.lastIndexOf(M),-1!==e)return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf(M),-1!==e)return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf(M),-1!==e)return n.intro.substr(e+1)+t;t=n.intro+t}n=n.previous}return e=this.intro.lastIndexOf(M),-1!==e?this.intro.substr(e+1)+t:this.intro+t}slice(e=0,t=this.original.length-this.offset){e+=this.offset,t+=this.offset,0!==this.original.length&&(e<0&&(e=Math.max(0,e+this.original.length)),t<0&&(t=Math.max(0,t+this.original.length)));let n="",s=this.firstChunk;for(;s&&(s.start>e||s.end<=e);){if(s.start<t&&s.end>=t||0===t&&0===s.start)return n;s=s.next}if(s&&s.edited&&s.start!==e)throw new E(`cannot use edited character ${e} as slice start anchor`);const i=s;for(;s&&(0!==t||0!==s.start);){!s.intro||i===s&&s.start!==e||(n+=s.intro);const r=s.start<t&&s.end>=t;if(r&&s.edited&&s.end!==t)throw new E(`cannot use edited character ${t} as slice end anchor`);const o=i===s?e-s.start:0,a=r?s.content.length+t-s.end:s.content.length;if(n+=s.content.slice(o,a),!s.outro||r&&s.end!==t||(n+=s.outro),r)break;s=s.next}return n}snip(e,t){const n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n}_split(e){if(this.byStart.get(e)||this.byEnd.get(e))return;let t=this.lastSearchedChunk,n=t;const s=e>t.end;for(;t;){if(t.contains(e))return this._splitChunk(t,e);if(t=s?this.byStart.get(t.end):this.byEnd.get(t.start),t===n)return;n=t}}_splitChunk(e,t){if(e.edited&&e.content.length){const n=S(this.original)(t);throw new E(`cannot split a chunk that has already been edited (${n.line}:${n.column} – "${e.original}")`)}const n=e.split(t);return this.byEnd.set(t,e),this.byStart.set(t,n),this.byEnd.set(n.end,n),e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,t=this.firstChunk;for(;t;)e+=t.toString(),t=t.next;return e+this.outro}isEmpty(){if(this.intro.length&&this.intro.trim())return!1;let e=this.firstChunk;for(;e;){if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;e=e.next}return!this.outro.length||!this.outro.trim()}length(){let e=this.firstChunk,t=0;for(;e;)t+=e.intro.length+e.content.length+e.outro.length,e=e.next;return t}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const t=new RegExp(`${e||"\\s"}+$`);if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let n=this.lastChunk;do{const e=n.end,s=n.trimEnd(t);if(n.end!==e&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd.set(n.end,n),this.byStart.set(n.next.start,n.next),this.byEnd.set(n.next.end,n.next)),s)return!0;n=n.previous}while(n);return this.intro=this.intro.replace(t,""),this.intro.length>0}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const t=new RegExp(`^${e||"\\s"}+`);if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let n=this.firstChunk;do{const e=n.end,s=n.trimStart(t);if(n.end!==e&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd.set(n.end,n),this.byStart.set(n.next.start,n.next),this.byEnd.set(n.next.end,n.next)),s)return!0;n=n.next}while(n);return this.outro=this.outro.replace(t,""),this.outro.length>0}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){if(this.intro||this.outro)return!0;let e=0,t=this.firstChunk;for(;t;){if(t.intro||t.outro)return!0;if(t.edited||t.start!==e){if(!this.original.startsWith(t.content,e))return!0;e+=t.content.length}else e=t.end;t=t.next}return e!==this.original.length}_hasRemovedContent(e,t){let n=this.byStart.get(e);if(!n){n=this.lastSearchedChunk;const t=e>=n.end;for(;n&&!n.contains(e);)n=t?this.byStart.get(n.end):this.byEnd.get(n.start);n&&(this.lastSearchedChunk=n)}for(;n&&n.start<t;){if(""===n.content)return!0;n=this.byStart.get(n.end)}return!1}_replaceRegexp(e,t){function n(e,n){return"string"==typeof t?B(t,e[0],e.index,n,e.slice(1),e.groups):void 0===e.groups?t(e[0],...e.slice(1),e.index,n):t(e[0],...e.slice(1),e.index,n,e.groups)}const s=e=>{if(null==e.index)return!1;if(this._hasRemovedContent(e.index,e.index+e[0].length))return!1;const t=n(e,this.original);return t===e[0]||(0===e[0].length?this.appendRight(e.index-this.offset,t):this.overwrite(e.index-this.offset,e.index+e[0].length-this.offset,t)),!0};if(e.global){e.lastIndex=0;for(const t of this.original.matchAll(e))s(t)}else{const t=this.original.match(e);if(t&&!s(t)){const t=new RegExp(e.source,`${e.flags}g`);for(const e of this.original.matchAll(t))if(s(e))break}}return this}_replaceString(e,t){const{original:n}=this;let s=n.indexOf(e);for(;-1!==s;){if(!this._hasRemovedContent(s,s+e.length)){e!==(t="function"==typeof t?t(e,s,n):B(t,e,s,n,[],void 0))&&(0===e.length?this.appendRight(s-this.offset,t):this.overwrite(s-this.offset,s+e.length-this.offset,t));break}s=n.indexOf(e,s+e.length)}return this}replace(e,t){return"string"==typeof e?this._replaceString(e,t):this._replaceRegexp(e,t)}_replaceAllString(e,t){const{original:n}=this,s=e.length;if(0===s){for(let e=0;e<=n.length;e+=1){if(this._hasRemovedContent(e,e))continue;const s="function"==typeof t?t("",e,n):B(t,"",e,n,[],void 0);""!==s&&this.appendRight(e-this.offset,s)}return this}for(let i=n.indexOf(e);-1!==i;i=n.indexOf(e,i+s)){if(this._hasRemovedContent(i,i+s))continue;const e=n.slice(i,i+s),r="function"==typeof t?t(e,i,n):B(t,e,i,n,[],void 0);e!==r&&this.overwrite(i-this.offset,i+s-this.offset,r)}return this}replaceAll(e,t){if("string"==typeof e)return this._replaceAllString(e,t);if(!e.global)throw new E("replaceAll() requires a global RegExp");return this._replaceRegexp(e,t)}};const F=Object.prototype.hasOwnProperty;var V=class e{constructor(e={}){this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}addSource(e){if(e instanceof z)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!w(e)||!e.content)throw new E("addSource() requires a `content` property that is a MagicString");if(["filename","ignoreList","indentExclusionRanges","separator"].forEach(t=>{F.call(e,t)||(e[t]=e.content[t])}),void 0===e.separator&&(e.separator=this.separator),e.filename)if(F.call(this.uniqueSourceIndexByFilename,e.filename)){const t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content)throw new E(`duplicate filename "${e.filename}" with different content, use unique filenames`)}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this}append(e,t){return this.addSource({content:new z(e),separator:t&&t.separator||""}),this}clone(){const t=new e({intro:this.intro,separator:this.separator});return this.sources.forEach(e=>{t.addSource({filename:e.filename,content:e.content.clone(),ignoreList:e.ignoreList,indentExclusionRanges:e.indentExclusionRanges,separator:e.separator})}),t}toMagicString(){const e=new z(this.sources.map(e=>e.content.original).join(""));let t=0,n=this.intro,s=null,i=null;const r=new Map,o=new Map;let a=!1;return this.sources.forEach((l,c)=>{const u=l.content,d=c>0?void 0!==l.separator?l.separator:this.separator:"";if(0===u.original.length)return void(n+=d+u.toString());n+=d+u.intro;let h=null,p=null,f=u.firstChunk;for(;f;){const e=f.clone();e.start+=t,e.end+=t,e.previous=p,e.next=null,p&&(p.next=e),r.set(e.start,e),o.set(e.end,e),h??=e,p=e,f=f.next}const m=p;h.intro=n+h.intro,n="",m.outro+=u.outro,i?(i.next=h,h.previous=i):s=h,i=m;for(let n=0;n<u.original.length;n+=1)u.sourcemapLocations.has(n)&&e.sourcemapLocations.add(n+t);Object.keys(u.storedNames).forEach(t=>{Object.defineProperty(e.storedNames,t,{writable:!0,value:!0,enumerable:!0})}),u.hasMovedChunks&&(a=!0),t+=u.original.length}),s?(n&&(i.outro+=n),e.firstChunk=s,e.lastChunk=i,e.lastSearchedChunk=s,e.byStart=r,e.byEnd=o,e.hasMovedChunks=a,e):(e.intro=n,e)}generateDecodedMap(e={}){const t=new D(e.hires),{names:n,x_google_ignoreList:s}=this._generateMappings(t);return{...this._mapProperties(e,n,s),mappings:t.raw,rangeMappings:t.rawRangeMappings}}generateMap(e={}){const t=new O,n=new D(e.hires,t),{names:s,x_google_ignoreList:i}=this._generateMappings(n);return new A({...this._mapProperties(e,s,i),mappings:t.finish(n.rawSegments),rangeMappings:n.rawRangeMappings})}_generateMappings(e){const t=[];let n;return this.sources.forEach(e=>{Object.keys(e.content.storedNames).forEach(e=>{t.includes(e)||t.push(e)})}),this.intro&&e.advance(this.intro),this.sources.forEach((s,i)=>{i>0&&e.advance(void 0!==s.separator?s.separator:this.separator);const r=s.filename?this.uniqueSourceIndexByFilename[s.filename]:-1,o=s.content,a=S(o.original);o.intro&&e.advance(o.intro),o.firstChunk.eachNext(n=>{const i=a(n.start);n.intro.length&&e.advance(n.intro),s.filename?n.edited?e.addEdit(r,n.content,i,n.storeName?t.indexOf(n.original):-1):e.addUneditedChunk(r,n,o.original,i,o.sourcemapLocations):e.advance(n.content),n.outro.length&&e.advance(n.outro)}),o.outro&&e.advance(o.outro),s.ignoreList&&-1!==r&&(void 0===n&&(n=[]),n.push(r))}),{names:t,x_google_ignoreList:n}}_mapProperties(e,t,n){return{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(t=>e.file?P(e.file,t.filename):t.filename),sourcesContent:this.uniqueSources.map(t=>("function"==typeof e.includeContent?e.includeContent(t):e.includeContent)?t.content:null),names:t,x_google_ignoreList:n}}getIndentString(){const e={};return this.sources.forEach(t=>{const n=t.content._getRawIndentString();null!==n&&(e[n]||(e[n]=0),e[n]+=1)}),Object.keys(e).sort((t,n)=>e[n]-e[t])[0]||"\t"}indent(e){if(arguments.length||(e=this.getIndentString()),""===e)return this;let t=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach((n,s)=>{const i=void 0!==n.separator?n.separator:this.separator,r=t||s>0&&/\r?\n$/.test(i);n.content.indent(e,{exclude:n.indentExclusionRanges,indentStart:r}),t="\n"===n.content.lastChar()}),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,(t,n)=>n>0?e+t:t)),this}prepend(e){return this.intro=e+this.intro,this}toString(){const e=this.sources.map((e,t)=>{const n=void 0!==e.separator?e.separator:this.separator;return(t>0?n:"")+e.content.toString()}).join("");return this.intro+e}isEmpty(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some((e,t)=>{const n=void 0!==e.separator?e.separator:this.separator;return t>0&&""!==n.trim()||!e.content.isEmpty()})}length(){return this.sources.reduce((e,t,n)=>{const s=void 0!==t.separator?t.separator:this.separator;return e+(n>0?s.length:0)+t.content.toString().length},this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimStart(e){const t=new RegExp(`^${e||"\\s"}+`);if(this.intro=this.intro.replace(t,""),!this.intro)for(let n=0;n<this.sources.length;n+=1){const s=this.sources[n];if(n>0&&(s.separator=(void 0!==s.separator?s.separator:this.separator).replace(t,""),s.separator))break;if(s.content.trimStartAborted(e))break}return this}trimEnd(e){const t=new RegExp(`${e||"\\s"}+$`);for(let n=this.sources.length-1;n>=0;n-=1){const s=this.sources[n];if(s.content.trimEndAborted(e))return this;if(n>0&&(s.separator=(void 0!==s.separator?s.separator:this.separator).replace(t,""),s.separator))return this}return this.intro=this.intro.replace(t,""),this}};const j=/^(?:\/|(?:[A-Za-z]:)?[/\\|])/,U=/^\.?\.\//,G=/\\/g,H=/[/\\]/,W=/^[A-Za-z]:$/,q=/[/\\]+$/;function K(e){return j.test(e)}function X(e){return U.test(e)}function J(e){return e.replace(G,"/")}function Y(e){return e.replace(q,"").split(H).pop()||""}function Z(e){const t=e.replace(q,""),n=/[/\\][^/\\]*$/.exec(t);if(n){return t.slice(0,-n[0].length)||"/"}return""===t?e?"/":".":e!==t&&W.test(t)?t:"."}function Q(e){const t=Y(e);if("."===t||".."===t)return"";const n=t.lastIndexOf(".");return n>0?t.slice(n):""}function ee(e,t){const n=[],s=W.test(e[0])?1:0;for(const i of e)".."===i?n.length>s&&".."!==n[n.length-1]?n.pop():t||0!==s||n.push(".."):"."!==i&&""!==i&&n.push(i);return n}function te(e,t){const n=ee(e.split(H),K(e)),s=ee(t.split(H),K(t));for(;n[0]&&s[0]&&n[0]===s[0];)n.shift(),s.shift();for(;n.pop();)s.unshift("..");return s.join("/")}function ne(...e){let t=[],n=!1;for(const s of e)K(s)?(t=s.split(H),n=!0):t.push(...s.split(H));const s=ee(t,n).join("/");return n?/^[A-Za-z]:/.test(s)?s:"/"+s:s||"/"}function se(e,t,n,s){t.remove(n,s),e.removeAnnotations(t)}const ie={isNoStatement:!0};function re(e,t,n=0){let s,i;for(s=e.indexOf(t,n);;){if(-1===(n=e.indexOf("/",n))||n>=s)return s;i=e.charCodeAt(++n),++n,(n=47===i?e.indexOf("\n",n)+1:e.indexOf("*/",n)+2)>s&&(s=e.indexOf(t,n))}}const oe=/\S/g;function ae(e,t){oe.lastIndex=t;return oe.exec(e).index}const le=/\s/;function ce(e,t){return t>0&&13===e.charCodeAt(t-1)?t-1:t}function ue(e){let t,n,s=0;for(t=e.indexOf("\n",s);;){if(s=e.indexOf("/",s),-1===s||s>t)return[ce(e,t),t+1];if(n=e.charCodeAt(s+1),47===n)return[s,t+1];s=e.indexOf("*/",s+2)+2,s>t&&(t=e.indexOf("\n",s))}}function de(e,t,n,s,i){let r,o,a,l,c=e[0],u=!c.included||c.needsBoundaries;u&&(l=n+ue(t.original.slice(n,c.start))[1]);for(let n=1;n<=e.length;n++)r=c,o=l,a=u,c=e[n],u=void 0!==c&&(!c.included||c.needsBoundaries),a||u?(l=r.end+ue(t.original.slice(r.end,void 0===c?s:c.start))[1],r.included?a?r.render(t,i,{end:l,start:o}):r.render(t,i):se(r,t,o,l)):r.render(t,i)}function he(e,t,n,s){const i=[];let r,o,a,l,c=n-1;for(const s of e){for(void 0!==r&&(c=r.end+re(t.original.slice(r.end,s.start),",")),o=a=c+1+ue(t.original.slice(c+1,s.start))[1];l=t.original.charCodeAt(o),32===l||9===l||10===l||13===l;)o++;void 0!==r&&i.push({contentEnd:a,end:o,node:r,separator:c,start:n}),r=s,n=o}return i.push({contentEnd:s,end:s,node:r,separator:null,start:n}),i}function pe(e,t,n){for(;;){const[s,i]=ue(e.original.slice(t,n));if(-1===s)break;e.remove(t+s,t+=i)}}function fe(e,{exportNamesByVariable:t,snippets:{_:n,getObject:s,getPropertyAccess:i}},r=""){if(1===e.length&&1===t.get(e[0]).length){const s=e[0];return`exports(${JSON.stringify(t.get(s)[0])},${n}${s.getName(i)}${r})`}{const n=[];for(const s of e)for(const e of t.get(s))n.push([e,s.getName(i)+r]);return`exports(${s(n,{lineBreakIndent:null})})`}}function me(e,t,n,s,{exportNamesByVariable:i,snippets:{_:r}}){s.prependRight(t,`exports(${JSON.stringify(i.get(e)[0])},${r}`),s.appendLeft(n,")")}function ge(e,t,n,s,i,r){const{_:o,getPropertyAccess:a}=r.snippets;i.appendLeft(n,`,${o}${fe([e],r)},${o}${e.getName(a)}`),s&&(i.prependRight(t,"("),i.appendLeft(n,")"))}const ye=Object.freeze(Object.create(null)),be=Object.freeze({}),Ee=Object.freeze([]),xe=Object.freeze(new class extends Set{add(){throw new Error("Cannot add to empty set")}});function ve(e,t,n){const s=e.get(t);if(void 0!==s)return s;const i=n();return e.set(t,i),i}function Ae(){return new Set}function Se(){return[]}const Pe=Symbol("Unknown Key"),$e=Symbol("Unknown Non-Accessor Key"),we=Symbol("Unknown Integer"),Ie=Symbol("Unknown Well-Known"),Ce=Symbol("Symbol.toStringTag"),ke=Symbol("Symbol.asyncDispose"),Ne=Symbol("Symbol.dispose"),Oe=Symbol("Symbol.hasInstance"),Re=new Set([Ce,ke,Ne,Oe]),De=e=>Re.has(e)||e===Ie,Me=new Set([Oe,ke,Ne]),_e=e=>"string"==typeof e||Re.has(e),Le=[],Te=[Pe],Be=[$e],ze=[we],Fe=[Oe],Ve=Symbol("Entities");class je{constructor(){this.entityPaths=Object.create(null,{[Ve]:{value:new Set}})}trackEntityAtPathAndGetIfTracked(e,t){const n=this.getEntities(e);return!!n.has(t)||(n.add(t),!1)}withTrackedEntityAtPath(e,t,n,s){const i=this.getEntities(e);if(i.has(t))return s;i.add(t);const r=n();return i.delete(t),r}getEntities(e){let t=this.entityPaths;for(const n of e)t=t[n]||=Object.create(null,{[Ve]:{value:new Set}});return t[Ve]}}const Ue=new je;class Ge{constructor(){this.entityPaths=Object.create(null,{[Ve]:{value:new Map}})}trackEntityAtPathAndGetIfTracked(e,t,n){let s=this.entityPaths;for(const t of e)s=s[t]||=Object.create(null,{[Ve]:{value:new Map}});const i=ve(s[Ve],t,Ae);return!!i.has(n)||(i.add(n),!1)}}const He=Object.freeze({[Pe]:be});class We{constructor(){this.includedPaths=null}includePathAndGetIfIncluded(e){let t=!0,n=this,s="includedPaths",i=this.includedPaths||=(t=!1,Object.create(null));for(const r of e){if(i[Pe])return!0;if(!_e(r))return n[s]=He,!1;n=i,s=r,i=i[r]||=(t=!1,Object.create(null))}return t}}const qe=Object.freeze({[Pe]:!0});class Ke{constructor(){this.includedPaths=null}includePathAndGetIfIncluded(e){let t=!0;const n=this.includedPaths||=(t=!1,Object.create(null));if(n[Pe])return!0;const[s,i]=e;return s?_e(s)?i?n[s]===Pe||(n[s]=Pe,!1):!!n[s]||(n[s]=!0,!1):(this.includedPaths=qe,!1):t}includeAllPaths(e,t,n){const{includedPaths:s}=this;if(s)if(s[Pe])e.includePath([...n,Pe],t);else{const i=Object.entries(s);if(0===i.length)e.includePath(n,t);else for(const[s,r]of i)e.includePath(r===Pe?[...n,s,Pe]:[...n,s],t)}}}function Xe(e,t){return 0!==(e&t)}function Je(e,t,n){return e&~t|-n&t}const Ye=Symbol("Unknown Value"),Ze=Symbol("Unknown Truthy Value"),Qe=Symbol("Unknown Falsy Value");class et{constructor(){this.flags=0}get included(){return Xe(this.flags,1)}set included(e){this.flags=Je(this.flags,1,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){st(e)}deoptimizePath(e){}getLiteralValueAtPath(e,t,n){return Ye}getReturnExpressionWhenCalledAtPath(e,t,n,s){return nt}hasEffectsOnInteractionAtPath(e,t,n){return!0}include(e,t,n){this.included||this.includeNode(e)}includeNode(e){this.included=!0}includePath(e,t){this.included||this.includeNode(t)}includeCallArgumentsWhenCalledAtPath(e,t,n){it(t,n)}shouldBeIncluded(e){return!0}}const tt=new class extends et{},nt=[tt,!1],st=e=>{for(const t of e.args)t?.deoptimizePath(Te)},it=(e,t)=>{e.args[0]?.includePath(Te,t),rt(e,t)},rt=({args:e},t)=>{for(let n=1;n<e.length;n++){const s=e[n];s&&(s.includePath(Te,t),s.include(t,!1))}},ot={args:[null],type:0},at={args:[null,tt],type:1},lt={args:[null],type:2,withNew:!1},ct=new Set(["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","NaN","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield"]);function ut(e){let t="";do{const n=e%64;e=e/64|0,t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$"[n]+t}while(0!==e);return t}function dt(e,t,n){let s=e,i=1;for(;t.has(s)||ct.has(s)||n?.has(s);)s=`${e}$${ut(i++)}`;return t.add(s),s}function ht(e,t){return e.start<=t&&t<e.end}function pt(e,t,n){return function(e,t={}){const{offsetLine:n=0,offsetColumn:s=0}=t;let i=0;const r=e.split("\n").map((e,t)=>{const n=i+e.length+1,s={start:i,end:n,line:t};return i=n,s});let o=0;return function(t,i){if("string"==typeof t&&(t=e.indexOf(t,i??0)),-1===t)return;let a=r[o];const l=t>=a.end?1:-1;for(;a;){if(ht(a,t))return{line:n+a.line,column:s+t-a.start,character:t};o+=l,a=r[o]}}}(e,n)(t,n&&n.startIndex)}function ft(e){return e.replace(/^\t+/,e=>e.split("\t").join(" "))}const mt="...";function gt(e,t,n){let s=e.split("\n");if(t>s.length)return"";const i=Math.max(ft(s[t-1].slice(0,n)).length+10+3,120),r=Math.max(0,t-3);let o=Math.min(t+2,s.length);for(s=s.slice(r,o);!/\S/.test(s[s.length-1]);)s.pop(),o-=1;const a=String(o).length;return s.map((e,s)=>{const o=r+s+1===t;let l=String(s+r+1);for(;l.length<a;)l=` ${l}`;let c=ft(e);if(c.length>i&&(c=`${c.slice(0,i-3)}${mt}`),o){const t=function(e){let t="";for(;e--;)t+=" ";return t}(a+2+ft(e.slice(0,n)).length)+"^";return`${l}: ${c}\n${t}`}return`${l}: ${c}`}).join("\n")}const yt="silent",bt="warn",Et="info",xt="debug",vt={[xt]:0,[Et]:1,[yt]:3,[bt]:2};function At(e,t){const n=e.length<=1,s=e.map(e=>`"${e}"`);let i=n?s[0]:`${s.slice(0,-1).join(", ")} and ${s.slice(-1)[0]}`;return t&&(i+=` ${n?t[0]:t[1]}`),i}function St(e){const t=Y(e);return t.slice(0,Math.max(0,t.length-Q(e).length))}function Pt(e){return K(e)?te(ne(),e):e}function $t(e){return"/"===e[0]||"."===e[0]&&("/"===e[1]||"."===e[1])||K(e)}const wt=/^(\.\.\/)*\.\.$/;function It(e,t,n,s){for(;t.startsWith("../");)t=t.slice(3),e="_/"+e;let i=J(te(Z(e),t));if(n&&i.endsWith(".js")&&(i=i.slice(0,-3)),s){if(""===i)return"../"+Y(t);if(wt.test(i))return[...i.split("/"),"..",Y(t)].join("/")}return i?i.startsWith("..")?i:"./"+i:"."}function Ct(e){return`https://rollupjs.org/${e}`}const kt="troubleshooting/#error-name-is-not-exported-by-module",Nt="configuration-options/#jsx",Ot="configuration-options/#output-amd-id",Rt="configuration-options/#output-dir",Dt="configuration-options/#output-exports",Mt="configuration-options/#output-format",_t="configuration-options/#output-globals",Lt="configuration-options/#output-inlinedynamicimports",Tt="configuration-options/#output-interop",Bt="configuration-options/#output-manualchunks",zt="configuration-options/#output-name",Ft="configuration-options/#output-sourcemapfile",Vt="es-module-syntax/#source-phase-import",jt="plugin-development/#generatebundle";function Ut(e){throw e instanceof Error?e:Gt(e)}function Gt(e){qt(e);const t=Object.assign(new Error(e.message),e);return Object.defineProperty(t,"name",{value:"RollupError",writable:!0}),t}function Ht(e,t,n,s){if("object"==typeof t){const{line:n,column:i}=t;e.loc={column:i,file:s,line:n}}else{e.pos=t;const i=pt(n,t,{offsetLine:1});if(!i)return;const{line:r,column:o}=i;e.loc={column:o,file:s,line:r}}if(void 0===e.frame){const{line:t,column:s}=e.loc;e.frame=gt(n,t,s)}}const Wt=Symbol("augmented");function qt(e){if(!e.plugin&&!e.loc||e[Wt])return;e[Wt]=!0;let t="";e.plugin&&(t+=`[plugin ${e.plugin}] `);const n=e.id||e.loc?.file;if(n){const s=e.loc?` (${e.loc.line}:${e.loc.column})`:"";t+=`${Pt(n)}${s}: `}const s=e.message;e.message=t+e.message,En(e,s)}const Kt="CANNOT_SERIALIZE_AST",Xt="INVALID_EXPORT_OPTION",Jt="INVALID_IMPORT_ATTRIBUTE",Yt="INVALID_PLUGIN_HOOK",Zt="MISSING_EXPORT",Qt="MISSING_IMPLICIT_DEPENDANT",en="MISSING_NAME_OPTION_FOR_IIFE_EXPORT",tn="PARSE_ERROR",nn="SOURCEMAP_BROKEN",sn="UNEXPECTED_NAMED_IMPORT",rn="UNRESOLVED_ENTRY",on="UNRESOLVED_IMPORT";function an(e){return{code:"ASSET_SOURCE_MISSING",message:`Plugin error creating asset "${e}" - no asset source set.`}}function ln(e){return{code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ("${e}").`}}function cn(e,t,n){return{code:Kt,message:`Could not serialize AST: Found unknown node type "${e}" ${t?`in ${t}.${n}`:"at the root"}.`}}function un({fileName:e,code:t},{pos:n,message:s}){const i={code:"CHUNK_INVALID",message:`Chunk "${e}" is not valid JavaScript: ${s}.`};return Ht(i,n,t,e),i}function dn(e){return{code:"CIRCULAR_DEPENDENCY",ids:e,message:`Circular dependency: ${e.map(Pt).join(" -> ")}`}}function hn(e,t,n,s,i){return{code:"CYCLIC_CROSS_CHUNK_REEXPORT",exporter:t,id:s,message:`Export "${e}" of module "${Pt(t)}" was reexported through module "${Pt(n)}" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "${Pt(s)}" to point directly to the exporting module or ${i?'do not use "output.preserveModules"':'reconfigure "output.manualChunks"'} to ensure these modules end up in the same chunk.`,reexporter:n}}function pn(e){return{code:"EMPTY_MANUAL_CHUNK",message:`Manual chunk "${e}" was not generated as none of its modules are included in the bundle.`,names:[e],url:Ct(Bt)}}function fn(e){return{code:"FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY",message:`The output file name "${e}" is not contained in the output directory. Make sure all file names are relative paths without ".." segments.`}}function mn(e,t,{line:n,column:s}){return{code:"FIRST_SIDE_EFFECT",message:`First side effect in ${Pt(t)} is at (${n}:${s})\n${gt(e,n,s)}`}}function gn(e,t){return{code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment of import "${e}" in "${Pt(t)}".`}}function yn(e,t,n){return{code:"INVALID_ANNOTATION",id:t,message:`A comment\n\n"${e}"\n\nin "${Pt(t)}" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.`,url:Ct("noSideEffects"===n?"configuration-options/#no-side-effects":"configuration-options/#pure")}}function bn(e,t){return{code:"INPUT_HOOK_IN_OUTPUT_PLUGIN",message:`The "${t}" hook used by the output plugin ${e} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}}function En(e,t){return e.stack?(e.stack=e.stack.replace(t,e.message),e):e}function xn(e,t,n){return{code:Xt,message:`"${e}" was specified for "output.exports", but entry module "${Pt(n)}" has the following exports: ${At(t)}`,url:Ct(Dt)}}function vn(e){return{code:Jt,message:`Rollup could not statically analyze an import attribute of a dynamic import in "${Pt(e)}". Import attributes need to have string keys and values.`}}function An(e,t,n,s){return{code:"INVALID_OPTION",message:`Invalid value ${void 0===s?"":`${JSON.stringify(s)} `}for option "${e}" - ${n}.`,url:Ct(t)}}function Sn(e,t){return{binding:e,code:Zt,exporter:t,message:`Exported variable "${e}" is not defined in "${Pt(t)}".`,url:Ct(kt)}}function Pn(e,t,n,s){const i={binding:e,code:Zt,exporter:n,id:t,url:Ct(kt)};if(s)return{...i,message:`Exported variable "${e}" is not defined in "${Pt(n)}", but it is imported by "${Pt(t)}".`};const r=".json"===Q(n);return{...i,message:`"${e}" is not exported by "${Pt(n)}", imported by "${Pt(t)}".${r?" (Note that you need @rollup/plugin-json to import JSON files)":""}`}}function $n(e){const t=[...e.implicitlyLoadedBefore].map(e=>Pt(e.id)).sort();return{code:Qt,message:`Module "${Pt(e.id)}" that should be implicitly loaded before ${At(t)} is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`}}function wn(e,t){return{code:"NON_EXTERNAL_SOURCE_PHASE_IMPORT",message:`Source phase import "${e}" in "${Pt(t)}" must be external. Source phase imports are only supported for external modules. Use the "external" option to mark this module as external.`,url:Ct(Vt)}}function In(e,t,n){return{code:"OPTIMIZE_CHUNK_STATUS",message:`${n}, there are\n${e} chunks, of which\n${t} are below minChunkSize.`}}function Cn(e,t){return{code:tn,message:e,pos:t}}function kn(e){return{code:"REDECLARATION_ERROR",message:`Identifier "${e}" has already been declared`}}function Nn(e){return{code:"RESERVED_NAMESPACE",message:`You have overridden reserved namespace "${e}"`}}function On(e,t){let n=e.message.replace(/ \(\d+:\d+\)$/,"");return t.endsWith(".json")?n+=" (Note that you need @rollup/plugin-json to import JSON files)":t.endsWith(".js")||(n+=" (Note that you need plugins to import files that are not JavaScript)"),En({cause:e,code:tn,id:t,message:n,stack:e.stack},e.message)}function Rn(e,t,{hook:n,id:s}={}){const i=e.code;return e.pluginCode||null==i||"string"==typeof i&&i.startsWith("PLUGIN_")||(e.pluginCode=i),e.code="PLUGIN_ERROR",e.plugin=t,n&&(e.hook=n),s&&(e.id=s),e}function Dn(e){return{code:nn,message:`Multiple conflicting contents for sourcemap source ${e}`}}function Mn(e,t,n){const s=n?"reexport":"import";return{code:sn,exporter:e,message:`The named export "${t}" was ${s}ed from the external module "${Pt(e)}" even though its interop type is "defaultOnly". Either remove or change this ${s} or change the value of the "output.interop" option.`,url:Ct(Tt)}}function _n(e){return{code:sn,exporter:e,message:`There was a namespace "*" reexport from the external module "${Pt(e)}" even though its interop type is "defaultOnly". This will be ignored as namespace reexports only reexport named exports. If this is not intended, either remove or change this reexport or change the value of the "output.interop" option.`,url:Ct(Tt)}}function Ln(e){return{code:"VALIDATION_ERROR",message:e}}function Tn(e,t,n,s,i){!function(e,t,n,s,i,r){if(n||i){const n=function(e,t,n){return{code:"DEPRECATED_FEATURE",message:e,url:Ct(t),...n?{plugin:n}:{}}}(e,t,r);if(i)return Ut(n);s(bt,n)}}(e,t,n,s.onLog,s.strictDeprecations,i)}const Bn="ArrowFunctionExpression",zn="BlockStatement",Fn="CallExpression",Vn="ExportDefaultDeclaration",jn="ExpressionStatement",Un="FunctionExpression",Gn="Identifier",Hn="MemberExpression",Wn="PanicError",qn="ParseError",Kn="Program",Xn="Property",Jn="StaticBlock",Yn={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["decorators","id","superClass","body"],ClassExpression:["decorators","id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],Decorator:["expression"],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["specifiers","source","attributes","declaration"],ExportSpecifier:["local","exported"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["decorators","key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PanicError:[],ParseError:[],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["decorators","key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],YieldExpression:["argument"]};function Zn(){return{brokenFlow:!1,hasBreak:!1,hasContinue:!1,includedCallArguments:new Set,includedLabels:new Set}}function Qn(){return{accessed:new je,assigned:new je,brokenFlow:!1,called:new Ge,hasBreak:!1,hasContinue:!1,ignore:{breaks:!1,continues:!1,labels:new Set,returnYield:!1,this:!1},includedLabels:new Set,instantiated:new Ge,replacedVariableInits:new Map}}const es="variables",ts=Symbol("IS_SKIPPED_CHAIN");class ns extends et{get deoptimized(){return Xe(this.flags,2)}set deoptimized(e){this.flags=Je(this.flags,2,e)}constructor(e,t){super(),this.parent=e,this.scope=t,this.createScope(t)}addExportedVariables(e,t){}bind(){for(const e of Yn[this.type]){const t=this[e];if(Array.isArray(t))for(const e of t)e?.bind();else t&&t.bind()}}createScope(e){this.scope=e}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const t of Yn[this.type]){const n=this[t];if(null!==n)if(Array.isArray(n)){for(const t of n)if(t?.hasEffects(e))return!0}else if(n.hasEffects(e))return!0}return!1}hasEffectsAsAssignmentTarget(e,t){return this.hasEffects(e)||this.hasEffectsOnInteractionAtPath(Le,this.assignmentInteraction,e)}include(e,t,n){this.included||this.includeNode(e);for(const n of Yn[this.type]){const s=this[n];if(null!==s)if(Array.isArray(s))for(const n of s)n?.include(e,t);else s.include(e,t)}}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(const t of Yn[this.type]){const n=this[t];if(null!==n)if(Array.isArray(n))for(const t of n)t?.includePath(Te,e);else n.includePath(Te,e)}}includeAsAssignmentTarget(e,t,n){this.include(e,t)}initialise(){this.scope.context.magicString.addSourcemapLocation(this.start),this.scope.context.magicString.addSourcemapLocation(this.end)}removeAnnotations(e){if(this.annotations)for(const t of this.annotations)e.remove(t.start,t.end)}render(e,t){for(const n of Yn[this.type]){const s=this[n];if(null!==s)if(Array.isArray(s))for(const n of s)n?.render(e,t);else s.render(e,t)}}setAssignedValue(e){this.assignmentInteraction={args:[null,e],type:1}}shouldBeIncluded(e){return this.included||!e.brokenFlow&&this.hasEffects(Qn())}applyDeoptimizations(){this.deoptimized=!0;for(const e of Yn[this.type]){const t=this[e];if(null!==t)if(Array.isArray(t))for(const e of t)e?.deoptimizePath(Te);else t.deoptimizePath(Te)}this.scope.context.requestTreeshakingPass()}}function ss(){this.included=!0,this.deoptimized||this.applyDeoptimizations()}function is(){this.included=!0}function rs(){this.deoptimized=!0}function os(e){return e instanceof ns&&e.type===Bn}function as(e){return e instanceof ns&&e.type===Un}function ls(e){return e instanceof ns&&e.type===Gn}const cs=(e,t)=>{const{length:n}=e,{length:s}=t;return 0===n?t:0===s?e:n+s>6?[...e,...t.slice(0,5-e.length),"UnknownKey"]:[...e,...t]};class us extends et{markReassigned(){this.isReassigned=!0}markTargetOfAssignment(){this.isTargetOfAssignment=!0}constructor(e){super(),this.name=e,this.alwaysRendered=!1,this.forbiddenNames=null,this.globalName=null,this.initReached=!1,this.isId=!1,this.kind=null,this.renderBaseName=null,this.renderName=null,this.isReassigned=!1,this.isTargetOfAssignment=!1,this.onlyFunctionCallUsed=!0}addReference(e){}getOnlyFunctionCallUsed(){return this.onlyFunctionCallUsed}addUsedPlace(e){e.parent.type===Fn&&e.parent.callee===e||e.parent.type===Vn||(this.onlyFunctionCallUsed=!1)}forbidName(e){(this.forbiddenNames||=new Set).add(e)}getBaseVariableName(){return this.renderedLikeHoisted?.getBaseVariableName()||this.renderBaseName||this.renderName||this.name}getName(e,t){if(this.globalName)return this.globalName;if(t?.(this))return this.name;if(this.renderedLikeHoisted)return this.renderedLikeHoisted.getName(e,t);const n=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${e(n)}`:n}hasEffectsOnInteractionAtPath(e,{type:t},n){return 0!==t||e.length>0}includePath(e,t){this.included=!0,this.renderedLikeHoisted?.includePath(e,t)}renderLikeHoisted(e){this.renderedLikeHoisted=e}markCalledFromTryStatement(){}addReassignedValue(e){}setRenderNames(e,t){this.renderBaseName=e,this.renderName=t}}class ds extends us{constructor(e,t,n,s,i,r){super(e),this.init=n,this.initPath=s,this.kind=r,this.calledFromTryStatement=!1,this.additionalInitializers=null,this.assignedFunctions=null,this.includedPathTracker=new We,this.expressionsToBeDeoptimized=[],this.declarations=t?[t]:[],this.deoptimizationTracker=i.deoptimizationTracker,this.module=i.module}addDeclaration(e,t){this.declarations.push(e),this.markInitializersForDeoptimization().push(t)}consolidateInitializers(){if(this.additionalInitializers)for(const e of this.additionalInitializers)e.deoptimizePath(Te)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.isReassigned||t.length+this.initPath.length>6?st(e):n.withTrackedEntityAtPath(t,this.init,()=>{this.init.deoptimizeArgumentsOnInteractionAtPath(e,[...this.initPath,...t],n)},void 0)}deoptimizePath(e){if(!this.isReassigned&&!this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(e,this))if(0===e.length){this.markReassigned();const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=Ee;for(const t of e)t.deoptimizeCache();this.init.deoptimizePath([...this.initPath,Pe])}else this.init.deoptimizePath(cs(this.initPath,e))}getLiteralValueAtPath(e,t,n){return this.isReassigned||e.length+this.initPath.length>6?Ye:t.withTrackedEntityAtPath(e,this.init,()=>(this.expressionsToBeDeoptimized.push(n),this.init.getLiteralValueAtPath([...this.initPath,...e],t,n)),Ye)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.isReassigned||e.length+this.initPath.length>6?nt:n.withTrackedEntityAtPath(e,this.init,()=>(this.expressionsToBeDeoptimized.push(s),this.init.getReturnExpressionWhenCalledAtPath([...this.initPath,...e],t,n,s)),nt)}hasEffectsOnInteractionAtPath(e,t,n){if(e.length+this.initPath.length>6)return!0;switch(t.type){case 0:return!!this.isReassigned||!n.accessed.trackEntityAtPathAndGetIfTracked(e,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],t,n);case 1:return!!this.included||0!==e.length&&(!!this.isReassigned||!n.assigned.trackEntityAtPathAndGetIfTracked(e,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],t,n));case 2:return!!this.isReassigned||!(t.withNew?n.instantiated:n.called).trackEntityAtPathAndGetIfTracked(e,t.args,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],t,n)}}includePath(e,t){if(!this.includedPathTracker.includePathAndGetIfIncluded(e)){this.module.scope.context.requestTreeshakingPass(),this.included||this.module.scope.context.newlyIncludedVariableInits.add(this.init),super.includePath(e,t);for(const e of this.declarations){e.included||e.include(t,!1);let n=e.parent;for(;!n.included&&(n.includeNode(t),n.type!==Kn);)n=n.parent}e.length>0&&(this.init.includePath(cs(this.initPath,e),t),this.additionalInitializers?.forEach(e=>e.includePath(Te,t)))}}includeCallArgumentsWhenCalledAtPath(e,t,n){if(this.isReassigned)return it(t,n),void(0===e.length&&this.includeCallArgumentsOfAssignedTryCatchHelpers(t,n));n.includedCallArguments.has(this.init)||e.length+this.initPath.length>6?it(t,n):(n.includedCallArguments.add(this.init),this.init.includeCallArgumentsWhenCalledAtPath([...this.initPath,...e],t,n),n.includedCallArguments.delete(this.init))}includeCallArgumentsOfAssignedTryCatchHelpers(e,t){0===this.initPath.length&&this.includeCallArgumentsOfTryCatchHelper(this.init,e,t);for(const n of this.assignedFunctions??Ee)this.includeCallArgumentsOfTryCatchHelper(n,e,t)}includeCallArgumentsOfTryCatchHelper(e,t,n){(os(e)||as(e))&&e.scope.hasParameterCalledFromTryStatement()&&e.scope.includeCallArguments(t,n)}addReassignedValue(e){(os(e)||as(e))&&(this.assignedFunctions??=[]).push(e)}markCalledFromTryStatement(){this.calledFromTryStatement=!0}markInitializersForDeoptimization(){return null===this.additionalInitializers&&(this.additionalInitializers=[this.init],this.init=tt,this.markReassigned()),this.additionalInitializers}}class hs{constructor(){this.children=[],this.variables=new Map}addDeclaration(e,t,n,s,i){const r=e.name,o=this.hoistedVariables?.get(r)||this.variables.get(r);if(o){if("var"===i&&"var"===o.kind)return o.addDeclaration(e,n),o;t.error(kn(r),e.start)}const a=new ds(e.name,e,n,s,t,i);return this.variables.set(r,a),a}addHoistedVariable(e,t){(this.hoistedVariables||=new Map).set(e,t)}contains(e){return this.variables.has(e)}findVariable(e){throw new Error("Internal Error: findVariable needs to be implemented by a subclass")}}class ps extends hs{constructor(e,t){super(),this.parent=e,this.context=t,this.accessedOutsideVariables=new Map,e.children.push(this)}addAccessedDynamicImport(e){(this.accessedDynamicImports||(this.accessedDynamicImports=new Set)).add(e),this.parent instanceof ps&&this.parent.addAccessedDynamicImport(e)}addAccessedGlobals(e,t){const n=t.get(this)||new Set;for(const t of e)n.add(t);t.set(this,n),this.parent instanceof ps&&this.parent.addAccessedGlobals(e,t)}addNamespaceMemberAccess(e,t){this.accessedOutsideVariables.set(e,t),this.parent.addNamespaceMemberAccess(e,t)}addReturnExpression(e){this.parent instanceof ps&&this.parent.addReturnExpression(e)}addUsedOutsideNames(e,t,n,s){for(const s of this.accessedOutsideVariables.values())s.included&&(e.add(s.getBaseVariableName()),"system"===t&&n.has(s)&&e.add("exports"));const i=s.get(this);if(i)for(const t of i)e.add(t)}contains(e){return this.variables.has(e)||this.parent.contains(e)}deconflict(e,t,n){const s=new Set;if(this.addUsedOutsideNames(s,e,t,n),this.accessedDynamicImports)for(const e of this.accessedDynamicImports)e.inlineNamespace&&s.add(e.inlineNamespace.getBaseVariableName());for(const[e,t]of this.variables)(t.included||t.alwaysRendered)&&t.setRenderNames(null,dt(e,s,t.forbiddenNames));for(const s of this.children)s.deconflict(e,t,n)}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findGlobal(e){const t=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,t),t}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const n=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,n),n}}function fs(e,t){for(const n of e)if(n.hasEffects(t))return!0;return!1}function ms(e,t){if("MemberExpression"===e.type)return!e.computed&&ms(e.object,e);if("Identifier"!==e.type)return!1;switch(t?.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"MetaProperty":return t.meta===e;case"PropertyDefinition":case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}const gs=Symbol("PureFunction"),ys="*source";class bs extends us{constructor(e,t){super(t),this.referenced=!1,this.module=e,this.isNamespace="*"===t,this.isSourcePhase=t===ys}addReference(e){this.referenced=!0,"default"!==this.name&&"*"!==this.name||this.module.suggestName(e.name)}hasEffectsOnInteractionAtPath(e,{type:t}){return 0!==t||e.length>(this.isNamespace?1:0)}includePath(e,t){super.includePath(e,t),this.module.used=!0}}function Es(e,t){for(const n of t){const t=Object.getOwnPropertyDescriptor(e,n).get;Object.defineProperty(e,n,{get(){const s=t.call(e);return Object.defineProperty(e,n,{value:s}),s}})}}const xs=/[^\w$]/g,vs=/[^\w$]/,As=e=>(e=>/\d/.test(e[0]))(e)||ct.has(e)||"arguments"===e;function Ss(e){return e=e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()).replace(xs,"_"),As(e)&&(e=`_${e}`),e||"_"}const Ps=/^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u,$s=/^(?:0|[1-9]\d*)$/;function ws(e){return Ps.test(e)?"__proto__"===e?'["__proto__"]':e:$s.test(e)&&+e<=Number.MAX_SAFE_INTEGER?e:JSON.stringify(e)}function Is(e){return Ps.test(e)?e:JSON.stringify(e)}class Cs{constructor(e,t,n,s,i,r,o){this.options=e,this.id=t,this.rawId=n,this.renormalizeRenderPath=r,this.dynamicImporters=[],this.execIndex=1/0,this.exportedVariables=new Map,this.importers=[],this.reexported=!1,this.used=!1,this.declarations=new Map,this.importersByExportedName=new Map,this.mostCommonSuggestion=0,this.nameSuggestions=new Map;const a=new URLSearchParams(o);a.sort();const l=a.toString(),c=l?`?${l}`:"";this.suggestedVariableName=Ss(`${n.split(/[/\\]/).pop()}${c}`);const{importers:u,dynamicImporters:d}=this;this.info={ast:null,attributes:o,code:null,dynamicallyImportedIdResolutions:Ee,dynamicallyImportedIds:Ee,get dynamicImporters(){return d.sort()},exportedBindings:null,exports:null,hasDefaultExport:null,id:t,implicitlyLoadedAfterOneOf:Ee,implicitlyLoadedBefore:Ee,importedIdResolutions:Ee,importedIds:Ee,get importers(){return u.sort()},isEntry:!1,isExternal:!0,isIncluded:null,meta:i,moduleSideEffects:s,rawId:n,safeVariableNames:null,syntheticNamedExports:!1}}cacheInfoGetters(){Es(this.info,["dynamicImporters","importers"])}getVariableForExportName(e,{importChain:t}){const n=this.declarations.get(e);for(const n of t)ve(this.importersByExportedName,e,Ae).add(n);if(n)return[n];const s=new bs(this,e);return this.declarations.set(e,s),this.exportedVariables.set(s,e),[s]}suggestName(e){const t=(this.nameSuggestions.get(e)??0)+1;this.nameSuggestions.set(e,t),t>this.mostCommonSuggestion&&(this.mostCommonSuggestion=t,this.suggestedVariableName=e)}warnUnusedImports(){const e=[...this.declarations].filter(([e,t])=>"*"!==e&&!t.included&&!this.reexported&&!t.referenced).map(([e])=>e);if(0===e.length)return;const t=new Set;for(const n of e){const e=this.importersByExportedName.get(n);for(const n of this.importers)e?.has(n)&&t.add(n)}const n=[...t];var s,i,r;this.options.onLog(bt,{code:"UNUSED_EXTERNAL_IMPORT",exporter:s=this.id,ids:r=n,message:`${At(i=e,["is","are"])} imported from external module "${s}" but never used in ${At(r.map(e=>Pt(e)))}.`,names:i})}}function ks(e){e.isExecuted=!0;const t=[e],n=new Set;for(const e of t)for(const s of[...e.dependencies,...e.implicitlyLoadedBefore])s instanceof Cs||s.isExecuted||!s.info.moduleSideEffects&&!e.implicitlyLoadedBefore.has(s)||n.has(s.id)||(s.isExecuted=!0,n.add(s.id),t.push(s))}const Ns=()=>{};function Os(e,t=null){return Object.create(t,e)}const Rs=new class extends et{getLiteralValueAtPath(e){return e.length>0?Ye:void 0}},Ds={value:{hasEffectsWhenCalled:null,returns:tt}},Ms=new class extends et{getReturnExpressionWhenCalledAtPath(e){return 1===e.length?qs(js,e[0]):nt}hasEffectsOnInteractionAtPath(e,t,n){return 0===t.type?e.length>1:2!==t.type||1!==e.length||Ws(js,e[0],t,n)}},_s={value:{hasEffectsWhenCalled:null,returns:Ms}},Ls=new class extends et{getReturnExpressionWhenCalledAtPath(e){return 1===e.length?qs(Us,e[0]):nt}hasEffectsOnInteractionAtPath(e,t,n){return 0===t.type?e.length>1:2!==t.type||1!==e.length||Ws(Us,e[0],t,n)}},Ts={value:{hasEffectsWhenCalled:null,returns:Ls}},Bs=new class extends et{getReturnExpressionWhenCalledAtPath(e){return 1===e.length?qs(Hs,e[0]):nt}hasEffectsOnInteractionAtPath(e,t,n){return 0===t.type?e.length>1:2!==t.type||1!==e.length||Ws(Hs,e[0],t,n)}},zs={value:{hasEffectsWhenCalled:null,returns:Bs}},Fs={value:{hasEffectsWhenCalled({args:e},t){const n=e[2];return e.length<3||"symbol"==typeof n.getLiteralValueAtPath(Le,Ue,{deoptimizeCache(){}})&&n.hasEffectsOnInteractionAtPath(Le,lt,t)},returns:Bs}},Vs=Os({hasOwnProperty:_s,isPrototypeOf:_s,propertyIsEnumerable:_s,toLocaleString:zs,toString:zs,valueOf:Ds}),js=Os({valueOf:_s},Vs),Us=Os({toExponential:zs,toFixed:zs,toLocaleString:zs,toPrecision:zs,valueOf:Ts},Vs),Gs=Os({exec:Ds,test:_s},Vs),Hs=Os({anchor:zs,at:Ds,big:zs,blink:zs,bold:zs,charAt:zs,charCodeAt:Ts,codePointAt:Ds,concat:zs,endsWith:_s,fixed:zs,fontcolor:zs,fontsize:zs,includes:_s,indexOf:Ts,italics:zs,lastIndexOf:Ts,link:zs,localeCompare:Ts,match:Ds,matchAll:Ds,normalize:zs,padEnd:zs,padStart:zs,repeat:zs,replace:Fs,replaceAll:Fs,search:Ts,slice:zs,small:zs,split:Ds,startsWith:_s,strike:zs,sub:zs,substr:zs,substring:zs,sup:zs,toLocaleLowerCase:zs,toLocaleUpperCase:zs,toLowerCase:zs,toString:zs,toUpperCase:zs,trim:zs,trimEnd:zs,trimLeft:zs,trimRight:zs,trimStart:zs,valueOf:zs},Vs);function Ws(e,t,n,s){return"string"!=typeof t||!e[t]||(e[t].hasEffectsWhenCalled?.(n,s)||!1)}function qs(e,t){return"string"==typeof t&&e[t]?[e[t].returns,!1]:nt}class Ks extends et{constructor(e){super(),this.description=e}deoptimizeArgumentsOnInteractionAtPath({args:e,type:t},n){if(2===t&&0===n.length&&(this.description.mutatesSelfAsArray&&e[0]?.deoptimizePath(ze),this.description.mutatesArgs))for(let t=1;t<e.length;t++)e[t].deoptimizePath(Te)}getReturnExpressionWhenCalledAtPath(e,{args:t}){return e.length>0?nt:[this.description.returnsPrimitive||("self"===this.description.returns?t[0]||tt:this.description.returns()),!1]}hasEffectsOnInteractionAtPath(e,{args:t,type:n},s){if(e.length>(0===n?1:0))return!0;if(2===n){if(!0===this.description.mutatesSelfAsArray&&t[0]?.hasEffectsOnInteractionAtPath(ze,at,s))return!0;if(this.description.callsArgs)for(const e of this.description.callsArgs)if(t[e+1]?.hasEffectsOnInteractionAtPath(Le,lt,s))return!0}return!1}}const Xs=[new Ks({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Ms})],Js=[new Ks({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Bs})],Ys=[new Ks({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Ls})],Zs=[new Ks({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:tt})],Qs=/^\d+$/;class ei extends et{get hasLostTrack(){return Xe(this.flags,2048)}set hasLostTrack(e){this.flags=Je(this.flags,2048,e)}get hasUnknownDeoptimizedInteger(){return Xe(this.flags,4096)}set hasUnknownDeoptimizedInteger(e){this.flags=Je(this.flags,4096,e)}get hasUnknownDeoptimizedProperty(){return Xe(this.flags,8192)}set hasUnknownDeoptimizedProperty(e){this.flags=Je(this.flags,8192,e)}constructor(e,t,n=!1){if(super(),this.prototypeExpression=t,this.immutable=n,this.additionalExpressionsToBeDeoptimized=new Set,this.allProperties=[],this.alwaysIncludedProperties=new Set,this.deoptimizedPaths=new Map,this.expressionsToBeDeoptimizedByKey=new Map,this.gettersByKey=new Map,this.propertiesAndGettersByKey=new Map,this.propertiesAndSettersByKey=new Map,this.settersByKey=new Map,this.unknownIntegerProps=[],this.unmatchableGetters=[],this.unmatchablePropertiesAndGetters=[],this.unmatchablePropertiesAndSetters=[],this.unmatchableSetters=[],Array.isArray(e))this.buildPropertyMaps(e);else{this.propertiesAndGettersByKey=this.propertiesAndSettersByKey=e;for(const t of e.values())this.allProperties.push(...t)}}deoptimizeAllProperties(e){const t=this.hasLostTrack||this.hasUnknownDeoptimizedProperty;if(e?this.hasUnknownDeoptimizedProperty=!0:this.hasLostTrack=!0,!t){for(const e of[...this.propertiesAndGettersByKey.values(),...this.settersByKey.values()])for(const t of e)t.deoptimizePath(Te);this.prototypeExpression?.deoptimizePath([Pe,Pe]),this.deoptimizeCachedEntities()}}deoptimizeArgumentsOnInteractionAtPath(e,t,n){const[s,...i]=t,{args:r,type:o}=e;if(this.hasLostTrack||(2===o||t.length>1)&&(this.hasUnknownDeoptimizedProperty||_e(s)&&this.deoptimizedPaths.get(s)))return void st(e);const[a,l,c]=2===o||t.length>1?[this.propertiesAndGettersByKey,this.propertiesAndGettersByKey,this.unmatchablePropertiesAndGetters]:0===o?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(_e(s)){if(a.get(s)){const t=l.get(s);if(t)for(const s of t)s.deoptimizeArgumentsOnInteractionAtPath(e,i,n);if(!this.immutable)for(const e of r)e&&this.additionalExpressionsToBeDeoptimized.add(e);return}for(const t of c)t.deoptimizeArgumentsOnInteractionAtPath(e,i,n);if("string"==typeof s&&Qs.test(s))for(const t of this.unknownIntegerProps)t.deoptimizeArgumentsOnInteractionAtPath(e,i,n)}else{for(const t of[...l.values(),c])for(const s of t)s.deoptimizeArgumentsOnInteractionAtPath(e,i,n);for(const t of this.unknownIntegerProps)t.deoptimizeArgumentsOnInteractionAtPath(e,i,n)}if(!this.immutable)for(const e of r)e&&this.additionalExpressionsToBeDeoptimized.add(e);this.prototypeExpression?.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeIntegerProperties(){if(!(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||this.hasUnknownDeoptimizedInteger)){this.hasUnknownDeoptimizedInteger=!0;for(const[e,t]of this.propertiesAndGettersByKey.entries())if("string"==typeof e&&Qs.test(e))for(const e of t)e.deoptimizePath(Te);this.deoptimizeCachedIntegerEntities()}}deoptimizePath(e){if(this.hasLostTrack||this.immutable)return;const t=e[0];if(1===e.length){if(t===we)return this.deoptimizeIntegerProperties();if(!_e(t))return this.deoptimizeAllProperties(t===$e);if(!this.deoptimizedPaths.get(t)){this.deoptimizedPaths.set(t,!0);const e=this.expressionsToBeDeoptimizedByKey.get(t);if(e)for(const t of e)t.deoptimizeCache()}}const n=1===e.length?Te:e.slice(1);for(const e of _e(t)?[...this.propertiesAndGettersByKey.get(t)||this.unmatchablePropertiesAndGetters,...this.settersByKey.get(t)||this.unmatchableSetters]:this.allProperties)e.deoptimizePath(n);this.prototypeExpression?.deoptimizePath(1===e.length?[e[0],Pe]:e)}getLiteralValueAtPath(e,t,n){if(0===e.length)return Ye;const s=e[0],i=this.getMemberExpressionAndTrackDeopt(s,n);return i?i.getLiteralValueAtPath(e.slice(1),t,n):this.prototypeExpression?this.prototypeExpression.getLiteralValueAtPath(e,t,n):1!==e.length?Ye:void 0}getReturnExpressionWhenCalledAtPath(e,t,n,s){if(0===e.length)return nt;const[i,...r]=e,o=this.getMemberExpressionAndTrackDeopt(i,s);return o?o.getReturnExpressionWhenCalledAtPath(r,t,n,s):this.prototypeExpression?this.prototypeExpression.getReturnExpressionWhenCalledAtPath(e,t,n,s):nt}hasEffectsOnInteractionAtPath(e,t,n){const[s,...i]=e;if(i.length>0||2===t.type){const r=this.getMemberExpression(s);return r?r.hasEffectsOnInteractionAtPath(i,t,n):!this.prototypeExpression||this.prototypeExpression.hasEffectsOnInteractionAtPath(e,t,n)}if(s===$e)return!1;if(this.hasLostTrack)return!0;const[r,o,a]=0===t.type?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(_e(s)){if(r.get(s)){const e=o.get(s);if(e)for(const s of e)if(s.hasEffectsOnInteractionAtPath(i,t,n))return!0;return!1}for(const e of a)if(e.hasEffectsOnInteractionAtPath(i,t,n))return!0}else for(const e of[...o.values(),a])for(const s of e)if(s.hasEffectsOnInteractionAtPath(i,t,n))return!0;return!!this.prototypeExpression&&this.prototypeExpression.hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included=!0;for(const n of this.allProperties)(t||n.shouldBeIncluded(e)||this.alwaysIncludedProperties.has(n))&&n.include(e,t);this.prototypeExpression?.include(e,t)}includePath(e,t){this.included=!0;for(const e of this.alwaysIncludedProperties)e.includePath(Te,t);if(0===e.length)return;const[n,...s]=e,[i,r]=_e(n)?[new Set([...this.propertiesAndGettersByKey.get(n)||this.unmatchablePropertiesAndGetters,...this.propertiesAndSettersByKey.get(n)||this.unmatchablePropertiesAndSetters]),s]:[this.allProperties,Te];for(const e of i)e.includePath(r,t);this.prototypeExpression?.includePath(e,t)}includeCallArgumentsWhenCalledAtPath(e,t,n){const[s,...i]=e;if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||!_e(s)||this.deoptimizedPaths.get(s)||"string"==typeof s&&Qs.test(s)&&this.hasUnknownDeoptimizedInteger)return void it(t,n);const r=this.propertiesAndGettersByKey.get(s);if(void 0===r)this.unmatchablePropertiesAndGetters.length>0||"string"==typeof s&&Qs.test(s)&&this.unknownIntegerProps.length>0||!this.prototypeExpression?it(t,n):this.prototypeExpression.includeCallArgumentsWhenCalledAtPath(e,t,n);else{t.args[0]?.includePath(Te,n);for(const e of r)e.includeCallArgumentsWhenCalledAtPath(i,t,n)}}buildPropertyMaps(e){const{allProperties:t,alwaysIncludedProperties:n,propertiesAndGettersByKey:s,propertiesAndSettersByKey:i,settersByKey:r,gettersByKey:o,unknownIntegerProps:a,unmatchablePropertiesAndGetters:l,unmatchablePropertiesAndSetters:c,unmatchableGetters:u,unmatchableSetters:d}=this;for(let h=e.length-1;h>=0;h--){const{key:p,kind:f,property:m}=e[h];if(t.push(m),!De(p)||Me.has(p)||(n.add(m),p!==Ie))if(_e(p))"set"===f?i.has(p)||(i.set(p,[m,...c]),r.set(p,[m,...d])):"get"===f?s.has(p)||(s.set(p,[m,...l]),o.set(p,[m,...u])):(i.has(p)||i.set(p,[m,...c]),s.has(p)||s.set(p,[m,...l]));else{if(p===we){a.push(m);continue}"set"===f&&d.push(m),"get"===f&&u.push(m),"get"!==f&&c.push(m),"set"!==f&&l.push(m)}}}deoptimizeCachedEntities(){for(const e of this.expressionsToBeDeoptimizedByKey.values())for(const t of e)t.deoptimizeCache();for(const e of this.additionalExpressionsToBeDeoptimized)e.deoptimizePath(Te)}deoptimizeCachedIntegerEntities(){for(const[e,t]of this.expressionsToBeDeoptimizedByKey.entries())if("string"==typeof e&&Qs.test(e))for(const e of t)e.deoptimizeCache();for(const e of this.additionalExpressionsToBeDeoptimized)e.deoptimizePath(ze)}getMemberExpression(e){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||!_e(e)||this.hasUnknownDeoptimizedInteger&&"string"==typeof e&&Qs.test(e)||this.deoptimizedPaths.get(e))return tt;const t=this.propertiesAndGettersByKey.get(e);return 1===t?.length?t[0]:t||this.unmatchablePropertiesAndGetters.length>0||this.unknownIntegerProps.length>0&&"string"==typeof e&&Qs.test(e)?tt:null}getMemberExpressionAndTrackDeopt(e,t){if(!_e(e))return tt;const n=this.getMemberExpression(e);if(n!==tt&&!this.immutable){let n=this.expressionsToBeDeoptimizedByKey.get(e);n||this.expressionsToBeDeoptimizedByKey.set(e,n=[]),n.push(t)}return n}}const ti=e=>"string"==typeof e&&/^\d+$/.test(e),ni=new class extends et{deoptimizeArgumentsOnInteractionAtPath(e,t){2!==e.type||1!==t.length||ti(t[0])||st(e)}getLiteralValueAtPath(e){return 1===e.length&&ti(e[0])?void 0:Ye}hasEffectsOnInteractionAtPath(e,{type:t}){return e.length>1||2===t}},si=new ei(new Map([["hasOwnProperty",Xs],["isPrototypeOf",Xs],["propertyIsEnumerable",Xs],["toLocaleString",Js],["toString",Js],["valueOf",Zs]]),ni,!0),ii=[{key:we,kind:"init",property:tt},{key:"length",kind:"init",property:Ls}],ri=[new Ks({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Ms})],oi=[new Ks({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Ls})],ai=[new Ks({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:()=>new ei(ii,gi),returnsPrimitive:null})],li=[new Ks({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:()=>new ei(ii,gi),returnsPrimitive:null})],ci=[new Ks({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:()=>new ei(ii,gi),returnsPrimitive:null})],ui=[new Ks({callsArgs:null,mutatesArgs:!0,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:Ls})],di=[new Ks({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:tt})],hi=[new Ks({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:tt})],pi=[new Ks({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:tt})],fi=[new Ks({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],mi=[new Ks({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],gi=new ei(new Map([["at",hi],["concat",li],["copyWithin",fi],["entries",li],["every",ri],["fill",fi],["filter",ci],["find",pi],["findIndex",oi],["findLast",pi],["findLastIndex",oi],["flat",li],["flatMap",ci],["forEach",pi],["includes",Xs],["indexOf",Ys],["join",Js],["keys",Zs],["lastIndexOf",Ys],["map",ci],["pop",di],["push",ui],["reduce",pi],["reduceRight",pi],["reverse",fi],["shift",di],["slice",li],["some",ri],["sort",mi],["splice",ai],["toLocaleString",Js],["toString",Js],["unshift",ui],["values",hi]]),si,!0);class yi extends ns{deoptimizeArgumentsOnInteractionAtPath(e,t,n){t.length>0&&this.argument.deoptimizeArgumentsOnInteractionAtPath(e,Te,n)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();const{propertyReadSideEffects:t}=this.scope.context.options.treeshake;return this.argument.hasEffects(e)||t&&("always"===t||this.argument.hasEffectsOnInteractionAtPath(Te,ot,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument.includePath(Te,e)}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath([Pe,Pe]),this.scope.context.requestTreeshakingPass()}}class bi extends ns{constructor(){super(...arguments),this.objectEntity=null}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.getObjectEntity().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,t,n,s)}hasEffectsOnInteractionAtPath(e,t,n){return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,t,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(const t of this.elements)t&&t?.includePath(Te,e)}applyDeoptimizations(){this.deoptimized=!0;let e=!1;for(let t=0;t<this.elements.length;t++){const n=this.elements[t];n&&(e||n instanceof yi)&&(e=!0,n.deoptimizePath(Te))}this.scope.context.requestTreeshakingPass()}getObjectEntity(){if(null!==this.objectEntity)return this.objectEntity;const e=[{key:"length",kind:"init",property:Ls}];let t=!1;for(let n=0;n<this.elements.length;n++){const s=this.elements[n];t||s instanceof yi?s&&(t=!0,e.unshift({key:we,kind:"init",property:s})):s?e.push({key:String(n),kind:"init",property:s}):e.push({key:String(n),kind:"init",property:Rs})}return this.objectEntity=new ei(e,gi)}}const Ei=Symbol("Value Properties"),xi=()=>Ye,vi=()=>!1,Ai=()=>!0,Si=e=>({__proto__:null,[Ei]:{deoptimizeArgumentsOnCall:Ns,getLiteralValue:()=>e,hasEffectsWhenCalled:Ai}}),Pi={deoptimizeArgumentsOnCall:Ns,getLiteralValue:xi,hasEffectsWhenCalled:vi},$i={deoptimizeArgumentsOnCall:Ns,getLiteralValue:xi,hasEffectsWhenCalled:Ai},wi={deoptimizeArgumentsOnCall:Ns,getLiteralValue:xi,hasEffectsWhenCalled:({args:e})=>e.length>1&&!(e[1]instanceof bi)},Ii={deoptimizeArgumentsOnCall:Ns,getLiteralValue:xi,hasEffectsWhenCalled({args:e}){const[t,n]=e;return void 0!==n&&!(n instanceof bi)&&"number"!=typeof n.getLiteralValueAtPath(Le,Ue,{deoptimizeCache:Ns})}},Ci={deoptimizeArgumentsOnCall:Ns,getLiteralValue:xi,hasEffectsWhenCalled({args:e},t){const[n,s]=e;return!(s instanceof et)||s.hasEffectsOnInteractionAtPath(Te,ot,t)}},ki={__proto__:null,[Ei]:$i},Ni={__proto__:null,[Ei]:Pi},Oi={__proto__:null,[Ei]:Ci},Ri={__proto__:null,[Ei]:{deoptimizeArgumentsOnCall({args:[,e]}){e?.deoptimizePath(Te)},getLiteralValue:xi,hasEffectsWhenCalled:({args:e},t)=>e.length<=1||e[1].hasEffectsOnInteractionAtPath(Be,at,t)}},Di={__proto__:null,[Ei]:$i,prototype:ki},Mi={__proto__:null,[Ei]:Pi,prototype:ki},_i={__proto__:null,[Ei]:wi,prototype:ki},Li={__proto__:null,[Ei]:Ii,from:ki,of:Ni,prototype:ki},Ti={__proto__:null,[Ei]:Pi,supportedLocalesOf:Mi},Bi={deoptimizeArgumentsOnCall:Ns,getLiteralValue:()=>Ie,hasEffectsWhenCalled:Ai},zi={global:ki,globalThis:ki,self:ki,window:ki,__proto__:null,[Ei]:$i,Array:{__proto__:null,[Ei]:$i,from:ki,isArray:Ni,of:Ni,prototype:ki},ArrayBuffer:{__proto__:null,[Ei]:Pi,isView:Ni,prototype:ki},AggregateError:_i,Atomics:ki,BigInt:Di,BigInt64Array:Di,BigUint64Array:Di,Boolean:Mi,constructor:Di,DataView:Mi,Date:{__proto__:null,[Ei]:Pi,now:Ni,parse:Ni,prototype:ki,UTC:Ni},decodeURI:Ni,decodeURIComponent:Ni,encodeURI:Ni,encodeURIComponent:Ni,Error:Mi,escape:Ni,eval:ki,EvalError:Mi,FinalizationRegistry:Di,Float32Array:Li,Float64Array:Li,Function:Di,hasOwnProperty:ki,Infinity:ki,Int16Array:Li,Int32Array:Li,Int8Array:Li,isFinite:Ni,isNaN:Ni,isPrototypeOf:ki,JSON:ki,Map:_i,Math:{__proto__:null,[Ei]:$i,abs:Ni,acos:Ni,acosh:Ni,asin:Ni,asinh:Ni,atan:Ni,atan2:Ni,atanh:Ni,cbrt:Ni,ceil:Ni,clz32:Ni,cos:Ni,cosh:Ni,exp:Ni,expm1:Ni,floor:Ni,fround:Ni,hypot:Ni,imul:Ni,log:Ni,log10:Ni,log1p:Ni,log2:Ni,max:Ni,min:Ni,pow:Ni,random:Ni,round:Ni,sign:Ni,sin:Ni,sinh:Ni,sqrt:Ni,tan:Ni,tanh:Ni,trunc:Ni},NaN:ki,Number:{__proto__:null,[Ei]:Pi,isFinite:Ni,isInteger:Ni,isNaN:Ni,isSafeInteger:Ni,parseFloat:Ni,parseInt:Ni,prototype:ki},Object:{__proto__:null,[Ei]:Pi,create:Ni,defineProperty:Ri,defineProperties:Ri,freeze:Ri,getOwnPropertyDescriptor:Ni,getOwnPropertyDescriptors:Ni,getOwnPropertyNames:Ni,getOwnPropertySymbols:Ni,getPrototypeOf:Ni,hasOwn:Ni,is:Ni,isExtensible:Ni,isFrozen:Ni,isSealed:Ni,keys:Ni,fromEntries:ki,entries:Oi,values:Oi,prototype:ki},parseFloat:Ni,parseInt:Ni,Promise:{__proto__:null,[Ei]:$i,all:ki,allSettled:ki,any:ki,prototype:ki,race:ki,reject:ki,resolve:ki},propertyIsEnumerable:ki,Proxy:{__proto__:null,[Ei]:{deoptimizeArgumentsOnCall:({args:[,e,t]})=>{if((n=t)instanceof ns&&"ObjectExpression"===n.type){if(!t.properties.some(e=>e.type!==Xn)){for(const n of t.properties)n.deoptimizeArgumentsOnInteractionAtPath({args:[null,e],type:2,withNew:!1},Le,Ue);return}}var n;e.deoptimizePath(Te)},getLiteralValue:xi,hasEffectsWhenCalled:Ai}},RangeError:Mi,ReferenceError:Mi,Reflect:ki,RegExp:Mi,Set:_i,SharedArrayBuffer:Di,String:{__proto__:null,[Ei]:Pi,fromCharCode:Ni,fromCodePoint:Ni,prototype:ki,raw:Ni},Symbol:{__proto__:null,[Ei]:Pi,for:Ni,keyFor:Ni,prototype:ki,asyncDispose:Si(Ne),dispose:Si(ke),hasInstance:Si(Oe),toStringTag:Si(Ce)},SyntaxError:Mi,toLocaleString:ki,toString:ki,TypeError:Mi,Uint16Array:Li,Uint32Array:Li,Uint8Array:Li,Uint8ClampedArray:Li,unescape:Ni,URIError:Mi,valueOf:ki,WeakMap:_i,WeakRef:Di,WeakSet:_i,clearInterval:Di,clearTimeout:Di,console:{__proto__:null,[Ei]:$i,assert:Di,clear:Di,count:Di,countReset:Di,debug:Di,dir:Di,dirxml:Di,error:Di,exception:Di,group:Di,groupCollapsed:Di,groupEnd:Di,info:Di,log:Di,table:Di,time:Di,timeEnd:Di,timeLog:Di,trace:Di,warn:Di},Intl:{__proto__:null,[Ei]:$i,Collator:Ti,DateTimeFormat:Ti,DisplayNames:Ti,ListFormat:Ti,Locale:Ti,NumberFormat:Ti,PluralRules:Ti,RelativeTimeFormat:Ti,Segmenter:Ti},setInterval:Di,setTimeout:Di,TextDecoder:Di,TextEncoder:Di,URL:{__proto__:null,[Ei]:$i,prototype:ki,canParse:Ni},URLSearchParams:Di,AbortController:Di,AbortSignal:Di,addEventListener:ki,alert:ki,AnalyserNode:Di,Animation:Di,AnimationEvent:Di,applicationCache:ki,ApplicationCache:Di,ApplicationCacheErrorEvent:Di,atob:ki,Attr:Di,Audio:Di,AudioBuffer:Di,AudioBufferSourceNode:Di,AudioContext:Di,AudioDestinationNode:Di,AudioListener:Di,AudioNode:Di,AudioParam:Di,AudioProcessingEvent:Di,AudioScheduledSourceNode:Di,AudioWorkletNode:Di,BarProp:Di,BaseAudioContext:Di,BatteryManager:Di,BeforeUnloadEvent:Di,BiquadFilterNode:Di,Blob:Di,BlobEvent:Di,blur:ki,BroadcastChannel:Di,btoa:ki,ByteLengthQueuingStrategy:Di,Cache:Di,caches:ki,CacheStorage:Di,cancelAnimationFrame:ki,cancelIdleCallback:ki,CanvasCaptureMediaStreamTrack:Di,CanvasGradient:Di,CanvasPattern:Di,CanvasRenderingContext2D:Di,ChannelMergerNode:Di,ChannelSplitterNode:Di,CharacterData:Di,clientInformation:ki,ClipboardEvent:Di,close:ki,closed:ki,CloseEvent:Di,Comment:Di,CompositionEvent:Di,confirm:ki,ConstantSourceNode:Di,ConvolverNode:Di,CountQueuingStrategy:Di,createImageBitmap:ki,Credential:Di,CredentialsContainer:Di,crypto:ki,Crypto:Di,CryptoKey:Di,CSS:Di,CSSConditionRule:Di,CSSFontFaceRule:Di,CSSGroupingRule:Di,CSSImportRule:Di,CSSKeyframeRule:Di,CSSKeyframesRule:Di,CSSMediaRule:Di,CSSNamespaceRule:Di,CSSPageRule:Di,CSSRule:Di,CSSRuleList:Di,CSSStyleDeclaration:Di,CSSStyleRule:Di,CSSStyleSheet:Di,CSSSupportsRule:Di,CustomElementRegistry:Di,customElements:ki,CustomEvent:{__proto__:null,[Ei]:{deoptimizeArgumentsOnCall({args:e}){e[2]?.deoptimizePath(["detail"])},getLiteralValue:xi,hasEffectsWhenCalled:vi},prototype:ki},DataTransfer:Di,DataTransferItem:Di,DataTransferItemList:Di,defaultstatus:ki,defaultStatus:ki,DelayNode:Di,DeviceMotionEvent:Di,DeviceOrientationEvent:Di,devicePixelRatio:ki,dispatchEvent:ki,document:ki,Document:Di,DocumentFragment:Di,DocumentType:Di,DOMError:Di,DOMException:Di,DOMImplementation:Di,DOMMatrix:Di,DOMMatrixReadOnly:Di,DOMParser:Di,DOMPoint:Di,DOMPointReadOnly:Di,DOMQuad:Di,DOMRect:Di,DOMRectReadOnly:Di,DOMStringList:Di,DOMStringMap:Di,DOMTokenList:Di,DragEvent:Di,DynamicsCompressorNode:Di,Element:Di,ErrorEvent:Di,Event:Di,EventSource:Di,EventTarget:Di,external:ki,fetch:ki,File:Di,FileList:Di,FileReader:Di,find:ki,focus:ki,FocusEvent:Di,FontFace:Di,FontFaceSetLoadEvent:Di,FormData:Di,frames:ki,GainNode:Di,Gamepad:Di,GamepadButton:Di,GamepadEvent:Di,getComputedStyle:ki,getSelection:ki,HashChangeEvent:Di,Headers:Di,history:ki,History:Di,HTMLAllCollection:Di,HTMLAnchorElement:Di,HTMLAreaElement:Di,HTMLAudioElement:Di,HTMLBaseElement:Di,HTMLBodyElement:Di,HTMLBRElement:Di,HTMLButtonElement:Di,HTMLCanvasElement:Di,HTMLCollection:Di,HTMLContentElement:Di,HTMLDataElement:Di,HTMLDataListElement:Di,HTMLDetailsElement:Di,HTMLDialogElement:Di,HTMLDirectoryElement:Di,HTMLDivElement:Di,HTMLDListElement:Di,HTMLDocument:Di,HTMLElement:Di,HTMLEmbedElement:Di,HTMLFieldSetElement:Di,HTMLFontElement:Di,HTMLFormControlsCollection:Di,HTMLFormElement:Di,HTMLFrameElement:Di,HTMLFrameSetElement:Di,HTMLHeadElement:Di,HTMLHeadingElement:Di,HTMLHRElement:Di,HTMLHtmlElement:Di,HTMLIFrameElement:Di,HTMLImageElement:Di,HTMLInputElement:Di,HTMLLabelElement:Di,HTMLLegendElement:Di,HTMLLIElement:Di,HTMLLinkElement:Di,HTMLMapElement:Di,HTMLMarqueeElement:Di,HTMLMediaElement:Di,HTMLMenuElement:Di,HTMLMetaElement:Di,HTMLMeterElement:Di,HTMLModElement:Di,HTMLObjectElement:Di,HTMLOListElement:Di,HTMLOptGroupElement:Di,HTMLOptionElement:Di,HTMLOptionsCollection:Di,HTMLOutputElement:Di,HTMLParagraphElement:Di,HTMLParamElement:Di,HTMLPictureElement:Di,HTMLPreElement:Di,HTMLProgressElement:Di,HTMLQuoteElement:Di,HTMLScriptElement:Di,HTMLSelectElement:Di,HTMLShadowElement:Di,HTMLSlotElement:Di,HTMLSourceElement:Di,HTMLSpanElement:Di,HTMLStyleElement:Di,HTMLTableCaptionElement:Di,HTMLTableCellElement:Di,HTMLTableColElement:Di,HTMLTableElement:Di,HTMLTableRowElement:Di,HTMLTableSectionElement:Di,HTMLTemplateElement:Di,HTMLTextAreaElement:Di,HTMLTimeElement:Di,HTMLTitleElement:Di,HTMLTrackElement:Di,HTMLUListElement:Di,HTMLUnknownElement:Di,HTMLVideoElement:Di,IDBCursor:Di,IDBCursorWithValue:Di,IDBDatabase:Di,IDBFactory:Di,IDBIndex:Di,IDBKeyRange:Di,IDBObjectStore:Di,IDBOpenDBRequest:Di,IDBRequest:Di,IDBTransaction:Di,IDBVersionChangeEvent:Di,IdleDeadline:Di,IIRFilterNode:Di,Image:Di,ImageBitmap:Di,ImageBitmapRenderingContext:Di,ImageCapture:Di,ImageData:Di,indexedDB:ki,innerHeight:ki,innerWidth:ki,InputEvent:Di,IntersectionObserver:Di,IntersectionObserverEntry:Di,isSecureContext:ki,KeyboardEvent:Di,KeyframeEffect:Di,length:ki,localStorage:ki,location:ki,Location:Di,locationbar:ki,matchMedia:ki,MediaDeviceInfo:Di,MediaDevices:Di,MediaElementAudioSourceNode:Di,MediaEncryptedEvent:Di,MediaError:Di,MediaKeyMessageEvent:Di,MediaKeySession:Di,MediaKeyStatusMap:Di,MediaKeySystemAccess:Di,MediaList:Di,MediaQueryList:Di,MediaQueryListEvent:Di,MediaRecorder:Di,MediaSettingsRange:Di,MediaSource:Di,MediaStream:Di,MediaStreamAudioDestinationNode:Di,MediaStreamAudioSourceNode:Di,MediaStreamEvent:Di,MediaStreamTrack:Di,MediaStreamTrackEvent:Di,menubar:ki,MessageChannel:Di,MessageEvent:Di,MessagePort:Di,MIDIAccess:Di,MIDIConnectionEvent:Di,MIDIInput:Di,MIDIInputMap:Di,MIDIMessageEvent:Di,MIDIOutput:Di,MIDIOutputMap:Di,MIDIPort:Di,MimeType:Di,MimeTypeArray:Di,MouseEvent:Di,moveBy:ki,moveTo:ki,MutationEvent:Di,MutationObserver:Di,MutationRecord:Di,name:ki,NamedNodeMap:Di,NavigationPreloadManager:Di,navigator:ki,Navigator:Di,NetworkInformation:Di,Node:Di,NodeFilter:ki,NodeIterator:Di,NodeList:Di,Notification:Di,OfflineAudioCompletionEvent:Di,OfflineAudioContext:Di,offscreenBuffering:ki,OffscreenCanvas:Di,open:ki,openDatabase:ki,Option:Di,origin:ki,OscillatorNode:Di,outerHeight:ki,outerWidth:ki,PageTransitionEvent:Di,pageXOffset:ki,pageYOffset:ki,PannerNode:Di,parent:ki,Path2D:Di,PaymentAddress:Di,PaymentRequest:Di,PaymentRequestUpdateEvent:Di,PaymentResponse:Di,performance:ki,Performance:Di,PerformanceEntry:Di,PerformanceLongTaskTiming:Di,PerformanceMark:Di,PerformanceMeasure:Di,PerformanceNavigation:Di,PerformanceNavigationTiming:Di,PerformanceObserver:Di,PerformanceObserverEntryList:Di,PerformancePaintTiming:Di,PerformanceResourceTiming:Di,PerformanceTiming:Di,PeriodicWave:Di,Permissions:Di,PermissionStatus:Di,personalbar:ki,PhotoCapabilities:Di,Plugin:Di,PluginArray:Di,PointerEvent:Di,PopStateEvent:Di,postMessage:ki,Presentation:Di,PresentationAvailability:Di,PresentationConnection:Di,PresentationConnectionAvailableEvent:Di,PresentationConnectionCloseEvent:Di,PresentationConnectionList:Di,PresentationReceiver:Di,PresentationRequest:Di,print:ki,ProcessingInstruction:Di,ProgressEvent:Di,PromiseRejectionEvent:Di,prompt:ki,PushManager:Di,PushSubscription:Di,PushSubscriptionOptions:Di,queueMicrotask:ki,RadioNodeList:Di,Range:Di,ReadableStream:Di,RemotePlayback:Di,removeEventListener:ki,Request:Di,requestAnimationFrame:ki,requestIdleCallback:ki,resizeBy:ki,ResizeObserver:Di,ResizeObserverEntry:Di,resizeTo:ki,Response:Di,RTCCertificate:Di,RTCDataChannel:Di,RTCDataChannelEvent:Di,RTCDtlsTransport:Di,RTCIceCandidate:Di,RTCIceTransport:Di,RTCPeerConnection:Di,RTCPeerConnectionIceEvent:Di,RTCRtpReceiver:Di,RTCRtpSender:Di,RTCSctpTransport:Di,RTCSessionDescription:Di,RTCStatsReport:Di,RTCTrackEvent:Di,screen:ki,Screen:Di,screenLeft:ki,ScreenOrientation:Di,screenTop:ki,screenX:ki,screenY:ki,ScriptProcessorNode:Di,scroll:ki,scrollbars:ki,scrollBy:ki,scrollTo:ki,scrollX:ki,scrollY:ki,SecurityPolicyViolationEvent:Di,Selection:Di,ServiceWorker:Di,ServiceWorkerContainer:Di,ServiceWorkerRegistration:Di,sessionStorage:ki,ShadowRoot:Di,SharedWorker:Di,SourceBuffer:Di,SourceBufferList:Di,speechSynthesis:ki,SpeechSynthesisEvent:Di,SpeechSynthesisUtterance:Di,StaticRange:Di,status:ki,statusbar:ki,StereoPannerNode:Di,stop:ki,Storage:Di,StorageEvent:Di,StorageManager:Di,styleMedia:ki,StyleSheet:Di,StyleSheetList:Di,SubtleCrypto:Di,SVGAElement:Di,SVGAngle:Di,SVGAnimatedAngle:Di,SVGAnimatedBoolean:Di,SVGAnimatedEnumeration:Di,SVGAnimatedInteger:Di,SVGAnimatedLength:Di,SVGAnimatedLengthList:Di,SVGAnimatedNumber:Di,SVGAnimatedNumberList:Di,SVGAnimatedPreserveAspectRatio:Di,SVGAnimatedRect:Di,SVGAnimatedString:Di,SVGAnimatedTransformList:Di,SVGAnimateElement:Di,SVGAnimateMotionElement:Di,SVGAnimateTransformElement:Di,SVGAnimationElement:Di,SVGCircleElement:Di,SVGClipPathElement:Di,SVGComponentTransferFunctionElement:Di,SVGDefsElement:Di,SVGDescElement:Di,SVGDiscardElement:Di,SVGElement:Di,SVGEllipseElement:Di,SVGFEBlendElement:Di,SVGFEColorMatrixElement:Di,SVGFEComponentTransferElement:Di,SVGFECompositeElement:Di,SVGFEConvolveMatrixElement:Di,SVGFEDiffuseLightingElement:Di,SVGFEDisplacementMapElement:Di,SVGFEDistantLightElement:Di,SVGFEDropShadowElement:Di,SVGFEFloodElement:Di,SVGFEFuncAElement:Di,SVGFEFuncBElement:Di,SVGFEFuncGElement:Di,SVGFEFuncRElement:Di,SVGFEGaussianBlurElement:Di,SVGFEImageElement:Di,SVGFEMergeElement:Di,SVGFEMergeNodeElement:Di,SVGFEMorphologyElement:Di,SVGFEOffsetElement:Di,SVGFEPointLightElement:Di,SVGFESpecularLightingElement:Di,SVGFESpotLightElement:Di,SVGFETileElement:Di,SVGFETurbulenceElement:Di,SVGFilterElement:Di,SVGForeignObjectElement:Di,SVGGElement:Di,SVGGeometryElement:Di,SVGGradientElement:Di,SVGGraphicsElement:Di,SVGImageElement:Di,SVGLength:Di,SVGLengthList:Di,SVGLinearGradientElement:Di,SVGLineElement:Di,SVGMarkerElement:Di,SVGMaskElement:Di,SVGMatrix:Di,SVGMetadataElement:Di,SVGMPathElement:Di,SVGNumber:Di,SVGNumberList:Di,SVGPathElement:Di,SVGPatternElement:Di,SVGPoint:Di,SVGPointList:Di,SVGPolygonElement:Di,SVGPolylineElement:Di,SVGPreserveAspectRatio:Di,SVGRadialGradientElement:Di,SVGRect:Di,SVGRectElement:Di,SVGScriptElement:Di,SVGSetElement:Di,SVGStopElement:Di,SVGStringList:Di,SVGStyleElement:Di,SVGSVGElement:Di,SVGSwitchElement:Di,SVGSymbolElement:Di,SVGTextContentElement:Di,SVGTextElement:Di,SVGTextPathElement:Di,SVGTextPositioningElement:Di,SVGTitleElement:Di,SVGTransform:Di,SVGTransformList:Di,SVGTSpanElement:Di,SVGUnitTypes:Di,SVGUseElement:Di,SVGViewElement:Di,TaskAttributionTiming:Di,Text:Di,TextEvent:Di,TextMetrics:Di,TextTrack:Di,TextTrackCue:Di,TextTrackCueList:Di,TextTrackList:Di,TimeRanges:Di,toolbar:ki,top:ki,Touch:Di,TouchEvent:Di,TouchList:Di,TrackEvent:Di,TransitionEvent:Di,TreeWalker:Di,UIEvent:Di,ValidityState:Di,visualViewport:ki,VisualViewport:Di,VTTCue:Di,WaveShaperNode:Di,WebAssembly:ki,WebGL2RenderingContext:Di,WebGLActiveInfo:Di,WebGLBuffer:Di,WebGLContextEvent:Di,WebGLFramebuffer:Di,WebGLProgram:Di,WebGLQuery:Di,WebGLRenderbuffer:Di,WebGLRenderingContext:Di,WebGLSampler:Di,WebGLShader:Di,WebGLShaderPrecisionFormat:Di,WebGLSync:Di,WebGLTexture:Di,WebGLTransformFeedback:Di,WebGLUniformLocation:Di,WebGLVertexArrayObject:Di,WebSocket:Di,WheelEvent:Di,Window:Di,Worker:Di,WritableStream:Di,XMLDocument:Di,XMLHttpRequest:Di,XMLHttpRequestEventTarget:Di,XMLHttpRequestUpload:Di,XMLSerializer:Di,XPathEvaluator:Di,XPathExpression:Di,XPathResult:Di,XSLTProcessor:Di};for(const e of["window","global","self","globalThis"])zi[e]=zi;function Fi(e){let t=zi;for(const n of e){if("string"!=typeof n)return null;if(t=t[n],!t)return"Symbol"===e[0]&&2===e.length?Bi:null}return t[Ei]}class Vi extends us{constructor(e){super(e),this.markReassigned()}deoptimizeArgumentsOnInteractionAtPath(e,t,n){switch(e.type){case 0:case 1:return void(Fi([this.name,...t].slice(0,-1))||super.deoptimizeArgumentsOnInteractionAtPath(e,t,n));case 2:{const s=Fi([this.name,...t]);return void(s?s.deoptimizeArgumentsOnCall(e):super.deoptimizeArgumentsOnInteractionAtPath(e,t,n))}}}getLiteralValueAtPath(e,t,n){const s=Fi([this.name,...e]);return s?s.getLiteralValue():Ye}hasEffectsOnInteractionAtPath(e,t,n){switch(t.type){case 0:return 0===e.length?"undefined"!==this.name&&!Fi([this.name]):!Fi([this.name,...e].slice(0,-1));case 1:return!0;case 2:{const s=Fi([this.name,...e]);return!s||s.hasEffectsWhenCalled(t,n)}}}}const ji=new Set(["class","const","let","var","using","await using"]);class Ui extends ns{constructor(){super(...arguments),this.variable=null,this.isVariableReference=!1}get isTDZAccess(){return Xe(this.flags,4)?Xe(this.flags,8):null}set isTDZAccess(e){this.flags=Je(this.flags,4,!0),this.flags=Je(this.flags,8,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){0!==e.length||this.scope.contains(this.name)||this.disallowImportReassignment(),this.variable?.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.getVariableRespectingTDZ().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){const[i,r]=this.getVariableRespectingTDZ().getReturnExpressionWhenCalledAtPath(e,t,n,s);return[i,r||this.isPureFunction(e)]}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!(!this.isPossibleTDZ()||"var"===this.variable.kind)||this.scope.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof Vi&&!this.isPureFunction(Le)&&this.variable.hasEffectsOnInteractionAtPath(Le,ot,e)}hasEffectsOnInteractionAtPath(e,t,n){switch(t.type){case 0:return null!==this.variable&&!this.isPureFunction(e)&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(e,t,n);case 1:return(e.length>0?this.getVariableRespectingTDZ():this.variable).hasEffectsOnInteractionAtPath(e,t,n);case 2:return!this.isPureFunction(e)&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(e,t,n)}}include(e,t){this.included||this.includeNode(e),t&&this.variable?.includePath(Te,e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),null!==this.variable&&this.scope.context.includeVariableInModule(this.variable,Le,e)}includePath(e,t){this.included?e.length>0&&this.variable?.includePath(e,t):(this.included=!0,this.deoptimized||this.applyDeoptimizations(),null!==this.variable&&this.scope.context.includeVariableInModule(this.variable,e,t))}includeCallArgumentsWhenCalledAtPath(e,t,n){this.variable.includeCallArgumentsWhenCalledAtPath(e,t,n)}isPossibleTDZ(){const e=this.isTDZAccess;if(null!==e)return e;if(!(this.variable instanceof ds&&this.variable.kind&&ji.has(this.variable.kind)&&this.variable.module.hasTreeShakingPassStarted))return this.isTDZAccess=!1;let t;return this.variable.declarations&&1===this.variable.declarations.length&&(t=this.variable.declarations[0])&&this.start<t.start&&Gi(this)===Gi(t)?this.isTDZAccess=!0:this.variable.initReached?this.isTDZAccess=!1:this.isTDZAccess=!0}applyDeoptimizations(){this.deoptimized=!0,this.variable instanceof ds&&(this.variable.module.isExecuted||ks(this.variable.module),this.variable.consolidateInitializers(),this.scope.context.requestTreeshakingPass()),this.isVariableReference&&(this.variable.addUsedPlace(this),this.scope.context.requestTreeshakingPass())}disallowImportReassignment(){return this.scope.context.error(gn(this.name,this.scope.context.module.id),this.start)}getVariableRespectingTDZ(){return this.isPossibleTDZ()?tt:this.variable}isPureFunction(e){let t=this.scope.context.manualPureFunctions[this.name];for(const n of e){if(!t)return!1;if(t[gs])return!0;t=t[n]}return t?.[gs]}}function Gi(e){for(;e&&!/^Program|Function/.test(e.type);)e=e.parent;return e}class Hi extends et{constructor(e,t){super(),this.object=e,this.path=t}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.object.deoptimizeArgumentsOnInteractionAtPath(e,[...this.path,...t],n)}deoptimizePath(e){this.object.deoptimizePath([...this.path,...e])}getLiteralValueAtPath(e,t,n){return this.object.getLiteralValueAtPath([...this.path,...e],t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.object.getReturnExpressionWhenCalledAtPath([...this.path,...e],t,n,s)}hasEffectsOnInteractionAtPath(e,t,n){return this.object.hasEffectsOnInteractionAtPath([...this.path,...e],t,n)}}class Wi extends Ui{constructor(){super(...arguments),this.variable=null}get isDestructuringDeoptimized(){return Xe(this.flags,16777216)}set isDestructuringDeoptimized(e){this.flags=Je(this.flags,16777216,e)}addExportedVariables(e,t){t.has(this.variable)&&e.push(this.variable)}bind(){!this.variable&&ms(this,this.parent)&&(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this),this.isVariableReference=!0,this.assignmentInteraction&&this.variable.markTargetOfAssignment())}declare(e,t,n){let s;const{treeshake:i}=this.scope.context.options;return"parameter"===e?s=this.scope.addParameterDeclaration(this,t):(s=this.scope.addDeclaration(this,this.scope.context,n,t,e),"var"===e&&i&&i.correctVarValueBeforeDeclaration&&s.markInitializersForDeoptimization()),[this.variable=s]}deoptimizeAssignment(e,t){this.deoptimizePath(Le),0===e.length&&this.variable?.addReassignedValue(t),t.deoptimizePath([...e,Pe])}hasEffectsWhenDestructuring(e,t,n){return t.length>0&&n.hasEffectsOnInteractionAtPath(t,ot,e)}includeDestructuredIfNecessary(e,t,n){t.length>0&&!this.isDestructuringDeoptimized&&(this.isDestructuringDeoptimized=!0,n.deoptimizeArgumentsOnInteractionAtPath({args:[new Hi(n,t.slice(0,-1))],type:0},t,Ue));const{propertyReadSideEffects:s}=this.scope.context.options.treeshake;let i=this.included;return(i||=t.length>0&&!e.brokenFlow&&s&&("always"===s||n.hasEffectsOnInteractionAtPath(t,ot,Qn())))&&(this.variable&&!this.variable.included&&this.scope.context.includeVariableInModule(this.variable,Le,e),n.includePath(t,e)),!this.included&&i&&this.includeNode(e),this.included}markDeclarationReached(){this.variable.initReached=!0}render(e,{snippets:{getPropertyAccess:t},useOriginalName:n},{renderedParentType:s,isCalleeOfRenderedParent:i,isShorthandProperty:r}=ye){if(this.variable){const o=this.variable.getName(t,n);o!==this.name&&(e.overwrite(this.start,this.end,o,{contentOnly:!0,storeName:!0}),r&&e.prependRight(this.start,`${this.name}: `)),"eval"===o&&s===Fn&&i&&e.appendRight(this.start,"0, ")}}}class qi extends ns{constructor(){super(...arguments),this.accessedValue=null}get computed(){return Xe(this.flags,1024)}set computed(e){this.flags=Je(this.flags,1024,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){return 0===e.type&&"get"===this.kind&&0===t.length||1===e.type&&"set"===this.kind&&0===t.length?this.value.deoptimizeArgumentsOnInteractionAtPath({args:e.args,type:2,withNew:!1},Le,n):void this.getAccessedValue()[0].deoptimizeArgumentsOnInteractionAtPath(e,t,n)}includeCallArgumentsWhenCalledAtPath(e,t,n){this.getAccessedValue()[0].includeCallArgumentsWhenCalledAtPath(e,t,n)}deoptimizeCache(){}deoptimizePath(e){this.getAccessedValue()[0].deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.getAccessedValue()[0].getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.getAccessedValue()[0].getReturnExpressionWhenCalledAtPath(e,t,n,s)}hasEffects(e){return this.key.hasEffects(e)}hasEffectsOnInteractionAtPath(e,t,n){return"get"===this.kind&&0===t.type&&0===e.length||"set"===this.kind&&1===t.type?this.value.hasEffectsOnInteractionAtPath(Le,{args:t.args,type:2,withNew:!1},n):this.getAccessedValue()[0].hasEffectsOnInteractionAtPath(e,t,n)}getAccessedValue(){return null===this.accessedValue?"get"===this.kind?(this.accessedValue=nt,this.accessedValue=this.value.getReturnExpressionWhenCalledAtPath(Le,lt,Ue,this)):this.accessedValue=[this.value,!1]:this.accessedValue}}qi.prototype.includeNode=is,qi.prototype.applyDeoptimizations=rs;class Ki extends qi{hasEffects(e){return super.hasEffects(e)||fs(this.decorators,e)}}class Xi extends ns{get computed(){return Xe(this.flags,1024)}set computed(e){this.flags=Je(this.flags,1024,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.value?.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.value?.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.value?this.value.getLiteralValueAtPath(e,t,n):Ye}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.value?this.value.getReturnExpressionWhenCalledAtPath(e,t,n,s):nt}hasEffects(e){return this.key.hasEffects(e)||this.static&&!!this.value?.hasEffects(e)||fs(this.decorators,e)}hasEffectsOnInteractionAtPath(e,t,n){return!this.value||this.value.hasEffectsOnInteractionAtPath(e,t,n)}includeNode(e){this.included=!0,this.value?.includePath(Te,e);for(const t of this.decorators)t.includePath(Te,e)}}Xi.prototype.applyDeoptimizations=rs;class Ji extends ns{constructor(){super(...arguments),this.instanceFieldValues=null,this.objectEntity=null}createScope(e){this.scope=new ps(e,e.context)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.getObjectEntity().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,t,n,s)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();const t=this.superClass?.hasEffects(e)||this.body.hasEffects(e);return this.id?.markDeclarationReached(),t||super.hasEffects(e)||fs(this.decorators,e)}hasEffectsOnInteractionAtPath(e,t,n){return 2===t.type&&0===e.length?!t.withNew||(null===this.classConstructor?this.superClass?.hasEffectsOnInteractionAtPath(e,t,n):this.classConstructor.hasEffectsOnInteractionAtPath(e,t,n))||this.hasEffectsOnInstanceFieldInitialization(n):this.getObjectEntity().hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included||this.includeNode(e),this.superClass?.include(e,t),this.body.include(e,t);for(const n of this.decorators)n.include(e,t);this.id&&(this.id.markDeclarationReached(),this.id.include(e,t))}initialise(){super.initialise(),this.id?.declare("class",Le,this),this.instanceEntity=new ei(new Map,new Hi(this,["prototype"])),this.body.scope.instanceThisVariable.addArgumentForDeoptimization(this.instanceEntity);for(const e of this.body.body)if(e instanceof Ki&&"constructor"===e.kind)return void(this.classConstructor=e);this.classConstructor=null}applyDeoptimizations(){this.deoptimized=!0;for(const e of this.body.body)e.type===Jn||e.static||e instanceof Ki&&"constructor"===e.kind||e.deoptimizePath(Te);this.scope.context.requestTreeshakingPass()}hasEffectsOnInstanceFieldInitialization(e){const t=this.getInstanceFieldValues();if(0===t.length)return!1;const{replacedVariableInits:n}=e,s=this.body.scope.instanceThisVariable,i=n.get(s);n.set(s,this.instanceEntity);const r=t.some(t=>t.hasEffects(e));return i?n.set(s,i):n.delete(s),r}getInstanceFieldValues(){if(null===this.instanceFieldValues){this.instanceFieldValues=[];for(const e of this.body.body)e instanceof Xi&&!e.static&&null!==e.value&&this.instanceFieldValues.push(e.value)}return this.instanceFieldValues}getObjectEntity(){if(null!==this.objectEntity)return this.objectEntity;const e=[],t=[];for(const n of this.body.body){if(n.type===Jn)continue;const s=n.static?e:t,i=n.kind;if(s===t&&!i)continue;const r="set"===i||"get"===i?i:"init";let o;if(n.computed){const e=n.key.getLiteralValueAtPath(Le,Ue,this);if("symbol"==typeof e){s.push({key:De(e)?e:Pe,kind:r,property:n});continue}o=String(e)}else o=n.key instanceof Wi?n.key.name:String(n.key.value);s.push({key:o,kind:r,property:n})}return e.unshift({key:"prototype",kind:"init",property:new ei(t,this.superClass?new Hi(this.superClass,["prototype"]):si)}),this.objectEntity=new ei(e,this.superClass||si)}}Ji.prototype.includeNode=ss;class Yi extends Ji{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}render(e,t){const{exportNamesByVariable:n,format:s,snippets:{_:i,getPropertyAccess:r}}=t;if(this.id){const{variable:o,name:a}=this.id;"system"===s&&n.has(o)&&e.appendLeft(this.end,`${i}${fe([o],t)};`);const l=o.getName(r);if(l!==a)return this.decorators.map(n=>n.render(e,t)),this.superClass?.render(e,t),this.body.render(e,{...t,useOriginalName:e=>e===o}),e.prependRight(this.start,`let ${l}${i}=${i}`),void e.prependLeft(this.end,";")}super.render(e,t)}applyDeoptimizations(){super.applyDeoptimizations();const{id:e,scope:t}=this;if(e){const{name:n,variable:s}=e;for(const e of t.accessedOutsideVariables.values())e!==s&&e.forbidName(n)}}}class Zi extends ds{constructor(e){super("arguments",null,tt,Le,e,"other")}addArgumentToBeDeoptimized(e){}addReference(){this.deoptimizedArguments=[],this.addArgumentToBeDeoptimized=Qi}hasEffectsOnInteractionAtPath(e,{type:t}){return 0!==t||e.length>1}includePath(e,t){super.includePath(e,t);for(const e of this.deoptimizedArguments)e.deoptimizePath(Te);this.deoptimizedArguments.length=0}}function Qi(e){this.included?e.deoptimizePath(Te):this.deoptimizedArguments?.push(e)}const er=Ee,tr=new Set([Pe]),nr=new je,sr=new Set([tt]);class ir extends ds{constructor(e,t,n,s){super(e,t,tt,n,s,"parameter"),this.includedPathTracker=new Ke,this.argumentsToBeDeoptimized=new Set,this.deoptimizationInteractions=[],this.deoptimizations=new je,this.deoptimizedFields=new Set,this.expressionsDependingOnKnownValue=[],this.knownValue=null,this.knownValueLiteral=Ye}addArgumentForDeoptimization(e){if(this.updateKnownValue(e),e===tt){if(!this.argumentsToBeDeoptimized.has(tt)){this.argumentsToBeDeoptimized.add(tt);for(const{interaction:e}of this.deoptimizationInteractions)st(e);this.deoptimizationInteractions=er}}else if(this.deoptimizedFields.has(Pe))e.deoptimizePath([...this.initPath,Pe]);else if(!this.argumentsToBeDeoptimized.has(e)){this.argumentsToBeDeoptimized.add(e);for(const t of this.deoptimizedFields)e.deoptimizePath([...this.initPath,t]);for(const{interaction:t,path:n}of this.deoptimizationInteractions)e.deoptimizeArgumentsOnInteractionAtPath(t,[...this.initPath,...n],Ue)}}markReassigned(){if(!this.isReassigned){super.markReassigned();for(const e of this.expressionsDependingOnKnownValue)e.deoptimizeCache();this.expressionsDependingOnKnownValue=Ee}}deoptimizeCache(){this.markReassigned()}updateKnownValue(e){if(this.isReassigned)return;if(null===this.knownValue)return this.knownValue=e,void(this.knownValueLiteral=e.getLiteralValueAtPath(this.initPath,Ue,this));if(this.knownValue===e||this.knownValue instanceof Wi&&e instanceof Wi&&this.knownValue.variable===e.variable)return;const{knownValueLiteral:t}=this;"symbol"!=typeof t&&e.getLiteralValueAtPath(this.initPath,Ue,this)===t||this.markReassigned()}getKnownValue(){return this.knownValue||tt}getLiteralValueAtPath(e,t,n){if(this.isReassigned||e.length+this.initPath.length>6)return Ye;const s=this.getKnownValue();return this.expressionsDependingOnKnownValue.push(n),t.withTrackedEntityAtPath(e,s,()=>s.getLiteralValueAtPath([...this.initPath,...e],t,n),Ye)}hasEffectsOnInteractionAtPath(e,t,n){const{type:s}=t;return this.isReassigned||1===s||e.length+this.initPath.length>6?super.hasEffectsOnInteractionAtPath(e,t,n):!(2===s?(t.withNew?n.instantiated:n.called).trackEntityAtPathAndGetIfTracked(e,t.args,this):n.accessed.trackEntityAtPathAndGetIfTracked(e,this))&&this.getKnownValue().hasEffectsOnInteractionAtPath([...this.initPath,...e],t,n)}deoptimizeArgumentsOnInteractionAtPath(e,t){if(t.length>=2||this.argumentsToBeDeoptimized.has(tt)||this.deoptimizationInteractions.length>=20||1===t.length&&(this.deoptimizedFields.has(Pe)||2===e.type&&this.deoptimizedFields.has(t[0]))||this.initPath.length+t.length>6)st(e);else if(!this.deoptimizations.trackEntityAtPathAndGetIfTracked(t,e.args)){for(const n of this.argumentsToBeDeoptimized)n.deoptimizeArgumentsOnInteractionAtPath(e,[...this.initPath,...t],Ue);this.argumentsToBeDeoptimized.has(tt)||this.deoptimizationInteractions.push({interaction:e,path:t})}}deoptimizePath(e){if(0===e.length)return void this.markReassigned();if(this.deoptimizedFields.has(Pe))return;const t=e[0];if(!this.deoptimizedFields.has(t)){this.deoptimizedFields.add(t);for(const e of this.argumentsToBeDeoptimized)e.deoptimizePath([...this.initPath,t]);t===Pe&&(this.deoptimizationInteractions=er,this.deoptimizations=nr,this.deoptimizedFields=tr,this.argumentsToBeDeoptimized=sr)}}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.deoptimizePath(Te):this.deoptimizedFields.has(e[0])||this.deoptimizePath([e[0]]),nt}includeArgumentPaths(e,t){this.includedPathTracker.includeAllPaths(e,t,this.initPath)}}class rr extends ir{constructor(e){super("this",null,Le,e)}hasEffectsOnInteractionAtPath(e,t,n){return(n.replacedVariableInits.get(this)||tt).hasEffectsOnInteractionAtPath(e,t,n)}}class or extends et{constructor(e){super(),this.returnedIdentifier=e}deoptimizeArgumentsOnInteractionAtPath(e,t,n){st(e),this.returnedIdentifier.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.returnedIdentifier.deoptimizePath(e)}includeCallArgumentsWhenCalledAtPath(e,t,n){this.returnedIdentifier.includeCallArgumentsWhenCalledAtPath(e,t,n)}}class ar extends ps{constructor(e){super(e,e.context),this.parent=e}addDeclaration(e,t,n,s,i){if("var"===i){const r=e.name,o=this.hoistedVariables?.get(r)||this.variables.get(r);if(o){const a=o.kind;if("parameter"===a&&"CatchClause"===o.declarations[0].parent.type){const n=this.parent.parent.addDeclaration(e,t,Rs,s,i);return o.renderLikeHoisted(n),this.addHoistedVariable(r,n),n}return"var"===a?(o.addDeclaration(e,n),o):t.error(kn(r),e.start)}const a=this.parent.parent.addDeclaration(e,t,n,s,i);return a.markInitializersForDeoptimization(),this.addHoistedVariable(r,a),a}return super.addDeclaration(e,t,n,s,i)}}class lr extends ps{constructor(e){super(e,e.context)}addDeclaration(e,t,n,s,i){const r=e.name,o=this.hoistedVariables?.get(r)||this.variables.get(r);if(o){const s=o.kind;if(!("var"!==i&&"function"!==i||"var"!==s&&"function"!==s&&"parameter"!==s))return o.addDeclaration(e,n),o;t.error(kn(r),e.start)}const a=new ds(e.name,e,n,s,t,i);return this.variables.set(r,a),a}}class cr extends ps{constructor(e,t){super(e,e.context),this.hasRest=!1,this.parameters=[],this.bodyScope=t?new ar(this):new lr(this)}addParameterDeclaration(e,t){const{name:n,start:s}=e;if(this.variables.get(n))return this.context.error(function(e){return{code:"DUPLICATE_ARGUMENT_NAME",message:`Duplicate argument name "${e}"`}}(n),s);const i=new ir(n,e,t,this.context);return this.variables.set(n,i),this.bodyScope.addHoistedVariable(n,i),i}addParameterVariables(e,t){this.parameters=e;for(const t of e)for(const e of t)e.alwaysRendered=!0;this.hasRest=t}hasParameterCalledFromTryStatement(){return this.parameters.some(e=>e.some(e=>e.calledFromTryStatement))}includeCallArguments({args:e},t){let n=!1,s=!1;const i=this.hasRest&&this.parameters[this.parameters.length-1];let r=e.length-1;for(let n=1;n<e.length;n++){const i=e[n];i instanceof yi&&!s&&(s=!0,r=n-1),s&&(i.includePath(Te,t),i.include(t,!1))}for(let o=r;o>=1;o--){const r=this.parameters[o-1]||i,a=e[o];if(r)if(n=!1,0===r.length)s=!0;else for(const e of r)e.calledFromTryStatement&&(n=!0),e.included&&(s=!0,n?a.include(t,!0):(e.includeArgumentPaths(a,t),a.include(t,!1)));(s||a.shouldBeIncluded(t))&&(s=!0,a.include(t,n))}}}class ur extends cr{constructor(){super(...arguments),this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(e){this.returnExpressions.push(e)}deoptimizeArgumentsOnCall({args:e}){const{parameters:t}=this;let n=0;for(;n<e.length-1;n++){const s=e[n+1];if(s instanceof yi){for(;n<t.length;n++){e[n+1]?.deoptimizePath(Te);for(const e of t[n])e.markReassigned()}break}if(this.hasRest&&n>=t.length-1)s.deoptimizePath(Te);else{const e=t[n];if(e)for(const t of e)t.addArgumentForDeoptimization(s);this.addArgumentToBeDeoptimized(s)}}const s=this.hasRest?t.length-1:t.length;for(;n<s;n++)for(const e of t[n])e.addArgumentForDeoptimization(Rs)}getReturnExpression(){return null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression}deoptimizeAllParameters(){for(const e of this.parameters)for(const t of e)t.deoptimizePath(Te),t.markReassigned()}reassignAllParameters(){for(const e of this.parameters)for(const t of e)t.markReassigned()}addArgumentToBeDeoptimized(e){}updateReturnExpression(){const{returnExpressions:e}=this,[t]=e;if(t&&this.returnExpressionsResolveToSameVariable(t))this.returnExpression=t.variable.isTargetOfAssignment?new or(t):t;else if(1===e.length)this.returnExpression=t;else{this.returnExpression=tt;for(const t of e)t.deoptimizePath(Te)}}returnExpressionsResolveToSameVariable(e){return!(!ls(e)||null===e.variable)&&this.returnExpressions.every(t=>ls(t)&&t.variable===e.variable)}}class dr extends ur{constructor(e,t){super(e,!1),this.functionNode=t;const{context:n}=e;this.variables.set("arguments",this.argumentsVariable=new Zi(n)),this.variables.set("this",this.thisVariable=new rr(n))}findLexicalBoundary(){return this}includeCallArguments(e,t){if(super.includeCallArguments(e,t),this.argumentsVariable.included){const{args:n}=e;for(let e=1;e<n.length;e++){const s=n[e];s&&(s.includePath(Te,t),s.include(t,!1))}}}addArgumentToBeDeoptimized(e){this.argumentsVariable.addArgumentToBeDeoptimized(e)}}class hr extends ps{constructor(e){super(e,e.context)}addDeclaration(e,t,n,s,i){if("var"===i){const r=e.name,o=this.hoistedVariables?.get(r)||this.variables.get(r);if(o)return"var"===o.kind||"var"===i&&"parameter"===o.kind?(o.addDeclaration(e,n),o):t.error(kn(r),e.start);const a=this.parent.addDeclaration(e,t,n,s,i);return a.markInitializersForDeoptimization(),this.addHoistedVariable(r,a),a}return super.addDeclaration(e,t,n,s,i)}}class pr extends ns{initialise(){var e,t;super.initialise(),this.directive&&"use strict"!==this.directive&&this.parent.type===Kn&&this.scope.context.log(bt,(e=this.directive,{code:"MODULE_LEVEL_DIRECTIVE",id:t=this.scope.context.module.id,message:`Module level directives cause errors when bundled, "${e}" in "${Pt(t)}" was ignored.`}),this.start)}removeAnnotations(e){this.expression.removeAnnotations(e)}render(e,t){super.render(e,t),";"!==e.original[this.end-1]&&e.appendLeft(this.end,";")}shouldBeIncluded(e){return this.directive&&"use strict"!==this.directive?this.parent.type!==Kn:super.shouldBeIncluded(e)}}pr.prototype.includeNode=is,pr.prototype.applyDeoptimizations=rs;class fr extends ns{get deoptimizeBody(){return Xe(this.flags,32768)}set deoptimizeBody(e){this.flags=Je(this.flags,32768,e)}get directlyIncluded(){return Xe(this.flags,16384)}set directlyIncluded(e){this.flags=Je(this.flags,16384,e)}addImplicitReturnExpressionToScope(){const e=this.body[this.body.length-1];e&&"ReturnStatement"===e.type||this.scope.addReturnExpression(tt)}createScope(e){this.scope=this.parent.preventChildBlockScope?e:new hr(e)}hasEffects(e){if(this.deoptimizeBody)return!0;for(const t of this.body){if(e.brokenFlow)break;if(t.hasEffects(e))return!0}return!1}include(e,t){if(!this.deoptimizeBody||!this.directlyIncluded){this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody&&(t=!0);for(const n of this.body)(t||n.shouldBeIncluded(e))&&n.include(e,t)}}initialise(){super.initialise(),this.scope.context.magicString.addSourcemapLocation(this.end-1);const e=this.body[0];this.deoptimizeBody=e instanceof pr&&"use asm"===e.directive}render(e,t){this.body.length>0?de(this.body,e,this.start+1,this.end-1,t):super.render(e,t)}}fr.prototype.includeNode=is,fr.prototype.applyDeoptimizations=rs;class mr extends ns{constructor(){super(...arguments),this.parameterVariableValuesDeoptimized=!1}get async(){return Xe(this.flags,256)}set async(e){this.flags=Je(this.flags,256,e)}get deoptimizedReturn(){return Xe(this.flags,512)}set deoptimizedReturn(e){this.flags=Je(this.flags,512,e)}get generator(){return Xe(this.flags,4194304)}set generator(e){this.flags=Je(this.flags,4194304,e)}get hasCachedEffects(){return Xe(this.flags,67108864)}set hasCachedEffects(e){this.flags=Je(this.flags,67108864,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){2===e.type&&0===t.length?this.scope.deoptimizeArgumentsOnCall(e):this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e),1===e.length&&e[0]===Pe&&(this.scope.getReturnExpression().deoptimizePath(Te),this.scope.deoptimizeAllParameters())}getLiteralValueAtPath(e,t,n){return this.getObjectEntity().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return e.length>0?this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,t,n,s):this.async?(this.deoptimizedReturn||(this.deoptimizedReturn=!0,this.scope.getReturnExpression().deoptimizePath(Te),this.scope.context.requestTreeshakingPass()),nt):[this.scope.getReturnExpression(),!1]}hasEffectsOnInteractionAtPath(e,t,n){if(e.length>0||2!==t.type)return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,t,n);if(this.hasCachedEffects)return!0;if(this.async){const{propertyReadSideEffects:e}=this.scope.context.options.treeshake,t=this.scope.getReturnExpression();if(t.hasEffectsOnInteractionAtPath(["then"],lt,n)||e&&("always"===e||t.hasEffectsOnInteractionAtPath(["then"],ot,n)))return this.hasCachedEffects=!0,!0}const{propertyReadSideEffects:s}=this.scope.context.options.treeshake;for(let e=0;e<this.params.length;e++){const i=this.params[e];if(i.hasEffects(n)||s&&i.hasEffectsWhenDestructuring(n,Le,t.args[e+1]||Rs))return this.hasCachedEffects=!0,!0}return!1}onlyFunctionCallUsed(){let e=null;const{parent:t}=this;return"VariableDeclarator"===t.type?e=t.id.variable??null:t.type===Vn&&(e=t.variable),e?.getOnlyFunctionCallUsed()??!1}include(e,t){this.included||this.includeNode(e),this.parameterVariableValuesDeoptimized||this.onlyFunctionCallUsed()||(this.parameterVariableValuesDeoptimized=!0,this.scope.reassignAllParameters());const{brokenFlow:n}=e;e.brokenFlow=!1,this.body.include(e,t),e.brokenFlow=n}includeCallArgumentsWhenCalledAtPath(e,t,n){0===e.length?this.scope.includeCallArguments(t,n):this.getObjectEntity().includeCallArgumentsWhenCalledAtPath(e,t,n)}initialise(){super.initialise(),this.body instanceof fr?this.body.addImplicitReturnExpressionToScope():this.scope.addReturnExpression(this.body),this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationNoSideEffects=this.annotations.some(e=>"noSideEffects"===e.type))}}mr.prototype.preventChildBlockScope=!0,mr.prototype.includeNode=is,mr.prototype.applyDeoptimizations=rs;class gr extends mr{constructor(){super(...arguments),this.objectEntity=null}createScope(e){this.scope=new dr(e,this),this.constructedEntity=new ei(new Map,si),this.scope.thisVariable.addArgumentForDeoptimization(this.constructedEntity)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){super.deoptimizeArgumentsOnInteractionAtPath(e,t,n),2===e.type&&0===t.length&&e.args[0]&&this.scope.thisVariable.addArgumentForDeoptimization(e.args[0])}hasEffects(e){return!this.annotationNoSideEffects&&!!this.id?.hasEffects(e)}hasEffectsOnInteractionAtPath(e,t,n){if(this.annotationNoSideEffects&&0===e.length&&2===t.type)return!1;if(super.hasEffectsOnInteractionAtPath(e,t,n))return!0;if(0===e.length&&2===t.type){const e=n.replacedVariableInits.get(this.scope.thisVariable);n.replacedVariableInits.set(this.scope.thisVariable,t.withNew?this.constructedEntity:tt);const{brokenFlow:s,ignore:i,replacedVariableInits:r}=n;if(n.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0,this:t.withNew},this.body.hasEffects(n))return this.hasCachedEffects=!0,!0;n.brokenFlow=s,e?r.set(this.scope.thisVariable,e):r.delete(this.scope.thisVariable),n.ignore=i}return!1}include(e,t){super.include(e,t),this.id?.include(e,t);const n=this.scope.argumentsVariable.included;for(const s of this.params)s instanceof Wi&&!n||s.include(e,t)}includeNode(e){this.included=!0;const t=this.scope.argumentsVariable.included;for(const n of this.params)n instanceof Wi&&!t||n.includePath(Te,e)}initialise(){super.initialise(),this.id?.declare("function",Le,this)}getObjectEntity(){return null!==this.objectEntity?this.objectEntity:this.objectEntity=new ei([{key:"prototype",kind:"init",property:new ei([],si)}],si)}}class yr extends gr{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}onlyFunctionCallUsed(){return this.id?.variable.getOnlyFunctionCallUsed()??super.onlyFunctionCallUsed()}}class br extends ns{bind(){super.bind();const e=this.declarationName||this.scope.context.getModuleName();this.variable.name=this.scope.variables.get(e)?`${e}_default`:e}include(e,t){this.included=!0,this.declaration.include(e,t),t&&this.scope.context.includeVariableInModule(this.variable,Te,e)}includePath(e,t){this.included=!0,this.declaration.includePath(e,t)}initialise(){super.initialise();const e=this.declaration;this.declarationName=e.id&&e.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this,this.scope.context),this.scope.context.addExport(this)}removeAnnotations(e){this.declaration.removeAnnotations(e)}render(e,t,n){const{start:s,end:i}=n,r=function(e,t){return ae(e,re(e,"default",t)+7)}(e.original,this.start);let o=!1;if(this.declaration instanceof yr)this.renderNamedDeclaration(e,r,null===this.declaration.id?function(e,t){const n=re(e,"function",t)+8;e=e.slice(n,re(e,"(",n));const s=re(e,"*");return-1===s?n:n+s+1}(e.original,r):null,t);else if(this.declaration instanceof Yi)this.renderNamedDeclaration(e,r,null===this.declaration.id?re(e.original,"class",s)+5:null,t);else{if(this.variable.getOriginalVariable()!==this.variable)return void se(this,e,s,i);if(!this.variable.included)return e.remove(this.start,r),this.declaration.render(e,t,{renderedSurroundingElement:jn}),void(";"!==e.original[this.end-1]&&e.appendLeft(this.end,";"));o=this.renderVariableDeclaration(e,r,t)}this.declaration.render(e,t),o&&e.appendLeft(this.end,";")}renderNamedDeclaration(e,t,n,s){const{exportNamesByVariable:i,format:r,snippets:{getPropertyAccess:o}}=s,a=this.variable.getName(o);e.remove(this.start,t),null!==n&&e.appendLeft(n,` ${a}`),"system"===r&&this.declaration instanceof Yi&&i.has(this.variable)&&e.appendLeft(this.end,` ${fe([this.variable],s)};`)}renderVariableDeclaration(e,t,{format:n,exportNamesByVariable:s,snippets:{cnst:i,getPropertyAccess:r}}){const o=59===e.original.charCodeAt(this.end-1),a="system"===n&&s.get(this.variable);return a?(e.overwrite(this.start,t,`${i} ${this.variable.getName(r)} = exports(${JSON.stringify(a[0])}, `),e.appendRight(o?this.end-1:this.end,")"+(o?"":";")),!1):(e.overwrite(this.start,t,`${i} ${this.variable.getName(r)} = `),!o)}}br.prototype.needsBoundaries=!0,br.prototype.includeNode=is,br.prototype.applyDeoptimizations=rs;const Er=/[\n\r'\\\u2028\u2029]/,xr=/([\n\r'\u2028\u2029])/g,vr=/\\/g;function Ar(e){return Er.test(e)?e.replace(vr,"\\\\").replace(xr,"\\$1"):e}const Sr="_interopDefault",Pr="_interopDefaultCompat",$r="_interopNamespace",wr="_interopNamespaceCompat",Ir="_interopNamespaceDefault",Cr="_interopNamespaceDefaultOnly",kr="_mergeNamespaces",Nr="_documentCurrentScript",Or={auto:Sr,compat:Pr,default:null,defaultOnly:null,esModule:null},Rr=(e,t)=>"esModule"===e||t&&("auto"===e||"compat"===e),Dr={auto:$r,compat:wr,default:Ir,defaultOnly:Cr,esModule:null},Mr=(e,t)=>"esModule"!==e&&Rr(e,t),_r=(e,t,n,s,i,r,o)=>{const a=new Set(e);for(const e of Xr)t.has(e)&&a.add(e);return Xr.map(e=>a.has(e)?Lr[e](n,s,i,r,o,a):"").join("")},Lr={[Nr]:(e,{_:t,n:n})=>`var ${Nr}${t}=${t}typeof document${t}!==${t}'undefined'${t}?${t}document.currentScript${t}:${t}null;${n}`,[Pr](e,t,n){const{_:s,getDirectReturnFunction:i,n:r}=t,[o,a]=i(["e"],{functionReturn:!0,lineBreakIndent:null,name:Pr});return`${o}${zr(t)}${s}?${s}${n?Tr(t):Br(t)}${a}${r}${r}`},[Sr](e,t,n){const{_:s,getDirectReturnFunction:i,n:r}=t,[o,a]=i(["e"],{functionReturn:!0,lineBreakIndent:null,name:Sr});return`${o}e${s}&&${s}e.__esModule${s}?${s}${n?Tr(t):Br(t)}${a}${r}${r}`},[wr](e,t,n,s,i,r){const{_:o,getDirectReturnFunction:a,n:l}=t;if(r.has(Ir)){const[e,n]=a(["e"],{functionReturn:!0,lineBreakIndent:null,name:wr});return`${e}${zr(t)}${o}?${o}e${o}:${o}${Ir}(e)${n}${l}${l}`}return`function ${wr}(e)${o}{${l}${e}if${o}(${zr(t)})${o}return e;${l}`+Fr(e,e,t,n,s,i)+`}${l}${l}`},[Cr](e,t,n,s,i){const{getDirectReturnFunction:r,getObject:o,n:a,_:l}=t,[c,u]=r(["e"],{functionReturn:!0,lineBreakIndent:null,name:Cr});return`${c}${qr(s,Kr(i,o([[null,`__proto__:${l}null`],["default","e"]],{lineBreakIndent:null}),t))}${u}${a}${a}`},[Ir](e,t,n,s,i){const{_:r,n:o}=t;return`function ${Ir}(e)${r}{${o}`+Fr(e,e,t,n,s,i)+`}${o}${o}`},[$r](e,t,n,s,i,r){const{_:o,getDirectReturnFunction:a,n:l}=t;if(r.has(Ir)){const[e,t]=a(["e"],{functionReturn:!0,lineBreakIndent:null,name:$r});return`${e}e${o}&&${o}e.__esModule${o}?${o}e${o}:${o}${Ir}(e)${t}${l}${l}`}return`function ${$r}(e)${o}{${l}${e}if${o}(e${o}&&${o}e.__esModule)${o}return e;${l}`+Fr(e,e,t,n,s,i)+`}${l}${l}`},[kr](e,t,n,s,i){const{_:r,cnst:o,n:a}=t,l="var"===o&&n;return`function ${kr}(n, m)${r}{${a}${e}${jr(`{${a}${e}${e}${e}if${r}(k${r}!==${r}'default'${r}&&${r}!(k in n))${r}{${a}`+(n?l?Gr:Hr:Wr)(e,e+e+e+e,t)+`${e}${e}${e}}${a}`+`${e}${e}}`,l,e,t)}${a}${e}return ${qr(s,Kr(i,"n",t))};${a}}${a}${a}`}},Tr=({_:e,getObject:t})=>`e${e}:${e}${t([["default","e"]],{lineBreakIndent:null})}`,Br=({_:e,getPropertyAccess:t})=>`e${t("default")}${e}:${e}e`,zr=({_:e})=>`e${e}&&${e}typeof e${e}===${e}'object'${e}&&${e}'default'${e}in e`,Fr=(e,t,n,s,i,r)=>{const{_:o,cnst:a,getObject:l,getPropertyAccess:c,n:u,s:d}=n,h=`{${u}`+(s?Ur:Wr)(e,t+e+e,n)+`${t}${e}}`;return`${t}${a} n${o}=${o}Object.create(null${r?`,${o}{${o}[Symbol.toStringTag]:${o}${Jr(l)}${o}}`:""});${u}${t}if${o}(e)${o}{${u}${t}${e}${Vr(h,!s,n)}${u}${t}}${u}${t}n${c("default")}${o}=${o}e;${u}${t}return ${qr(i,"n")}${d}${u}`},Vr=(e,t,{_:n,cnst:s,getFunctionIntro:i,s:r})=>"var"!==s||t?`for${n}(${s} k in e)${n}${e}`:`Object.keys(e).forEach(${i(["k"],{isAsync:!1,name:null})}${e})${r}`,jr=(e,t,n,{_:s,cnst:i,getDirectReturnFunction:r,getFunctionIntro:o,n:a})=>{if(t){const[t,i]=r(["e"],{functionReturn:!1,lineBreakIndent:{base:n,t:n},name:null});return`m.forEach(${t}e${s}&&${s}typeof e${s}!==${s}'string'${s}&&${s}!Array.isArray(e)${s}&&${s}Object.keys(e).forEach(${o(["k"],{isAsync:!1,name:null})}${e})${i});`}return`for${s}(var i${s}=${s}0;${s}i${s}<${s}m.length;${s}i++)${s}{${a}${n}${n}${i} e${s}=${s}m[i];${a}${n}${n}if${s}(typeof e${s}!==${s}'string'${s}&&${s}!Array.isArray(e))${s}{${s}for${s}(${i} k in e)${s}${e}${s}}${a}${n}}`},Ur=(e,t,n)=>{const{_:s,n:i}=n;return`${t}if${s}(k${s}!==${s}'default')${s}{${i}`+Gr(e,t+e,n)+`${t}}${i}`},Gr=(e,t,{_:n,cnst:s,getDirectReturnFunction:i,n:r})=>{const[o,a]=i([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${t}${s} d${n}=${n}Object.getOwnPropertyDescriptor(e,${n}k);${r}${t}Object.defineProperty(n,${n}k,${n}d.get${n}?${n}d${n}:${n}{${r}${t}${e}enumerable:${n}true,${r}${t}${e}get:${n}${o}e[k]${a}${r}${t}});${r}`},Hr=(e,t,{_:n,cnst:s,getDirectReturnFunction:i,n:r})=>{const[o,a]=i([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${t}${s} d${n}=${n}Object.getOwnPropertyDescriptor(e,${n}k);${r}${t}if${n}(d)${n}{${r}${t}${e}Object.defineProperty(n,${n}k,${n}d.get${n}?${n}d${n}:${n}{${r}${t}${e}${e}enumerable:${n}true,${r}${t}${e}${e}get:${n}${o}e[k]${a}${r}${t}${e}});${r}${t}}${r}`},Wr=(e,t,{_:n,n:s})=>`${t}n[k]${n}=${n}e[k];${s}`,qr=(e,t)=>e?`Object.freeze(${t})`:t,Kr=(e,t,{_:n,getObject:s})=>e?`Object.defineProperty(${t},${n}Symbol.toStringTag,${n}${Jr(s)})`:t,Xr=Object.keys(Lr);function Jr(e){return e([["value","'Module'"]],{lineBreakIndent:null})}class Yr extends ns{deoptimizeArgumentsOnInteractionAtPath(){}getLiteralValueAtPath(e){return e.length>0||null===this.value&&110!==this.scope.context.code.charCodeAt(this.start)||"bigint"==typeof this.value||47===this.scope.context.code.charCodeAt(this.start)?Ye:this.value}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?nt:qs(this.members,e[0])}hasEffectsOnInteractionAtPath(e,t,n){switch(t.type){case 0:return e.length>(null===this.value?0:1);case 1:return!0;case 2:return!!(this.included&&this.value instanceof RegExp&&(this.value.global||this.value.sticky))||(1!==e.length||Ws(this.members,e[0],t,n))}}initialise(){super.initialise(),this.members=function(e){if(e instanceof RegExp)return Gs;switch(typeof e){case"boolean":return js;case"number":return Us;case"string":return Hs}return Object.create(null)}(this.value)}render(){"string"==typeof this.value&&this.scope.context.addIndentExclusionRange([this.start+1,this.end-1])}}function Zr(e,t,n,s,i){if("getLiteralValueAtPathAsChainElement"in t){const n=t.getLiteralValueAtPathAsChainElement(Le,Ue,i);if(n===ts||e.optional&&null==n)return ts}else if(e.optional&&null==t.getLiteralValueAtPath(Le,Ue,i))return ts;return e.getLiteralValueAtPath(n,s,i)}function Qr(e){return e.computed?function(e){if(e instanceof Yr)return String(e.value);return null}(e.property):e.property.name}function eo(e){const t=e.propertyKey,n=e.object;if("string"==typeof t){if(n instanceof Wi)return[{key:n.name,pos:n.start},{key:t,pos:e.property.start}];if(n instanceof to){const s=eo(n);return s&&[...s,{key:t,pos:e.property.start}]}}return null}Yr.prototype.includeNode=ss;class to extends ns{constructor(){super(...arguments),this.promiseHandler=null,this.variable=null,this.expressionsToBeDeoptimized=[]}get computed(){return Xe(this.flags,1024)}set computed(e){this.flags=Je(this.flags,1024,e)}get optional(){return Xe(this.flags,128)}set optional(e){this.flags=Je(this.flags,128,e)}get assignmentDeoptimized(){return Xe(this.flags,16)}set assignmentDeoptimized(e){this.flags=Je(this.flags,16,e)}get bound(){return Xe(this.flags,32)}set bound(e){this.flags=Je(this.flags,32,e)}get isUndefined(){return Xe(this.flags,64)}set isUndefined(e){this.flags=Je(this.flags,64,e)}bind(){this.bound=!0;const e=eo(this),t=e&&this.scope.findVariable(e[0].key);if(t?.isNamespace){const n=no(t,e.slice(1),this.scope.context);n?"undefined"===n?this.isUndefined=!0:(this.variable=n,this.scope.addNamespaceMemberAccess(function(e){let t=e[0].key;for(let n=1;n<e.length;n++)t+="."+e[n].key;return t}(e),n)):super.bind()}else super.bind()}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.promiseHandler?this.promiseHandler.deoptimizeArgumentsOnInteractionAtPath(e,t,n):this.variable?this.variable.deoptimizeArgumentsOnInteractionAtPath(e,t,n):this.isUndefined||(t.length<6?this.object.deoptimizeArgumentsOnInteractionAtPath(e,this.propertyKey===Pe?Te:[this.propertyKey,...t],n):st(e))}deoptimizeAssignment(e,t){this.deoptimizePath(Le),t.deoptimizePath([...e,Pe])}deoptimizeCache(){if(this.propertyKey===this.dynamicPropertyKey)return;const{expressionsToBeDeoptimized:e,object:t}=this;this.expressionsToBeDeoptimized=Ee,this.dynamicPropertyKey=this.propertyKey,t.deoptimizePath(Te),this.included&&t.includePath(Te,Zn());for(const t of e)t.deoptimizeCache()}deoptimizePath(e){if(0===e.length&&this.disallowNamespaceReassignment(),this.variable)this.variable.deoptimizePath(e);else if(!this.isUndefined){const{propertyKey:t}=this;this.object.deoptimizePath([t===Pe?$e:t,...e.length<6?e:[...e.slice(0,6),Pe]])}}getLiteralValueAtPath(e,t,n){if(this.variable)return this.variable.getLiteralValueAtPath(e,t,n);if(this.isUndefined)return;const s=this.getDynamicPropertyKey();return s!==Pe&&e.length<6?(s!==this.propertyKey&&this.expressionsToBeDeoptimized.push(n),this.object.getLiteralValueAtPath([s,...e],t,n)):Ye}getLiteralValueAtPathAsChainElement(e,t,n){return this.variable?this.variable.getLiteralValueAtPath(e,t,n):this.isUndefined?void 0:Zr(this,this.object,e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){if(this.variable)return this.variable.getReturnExpressionWhenCalledAtPath(e,t,n,s);if(this.isUndefined)return[Rs,!1];const i=this.getDynamicPropertyKey();return i!==Pe&&e.length<6?(i!==this.propertyKey&&this.expressionsToBeDeoptimized.push(s),this.object.getReturnExpressionWhenCalledAtPath([i,...e],t,n,s)):nt}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.property.hasEffects(e)||this.object.hasEffects(e)||this.hasAccessEffect(e)}hasEffectsAsChainElement(e){if(this.variable||this.isUndefined)return this.hasEffects(e);const t="hasEffectsAsChainElement"in this.object?this.object.hasEffectsAsChainElement(e):this.object.hasEffects(e);return t===ts?ts:this.optional&&null==this.object.getLiteralValueAtPath(Le,Ue,this)?t||ts:(this.deoptimized||this.applyDeoptimizations(),t||this.property.hasEffects(e)||this.hasAccessEffect(e))}hasEffectsAsAssignmentTarget(e,t){return t&&!this.deoptimized&&this.applyDeoptimizations(),this.assignmentDeoptimized||this.applyAssignmentDeoptimization(),this.property.hasEffects(e)||this.object.hasEffects(e)||t&&this.hasAccessEffect(e)||this.hasEffectsOnInteractionAtPath(Le,this.assignmentInteraction,e)}hasEffectsOnInteractionAtPath(e,t,n){return this.variable?this.variable.hasEffectsOnInteractionAtPath(e,t,n):!!this.isUndefined||(!(e.length<6)||this.object.hasEffectsOnInteractionAtPath([this.getDynamicPropertyKey(),...e],t,n))}hasEffectsWhenDestructuring(e,t,n){return t.length>0&&n.hasEffectsOnInteractionAtPath(t,ot,e)}include(e,t){this.included||this.includeNode(e),this.object.include(e,t),this.property.include(e,t),t&&this.variable?.includePath(Te,e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable?this.scope.context.includeVariableInModule(this.variable,Le,e):this.isUndefined||this.object.includePath([this.propertyKey],e)}includeNodeAsAssignmentTarget(e){this.included=!0,this.assignmentDeoptimized||this.applyAssignmentDeoptimization(),this.variable?this.scope.context.includeVariableInModule(this.variable,Le,e):this.isUndefined||this.object.includePath([this.propertyKey],e)}includePath(e,t){this.included||this.includeNode(t),this.variable?this.variable?.includePath(e,t):this.isUndefined||this.object.includePath([this.propertyKey,...e.length<6?e:[...e.slice(0,6),Pe]],t)}includeAsAssignmentTarget(e,t,n){this.included||this.includeNodeAsAssignmentTarget(e),n&&!this.deoptimized&&this.applyDeoptimizations(),this.object.include(e,t),this.property.include(e,t)}includeCallArgumentsWhenCalledAtPath(e,t,n){this.promiseHandler?0===e.length?this.promiseHandler.includeCallArguments(t,n):it(t,n):this.variable?this.variable.includeCallArgumentsWhenCalledAtPath(e,t,n):!this.isUndefined&&e.length<6?this.object.includeCallArgumentsWhenCalledAtPath(this.propertyKey===Pe?Te:[this.propertyKey,...e],t,n):it(t,n)}includeDestructuredIfNecessary(){this.scope.context.error({message:"includeDestructuredIfNecessary is currently not supported for MemberExpressions"},this.start)}initialise(){super.initialise(),this.dynamicPropertyKey=Qr(this),this.propertyKey=null===this.dynamicPropertyKey?Pe:this.dynamicPropertyKey,this.accessInteraction={args:[this.object],type:0}}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:s,renderedSurroundingElement:i}=ye){if(this.variable||this.isUndefined){const{snippets:{getPropertyAccess:i}}=t;let r=this.variable?this.variable.getName(i):"undefined";n&&s&&(r="0, "+r),e.overwrite(this.start,this.end,r,{contentOnly:!0,storeName:!0})}else n&&s&&e.appendRight(this.start,"0, "),this.object.render(e,t,{renderedSurroundingElement:i}),this.property.render(e,t)}setAssignedValue(e){this.assignmentInteraction={args:[this.object,e],type:1}}applyDeoptimizations(){this.deoptimized=!0;const{propertyReadSideEffects:e}=this.scope.context.options.treeshake;this.bound&&e&&!(this.variable||this.isUndefined||this.promiseHandler)&&(this.object.deoptimizeArgumentsOnInteractionAtPath(this.accessInteraction,[this.propertyKey],Ue),this.scope.context.requestTreeshakingPass()),this.variable&&(this.variable.addUsedPlace(this),this.scope.context.requestTreeshakingPass())}applyAssignmentDeoptimization(){this.assignmentDeoptimized=!0;const{propertyReadSideEffects:e}=this.scope.context.options.treeshake;this.bound&&e&&!this.variable&&!this.isUndefined&&(this.object.deoptimizeArgumentsOnInteractionAtPath(this.assignmentInteraction,[this.propertyKey],Ue),this.scope.context.requestTreeshakingPass())}disallowNamespaceReassignment(){if(this.object instanceof Wi){this.scope.findVariable(this.object.name).isNamespace&&(this.variable&&this.scope.context.includeVariableInModule(this.variable,Te,Zn()),this.scope.context.log(bt,gn(this.object.name,this.scope.context.module.id),this.start))}}getDynamicPropertyKey(){if(null===this.dynamicPropertyKey){this.dynamicPropertyKey=this.propertyKey;const e=this.property.getLiteralValueAtPath(Le,Ue,this);return this.dynamicPropertyKey="symbol"==typeof e?Re.has(e)?e:Pe:String(e)}return this.dynamicPropertyKey}hasAccessEffect(e){const{propertyReadSideEffects:t}=this.scope.context.options.treeshake;return!(this.variable||this.isUndefined)&&t&&("always"===t||this.object.hasEffectsOnInteractionAtPath([this.getDynamicPropertyKey()],this.accessInteraction,e))}}function no(e,t,n){if(0===t.length)return e;if(!e.isNamespace||e instanceof bs)return null;const s=t[0].key,[i,r]=e.context.traceExport(s);if(!i){if(1===t.length){const i=e.context.fileName;return n.log(bt,Pn(s,n.module.id,i,!!r?.missingButExportExists),t[0].pos),"undefined"}return null}return no(i,t.slice(1),n)}const so="ROLLUP_FILE_URL_",io="ROLLUP_FILE_URL_OBJ_",ro="import";const oo=["cjs","iife","umd"],ao={amd:["document","module","URL"],cjs:["document","require","URL",Nr],es:[],iife:["document","URL",Nr],system:["module"],umd:["document","require","URL",Nr]},lo={amd:["document","require","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},co=(e,t,n="URL")=>`new ${n}(${e})${t?"":".href"}`,uo=(e,t,n=!1)=>co(`'${Ar(e)}', ${n?"typeof document === 'undefined' ? location.href : ":""}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`,t),ho=e=>(t,{chunkId:n})=>{const s=e(n);return null===t?`({ url: ${s} })`:"url"===t?s:"undefined"},po=(e,t)=>`require('u' + 'rl').pathToFileURL(${e})${t?"":".href"}`,fo=(e,t)=>po(`__dirname + '/${Ar(e)}'`,t),mo=(e,t=!1)=>`${t?"typeof document === 'undefined' ? location.href : ":""}(${Nr} && ${Nr}.tagName.toUpperCase() === 'SCRIPT' && ${Nr}.src || new URL('${Ar(e)}', document.baseURI).href)`,go={amd:(e,t)=>("."!==e[0]&&(e="./"+e),co(`require.toUrl('${Ar(e)}'), document.baseURI`,t)),cjs:(e,t)=>`(typeof document === 'undefined' ? ${fo(e,t)} : ${uo(e,t)})`,es:(e,t)=>co(`'${Ar(e)}', import.meta.url`,t),iife:(e,t)=>uo(e,t),system:(e,t)=>co(`'${Ar(e)}', module.meta.url`,t),umd:(e,t)=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${fo(e,t)} : ${uo(e,t,!0)})`},yo={amd:ho(()=>co("module.uri, document.baseURI",!1)),cjs:ho(e=>`(typeof document === 'undefined' ? ${po("__filename",!1)} : ${mo(e)})`),iife:ho(e=>mo(e)),system:(e,{snippets:{getPropertyAccess:t}})=>null===e?"module.meta":`module.meta${t(e)}`,umd:ho(e=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${po("__filename",!1)} : ${mo(e,!0)})`)};class bo extends us{constructor(){super("undefined")}getLiteralValueAtPath(){}}class Eo extends ds{constructor(e,t){super("default",e,e.declaration,Le,t,"other"),this.hasId=!1,this.originalId=null,this.originalVariable=null;const n=e.declaration;(n instanceof yr||n instanceof Yi)&&n.id?(this.hasId=!0,this.originalId=n.id):n instanceof Wi&&(this.originalId=n)}addReference(e){this.hasId||(this.name=e.name)}addUsedPlace(e){const t=this.getOriginalVariable();t===this?super.addUsedPlace(e):t.addUsedPlace(e)}forbidName(e){const t=this.getOriginalVariable();t===this?super.forbidName(e):t.forbidName(e)}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){const e=this.getOriginalVariable();return e===this?super.getBaseVariableName():e.getBaseVariableName()}getDirectOriginalVariable(){return!this.originalId||!this.hasId&&(this.originalId.isPossibleTDZ()||this.originalId.variable.isReassigned||this.originalId.variable instanceof bo||"syntheticNamespace"in this.originalId.variable)?null:this.originalId.variable}getName(e){const t=this.getOriginalVariable();return t===this?super.getName(e):t.getName(e)}getOriginalVariable(){if(this.originalVariable)return this.originalVariable;let e,t=this;const n=new Set;do{n.add(t),e=t,t=e.getDirectOriginalVariable()}while(t instanceof Eo&&!n.has(t));return this.originalVariable=t||e}}class xo extends us{constructor(e){super(e.getModuleName()),this.areAllMembersDeoptimized=!1,this.mergedNamespaces=[],this.nonExplicitNamespacesIncluded=!1,this.referencedEarly=!1,this.references=[],this.context=e,this.module=e.module}addReference(e){this.references.push(e),this.name=e.name}deoptimizeArgumentsOnInteractionAtPath(e,t,n){if(t.length>1||1===t.length&&2===e.type){const s=t[0];"string"==typeof s?this.module.getExportedVariablesByName().get(s)?.deoptimizeArgumentsOnInteractionAtPath(e,t.slice(1),n):st(e)}}deoptimizePath(e){if(e.length>1){const t=e[0];if("string"==typeof t)this.module.getExportedVariablesByName().get(t)?.deoptimizePath(e.slice(1));else if(!this.areAllMembersDeoptimized){this.areAllMembersDeoptimized=!0;for(const e of this.module.getExportedVariablesByName().values())e.deoptimizePath(Te)}}}getLiteralValueAtPath(e){return e[0]===Ce?"Module":Ye}hasEffectsOnInteractionAtPath(e,t,n){const{type:s}=t;if(0===e.length)return!0;if(1===e.length&&2!==s)return 1===s;const i=e[0];if("string"!=typeof i)return!0;const r=this.module.getExportedVariablesByName().get(i);return!r||r.hasEffectsOnInteractionAtPath(e.slice(1),t,n)}includePath(e,t){super.includePath(e,t),this.includeMemberPath(e,t)}includeMemberPath(e,t){if(e.length>0){const[n,...s]=e;if("string"==typeof n){const e=this.module.getExportedVariablesByName().get(n);e?this.context.includeVariableInModule(e,s,t):this.includeNonExplicitNamespaces()}else n&&(this.module.includeAllExports(),this.includeNonExplicitNamespaces())}}prepare(e){this.mergedNamespaces.length>0&&this.module.scope.addAccessedGlobals([kr],e)}renderBlock(e){const{exportNamesByVariable:t,format:n,freeze:s,indent:i,symbols:r,snippets:{_:o,cnst:a,getObject:l,getPropertyAccess:c,n:u,s:d}}=e,h=[...this.module.getExportedVariablesByName().entries()].filter(([e,t])=>!e.startsWith("*")&&t.included).map(([e,t])=>this.referencedEarly||t.isReassigned||t===this?[null,`get ${ws(e)}${o}()${o}{${o}return ${t.getName(c)}${d}${o}}`]:[e,t.getName(c)]);h.unshift([null,`__proto__:${o}null`]);let p=l(h,{lineBreakIndent:{base:"",t:i}});if(this.mergedNamespaces.length>0){const e=this.mergedNamespaces.map(e=>e.getName(c));p=`/*#__PURE__*/${kr}(${p},${o}[${e.join(`,${o}`)}])`}else r&&(p=`/*#__PURE__*/Object.defineProperty(${p},${o}Symbol.toStringTag,${o}${Jr(l)})`),s&&(p=`/*#__PURE__*/Object.freeze(${p})`);return p=`${a} ${this.getName(c)}${o}=${o}${p};`,"system"===n&&t.has(this)&&(p+=`${u}${fe([this],e)};`),p}renderFirst(){return this.referencedEarly}setMergedNamespaces(e){this.mergedNamespaces=e;const t=this.context.getModuleExecIndex();for(const e of this.references){const{context:n}=e.scope;if(n.getModuleExecIndex()<=t){this.referencedEarly=!0;break}}}includeNonExplicitNamespaces(){this.nonExplicitNamespacesIncluded||(this.nonExplicitNamespacesIncluded=!0,this.setMergedNamespaces(this.module.includeAndGetAdditionalMergedNamespaces()))}}xo.prototype.isNamespace=!0;const vo=e=>Object.create(e,{includePath:{value(t,n){e.includeMemberPath(t,n)}}});class Ao extends us{constructor(e,t,n){super(t),this.baseVariable=null,this.context=e,this.module=e.module,this.syntheticNamespace=n}getBaseVariable(){if(this.baseVariable)return this.baseVariable;let e=this.syntheticNamespace;for(;e instanceof Eo||e instanceof Ao;){if(e instanceof Eo){const t=e.getOriginalVariable();if(t===e)break;e=t}e instanceof Ao&&(e=e.syntheticNamespace)}return this.baseVariable=e}getBaseVariableName(){return this.syntheticNamespace.getBaseVariableName()}getName(e){return`${this.syntheticNamespace.getName(e)}${e(this.name)}`}includePath(e,t){super.includePath(e,t),this.context.includeVariableInModule(this.syntheticNamespace,[this.name,...e],t)}setRenderNames(e,t){super.setRenderNames(e,t)}}class So{constructor(e,t,n){this.options=t,this.inputBase=n,this.defaultVariableName="",this.namespaceVariableName="",this.variableName="",this.fileName=null,this.importAttributes=null,this.id=e.id,this.moduleInfo=e.info,this.renormalizeRenderPath=e.renormalizeRenderPath,this.suggestedVariableName=e.suggestedVariableName}get moduleSideEffects(){return this.moduleInfo.moduleSideEffects}getFileName(){if(this.fileName)return this.fileName;const{paths:e}=this.options,t=this.moduleInfo.rawId;return this.fileName=("function"==typeof e?e(t,{attributes:this.moduleInfo.attributes}):e[t])||(this.renormalizeRenderPath?J(te(this.inputBase,t)):t)}getImportAttributes(e){return this.importAttributes||=Po(["es","cjs"].includes(this.options.format)&&this.options.externalImportAttributes&&this.moduleInfo.attributes,e)}getImportPath(e){return Ar(this.renormalizeRenderPath?It(e,this.getFileName(),"amd"===this.options.format,!1):this.getFileName())}}function Po(e,{getObject:t}){if(!e)return null;const n=Object.entries(e).map(([e,t])=>[e,JSON.stringify(t)]);return n.length>0?t(n,{lineBreakIndent:null}):null}function $o(e){return e.endsWith(".js")?e.slice(0,-3):e}function wo(e,t){return e.autoId?`${e.basePath?e.basePath+"/":""}${$o(t)}`:e.id??""}function Io(e,t,n,s,i,r,o,a,l="return "){const{_:c,getFunctionIntro:u,getPropertyAccess:d,n:h,s:p}=i;if(!n)return`${h}${h}${l}${function(e,t,n,s,i){if(e.length>0)return e[0].local;for(const{defaultVariableName:e,importPath:r,isChunk:o,name:a,namedExportsMode:l,namespaceVariableName:c,reexports:u}of t)if(u)return Co(a,u[0].imported,l,o,e,c,n,r,s,i)}(e,t,s,o,d)};`;let f="";if(n)for(const{defaultVariableName:e,importPath:n,isChunk:a,name:l,namedExportsMode:u,namespaceVariableName:p,reexports:m}of t)if(m)for(const t of m)if("*"!==t.reexported){const m=Co(l,t.imported,u,a,e,p,s,n,o,d);f&&(f+=h),"*"!==t.imported&&t.needsLiveBinding?f+=`Object.defineProperty(exports,${c}${JSON.stringify(t.reexported)},${c}${Ro(m,!1,r,i)});`:"__proto__"===t.reexported?f+=`Object.defineProperty(exports,${c}"__proto__",${c}{${h}${r}enumerable:${c}true,${h}${r}value:${c}${m}${h}});`:f+=`exports${d(t.reexported)}${c}=${c}${m};`}for(const{exported:t,local:n,needsLiveBinding:s}of e){const e=`exports${d(t)}`,o=n;if(e!==o){if(f&&(f+=h),s){f+=`Object.defineProperty(exports,${c}${JSON.stringify(t)},${c}${Ro(o,!0,r,i)});`;continue}f+="__proto__"===t?`Object.defineProperty(exports,${c}"__proto__",${c}{${h}${r}enumerable:${c}true,${h}${r}value:${c}${o}${h}});`:`${e}${c}=${c}${o};`}}if(n)for(const{name:e,reexports:n}of t)if(n)for(const t of n)if("*"===t.reexported){if(f&&(f+=h),!t.needsLiveBinding&&a){const t="'__proto__'";f+=`Object.prototype.hasOwnProperty.call(${e},${c}${t})${c}&&${h}${r}!Object.prototype.hasOwnProperty.call(exports,${c}${t})${c}&&${h}${r}Object.defineProperty(exports,${c}${t},${c}{${h}${r}${r}enumerable:${c}true,${h}${r}${r}value:${c}${e}[${t}]${h}${r}});${h}${h}`}const n=`{${h}${r}if${c}(k${c}!==${c}'default'${c}&&${c}!Object.prototype.hasOwnProperty.call(exports,${c}k))${c}${Oo(e,t.needsLiveBinding,r,i)}${p}${h}}`;f+=`Object.keys(${e}).forEach(${u(["k"],{isAsync:!1,name:null})}${n});`}return f?`${h}${h}${f}`:""}function Co(e,t,n,s,i,r,o,a,l,c){if("default"===t){if(!s){const t=o(a),n=Or[t]?i:e;return Rr(t,l)?`${n}${c("default")}`:n}return n?`${e}${c("default")}`:e}return"*"===t?(s?!n:Dr[o(a)])?r:e:`${e}${c(t)}`}function ko(e){return e([["value","true"]],{lineBreakIndent:null})}function No(e,t,n,{_:s,getObject:i}){if(e){if(t)return n?`Object.defineProperties(exports,${s}${i([["__esModule",ko(i)],[null,`[Symbol.toStringTag]:${s}${Jr(i)}`]],{lineBreakIndent:null})});`:`Object.defineProperty(exports,${s}'__esModule',${s}${ko(i)});`;if(n)return`Object.defineProperty(exports,${s}Symbol.toStringTag,${s}${Jr(i)});`}return""}const Oo=(e,t,n,s)=>{const{_:i}=s;return t?`Object.defineProperty(exports,${i}k,${i}${Ro(`${e}[k]`,!1,n,s,n)})`:`exports[k]${i}=${i}${e}[k]`},Ro=(e,t,n,{getDirectReturnFunction:s,getObject:i},r="")=>{const[o,a]=s([],{functionReturn:!0,lineBreakIndent:null,name:null}),l=[["enumerable","true"],["get",`${o}${e}${a}`]];return t&&l.unshift(["configurable","true"]),i(l,{lineBreakIndent:{base:r,t:n}})};function Do(e,t,n,s,i,r,o,a){const{_:l,cnst:c,n:u}=a,d=new Set,h=[],p=(e,t,n)=>{d.add(t),h.push(`${c} ${e}${l}=${l}/*#__PURE__*/${t}(${n});`)};for(const{defaultVariableName:n,imports:s,importPath:i,isChunk:r,name:o,namedExportsMode:a,namespaceVariableName:l,reexports:c}of e)if(r){for(const{imported:e,reexported:t}of[...s||[],...c||[]])if("*"===e&&"*"!==t){a||p(l,Cr,o);break}}else{const e=t(i);let r=!1,a=!1;for(const{imported:t,reexported:i}of[...s||[],...c||[]]){let s,c;"default"===t?r||(r=!0,n!==l&&(c=n,s=Or[e])):"*"!==t||"*"===i||a||(a=!0,s=Dr[e],c=l),s&&p(c,s,o)}}return`${_r(d,r,o,a,n,s,i)}${h.length>0?`${h.join(u)}${u}${u}`:""}`}function Mo(e,t,n){const s=n.find(e=>e.sourcePhaseImport);s&&Ut(function(e,t,n){return{code:"SOURCE_PHASE_FORMAT_UNSUPPORTED",message:`Source phase imports are not supported for the "${e}" output format, importing "${n}" in "${t}". Use the "es" output format to support source phase imports.`,url:Ct(Vt)}}(e,t,s.importPath))}function _o(e,t){return"."!==e[0]?e:t?(n=e).endsWith(".js")?n:n+".js":$o(e);var n}const Lo=new Set(["node:assert","assert","node:assert/strict","assert/strict","node:async_hooks","async_hooks","node:bench","node:bench/reporters","node:buffer","buffer","node:child_process","child_process","node:cluster","cluster","node:console","console","node:constants","constants","node:crypto","crypto","node:dgram","dgram","node:diagnostics_channel","diagnostics_channel","node:dns","dns","node:dns/promises","dns/promises","node:domain","domain","node:events","events","node:ffi","node:fs","fs","node:fs/promises","fs/promises","node:http","http","node:http2","http2","node:https","https","node:inspector","inspector","node:inspector/promises","inspector/promises","node:module","module","node:net","net","node:os","os","node:path","path","node:path/posix","path/posix","node:path/win32","path/win32","node:perf_hooks","perf_hooks","node:process","process","node:querystring","querystring","node:quic","node:readline","readline","node:readline/promises","readline/promises","node:repl","repl","node:sea","node:sqlite","node:stream","stream","node:stream/consumers","stream/consumers","node:stream/iter","stream/iter","node:stream/promises","stream/promises","node:stream/web","stream/web","node:string_decoder","string_decoder","node:test","node:test/reporters","node:timers","timers","node:timers/promises","timers/promises","node:tls","tls","node:trace_events","trace_events","node:tty","tty","node:url","url","node:util","util","node:util/types","util/types","node:v8","v8","node:vfs","node:vm","vm","node:wasi","wasi","node:worker_threads","worker_threads","node:zlib","zlib","node:zlib/iter","zlib/iter"]);function To(e,t){const n=t.map(({importPath:e})=>e).filter(e=>Lo.has(e)||e.startsWith("node:"));0!==n.length&&e(bt,function(e){return{code:"MISSING_NODE_BUILTINS",ids:e,message:`Creating a browser bundle that depends on Node.js built-in modules (${At(e)}). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`}}(n))}const Bo=(e,t)=>e.split(".").map(t).join("");function zo(e,t,n,s,{_:i,getPropertyAccess:r},o){const a=e.split("."),l=a[0]in Object.prototype;o&&l&&o(bt,Nn(a[0])),a[0]=("function"==typeof n?n(a[0],{attributes:{}}):l?a[0]:n[a[0]])||a[0];const c=a.pop();let u=t,d=[...a.map(e=>(u+=r(e),`${u}${i}=${i}${u}${i}||${i}{}`)),`${u}${r(c)}`].join(`,${i}`)+`${i}=${i}${s}`;return a.length>0&&(d=`(${d})`),d}function Fo(e){let t=e.length;for(;t--;){const{imports:n,reexports:s}=e[t];if(n||s)return e.slice(0,t+1)}return[]}const Vo="_missingExportShim";const jo=({dependencies:e,exports:t})=>{const n=new Set(t.map(e=>e.exported));n.add("default");for(const{reexports:t}of e)if(t)for(const e of t)"*"!==e.reexported&&n.add(e.reexported);return n},Uo=(e,t,{_:n,cnst:s,getObject:i,n:r})=>{if(e){const o=[...e].map(e=>[e,"1"]);return o.unshift([null,`__proto__:${n}null`]),`${r}${t}${s} _starExcludes${n}=${n}${i(o,{lineBreakIndent:{base:t,t:t}})};`}return""},Go=(e,t,{_:n,n:s})=>e.length>0?`${s}${t}var ${e.join(`,${n}`)};`:"",Ho=(e,t,n)=>Wo(e.filter(e=>e.hoisted).map(e=>({name:e.exported,value:e.local})),t,n);function Wo(e,t,{_:n,n:s}){return 0===e.length?"":1===e.length?`exports(${JSON.stringify(e[0].name)},${n}${e[0].value});${s}${s}`:`exports({${s}`+e.map(({name:e,value:s})=>`${t}${ws(e)}:${n}${s}`).join(`,${s}`)+`${s}});${s}${s}`}const qo=(e,t,n)=>Wo(e.filter(e=>e.expression).map(e=>({name:e.exported,value:e.local})),t,n),Ko=(e,t,n)=>Wo(e.filter(e=>e.local===Vo).map(e=>({name:e.exported,value:Vo})),t,n);function Xo(e,t,n){return e?`${t}${Bo(e,n)}`:"null"}var Jo={amd:function(e,{accessedGlobals:t,dependencies:n,exports:s,hasDefaultExport:i,hasExports:r,id:o,indent:a,intro:l,isEntryFacade:c,isModuleFacade:u,namedExportsMode:d,log:h,outro:p,snippets:f},{amd:m,esModule:g,externalLiveBindings:y,freeze:b,generatedCode:{symbols:E},interop:x,reexportProtoFromExternal:v,strict:A}){To(h,n),Mo("amd",o,n);const S=n.map(e=>`'${_o(e.importPath,m.forceJsExtensionForImports)}'`),P=n.map(e=>e.name),{n:$,getNonArrowFunctionIntro:w,_:I}=f;r&&(d||"exports.default"===s[0]?.local)&&(P.unshift("exports"),S.unshift("'exports'")),t.has("require")&&(P.unshift("require"),S.unshift("'require'")),t.has("module")&&(P.unshift("module"),S.unshift("'module'"));const C=wo(m,o),k=(C?`'${C}',${I}`:"")+(S.length>0?`[${S.join(`,${I}`)}],${I}`:""),N=A?`${I}'use strict';`:"";e.prepend(`${l}${Do(n,x,y,b,E,t,a,f)}`);const O=Io(s,n,d,x,f,a,y,v);let R=No(d&&r,c&&(!0===g||"if-default-prop"===g&&i),u&&E,f);R&&(R=$+$+R),e.append(`${O}${R}${p}`).indent(a).prepend(`${m.define}(${k}(${w(P,{isAsync:!1,name:null})}{${N}${$}${$}`).append(`${$}${$}}));`)},cjs:function(e,{accessedGlobals:t,dependencies:n,exports:s,hasDefaultExport:i,hasExports:r,id:o,indent:a,intro:l,isEntryFacade:c,isModuleFacade:u,namedExportsMode:d,outro:h,snippets:p},{compact:f,esModule:m,externalLiveBindings:g,freeze:y,interop:b,generatedCode:{symbols:E},reexportProtoFromExternal:x,strict:v}){Mo("cjs",o,n);const{_:A,n:S}=p,P=v?`'use strict';${S}${S}`:"";let $=No(d&&r,c&&(!0===m||"if-default-prop"===m&&i),u&&E,p);$&&($+=S+S);const w=function(e,{_:t,cnst:n,n:s},i){let r="",o=!1;for(const{importPath:a,name:l,reexports:c,imports:u}of e)c||u?(r+=i&&o?",":`${r?`;${s}`:""}${n} `,o=!0,r+=`${l}${t}=${t}require('${a}')`):(r&&(r+=i&&!o?",":`;${s}`),o=!1,r+=`require('${a}')`);if(r)return`${r};${s}${s}`;return""}(n,p,f),I=Do(n,b,g,y,E,t,a,p);e.prepend(`${P}${l}${$}${w}${I}`);const C=Io(s,n,d,b,p,a,g,x,`module.exports${A}=${A}`);e.append(`${C}${h}`)},es:function(e,{accessedGlobals:t,indent:n,intro:s,outro:i,dependencies:r,exports:o,snippets:a},{externalLiveBindings:l,freeze:c,generatedCode:{symbols:u},importAttributesKey:d}){const{n:h}=a,p=function(e,t,{_:n}){const s=[];for(const{importPath:i,reexports:r,imports:o,name:a,attributes:l,sourcePhaseImport:c}of e){const e=`'${i}'${l?`${n}${t}${n}${l}`:""};`;if(c&&s.push(`import source ${c} from${n}${e}`),r||o){if(o){let t=null,i=null;const r=[];for(const e of o)"default"===e.imported?t=e:"*"===e.imported?i=e:r.push(e);i&&s.push(`import${n}*${n}as ${i.local} from${n}${e}`),t&&0===r.length?s.push(`import ${t.local} from${n}${e}`):r.length>0&&s.push(`import ${t?`${t.local},${n}`:""}{${n}${r.map(e=>e.imported===e.local?e.imported:`${Is(e.imported)} as ${e.local}`).join(`,${n}`)}${n}}${n}from${n}${e}`)}if(r){let t=null;const i=[],l=[];for(const e of r)"*"===e.reexported?t=e:"*"===e.imported?i.push(e):l.push(e);if(t&&s.push(`export${n}*${n}from${n}${e}`),i.length>0){o&&o.some(e=>"*"===e.imported&&e.local===a)||s.push(`import${n}*${n}as ${a} from${n}${e}`);for(const e of i)s.push(`export${n}{${n}${a===e.reexported?a:`${a} as ${Is(e.reexported)}`} };`)}l.length>0&&s.push(`export${n}{${n}${l.map(e=>e.imported===e.reexported?Is(e.imported):`${Is(e.imported)} as ${Is(e.reexported)}`).join(`,${n}`)}${n}}${n}from${n}${e}`)}}else c||s.push(`import${n}${e}`)}return s}(r,d,a);p.length>0&&(s+=p.join(h)+h+h),(s+=_r(null,t,n,a,l,c,u))&&e.prepend(s);const f=function(e,{_:t,cnst:n}){const s=[],i=new Array(e.length);let r=0;for(const o of e)o.expression&&s.push(`${n} ${o.local}${t}=${t}${o.expression};`),i[r++]=o.exported===o.local?o.local:`${o.local} as ${Is(o.exported)}`;i.length>0&&s.push(`export${t}{${t}${i.join(`,${t}`)}${t}};`);return s}(o,a);f.length>0&&e.append(h+h+f.join(h).trim()),i&&e.append(i),e.trim()},iife:function(e,{accessedGlobals:t,dependencies:n,exports:s,hasDefaultExport:i,hasExports:r,id:o,indent:a,intro:l,namedExportsMode:c,log:u,outro:d,snippets:h},{compact:p,esModule:f,extend:m,freeze:g,externalLiveBindings:y,reexportProtoFromExternal:b,globals:E,interop:x,name:v,generatedCode:{symbols:A},strict:S}){Mo("iife",o,n);const{_:P,getNonArrowFunctionIntro:$,getPropertyAccess:w,n:I}=h,C=v&&v.includes("."),k=!m&&!C;if(v&&k&&(As(N=v)||vs.test(N)))return Ut(function(e){return{code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${e}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`,url:Ct("configuration-options/#output-extend")}}(v));var N;To(u,n);const O=Fo(n),R=O.map(e=>e.globalName||"null"),D=O.map(e=>e.name);r&&!v&&u(bt,{code:en,message:'If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.',url:Ct(zt)}),r&&(c||"exports.default"===s[0]?.local)&&(m?(R.unshift(`this${Bo(v,w)}${P}=${P}this${Bo(v,w)}${P}||${P}{}`),D.unshift("exports")):(R.unshift("{}"),D.unshift("exports")));const M=S?`${a}'use strict';${I}`:"",_=Do(n,x,y,g,A,t,a,h);e.prepend(`${l}${_}`);let L=`(${$(D,{isAsync:!1,name:null})}{${I}${M}${I}`;r&&(!v||m&&c||(L=(k?`var ${v}`:`this${Bo(v,w)}`)+`${P}=${P}${L}`),C&&(L=function(e,t,n,{_:s,getPropertyAccess:i,s:r},o,a){const l=e.split("."),c=l[0]in Object.prototype;a&&c&&a(bt,Nn(l[0])),l[0]=("function"==typeof n?n(l[0],{attributes:{}}):c?l[0]:n[l[0]])||l[0],l.pop();let u=t;return l.map(e=>(u+=i(e),`${u}${s}=${s}${u}${s}||${s}{}${r}`)).join(o?",":"\n")+(o&&l.length>0?";":"\n")}(v,"this",E,h,p,u)+L));let T=`${I}${I}})(${R.join(`,${P}`)});`;r&&!m&&c&&(T=`${I}${I}${a}return exports;${T}`);const B=Io(s,n,c,x,h,a,y,b);let z=No(c&&r,!0===f||"if-default-prop"===f&&i,A,h);z&&(z=I+I+z),e.append(`${B}${z}${d}`).indent(a).prepend(L).append(T)},system:function(e,{accessedGlobals:t,dependencies:n,exports:s,hasExports:i,id:r,indent:o,intro:a,snippets:l,outro:c,usesTopLevelAwait:u},{externalLiveBindings:d,freeze:h,name:p,generatedCode:{symbols:f},strict:m,systemNullSetters:g}){Mo("system",r,n);const{_:y,getFunctionIntro:b,getNonArrowFunctionIntro:E,n:x,s:v}=l,{importBindings:A,setters:S,starExcludes:P}=function(e,t,n,{_:s,cnst:i,getObject:r,getPropertyAccess:o,n:a}){const l=[],c=[];let u=null;for(const{imports:d,reexports:h}of e){const p=[];if(d)for(const e of d)l.push(e.local),"*"===e.imported?p.push(`${e.local}${s}=${s}module;`):p.push(`${e.local}${s}=${s}module${o(e.imported)};`);if(h){const a=[];let l=!1;for(const{imported:e,reexported:t}of h)"*"===t?l=!0:a.push([t,"*"===e?"module":`module${o(e)}`]);if(a.length>1||l)if(l){u||(u=jo({dependencies:e,exports:t})),a.unshift([null,`__proto__:${s}null`]);const o=r(a,{lineBreakIndent:null});p.push(`${i} setter${s}=${s}${o};`,`for${s}(${i} name in module)${s}{`,`${n}if${s}(!_starExcludes[name])${s}setter[name]${s}=${s}module[name];`,"}","exports(setter);")}else{const e=r(a,{lineBreakIndent:null});p.push(`exports(${e});`)}else{const[e,t]=a[0];p.push(`exports(${JSON.stringify(e)},${s}${t});`)}}c.push(p.join(`${a}${n}${n}${n}`))}return{importBindings:l,setters:c,starExcludes:u}}(n,s,o,l),$=p?`'${p}',${y}`:"",w=t.has("module")?["exports","module"]:i?["exports"]:[];let I=`System.register(${$}[`+n.map(({importPath:e})=>`'${e}'`).join(`,${y}`)+`],${y}(${E(w,{isAsync:!1,name:null})}{${x}${o}${m?"'use strict';":""}`+Uo(P,o,l)+Go(A,o,l)+`${x}${o}return${y}{${S.length>0?`${x}${o}${o}setters:${y}[${S.map(e=>e?`${b(["module"],{isAsync:!1,name:null})}{${x}${o}${o}${o}${e}${x}${o}${o}}`:g?"null":`${b([],{isAsync:!1,name:null})}{}`).join(`,${y}`)}],`:""}${x}`;I+=`${o}${o}execute:${y}(${E([],{isAsync:u,name:null})}{${x}${x}`;const C=`${o}${o}})${x}${o}}${v}${x}}));`;e.prepend(a+_r(null,t,o,l,d,h,f)+Ho(s,o,l)).append(`${c}${x}${x}`+qo(s,o,l)+Ko(s,o,l)).indent(`${o}${o}${o}`).append(C).prepend(I)},umd:function(e,{accessedGlobals:t,dependencies:n,exports:s,hasDefaultExport:i,hasExports:r,id:o,indent:a,intro:l,namedExportsMode:c,log:u,outro:d,snippets:h},{amd:p,compact:f,esModule:m,extend:g,externalLiveBindings:y,freeze:b,interop:E,name:x,generatedCode:{symbols:v},globals:A,noConflict:S,reexportProtoFromExternal:P,strict:$}){const{_:w,cnst:I,getFunctionIntro:C,getNonArrowFunctionIntro:k,getPropertyAccess:N,n:O,s:R}=h,D=f?"f":"factory",M=f?"g":"global";if(r&&!x)return Ut({code:en,message:'You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.',url:Ct(zt)});Mo("umd",o,n),To(u,n);const _=n.map(e=>`'${_o(e.importPath,p.forceJsExtensionForImports)}'`),L=n.map(e=>`require('${e.importPath}')`),T=Fo(n),B=T.map(e=>Xo(e.globalName,M,N)),z=T.map(e=>e.name);(r||S)&&(c||r&&"exports.default"===s[0]?.local)&&(_.unshift("'exports'"),L.unshift("exports"),B.unshift(zo(x,M,A,(g?`${Xo(x,M,N)}${w}||${w}`:"")+"{}",h,u)),z.unshift("exports"));const F=wo(p,o),V=(F?`'${F}',${w}`:"")+(_.length>0?`[${_.join(`,${w}`)}],${w}`:""),j=p.define,U=!c&&r?`module.exports${w}=${w}`:"",G=$?`${w}'use strict';${O}`:"";let H;if(S){const e=f?"e":"exports";let t;if(!c&&r)t=`${I} ${e}${w}=${w}${zo(x,M,A,`${D}(${B.join(`,${w}`)})`,h,u)};`;else{t=`${I} ${e}${w}=${w}${B.shift()};${O}${a}${a}${D}(${[e,...B].join(`,${w}`)});`}H=`(${C([],{isAsync:!1,name:null})}{${O}${a}${a}${I} current${w}=${w}${function(e,t,{_:n,getPropertyAccess:s}){let i=t;return e.split(".").map(e=>i+=s(e)).join(`${n}&&${n}`)}(x,M,h)};${O}${a}${a}${t}${O}${a}${a}${e}.noConflict${w}=${w}${C([],{isAsync:!1,name:null})}{${w}${Xo(x,M,N)}${w}=${w}current;${w}return ${e}${R}${w}};${O}${a}})()`}else H=`${D}(${B.join(`,${w}`)})`,!c&&r&&(H=zo(x,M,A,H,h,u));const W=r||S&&c||B.length>0,q=[D];W&&q.unshift(M);const K=W?`this,${w}`:"",X=W?`(${M}${w}=${w}typeof globalThis${w}!==${w}'undefined'${w}?${w}globalThis${w}:${w}${M}${w}||${w}self,${w}`:"",J=W?")":"",Y=W?`${a}typeof exports${w}===${w}'object'${w}&&${w}typeof module${w}!==${w}'undefined'${w}?${w}${U}${D}(${L.join(`,${w}`)})${w}:${O}`:"",Z=`(${k(q,{isAsync:!1,name:null})}{${O}`+Y+`${a}typeof ${j}${w}===${w}'function'${w}&&${w}${j}.amd${w}?${w}${j}(${V}${D})${w}:${O}`+`${a}${X}${H}${J};${O}`+`})(${K}(${k(z,{isAsync:!1,name:null})}{${G}${O}`,Q=O+O+"}));";e.prepend(`${l}${Do(n,E,y,b,v,t,a,h)}`);const ee=Io(s,n,c,E,h,a,y,P);let te=No(c&&r,!0===m||"if-default-prop"===m&&i,v,h);te&&(te=O+O+te),e.append(`${ee}${te}${d}`).trim().indent(a).append(Q).prepend(Z)}};function Yo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zo,Qo,ea,ta,na,sa,ia,ra,oa,aa,la,ca={};function ua(){if(Qo)return Zo;Qo=1;const e="\\\\/",t=`[^${e}]`,n="\\.",s="\\/",i="[^/]",r=`(?:${s}|$)`,o=`(?:^|${s})`,a=`${n}{1,2}${r}`,l={DOT_LITERAL:n,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:s,ONE_CHAR:"(?=.)",QMARK:i,END_ANCHOR:r,DOTS_SLASH:a,NO_DOT:`(?!${n})`,NO_DOTS:`(?!${o}${a})`,NO_DOT_SLASH:`(?!${n}{0,1}${r})`,NO_DOTS_SLASH:`(?!${a})`,QMARK_NO_DOT:`[^.${s}]`,STAR:`${i}*?`,START_ANCHOR:o,SEP:"/"},c={...l,SLASH_LITERAL:`[${e}]`,QMARK:t,STAR:`${t}*?`,DOTS_SLASH:`${n}{1,2}(?:[${e}]|$)`,NO_DOT:`(?!${n})`,NO_DOTS:`(?!(?:^|[${e}])${n}{1,2}(?:[${e}]|$))`,NO_DOT_SLASH:`(?!${n}{0,1}(?:[${e}]|$))`,NO_DOTS_SLASH:`(?!${n}{1,2}(?:[${e}]|$))`,QMARK_NO_DOT:`[^.${e}]`,START_ANCHOR:`(?:^|[${e}])`,END_ANCHOR:`(?:[${e}]|$)`,SEP:"\\"};return Zo={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?c:l},Zo}function da(){return ea||(ea=1,function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:i}=ua();e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>s.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,"\\$1"),e.toPosixSlashes=e=>e.replace(t,"/"),e.isWindows=()=>{if("undefined"!=typeof navigator&&navigator.platform){const e=navigator.platform.toLowerCase();return"win32"===e||"windows"===e}return!("undefined"==typeof process||!process.platform)&&"win32"===process.platform},e.removeBackslashes=e=>e.replace(n,e=>"\\"===e?"":e),e.escapeLast=(t,n,s)=>{const i=t.lastIndexOf(n,s);return-1===i?t:"\\"===t[i-1]?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},e.wrapOutput=(e,t={},n={})=>{let s=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(s=`(?:^(?!${s}).*$)`),s},e.basename=(e,{windows:t}={})=>{const n=e.split(t?/[\\/]/:"/"),s=n[n.length-1];return""===s?n[n.length-2]:s}}(ca)),ca}function ha(){if(na)return ta;na=1;const e=da(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:i,CHAR_DOT:r,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:a,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:p,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:m}=ua(),g=e=>e===a||e===s,y=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return ta=(b,E)=>{const x=E||{},v=b.length-1,A=!0===x.parts||!0===x.tokens||!0===x.scanToEnd,S=[],P=[],$=[];let w,I,C=b,k=-1,N=0,O=0,R=!1,D=!1,M=!1,_=!1,L=!1,T=!1,B=!1,z=!1,F=!1,V=!1,j=0,U={value:"",depth:0,isGlob:!1};const G=()=>k>=v,H=()=>C.charCodeAt(k+1),W=()=>(w=I,C.charCodeAt(++k));for(;k<v;){let e;if(I=W(),I!==s){if(!0===T||I===l){for(j++;!0!==G()&&(I=W());)if(I!==s)if(I!==l){if(!0!==T&&I===r&&(I=W())===r){if(R=U.isBrace=!0,M=U.isGlob=!0,V=!0,!0===A)continue;break}if(!0!==T&&I===i){if(R=U.isBrace=!0,M=U.isGlob=!0,V=!0,!0===A)continue;break}if(I===p&&(j--,0===j)){T=!1,R=U.isBrace=!0,V=!0;break}}else j++;else B=U.backslashes=!0,W();if(!0===A)continue;break}if(I!==a){if(!0!==x.noext){if(!0===(I===d||I===n||I===t||I===h||I===o)&&H()===c){if(M=U.isGlob=!0,_=U.isExtglob=!0,V=!0,I===o&&k===N&&(F=!0),!0===A){let e=0;for(;!0!==G()&&(I=W());)if(I!==s)if(I!==c){if(I===f&&0===--e){V=!0;break}}else e++;else B=U.backslashes=!0,W();continue}break}}if(I===t){if(w===t&&(L=U.isGlobstar=!0),M=U.isGlob=!0,V=!0,!0===A)continue;break}if(I===h){if(M=U.isGlob=!0,V=!0,!0===A)continue;break}if(I===u){for(;!0!==G()&&(e=W());)if(e!==s){if(e===m){D=U.isBracket=!0,M=U.isGlob=!0,V=!0;break}}else B=U.backslashes=!0,W();if(!0===A)continue;break}if(!0===x.nonegate||I!==o||k!==N){if(!0!==x.noparen&&I===c){if(M=U.isGlob=!0,!0===A){let e=1;for(;!0!==G()&&(I=W());)if(I!==s)if(I!==c){if(I===f&&0===--e){V=!0;break}}else e++;else B=U.backslashes=!0,W();continue}break}if(!0===M){if(V=!0,!0===A)continue;break}}else z=U.negated=!0,N++}else{if(S.push(k),P.push(U),U={value:"",depth:0,isGlob:!1},!0===V)continue;if(w===r&&k===N+1){N+=2;continue}O=k+1}}else B=U.backslashes=!0,I=W(),I===l&&(T=!0)}!0===x.noext&&(_=!1,M=!1);let q=C,K="",X="";N>0&&(K=C.slice(0,N),C=C.slice(N),O-=N),q&&!0===M&&O>0?(q=C.slice(0,O),X=C.slice(O)):!0===M?(q="",X=C):q=C,q&&""!==q&&"/"!==q&&q!==C&&g(q.charCodeAt(q.length-1))&&(q=q.slice(0,-1)),!0===x.unescape&&(X&&(X=e.removeBackslashes(X)),q&&!0===B&&(q=e.removeBackslashes(q)));const J={prefix:K,input:b,start:N,base:q,glob:X,isBrace:R,isBracket:D,isGlob:M,isExtglob:_,isGlobstar:L,negated:z,negatedExtglob:F};if(!0===x.tokens&&(J.maxDepth=0,g(I)||P.push(U),J.tokens=P),!0===x.parts||!0===x.tokens){let e;for(let t=0;t<S.length;t++){const n=void 0!==e?e+1:N,s=S[t],i=b.slice(n,s);x.tokens&&(0===t&&0!==N?(P[t].isPrefix=!0,P[t].value=K):P[t].value=i,y(P[t]),J.maxDepth+=P[t].depth),s>=N&&($.push(i),e=s)}const t=void 0!==e?e+1:N,n=b.slice(t);$.push(n),x.tokens&&e&&e+1<b.length&&(P[P.length-1].value=n,y(P[P.length-1]),J.maxDepth+=P[P.length-1].depth),J.slashes=S,J.parts=$}return J},ta}function pa(){if(ia)return sa;ia=1;const e=ua(),t=da(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:r,REPLACEMENTS:o}=e,a=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();return`[${e.join("-")}]`},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,c=e=>{const t=[];let n=0,s=0,i=0,r="",o=!1;for(const a of e)if(!0!==o)if("\\"!==a)if('"'!==a){if(0===i)if("["===a)n++;else if("]"===a&&n>0)n--;else if(0===n)if("("===a)s++;else if(")"===a&&s>0)s--;else if("|"===a&&0===s){t.push(r),r="";continue}r+=a}else i=1===i?0:1,r+=a;else r+=a,o=!0;else r+=a,o=!1;return t.push(r),t},u=e=>{let t=e.trim(),n=!0;for(;!0===n;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if((e=>{let t=!1;for(const n of e)if(!0!==t)if("\\"!==n){if(/[?*+@!()[\]{}]/.test(n))return!1}else t=!0;else t=!1;return!0})(t))return t.replace(/\\(.)/g,"$1")},d=(e,t=!0)=>{if("+"!==e[0]&&"*"!==e[0]||"("!==e[1])return;let n=0,s=0,i=0,r=!1;for(let o=1;o<e.length;o++){const a=e[o];if(!0!==r)if("\\"!==a)if('"'!==a){if(1!==i)if("["!==a){if("]"===a&&n>0)n--;else if(!(n>0))if("("!==a){if(")"===a&&(s--,0===s)){if(!0===t&&o!==e.length-1)return;return{type:e[0],body:e.slice(2,o),end:o}}}else s++}else n++}else i=1===i?0:1;else r=!0;else r=!1}},h=e=>`${1===e.length?t.escapeRegex(e[0]):`[${e.map(e=>t.escapeRegex(e)).join("")}]`}*`,p=e=>{let t=0;const n=[];for(;t<e.length;){const s=d(e.slice(t),!1);if(!s||"*"!==s.type)return;const i=c(s.body).map(e=>e.trim());if(1!==i.length)return;const r=u(i[0]);if(!r||1!==r.length)return;n.push(r),t+=s.end+1}if(!(n.length<1))return n},f=e=>{let t=0,n=e.trim(),s=d(n);for(;s;)t++,n=s.body.trim(),s=d(n);return t},m=(t,n)=>{if(!1===n.maxExtglobRecursion)return{risky:!1};const s="number"==typeof n.maxExtglobRecursion?n.maxExtglobRecursion:e.DEFAULT_MAX_EXTGLOB_RECURSION,i=c(t).map(e=>e.trim());if(i.length>1&&(i.some(e=>""===e)||i.some(e=>/^[*?]+$/.test(e))||(e=>{const t=e.map(u).filter(Boolean);for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++){const s=t[e],i=t[n],r=s[0];if(r&&s===r.repeat(s.length)&&i===r.repeat(i.length)&&(s===i||s.startsWith(i)||i.startsWith(s)))return!0}return!1})(i)))return{risky:!0};const r=[];let o=!1,a=!0;for(const e of i){const t=p(e);if(t){o=!0,r.push(...t);continue}const n=u(e);if(n&&1===n.length)r.push(n);else if(a=!1,f(e)>s)return{risky:!0}}return o?a?{risky:!0,safeOutput:h([...new Set(r)])}:{risky:!0}:{risky:!1}},g=(c,u)=>{if("string"!=typeof c)throw new TypeError("Expected a string");c=o[c]||c;const d={...u},h="number"==typeof d.maxLength?Math.min(n,d.maxLength):n;let p=c.length;if(p>h)throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${h}`);const f={type:"bos",value:"",output:d.prepend||""},y=[f],b=d.capture?"":"?:",E=e.globChars(d.windows),x=e.extglobChars(E),{DOT_LITERAL:v,PLUS_LITERAL:A,SLASH_LITERAL:S,ONE_CHAR:P,DOTS_SLASH:$,NO_DOT:w,NO_DOT_SLASH:I,NO_DOTS_SLASH:C,QMARK:k,QMARK_NO_DOT:N,STAR:O,START_ANCHOR:R}=E,D=e=>`(${b}(?:(?!${R}${e.dot?$:v}).)*?)`,M=d.dot?"":w,_=d.dot?k:N;let L=!0===d.bash?D(d):O;d.capture&&(L=`(${L})`),"boolean"==typeof d.noext&&(d.noextglob=d.noext);const T={input:c,index:-1,start:0,dot:!0===d.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:y};c=t.removePrefix(c,T),p=c.length;const B=[],z=[],F=[];let V,j=f;const U=()=>T.index===p-1,G=T.peek=(e=1)=>c[T.index+e],H=T.advance=()=>c[++T.index]||"",W=()=>c.slice(T.index+1),q=(e="",t=0)=>{T.consumed+=e,T.index+=t},K=e=>{T.output+=null!=e.output?e.output:e.value,q(e.value)},X=()=>{let e=1;for(;"!"===G()&&("("!==G(2)||"?"===G(3));)H(),T.start++,e++;return e%2!=0&&(T.negated=!0,T.start++,!0)},J=e=>{T[e]++,F.push(e)},Y=e=>{T[e]--,F.pop()},Z=e=>{if("globstar"===j.type){const t=T.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||B.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(T.output=T.output.slice(0,-j.output.length),j.type="star",j.value="*",j.output=L,T.output+=j.output)}if(B.length&&"paren"!==e.type&&(B[B.length-1].inner+=e.value),(e.value||e.output)&&K(e),j&&"text"===j.type&&"text"===e.type)return j.output=(j.output||j.value)+e.value,void(j.value+=e.value);e.prev=j,y.push(e),j=e},Q=(e,t)=>{const n={...x[t],conditions:1,inner:""};n.prev=j,n.parens=T.parens,n.output=T.output,n.startIndex=T.index,n.tokensIndex=y.length;const s=(d.capture?"(":"")+n.open;J("parens"),Z({type:e,value:t,output:T.output?"":P}),Z({type:"paren",extglob:!0,value:H(),output:s}),B.push(n)},ee=e=>{const n=c.slice(e.startIndex,T.index+1),s=c.slice(e.startIndex+2,T.index),i=m(s,d);if(("plus"===e.type||"star"===e.type)&&i.risky){const s=i.safeOutput?(e.output?"":P)+(d.capture?`(${i.safeOutput})`:i.safeOutput):void 0,r=y[e.tokensIndex];r.type="text",r.value=n,r.output=s||t.escapeRegex(n);for(let t=e.tokensIndex+1;t<y.length;t++)y[t].value="",y[t].output="",delete y[t].suffix;return T.output=e.output+r.output,T.backtrack=!0,Z({type:"paren",extglob:!0,value:V,output:""}),void Y("parens")}let r,o=e.close+(d.capture?")":"");if("negate"===e.type){let t=L;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(t=D(d)),(t!==L||U()||/^\)+$/.test(W()))&&(o=e.close=`)$))${t}`),e.inner.includes("*")&&(r=W())&&/^\.[^\\/.]+$/.test(r)){const n=g(r,{...u,fastpaths:!1}).output;o=e.close=`)${n})${t})`}"bos"===e.prev.type&&(T.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:V,output:o}),Y("parens")};if(!1!==d.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(c)){let e=!1,n=c.replace(r,(t,n,s,i,r,o)=>"\\"===i?(e=!0,t):"?"===i?n?n+i+(r?k.repeat(r.length):""):0===o?_+(r?k.repeat(r.length):""):k.repeat(s.length):"."===i?v.repeat(s.length):"*"===i?n?n+i+(r?L:""):L:n?t:`\\${t}`);return!0===e&&(n=!0===d.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),n===c&&!0===d.contains?(T.output=c,T):(T.output=t.wrapOutput(n,T,u),T)}for(;!U();){if(V=H(),"\0"===V)continue;if("\\"===V){const e=G();if("/"===e&&!0!==d.bash)continue;if("."===e||";"===e)continue;if(!e){V+="\\",Z({type:"text",value:V});continue}const t=/^\\+/.exec(W());let n=0;if(t&&t[0].length>2&&(n=t[0].length,T.index+=n,n%2!=0&&(V+="\\")),!0===d.unescape?V=H():V+=H(),0===T.brackets){Z({type:"text",value:V});continue}}if(T.brackets>0&&("]"!==V||"["===j.value||"[^"===j.value)){if(!1!==d.posix&&":"===V){const e=j.value.slice(1);if(e.includes("[")&&(j.posix=!0,e.includes(":"))){const e=j.value.lastIndexOf("["),t=j.value.slice(0,e),n=j.value.slice(e+2),i=s[n];if(i){j.value=t+i,T.backtrack=!0,H(),f.output||1!==y.indexOf(j)||(f.output=P);continue}}}("["===V&&":"!==G()||"-"===V&&"]"===G())&&(V=`\\${V}`),"]"!==V||"["!==j.value&&"[^"!==j.value||(V=`\\${V}`),!0===d.posix&&"!"===V&&"["===j.value&&(V="^"),j.value+=V,K({value:V});continue}if(1===T.quotes&&'"'!==V){V=t.escapeRegex(V),j.value+=V,K({value:V});continue}if('"'===V){T.quotes=1===T.quotes?0:1,!0===d.keepQuotes&&Z({type:"text",value:V});continue}if("("===V){J("parens"),Z({type:"paren",value:V});continue}if(")"===V){if(0===T.parens&&!0===d.strictBrackets)throw new SyntaxError(l("opening","("));const e=B[B.length-1];if(e&&T.parens===e.parens+1){ee(B.pop());continue}Z({type:"paren",value:V,output:T.parens?")":"\\)"}),Y("parens");continue}if("["===V){if(!0!==d.nobracket&&W().includes("]"))J("brackets");else{if(!0!==d.nobracket&&!0===d.strictBrackets)throw new SyntaxError(l("closing","]"));V=`\\${V}`}Z({type:"bracket",value:V});continue}if("]"===V){if(!0===d.nobracket||j&&"bracket"===j.type&&1===j.value.length){Z({type:"text",value:V,output:`\\${V}`});continue}if(0===T.brackets){if(!0===d.strictBrackets)throw new SyntaxError(l("opening","["));Z({type:"text",value:V,output:`\\${V}`});continue}Y("brackets");const e=j.value.slice(1);if(!0===j.posix||"^"!==e[0]||e.includes("/")||(V=`/${V}`),j.value+=V,K({value:V}),!1===d.literalBrackets||t.hasRegexChars(e))continue;const n=t.escapeRegex(j.value);if(T.output=T.output.slice(0,-j.value.length),!0===d.literalBrackets){T.output+=n,j.value=n;continue}j.value=`(${b}${n}|${j.value})`,T.output+=j.value;continue}if("{"===V&&!0!==d.nobrace){J("braces");const e={type:"brace",value:V,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};z.push(e),Z(e);continue}if("}"===V){const e=z[z.length-1];if(!0===d.nobrace||!e){Z({type:"text",value:V,output:V});continue}let t=")";if(!0===e.dots){const e=y.slice(),n=[];for(let t=e.length-1;t>=0&&(y.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=a(n,d),T.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=T.output.slice(0,e.outputIndex),s=T.tokens.slice(e.tokensIndex);e.value=e.output="\\{",V=t="\\}",T.output=n;for(const e of s)T.output+=e.output||e.value}Z({type:"brace",value:V,output:t}),Y("braces"),z.pop();continue}if("|"===V){B.length>0&&B[B.length-1].conditions++,Z({type:"text",value:V});continue}if(","===V){let e=V;const t=z[z.length-1];t&&"braces"===F[F.length-1]&&(t.comma=!0,e="|"),Z({type:"comma",value:V,output:e});continue}if("/"===V){if("dot"===j.type&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",y.pop(),j=f;continue}Z({type:"slash",value:V,output:S});continue}if("."===V){if(T.braces>0&&"dot"===j.type){"."===j.value&&(j.output=v);const e=z[z.length-1];j.type="dots",j.output+=V,j.value+=V,e.dots=!0;continue}if(T.braces+T.parens===0&&"bos"!==j.type&&"slash"!==j.type){Z({type:"text",value:V,output:v});continue}Z({type:"dot",value:V,output:v});continue}if("?"===V){if(!(j&&"("===j.value)&&!0!==d.noextglob&&"("===G()&&"?"!==G(2)){Q("qmark",V);continue}if(j&&"paren"===j.type){const e=G();let t=V;("("===j.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(W()))&&(t=`\\${V}`),Z({type:"text",value:V,output:t});continue}if(!0!==d.dot&&("slash"===j.type||"bos"===j.type)){Z({type:"qmark",value:V,output:N});continue}Z({type:"qmark",value:V,output:k});continue}if("!"===V){if(!0!==d.noextglob&&"("===G()&&("?"!==G(2)||!/[!=<:]/.test(G(3)))){Q("negate",V);continue}if(!0!==d.nonegate&&0===T.index){X();continue}}if("+"===V){if(!0!==d.noextglob&&"("===G()&&"?"!==G(2)){Q("plus",V);continue}if(j&&"("===j.value||!1===d.regex){Z({type:"plus",value:V,output:A});continue}if(j&&("bracket"===j.type||"paren"===j.type||"brace"===j.type)||T.parens>0){Z({type:"plus",value:V});continue}Z({type:"plus",value:A});continue}if("@"===V){if(!0!==d.noextglob&&"("===G()&&"?"!==G(2)){Z({type:"at",extglob:!0,value:V,output:""});continue}Z({type:"text",value:V});continue}if("*"!==V){"$"!==V&&"^"!==V||(V=`\\${V}`);const e=i.exec(W());e&&(V+=e[0],T.index+=e[0].length),Z({type:"text",value:V});continue}if(j&&("globstar"===j.type||!0===j.star)){j.type="star",j.star=!0,j.value+=V,j.output=L,T.backtrack=!0,T.globstar=!0,q(V);continue}let e=W();if(!0!==d.noextglob&&/^\([^?]/.test(e)){Q("star",V);continue}if("star"===j.type){if(!0===d.noglobstar){q(V);continue}const t=j.prev,n=t.prev,s="slash"===t.type||"bos"===t.type,i=n&&("star"===n.type||"globstar"===n.type);if(!0===d.bash&&(!s||e[0]&&"/"!==e[0])){Z({type:"star",value:V,output:""});continue}const r=T.braces>0&&("comma"===t.type||"brace"===t.type),o=B.length&&("pipe"===t.type||"paren"===t.type);if(!s&&"paren"!==t.type&&!r&&!o){Z({type:"star",value:V,output:""});continue}for(;"/**"===e.slice(0,3);){const t=c[T.index+4];if(t&&"/"!==t)break;e=e.slice(3),q("/**",3)}const a=U()||T.parens>0&&e===")".repeat(T.parens)&&!B.some(e=>"negate"===e.type);if("bos"===t.type&&U()){j.type="globstar",j.value+=V,j.output=D(d),T.output=j.output,T.globstar=!0,q(V);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!i&&a){T.output=T.output.slice(0,-(t.output+j.output).length),t.output=`(?:${t.output}`,j.type="globstar",j.output=D(d)+(d.strictSlashes?")":"|$)"),j.value+=V,T.globstar=!0,T.output+=t.output+j.output,q(V);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){const n=void 0!==e[1]?"|$":"";T.output=T.output.slice(0,-(t.output+j.output).length),t.output=`(?:${t.output}`,j.type="globstar",j.output=`${D(d)}${S}|${S}${n})`,j.value+=V,T.output+=t.output+j.output,T.globstar=!0,q(V+H()),Z({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){j.type="globstar",j.value+=V,j.output=`(?:^|${S}|${D(d)}${S})`,T.output=j.output,T.globstar=!0,q(V+H()),Z({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-j.output.length),j.type="globstar",j.output=D(d),j.value+=V,T.output+=j.output,T.globstar=!0,q(V);continue}const n={type:"star",value:V,output:L};!0!==d.bash?!j||"bracket"!==j.type&&"paren"!==j.type||!0!==d.regex?(T.index!==T.start&&"slash"!==j.type&&"dot"!==j.type||("dot"===j.type?(T.output+=I,j.output+=I):!0===d.dot?(T.output+=C,j.output+=C):(T.output+=M,j.output+=M),"*"!==G()&&(T.output+=P,j.output+=P)),Z(n)):(n.output=V,Z(n)):(n.output=".*?","bos"!==j.type&&"slash"!==j.type||(n.output=M+n.output),Z(n))}for(;T.brackets>0;){if(!0===d.strictBrackets)throw new SyntaxError(l("closing","]"));T.output=t.escapeLast(T.output,"["),Y("brackets")}for(;T.parens>0;){if(!0===d.strictBrackets)throw new SyntaxError(l("closing",")"));T.output=t.escapeLast(T.output,"("),Y("parens")}for(;T.braces>0;){if(!0===d.strictBrackets)throw new SyntaxError(l("closing","}"));T.output=t.escapeLast(T.output,"{"),Y("braces")}if(!0===d.strictSlashes||"star"!==j.type&&"bracket"!==j.type||Z({type:"maybe_slash",value:"",output:`${S}?`}),!0===T.backtrack){T.output="";for(const e of T.tokens)T.output+=null!=e.output?e.output:e.value,e.suffix&&(T.output+=e.suffix)}return T};return g.fastpaths=(s,i)=>{const r={...i},a="number"==typeof r.maxLength?Math.min(n,r.maxLength):n,l=s.length;if(l>a)throw new SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${a}`);s=o[s]||s;const{DOT_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:d,DOTS_SLASH:h,NO_DOT:p,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:y}=e.globChars(r.windows),b=r.dot?f:p,E=r.dot?m:p,x=r.capture?"":"?:";let v=!0===r.bash?".*?":g;r.capture&&(v=`(${v})`);const A=e=>!0===e.noglobstar?v:`(${x}(?:(?!${y}${e.dot?h:c}).)*?)`,S=e=>{switch(e){case"*":return`${b}${d}${v}`;case".*":return`${c}${d}${v}`;case"*.*":return`${b}${v}${c}${d}${v}`;case"*/*":return`${b}${v}${u}${d}${E}${v}`;case"**":return b+A(r);case"**/*":return`(?:${b}${A(r)}${u})?${E}${d}${v}`;case"**/*.*":return`(?:${b}${A(r)}${u})?${E}${v}${c}${d}${v}`;case"**/.*":return`(?:${b}${A(r)}${u})?${c}${d}${v}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=S(t[1]);if(!n)return;return n+c+t[2]}}},P=t.removePrefix(s,{negated:!1,prefix:""});let $=S(P);return $&&!0!==r.strictSlashes&&($+=`${u}?`),$},sa=g}function fa(){if(oa)return ra;oa=1;const e=ha(),t=pa(),n=da(),s=ua(),i=(e,t,n=!1)=>{if(Array.isArray(e)){const s=e.map(e=>i(e,t,n)),r=e=>{for(const t of s){const n=t(e);if(n)return n}return!1};return r}const s=(r=e)&&"object"==typeof r&&!Array.isArray(r)&&e.tokens&&e.input;var r;if(""===e||"string"!=typeof e&&!s)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},a=o.windows,l=s?i.compileRe(e,t):i.makeRe(e,t,!1,!0),c=l.state;delete l.state;let u=()=>!1;if(o.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};u=i(o.ignore,e,n)}const d=(n,s=!1)=>{const{isMatch:r,match:d,output:h}=i.test(n,l,t,{glob:e,posix:a}),p={glob:e,state:c,regex:l,posix:a,input:n,output:h,match:d,isMatch:r};return"function"==typeof o.onResult&&o.onResult(p),!1===r?(p.isMatch=!1,!!s&&p):u(n)?("function"==typeof o.onIgnore&&o.onIgnore(p),p.isMatch=!1,!!s&&p):("function"==typeof o.onMatch&&o.onMatch(p),!s||p)};return n&&(d.state=c),d};return i.test=(e,t,s,{glob:r,posix:o}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const a=s||{},l=a.format||(o?n.toPosixSlashes:null);let c=e===r,u=c&&l?l(e):e;return!1===c&&(u=l?l(e):e,c=u===r),!1!==c&&!0!==a.capture||(c=!0===a.matchBase||!0===a.basename?i.matchBase(e,t,s,o):t.exec(u)),{isMatch:Boolean(c),match:c,output:u}},i.matchBase=(e,t,s,r=s&&s.windows)=>(t instanceof RegExp?t:i.makeRe(t,s)).test(n.basename(e,{windows:r})),i.isMatch=(e,t,n)=>i(t,n)(e),i.parse=(e,n)=>Array.isArray(e)?e.map(e=>i.parse(e,n)):t(e,{...n,fastpaths:!1}),i.scan=(t,n)=>e(t,n),i.compileRe=(e,t,n=!1,s=!1)=>{if(!0===n)return e.output;const r=t||{},o=r.contains?"":"^",a=r.contains?"":"$";let l=`${o}(?:${e.output})${a}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);const c=i.toRegex(l,t);return!0===s&&(c.state=e),c},i.makeRe=(e,n={},s=!1,r=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1===n.fastpaths||"."!==e[0]&&"*"!==e[0]||(o.output=t.fastpaths(e,n)),o.output||(o=t(e,n)),i.compileRe(o,n,s,r)},i.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},i.constants=s,ra=i}function ma(){if(la)return aa;la=1;const e=fa(),t=da();function n(n,s,i=!1){return!s||null!==s.windows&&void 0!==s.windows||(s={...s,windows:t.isWindows()}),e(n,s,i)}return Object.assign(n,e),aa=n}var ga=Yo(ma());const ya={ArrayPattern(e,t){for(const n of t.elements)n&&ya[n.type](e,n)},AssignmentPattern(e,t){ya[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const n of t.properties)"RestElement"===n.type?ya.RestElement(e,n):ya[n.value.type](e,n.value)},RestElement(e,t){ya[t.argument.type](e,t.argument)}},ba=function(e){const t=[];return ya[e.type](t,e),t};new Set("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 arguments 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(" ")).add("");var Ea=["var","let","const","init","get","set","constructor","method","-","+","!","~","typeof","void","delete","++","--","==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","*","/","%","|","^","&","||","&&","in","instanceof","**","??","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&=","**=","&&=","||=","??=","pure","noSideEffects","sourcemap","using","await using","source","defer"];const xa=(e,t)=>{if(0===e)return Ee;const n=t[e++],s=new Array(n);for(let i=0;i<n;i++)s[i]=va(t[e++],t);return s},va=(e,t)=>{const n=t[e++];return{end:t[e++],start:n,type:Ea[t[e]]}},Aa=(e,t)=>{const n=Pa(t,e);switch(n.type){case Wn:return Ut(Gt(Cn(n.message)));case qn:return Ut(Gt(Cn(n.message,n.start)));default:return n}},Sa=[function(e,t){const n={type:"PanicError",start:t[e],end:t[e+1],get message(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"message",{value:s}),s}};return n},function(e,t){const n={type:"ParseError",start:t[e],end:t[e+1],get message(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"message",{value:s}),s}};return n},function(e,t){const n={type:"ArrayExpression",start:t[e],end:t[e+1],get elements(){const s=$a(t[e+2],t);return Object.defineProperty(n,"elements",{value:s}),s}};return n},function(e,t){const n={type:"ArrayPattern",start:t[e],end:t[e+1],get elements(){const s=$a(t[e+2],t);return Object.defineProperty(n,"elements",{value:s}),s}};return n},function(e,t){const n=t[e+2],s=xa(t[e+3],t),i={type:"ArrowFunctionExpression",start:t[e],end:t[e+1],async:!(1&~n),expression:!(2&~n),generator:!(4&~n),...s.length>0?{annotations:s}:{},get params(){const n=$a(t[e+4],t);return Object.defineProperty(i,"params",{value:n}),n},get body(){const n=Pa(t[e+5],t);return Object.defineProperty(i,"body",{value:n}),n},id:null};return i},function(e,t){const n={type:"AssignmentExpression",start:t[e],end:t[e+1],get operator(){const s=Ea[t[e+2]];return Object.defineProperty(n,"operator",{value:s}),s},get left(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"left",{value:s}),s},get right(){const s=Pa(t[e+4],t);return Object.defineProperty(n,"right",{value:s}),s}};return n},function(e,t){const n={type:"AssignmentPattern",start:t[e],end:t[e+1],get left(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"left",{value:s}),s},get right(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"right",{value:s}),s}};return n},function(e,t){const n={type:"AwaitExpression",start:t[e],end:t[e+1],get argument(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"argument",{value:s}),s}};return n},function(e,t){const n={type:"BinaryExpression",start:t[e],end:t[e+1],get operator(){const s=Ea[t[e+2]];return Object.defineProperty(n,"operator",{value:s}),s},get left(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"left",{value:s}),s},get right(){const s=Pa(t[e+4],t);return Object.defineProperty(n,"right",{value:s}),s}};return n},function(e,t){const n={type:"BlockStatement",start:t[e],end:t[e+1],get body(){const s=$a(t[e+2],t);return Object.defineProperty(n,"body",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"BreakStatement",start:t[e],end:t[e+1],get label(){const e=0===n?null:Pa(n,t);return Object.defineProperty(s,"label",{value:e}),e}};return s},function(e,t){const n=t[e+2],s=xa(t[e+3],t),i={type:"CallExpression",start:t[e],end:t[e+1],optional:!(1&~n),...s.length>0?{annotations:s}:{},get callee(){const n=Pa(t[e+4],t);return Object.defineProperty(i,"callee",{value:n}),n},get arguments(){const n=$a(t[e+5],t);return Object.defineProperty(i,"arguments",{value:n}),n}};return i},function(e,t){const n=t[e+2],s={type:"CatchClause",start:t[e],end:t[e+1],get param(){const e=0===n?null:Pa(n,t);return Object.defineProperty(s,"param",{value:e}),e},get body(){const n=Pa(t[e+3],t);return Object.defineProperty(s,"body",{value:n}),n}};return s},function(e,t){const n={type:"ChainExpression",start:t[e],end:t[e+1],get expression(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"expression",{value:s}),s}};return n},function(e,t){const n={type:"ClassBody",start:t[e],end:t[e+1],get body(){const s=$a(t[e+2],t);return Object.defineProperty(n,"body",{value:s}),s}};return n},function(e,t){const n=t[e+3],s=t[e+4],i={type:"ClassDeclaration",start:t[e],end:t[e+1],get decorators(){const n=$a(t[e+2],t);return Object.defineProperty(i,"decorators",{value:n}),n},get id(){const e=0===n?null:Pa(n,t);return Object.defineProperty(i,"id",{value:e}),e},get superClass(){const e=0===s?null:Pa(s,t);return Object.defineProperty(i,"superClass",{value:e}),e},get body(){const n=Pa(t[e+5],t);return Object.defineProperty(i,"body",{value:n}),n}};return i},function(e,t){const n=t[e+3],s=t[e+4],i={type:"ClassExpression",start:t[e],end:t[e+1],get decorators(){const n=$a(t[e+2],t);return Object.defineProperty(i,"decorators",{value:n}),n},get id(){const e=0===n?null:Pa(n,t);return Object.defineProperty(i,"id",{value:e}),e},get superClass(){const e=0===s?null:Pa(s,t);return Object.defineProperty(i,"superClass",{value:e}),e},get body(){const n=Pa(t[e+5],t);return Object.defineProperty(i,"body",{value:n}),n}};return i},function(e,t){const n={type:"ConditionalExpression",start:t[e],end:t[e+1],get test(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"test",{value:s}),s},get consequent(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"consequent",{value:s}),s},get alternate(){const s=Pa(t[e+4],t);return Object.defineProperty(n,"alternate",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"ContinueStatement",start:t[e],end:t[e+1],get label(){const e=0===n?null:Pa(n,t);return Object.defineProperty(s,"label",{value:e}),e}};return s},function(e,t){return{type:"DebuggerStatement",start:t[e],end:t[e+1]}},function(e,t){const n={type:"Decorator",start:t[e],end:t[e+1],get expression(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"expression",{value:s}),s}};return n},function(e,t){const n={type:"ExpressionStatement",start:t[e],end:t[e+1],get directive(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"directive",{value:s}),s},get expression(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"expression",{value:s}),s}};return n},function(e,t){const n={type:"DoWhileStatement",start:t[e],end:t[e+1],get body(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"body",{value:s}),s},get test(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"test",{value:s}),s}};return n},function(e,t){return{type:"EmptyStatement",start:t[e],end:t[e+1]}},function(e,t){const n=t[e+2],s={type:"ExportAllDeclaration",start:t[e],end:t[e+1],get exported(){const e=0===n?null:Pa(n,t);return Object.defineProperty(s,"exported",{value:e}),e},get source(){const n=Pa(t[e+3],t);return Object.defineProperty(s,"source",{value:n}),n},get attributes(){const n=$a(t[e+4],t);return Object.defineProperty(s,"attributes",{value:n}),n}};return s},function(e,t){const n={type:"ExportDefaultDeclaration",start:t[e],end:t[e+1],get declaration(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"declaration",{value:s}),s}};return n},function(e,t){const n=t[e+3],s=t[e+5],i={type:"ExportNamedDeclaration",start:t[e],end:t[e+1],get specifiers(){const n=$a(t[e+2],t);return Object.defineProperty(i,"specifiers",{value:n}),n},get source(){const e=0===n?null:Pa(n,t);return Object.defineProperty(i,"source",{value:e}),e},get attributes(){const n=$a(t[e+4],t);return Object.defineProperty(i,"attributes",{value:n}),n},get declaration(){const e=0===s?null:Pa(s,t);return Object.defineProperty(i,"declaration",{value:e}),e}};return i},function(e,t){const n=Pa(t[e+2],t),s=t[e+3],i={type:"ExportSpecifier",start:t[e],end:t[e+1],local:n,get exported(){const e=0===s?{...n}:Pa(s,t);return Object.defineProperty(i,"exported",{value:e}),e}};return i},function(e,t){const n={type:"ExpressionStatement",start:t[e],end:t[e+1],get expression(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"expression",{value:s}),s}};return n},function(e,t){const n={type:"ForInStatement",start:t[e],end:t[e+1],get left(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"left",{value:s}),s},get right(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"right",{value:s}),s},get body(){const s=Pa(t[e+4],t);return Object.defineProperty(n,"body",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"ForOfStatement",start:t[e],end:t[e+1],await:!(1&~n),get left(){const n=Pa(t[e+3],t);return Object.defineProperty(s,"left",{value:n}),n},get right(){const n=Pa(t[e+4],t);return Object.defineProperty(s,"right",{value:n}),n},get body(){const n=Pa(t[e+5],t);return Object.defineProperty(s,"body",{value:n}),n}};return s},function(e,t){const n=t[e+2],s=t[e+3],i=t[e+4],r={type:"ForStatement",start:t[e],end:t[e+1],get init(){const e=0===n?null:Pa(n,t);return Object.defineProperty(r,"init",{value:e}),e},get test(){const e=0===s?null:Pa(s,t);return Object.defineProperty(r,"test",{value:e}),e},get update(){const e=0===i?null:Pa(i,t);return Object.defineProperty(r,"update",{value:e}),e},get body(){const n=Pa(t[e+5],t);return Object.defineProperty(r,"body",{value:n}),n}};return r},function(e,t){const n=t[e+2],s=xa(t[e+3],t),i=t[e+4],r={type:"FunctionDeclaration",start:t[e],end:t[e+1],async:!(1&~n),generator:!(2&~n),...s.length>0?{annotations:s}:{},get id(){const e=0===i?null:Pa(i,t);return Object.defineProperty(r,"id",{value:e}),e},get params(){const n=$a(t[e+5],t);return Object.defineProperty(r,"params",{value:n}),n},get body(){const n=Pa(t[e+6],t);return Object.defineProperty(r,"body",{value:n}),n},expression:!1};return r},function(e,t){const n=t[e+2],s=xa(t[e+3],t),i=t[e+4],r={type:"FunctionExpression",start:t[e],end:t[e+1],async:!(1&~n),generator:!(2&~n),...s.length>0?{annotations:s}:{},get id(){const e=0===i?null:Pa(i,t);return Object.defineProperty(r,"id",{value:e}),e},get params(){const n=$a(t[e+5],t);return Object.defineProperty(r,"params",{value:n}),n},get body(){const n=Pa(t[e+6],t);return Object.defineProperty(r,"body",{value:n}),n},expression:!1};return r},function(e,t){const n={type:"Identifier",start:t[e],end:t[e+1],get name(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"name",{value:s}),s}};return n},function(e,t){const n=t[e+4],s={type:"IfStatement",start:t[e],end:t[e+1],get test(){const n=Pa(t[e+2],t);return Object.defineProperty(s,"test",{value:n}),n},get consequent(){const n=Pa(t[e+3],t);return Object.defineProperty(s,"consequent",{value:n}),n},get alternate(){const e=0===n?null:Pa(n,t);return Object.defineProperty(s,"alternate",{value:e}),e}};return s},function(e,t){const n={type:"ImportAttribute",start:t[e],end:t[e+1],get key(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"key",{value:s}),s},get value(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"value",{value:s}),s}};return n},function(e,t){const n=t[e+5],s={type:"ImportDeclaration",start:t[e],end:t[e+1],get specifiers(){const n=$a(t[e+2],t);return Object.defineProperty(s,"specifiers",{value:n}),n},get source(){const n=Pa(t[e+3],t);return Object.defineProperty(s,"source",{value:n}),n},get attributes(){const n=$a(t[e+4],t);return Object.defineProperty(s,"attributes",{value:n}),n},get phase(){const i=0===n?void 0:Ea[t[e+5]];return Object.defineProperty(s,"phase",{value:i}),i}};return s},function(e,t){const n={type:"ImportDefaultSpecifier",start:t[e],end:t[e+1],get local(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"local",{value:s}),s}};return n},function(e,t){const n=t[e+3],s=t[e+4],i={type:"ImportExpression",start:t[e],end:t[e+1],get source(){const n=Pa(t[e+2],t);return Object.defineProperty(i,"source",{value:n}),n},get options(){const e=0===n?null:Pa(n,t);return Object.defineProperty(i,"options",{value:e}),e},get phase(){const n=0===s?void 0:Ea[t[e+4]];return Object.defineProperty(i,"phase",{value:n}),n}};return i},function(e,t){const n={type:"ImportNamespaceSpecifier",start:t[e],end:t[e+1],get local(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"local",{value:s}),s}};return n},function(e,t){const n=t[e+2],s=Pa(t[e+3],t),i={type:"ImportSpecifier",start:t[e],end:t[e+1],get imported(){const e=0===n?{...s}:Pa(n,t);return Object.defineProperty(i,"imported",{value:e}),e},local:s};return i},function(e,t){const n=t[e+3],s={type:"JSXAttribute",start:t[e],end:t[e+1],get name(){const n=Pa(t[e+2],t);return Object.defineProperty(s,"name",{value:n}),n},get value(){const e=0===n?null:Pa(n,t);return Object.defineProperty(s,"value",{value:e}),e}};return s},function(e,t){const n={type:"JSXClosingElement",start:t[e],end:t[e+1],get name(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"name",{value:s}),s}};return n},function(e,t){return{type:"JSXClosingFragment",start:t[e],end:t[e+1]}},function(e,t){const n=t[e+4],s={type:"JSXElement",start:t[e],end:t[e+1],get openingElement(){const n=Pa(t[e+2],t);return Object.defineProperty(s,"openingElement",{value:n}),n},get children(){const n=$a(t[e+3],t);return Object.defineProperty(s,"children",{value:n}),n},get closingElement(){const e=0===n?null:Pa(n,t);return Object.defineProperty(s,"closingElement",{value:e}),e}};return s},function(e,t){return{type:"JSXEmptyExpression",start:t[e],end:t[e+1]}},function(e,t){const n={type:"JSXExpressionContainer",start:t[e],end:t[e+1],get expression(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"expression",{value:s}),s}};return n},function(e,t){const n={type:"JSXFragment",start:t[e],end:t[e+1],get openingFragment(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"openingFragment",{value:s}),s},get children(){const s=$a(t[e+3],t);return Object.defineProperty(n,"children",{value:s}),s},get closingFragment(){const s=Pa(t[e+4],t);return Object.defineProperty(n,"closingFragment",{value:s}),s}};return n},function(e,t){const n={type:"JSXIdentifier",start:t[e],end:t[e+1],get name(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"name",{value:s}),s}};return n},function(e,t){const n={type:"JSXMemberExpression",start:t[e],end:t[e+1],get object(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"object",{value:s}),s},get property(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"property",{value:s}),s}};return n},function(e,t){const n={type:"JSXNamespacedName",start:t[e],end:t[e+1],get namespace(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"namespace",{value:s}),s},get name(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"name",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"JSXOpeningElement",start:t[e],end:t[e+1],selfClosing:!(1&~n),get name(){const n=Pa(t[e+3],t);return Object.defineProperty(s,"name",{value:n}),n},get attributes(){const n=$a(t[e+4],t);return Object.defineProperty(s,"attributes",{value:n}),n}};return s},function(e,t){return{type:"JSXOpeningFragment",start:t[e],end:t[e+1],attributes:[],selfClosing:!1}},function(e,t){const n={type:"JSXSpreadAttribute",start:t[e],end:t[e+1],get argument(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"argument",{value:s}),s}};return n},function(e,t){const n={type:"JSXSpreadChild",start:t[e],end:t[e+1],get expression(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"expression",{value:s}),s}};return n},function(e,t){const n={type:"JSXText",start:t[e],end:t[e+1],get value(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"value",{value:s}),s},get raw(){const s=t.convertString(t[e+3]);return Object.defineProperty(n,"raw",{value:s}),s}};return n},function(e,t){const n={type:"LabeledStatement",start:t[e],end:t[e+1],get label(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"label",{value:s}),s},get body(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"body",{value:s}),s}};return n},function(e,t){const n=t.convertString(t[e+2]),s={type:"Literal",start:t[e],end:t[e+1],bigint:n,get raw(){const n=t.convertString(t[e+3]);return Object.defineProperty(s,"raw",{value:n}),n},value:BigInt(n)};return s},function(e,t){const n=!(1&~t[e+2]);return{type:"Literal",start:t[e],end:t[e+1],value:n,raw:n?"true":"false"}},function(e,t){return{type:"Literal",start:t[e],end:t[e+1],raw:"null",value:null}},function(e,t){const n=t[e+2],s={type:"Literal",start:t[e],end:t[e+1],get raw(){const e=0===n?void 0:t.convertString(n);return Object.defineProperty(s,"raw",{value:e}),e},get value(){const n=t.convertFloat64(e+3);return Object.defineProperty(s,"value",{value:n}),n}};return s},function(e,t){const n=t.convertString(t[e+2]),s=t.convertString(t[e+3]);return{type:"Literal",start:t[e],end:t[e+1],raw:`/${s}/${n}`,regex:{flags:n,pattern:s},value:new RegExp(s,n)}},function(e,t){const n=t[e+3],s={type:"Literal",start:t[e],end:t[e+1],get value(){const n=t.convertString(t[e+2]);return Object.defineProperty(s,"value",{value:n}),n},get raw(){const e=0===n?void 0:t.convertString(n);return Object.defineProperty(s,"raw",{value:e}),e}};return s},function(e,t){const n={type:"LogicalExpression",start:t[e],end:t[e+1],get operator(){const s=Ea[t[e+2]];return Object.defineProperty(n,"operator",{value:s}),s},get left(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"left",{value:s}),s},get right(){const s=Pa(t[e+4],t);return Object.defineProperty(n,"right",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"MemberExpression",start:t[e],end:t[e+1],computed:!(1&~n),optional:!(2&~n),get object(){const n=Pa(t[e+3],t);return Object.defineProperty(s,"object",{value:n}),n},get property(){const n=Pa(t[e+4],t);return Object.defineProperty(s,"property",{value:n}),n}};return s},function(e,t){const n={type:"MetaProperty",start:t[e],end:t[e+1],get meta(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"meta",{value:s}),s},get property(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"property",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"MethodDefinition",start:t[e],end:t[e+1],static:!(1&~n),computed:!(2&~n),get decorators(){const n=$a(t[e+3],t);return Object.defineProperty(s,"decorators",{value:n}),n},get key(){const n=Pa(t[e+4],t);return Object.defineProperty(s,"key",{value:n}),n},get value(){const n=Pa(t[e+5],t);return Object.defineProperty(s,"value",{value:n}),n},get kind(){const n=Ea[t[e+6]];return Object.defineProperty(s,"kind",{value:n}),n}};return s},function(e,t){const n=xa(t[e+2],t),s={type:"NewExpression",start:t[e],end:t[e+1],...n.length>0?{annotations:n}:{},get callee(){const n=Pa(t[e+3],t);return Object.defineProperty(s,"callee",{value:n}),n},get arguments(){const n=$a(t[e+4],t);return Object.defineProperty(s,"arguments",{value:n}),n}};return s},function(e,t){const n={type:"ObjectExpression",start:t[e],end:t[e+1],get properties(){const s=$a(t[e+2],t);return Object.defineProperty(n,"properties",{value:s}),s}};return n},function(e,t){const n={type:"ObjectPattern",start:t[e],end:t[e+1],get properties(){const s=$a(t[e+2],t);return Object.defineProperty(n,"properties",{value:s}),s}};return n},function(e,t){const n={type:"PrivateIdentifier",start:t[e],end:t[e+1],get name(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"name",{value:s}),s}};return n},function(e,t){const n=xa(t[e+3],t),s={type:"Program",start:t[e],end:t[e+1],get body(){const n=$a(t[e+2],t);return Object.defineProperty(s,"body",{value:n}),n},...n.length>0?{invalidAnnotations:n}:{},sourceType:"module"};return s},function(e,t){const n=t[e+2],s=t[e+3],i=Pa(t[e+4],t),r={type:"Property",start:t[e],end:t[e+1],method:!(1&~n),shorthand:!(2&~n),computed:!(4&~n),get key(){const e=0===s?{...i}:Pa(s,t);return Object.defineProperty(r,"key",{value:e}),e},value:i,get kind(){const n=Ea[t[e+5]];return Object.defineProperty(r,"kind",{value:n}),n}};return r},function(e,t){const n=t[e+2],s=t[e+5],i={type:"PropertyDefinition",start:t[e],end:t[e+1],static:!(1&~n),computed:!(2&~n),get decorators(){const n=$a(t[e+3],t);return Object.defineProperty(i,"decorators",{value:n}),n},get key(){const n=Pa(t[e+4],t);return Object.defineProperty(i,"key",{value:n}),n},get value(){const e=0===s?null:Pa(s,t);return Object.defineProperty(i,"value",{value:e}),e}};return i},function(e,t){const n={type:"RestElement",start:t[e],end:t[e+1],get argument(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"argument",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"ReturnStatement",start:t[e],end:t[e+1],get argument(){const e=0===n?null:Pa(n,t);return Object.defineProperty(s,"argument",{value:e}),e}};return s},function(e,t){const n={type:"SequenceExpression",start:t[e],end:t[e+1],get expressions(){const s=$a(t[e+2],t);return Object.defineProperty(n,"expressions",{value:s}),s}};return n},function(e,t){const n={type:"SpreadElement",start:t[e],end:t[e+1],get argument(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"argument",{value:s}),s}};return n},function(e,t){const n={type:"StaticBlock",start:t[e],end:t[e+1],get body(){const s=$a(t[e+2],t);return Object.defineProperty(n,"body",{value:s}),s}};return n},function(e,t){return{type:"Super",start:t[e],end:t[e+1]}},function(e,t){const n=t[e+2],s={type:"SwitchCase",start:t[e],end:t[e+1],get test(){const e=0===n?null:Pa(n,t);return Object.defineProperty(s,"test",{value:e}),e},get consequent(){const n=$a(t[e+3],t);return Object.defineProperty(s,"consequent",{value:n}),n}};return s},function(e,t){const n={type:"SwitchStatement",start:t[e],end:t[e+1],get discriminant(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"discriminant",{value:s}),s},get cases(){const s=$a(t[e+3],t);return Object.defineProperty(n,"cases",{value:s}),s}};return n},function(e,t){const n={type:"TaggedTemplateExpression",start:t[e],end:t[e+1],get tag(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"tag",{value:s}),s},get quasi(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"quasi",{value:s}),s}};return n},function(e,t){const n=t[e+2],s=t[e+3],i=0===s?void 0:t.convertString(s),r=t.convertString(t[e+4]);return{type:"TemplateElement",start:t[e],end:t[e+1],tail:!(1&~n),value:{cooked:i,raw:r}}},function(e,t){const n={type:"TemplateLiteral",start:t[e],end:t[e+1],get quasis(){const s=$a(t[e+2],t);return Object.defineProperty(n,"quasis",{value:s}),s},get expressions(){const s=$a(t[e+3],t);return Object.defineProperty(n,"expressions",{value:s}),s}};return n},function(e,t){return{type:"ThisExpression",start:t[e],end:t[e+1]}},function(e,t){const n={type:"ThrowStatement",start:t[e],end:t[e+1],get argument(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"argument",{value:s}),s}};return n},function(e,t){const n=t[e+3],s=t[e+4],i={type:"TryStatement",start:t[e],end:t[e+1],get block(){const n=Pa(t[e+2],t);return Object.defineProperty(i,"block",{value:n}),n},get handler(){const e=0===n?null:Pa(n,t);return Object.defineProperty(i,"handler",{value:e}),e},get finalizer(){const e=0===s?null:Pa(s,t);return Object.defineProperty(i,"finalizer",{value:e}),e}};return i},function(e,t){const n={type:"UnaryExpression",start:t[e],end:t[e+1],get operator(){const s=Ea[t[e+2]];return Object.defineProperty(n,"operator",{value:s}),s},get argument(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"argument",{value:s}),s},prefix:!0};return n},function(e,t){const n=t[e+2],s={type:"UpdateExpression",start:t[e],end:t[e+1],prefix:!(1&~n),get operator(){const n=Ea[t[e+3]];return Object.defineProperty(s,"operator",{value:n}),n},get argument(){const n=Pa(t[e+4],t);return Object.defineProperty(s,"argument",{value:n}),n}};return s},function(e,t){const n={type:"VariableDeclaration",start:t[e],end:t[e+1],get kind(){const s=Ea[t[e+2]];return Object.defineProperty(n,"kind",{value:s}),s},get declarations(){const s=$a(t[e+3],t);return Object.defineProperty(n,"declarations",{value:s}),s}};return n},function(e,t){const n=t[e+3],s={type:"VariableDeclarator",start:t[e],end:t[e+1],get id(){const n=Pa(t[e+2],t);return Object.defineProperty(s,"id",{value:n}),n},get init(){const e=0===n?null:Pa(n,t);return Object.defineProperty(s,"init",{value:e}),e}};return s},function(e,t){const n={type:"WhileStatement",start:t[e],end:t[e+1],get test(){const s=Pa(t[e+2],t);return Object.defineProperty(n,"test",{value:s}),s},get body(){const s=Pa(t[e+3],t);return Object.defineProperty(n,"body",{value:s}),s}};return n},function(e,t){const n=t[e+2],s=t[e+3],i={type:"YieldExpression",start:t[e],end:t[e+1],delegate:!(1&~n),get argument(){const e=0===s?null:Pa(s,t);return Object.defineProperty(i,"argument",{value:e}),e}};return i}];function Pa(e,t){const n=t[e],s=Sa[n];if(!s)throw console.trace(),new Error(`Unknown node type: ${n}`);return s(e+1,t)}function $a(e,t){if(0===e)return Ee;const n=t[e++],s=new Array(n);for(let i=0;i<n;i++){const n=t[e++];s[i]=n?Pa(n,t):null}return s}const wa=0===new Uint8Array(new Uint32Array([1]).buffer)[0],Ia=new DataView(new ArrayBuffer(8));let Ca=new Uint8Array(0);const ka=function(e,t){Ia.setFloat64(0,e,!0),this[t]=Ia.getUint32(0,!0),this[t+1]=Ia.getUint32(4,!0)};function Na(e,t,n,s){const i=n>>2,r=s+3>>2;for(let s=0;s<r;s++){const r=n+(s<<2);e[i+s]=t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24}}const Oa=(e,t,n)=>{const s=((e,t,n)=>{const s=n+3>>2<<2;Ca.length<s&&(Ca=new Uint8Array(s));const i=t+1;for(let t=0;t<s>>2;t++){const n=e[i+t];Ca[t<<2]=255&n,Ca[1+(t<<2)]=n>>>8&255,Ca[2+(t<<2)]=n>>>16&255,Ca[3+(t<<2)]=n>>>24&255}return Ca.subarray(0,n)})(e,t,n);return"undefined"!=typeof Buffer?Buffer.from(s.buffer,s.byteOffset,s.length).toString("utf8"):(new TextDecoder).decode(s)};function Ra(e){const t=3&e.byteOffset?new Uint8Array(e):e,n=new Uint32Array(t.buffer,t.byteOffset,t.byteLength>>2);let s;if(wa)s=e=>Oa(n,e,n[e]);else if("undefined"!=typeof Buffer&&e instanceof Buffer)s=t=>{const s=n[t],i=t+1<<2;return e.toString("utf8",i,i+s)};else{const t=new TextDecoder;s=s=>{const i=n[s],r=s+1<<2;return t.decode(e.subarray(r,r+i))}}return Object.assign(n,{convertFloat64(e){return Ia.setUint32(0,this[e],!0),Ia.setUint32(4,this[e+1],!0),Ia.getFloat64(0,!0)},convertString:s})}function Da(e){const t=new Uint32Array(e),n=new TextEncoder,s=new Uint8Array(t.buffer);return Object.assign(t,{addStringToBuffer(e,s){const i=t.position;t[s]=i;const r=n.encode(e),o=r.length,a=1+(o+3>>2),l=t.reserve(a);l[i]=o;const c=i+1<<2;return l.byteBuffer.set(r,c),wa&&Na(l,l.byteBuffer,c,o),l},byteBuffer:s,position:0,reserve(e){const n=t.position+e;if(n<=t.length)return t.position=n,t;const s=Da(2*n);return s.set(t),s.position=n,s},toOutput(){const e=t.position<<2;return s.slice(0,e)},writeFloat64:ka})}function Ma(e){const t=new Uint32Array(e),n=Buffer.from(t.buffer);return Object.assign(t,{addStringToBuffer(e,s){let i=t;const r=t.position+1+(3*e.length+3>>2);r>t.length&&(i=Ma(2*r),n.copy(i.byteBuffer,0,0,t.position<<2),i.position=t.position);const o=i.position;i[s]=o;const a=o+1<<2,l=i.byteBuffer.write(e,a);return i[o]=l,wa&&Na(i,i.byteBuffer,a,l),i.position=a+l+3>>2,i},byteBuffer:n,position:0,reserve(e){const s=t.position+e;if(s<=t.length)return t.position=s,t;const i=Ma(2*s);return n.copy(i.byteBuffer,0,0,t.position<<2),i.position=s,i},toOutput(){const e=t.position<<2,s=Buffer.allocUnsafeSlow(e);return n.copy(s,0,0,e),s},writeFloat64:ka})}const _a=["PanicError","ParseError","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AssignmentExpression","AssignmentPattern","AwaitExpression","BinaryExpression","BlockStatement","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DebuggerStatement","Decorator","ExpressionStatement","DoWhileStatement","EmptyStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportSpecifier","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","ImportAttribute","ImportDeclaration","ImportDefaultSpecifier","ImportExpression","ImportNamespaceSpecifier","ImportSpecifier","JSXAttribute","JSXClosingElement","JSXClosingFragment","JSXElement","JSXEmptyExpression","JSXExpressionContainer","JSXFragment","JSXIdentifier","JSXMemberExpression","JSXNamespacedName","JSXOpeningElement","JSXOpeningFragment","JSXSpreadAttribute","JSXSpreadChild","JSXText","LabeledStatement","Literal","Literal","Literal","Literal","Literal","Literal","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","YieldExpression"];class La extends ns{addExportedVariables(e,t){for(const n of this.elements)n?.addExportedVariables(e,t)}declare(e,t,n){const s=[],i=Ta(t);for(const t of this.elements)null!==t&&s.push(...t.declare(e,i,n));return s}deoptimizeAssignment(e,t){const n=Ta(e);for(const e of this.elements)e?.deoptimizeAssignment(n,t)}deoptimizePath(){for(const e of this.elements)e?.deoptimizePath(Le)}hasEffectsWhenDestructuring(e,t,n){const s=Ta(t);for(const t of this.elements)if(t?.hasEffectsWhenDestructuring(e,s,n))return!0;return!1}hasEffectsOnInteractionAtPath(e,t,n){for(const e of this.elements)if(e?.hasEffectsOnInteractionAtPath(Le,t,n))return!0;return!1}includeDestructuredIfNecessary(e,t,n){let s=!1;const i=Ta(t);for(const t of[...this.elements].reverse())t&&(s&&!t.included&&t.includeNode(e),s=t.includeDestructuredIfNecessary(e,i,n)||s);return!this.included&&s&&this.includeNode(e),this.included}render(e,t){let n=this.start+1;for(const s of this.elements)if(s){if(!s.included){e.remove(n,this.end-1);break}s.render(e,t),n=s.end}}setAssignedValue(e){super.setAssignedValue(e);for(const e of this.elements)e?.setAssignedValue(tt)}markDeclarationReached(){for(const e of this.elements)e?.markDeclarationReached()}}La.prototype.includeNode=ss;const Ta=e=>e.at(-1)===Pe?e:[...e,we];class Ba extends ns{addExportedVariables(e,t){for(const n of this.properties)n.type===Xn?n.value.addExportedVariables(e,t):n.argument.addExportedVariables(e,t)}declare(e,t,n){const s=[];for(const i of this.properties)s.push(...i.declare(e,t,n));return s}deoptimizeAssignment(e,t){for(const n of this.properties)n.deoptimizeAssignment(e,t)}deoptimizePath(e){if(0===e.length)for(const t of this.properties)t.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,t,n){for(const e of this.properties)if(e.hasEffectsOnInteractionAtPath(Le,t,n))return!0;return!1}hasEffectsWhenDestructuring(e,t,n){for(const s of this.properties)if(s.hasEffectsWhenDestructuring(e,t,n))return!0;return!1}includeDestructuredIfNecessary(e,t,n){if(!this.properties.length)return this.included;const s=this.properties.at(-1);let i=s.includeDestructuredIfNecessary(e,t,n);const r="RestElement"===s.type;for(const s of this.properties.slice(0,-1))r&&i&&!s.included&&s.includeNode(e),i=s.includeDestructuredIfNecessary(e,t,n)||i;return!this.included&&i&&this.includeNode(e),this.included}markDeclarationReached(){for(const e of this.properties)e.markDeclarationReached()}render(e,t){if(this.properties.length>0){const n=he(this.properties,e,this.start+1,this.end-1);let s=null;for(const{node:i,separator:r,start:o,end:a}of n)i.included?(s=r,i.render(e,t)):se(i,e,o,a);s&&e.remove(s,this.end-1)}}setAssignedValue(e){super.setAssignedValue(e);for(const e of this.properties)e.setAssignedValue(tt)}}Ba.prototype.includeNode=is,Ba.prototype.applyDeoptimizations=rs;function za(e){if(e.scope.context.usesTopLevelAwait)return;let t=e.parent;for(;t;){const{type:e}=t;if(e===Bn||e===Un||"FunctionDeclaration"===e)return;t=t.parent}e.scope.context.usesTopLevelAwait=!0}const Fa=["then"];function Va(e){return void 0===e?"void 0":"boolean"==typeof e?String(e):"string"==typeof e?JSON.stringify(e):"number"==typeof e?function(e){if(Object.is(-0,e))return"-0";const t=e.toExponential(),[n,s]=t.split("e"),i=n.split(".")[1]?.length||0,r=`${n.replace(".","")}e${parseInt(s)-i}`,o=String(e).replace("+","");return r.length<o.length?r:o}(e):Ye}const ja={"!=":(e,t)=>e!=t,"!==":(e,t)=>e!==t,"%":(e,t)=>e%t,"&":(e,t)=>e&t,"*":(e,t)=>e*t,"**":(e,t)=>e**t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"<":(e,t)=>e<t,"<<":(e,t)=>e<<t,"<=":(e,t)=>e<=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"^":(e,t)=>e^t,in:()=>Ye,instanceof:()=>Ye,"|":(e,t)=>e|t},Ua=Symbol("Unassigned");class Ga extends ns{constructor(){super(...arguments),this.renderedLiteralValue=Ua}deoptimizeCache(){this.renderedLiteralValue=Ye}getLiteralValueAtPath(e,t,n){if(e.length>0)return Ye;const s=this.left.getLiteralValueAtPath(Le,t,n);if("symbol"==typeof s)return Ye;if("in"===this.operator&&"variable"in this.right&&this.right.variable instanceof xo){const[e]=this.right.variable.context.traceExport(String(s));return e instanceof bs||e instanceof Ao?Ye:!!e}const i=this.right.getLiteralValueAtPath(Le,t,n);return"symbol"==typeof i?Ye:ja[this.operator](s,i)}getRenderedLiteralValue(){return"in"===this.operator&&"variable"in this.right&&this.right.variable instanceof xo?this.renderedLiteralValue!==Ua?this.renderedLiteralValue:this.renderedLiteralValue=Va(this.getLiteralValueAtPath(Le,Ue,this)):Ye}hasEffects(e){return"+"===this.operator&&this.parent instanceof pr&&""===this.left.getLiteralValueAtPath(Le,Ue,this)||super.hasEffects(e)}hasEffectsOnInteractionAtPath(e,{type:t}){return 0!==t||e.length>1}include(e,t,n){this.included||this.includeNode(e),"symbol"==typeof this.getRenderedLiteralValue()&&(this.left.include(e,t,n),this.right.include(e,t,n),"instanceof"===this.operator&&this.right.includePath(Fe,e))}includeNode(e){this.included=!0,"in"===this.operator&&"symbol"==typeof this.getRenderedLiteralValue()&&this.right.includePath(Te,e)}removeAnnotations(e){this.left.removeAnnotations(e)}render(e,t,{renderedSurroundingElement:n}=ye){const s=this.getRenderedLiteralValue();"symbol"!=typeof s?e.overwrite(this.start,this.end,s):(this.left.render(e,t,{renderedSurroundingElement:n}),this.right.render(e,t))}}Ga.prototype.applyDeoptimizations=rs;class Ha extends ns{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name)}else{if(!e.ignore.breaks)return!0;e.hasBreak=!0}return e.brokenFlow=!0,!1}include(e,t){this.included=!0,this.label?(this.label.include(e,t),e.includedLabels.add(this.label.name)):e.hasBreak=!0,e.brokenFlow=!0}}function Wa(e,t,n){if(n.arguments.length>0)if(n.arguments[n.arguments.length-1].included)for(const s of n.arguments)s.render(e,t);else{let s=n.arguments.length-2;for(;s>=0&&!n.arguments[s].included;)s--;if(s>=0){for(let i=0;i<=s;i++)n.arguments[i].render(e,t);e.remove(re(e.original,",",n.arguments[s].end),n.end-1)}else e.remove(re(e.original,"(",n.callee.end)+1,n.end-1)}}Ha.prototype.includeNode=is,Ha.prototype.applyDeoptimizations=rs;class qa extends ns{constructor(){super(...arguments),this.returnExpression=null,this.deoptimizableDependentExpressions=[],this.expressionsToBeDeoptimized=new Set}deoptimizeArgumentsOnInteractionAtPath(e,t,n){const{args:s}=e,[i,r]=this.getReturnExpression(n);if(r)return;const o=s.filter(e=>!!e&&e!==tt);if(0!==o.length)if(i===tt)for(const e of o)e.deoptimizePath(Te);else n.withTrackedEntityAtPath(t,i,()=>{for(const e of o)this.expressionsToBeDeoptimized.add(e);i.deoptimizeArgumentsOnInteractionAtPath(e,t,n)},null)}deoptimizeCache(){if(this.returnExpression?.[0]!==tt){this.returnExpression=nt;const{deoptimizableDependentExpressions:e,expressionsToBeDeoptimized:t}=this;this.expressionsToBeDeoptimized=xe,this.deoptimizableDependentExpressions=Ee;for(const t of e)t.deoptimizeCache();for(const e of t)e.deoptimizePath(Te)}}deoptimizePath(e){if(0===e.length||this.scope.context.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(e,this))return;const[t]=this.getReturnExpression();t!==tt&&t.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){const[s]=this.getReturnExpression(t);return s===tt?Ye:t.withTrackedEntityAtPath(e,s,()=>(this.deoptimizableDependentExpressions.push(n),s.getLiteralValueAtPath(e,t,n)),Ye)}getReturnExpressionWhenCalledAtPath(e,t,n,s){const i=this.getReturnExpression(n);return i[0]===tt?i:n.withTrackedEntityAtPath(e,i,()=>{this.deoptimizableDependentExpressions.push(s);const[r,o]=i[0].getReturnExpressionWhenCalledAtPath(e,t,n,s);return[r,o||i[1]]},nt)}hasEffectsOnInteractionAtPath(e,t,n){const{type:s}=t;if(2===s){const{args:s,withNew:i}=t;if((i?n.instantiated:n.called).trackEntityAtPathAndGetIfTracked(e,s,this))return!1}else if((1===s?n.assigned:n.accessed).trackEntityAtPathAndGetIfTracked(e,this))return!1;const[i,r]=this.getReturnExpression();return(1===s||!r)&&i.hasEffectsOnInteractionAtPath(e,t,n)}includeCallArgumentsWhenCalledAtPath(e,t,n){const[s,i]=this.getReturnExpression();i||s===tt||n.includedCallArguments.has(s)?it(t,n):(n.includedCallArguments.add(s),s.includeCallArgumentsWhenCalledAtPath(e,t,n),n.includedCallArguments.delete(s))}}class Ka extends ns{createScope(e){this.scope=new cr(e,!0)}}Ka.prototype.preventChildBlockScope=!0,Ka.prototype.includeNode=ss;class Xa extends ns{deoptimizeCache(){}getLiteralValueAtPath(e,t,n){const s=this.expression.getLiteralValueAtPathAsChainElement(e,t,n);return s===ts?void 0:s}hasEffects(e){return!0===this.expression.hasEffectsAsChainElement(e)}includePath(e,t){this.included=!0,this.expression.includePath(e,t)}removeAnnotations(e){this.expression.removeAnnotations(e)}}Xa.prototype.includeNode=is,Xa.prototype.applyDeoptimizations=rs;class Ja extends ps{constructor(e,t){const{context:n}=e;super(e,n),this.variables.set("this",this.thisVariable=new ds("this",null,t,Le,n,"other")),this.instanceScope=new ps(this,n),this.instanceThisVariable=new rr(n),this.instanceScope.variables.set("this",this.instanceThisVariable)}findLexicalBoundary(){return this}}class Ya extends ns{createScope(e){this.scope=new Ja(e,this.parent)}include(e,t){this.included=!0,this.scope.context.includeVariableInModule(this.scope.thisVariable,Te,e);for(const n of this.body)n.include(e,t)}}Ya.prototype.includeNode=is,Ya.prototype.applyDeoptimizations=rs;class Za extends Ji{render(e,t,{renderedSurroundingElement:n}=ye){super.render(e,t),n===jn&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}}function Qa(e){return"symbol"==typeof e?e!==Qe&&(e===Ze||Ye):!!e}class el extends et{constructor(e){super(),this.expressions=e}deoptimizePath(e){for(const t of this.expressions)t.deoptimizePath(e)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return[new el(this.expressions.map(i=>i.getReturnExpressionWhenCalledAtPath(e,t,n,s)[0])),!1]}hasEffectsOnInteractionAtPath(e,t,n){for(const s of this.expressions)if(s.hasEffectsOnInteractionAtPath(e,t,n))return!0;return!1}}class tl extends ns{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.usedBranch=null}get isBranchResolutionAnalysed(){return Xe(this.flags,65536)}set isBranchResolutionAnalysed(e){this.flags=Je(this.flags,65536,e)}get hasDeoptimizedCache(){return Xe(this.flags,33554432)}set hasDeoptimizedCache(e){this.flags=Je(this.flags,33554432,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.consequent.deoptimizeArgumentsOnInteractionAtPath(e,t,n),this.alternate.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeCache(){if(!this.hasDeoptimizedCache&&(this.hasDeoptimizedCache=!0,null!==this.usedBranch)){const e=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null,e.deoptimizePath(Te),this.included&&e.includePath(Te,Zn());const{expressionsToBeDeoptimized:t}=this;this.expressionsToBeDeoptimized=Ee;for(const e of t)e.deoptimizeCache()}}deoptimizePath(e){const t=this.getUsedBranch();t?t.deoptimizePath(e):(this.consequent.deoptimizePath(e),this.alternate.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){const s=this.getUsedBranch();if(!s){if(this.hasDeoptimizedCache)return Ye;const s=this.consequent.getLiteralValueAtPath(e,t,n),i=Qa(s);if(i===Ye)return Ye;const r=this.alternate.getLiteralValueAtPath(e,t,n);return i!==Qa(r)?Ye:(this.expressionsToBeDeoptimized.push(n),s!==r?i?Ze:Qe:s)}return this.expressionsToBeDeoptimized.push(n),s.getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){const i=this.getUsedBranch();return i?(this.expressionsToBeDeoptimized.push(s),i.getReturnExpressionWhenCalledAtPath(e,t,n,s)):[new el([this.consequent.getReturnExpressionWhenCalledAtPath(e,t,n,s)[0],this.alternate.getReturnExpressionWhenCalledAtPath(e,t,n,s)[0]]),!1]}hasEffects(e){if(this.test.hasEffects(e))return!0;const t=this.getUsedBranch();return t?t.hasEffects(e):this.consequent.hasEffects(e)||this.alternate.hasEffects(e)}hasEffectsOnInteractionAtPath(e,t,n){const s=this.getUsedBranch();return s?s.hasEffectsOnInteractionAtPath(e,t,n):this.consequent.hasEffectsOnInteractionAtPath(e,t,n)||this.alternate.hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included=!0;const n=this.getUsedBranch();null===n||t||this.test.shouldBeIncluded(e)?(this.test.include(e,t),this.consequent.include(e,t),this.alternate.include(e,t)):n.include(e,t)}includePath(e,t){this.included=!0;const n=this.getUsedBranch();null===n||this.test.shouldBeIncluded(t)?(this.consequent.includePath(e,t),this.alternate.includePath(e,t)):n.includePath(e,t)}includeCallArgumentsWhenCalledAtPath(e,t,n){if(0===e.length){const e=this.getUsedBranch();e?e.includeCallArgumentsWhenCalledAtPath(Le,t,n):(this.consequent.includeCallArgumentsWhenCalledAtPath(Le,t,n),this.alternate.includeCallArgumentsWhenCalledAtPath(Le,t,n))}else it(t,n)}removeAnnotations(e){this.test.removeAnnotations(e)}render(e,t,{isCalleeOfRenderedParent:n,preventASI:s,renderedParentType:i,renderedSurroundingElement:r}=ye){if(this.test.included)this.test.render(e,t,{renderedSurroundingElement:r}),this.consequent.render(e,t),this.alternate.render(e,t);else{const o=this.getUsedBranch(),a=re(e.original,":",this.consequent.end),l=ae(e.original,(this.consequent.included?re(e.original,"?",this.test.end):a)+1);s&&pe(e,l,o.start),e.remove(this.start,l),this.consequent.included&&e.remove(a,this.end),this.test.removeAnnotations(e),o.render(e,t,{isCalleeOfRenderedParent:n,preventASI:!0,renderedParentType:i||this.parent.type,renderedSurroundingElement:r||this.parent.type})}}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;const e=Qa(this.test.getLiteralValueAtPath(Le,Ue,this));return"symbol"==typeof e?null:this.usedBranch=e?this.consequent:this.alternate}}tl.prototype.includeNode=is,tl.prototype.applyDeoptimizations=rs;class nl extends ns{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name)}else{if(!e.ignore.continues)return!0;e.hasContinue=!0}return e.brokenFlow=!0,!1}include(e,t){this.included=!0,this.label?(this.label.include(e,t),e.includedLabels.add(this.label.name)):e.hasContinue=!0,e.brokenFlow=!0}}nl.prototype.includeNode=is,nl.prototype.applyDeoptimizations=rs;class sl extends ns{hasEffects(){return!0}}sl.prototype.includeNode=ss;class il extends ns{hasEffects(e){return this.expression.hasEffects(e)||this.expression.hasEffectsOnInteractionAtPath(Le,lt,e)}}function rl(e,t){const{brokenFlow:n,hasBreak:s,hasContinue:i,ignore:r}=e,{breaks:o,continues:a}=r;return r.breaks=!0,r.continues=!0,e.hasBreak=!1,e.hasContinue=!1,!!t.hasEffects(e)||(r.breaks=o,r.continues=a,e.hasBreak=s,e.hasContinue=i,e.brokenFlow=n,!1)}function ol(e,t,n){const{brokenFlow:s,hasBreak:i,hasContinue:r}=e;e.hasBreak=!1,e.hasContinue=!1,t.include(e,n,{asSingleStatement:!0}),e.hasBreak=i,e.hasContinue=r,e.brokenFlow=s}il.prototype.includeNode=ss;class al extends ns{hasEffects(e){return!!this.test.hasEffects(e)||rl(e,this.body)}include(e,t){this.included=!0,this.test.include(e,t),ol(e,this.body,t)}}al.prototype.includeNode=is,al.prototype.applyDeoptimizations=rs;class ll extends ns{hasEffects(){return!1}}ll.prototype.includeNode=ss;class cl extends ns{hasEffects(){return!1}initialise(){super.initialise(),this.scope.context.addExport(this)}render(e,t,n){e.remove(n.start,n.end)}}cl.prototype.needsBoundaries=!0,cl.prototype.includeNode=is,cl.prototype.applyDeoptimizations=rs;class ul extends ns{bind(){this.declaration?.bind()}hasEffects(e){return!!this.declaration?.hasEffects(e)}initialise(){super.initialise(),this.scope.context.addExport(this)}removeAnnotations(e){this.declaration?.removeAnnotations(e)}render(e,t,n){const{start:s,end:i}=n;if(null===this.declaration)e.remove(s,i);else{let n=this.declaration.start;if(this.declaration instanceof Yi){const e=this.declaration.decorators;for(const t of e)n=Math.min(n,t.start);n<=this.start&&(n=this.declaration.start)}e.remove(this.start,n),this.declaration.render(e,t,{end:i,start:s})}}}ul.prototype.needsBoundaries=!0,ul.prototype.includeNode=is,ul.prototype.applyDeoptimizations=rs;class dl extends ns{}dl.prototype.includeNode=is,dl.prototype.applyDeoptimizations=rs;class hl extends ns{createScope(e){this.scope=new hr(e)}hasEffects(e){return!!(this.init?.hasEffects(e)||this.test?.hasEffects(e)||this.update?.hasEffects(e))||rl(e,this.body)}include(e,t){this.included=!0,this.init?.include(e,t,{asSingleStatement:!0}),this.test?.include(e,t),this.update?.include(e,t),ol(e,this.body,t)}render(e,t){this.init?.render(e,t,ie),this.test?.render(e,t,ie),this.update?.render(e,t,ie),this.body.render(e,t)}}hl.prototype.includeNode=is,hl.prototype.applyDeoptimizations=rs;const pl=Symbol("unset");class fl extends ns{constructor(){super(...arguments),this.testValue=pl}deoptimizeCache(){this.testValue=Ye}hasEffects(e){if(this.test.hasEffects(e))return!0;const t=this.getTestValue();if("symbol"==typeof t){const{brokenFlow:t}=e;if(this.consequent.hasEffects(e))return!0;const n=e.brokenFlow;return e.brokenFlow=t,null===this.alternate?!1:!!this.alternate.hasEffects(e)||(e.brokenFlow=e.brokenFlow&&n,!1)}return t?this.consequent.hasEffects(e):!!this.alternate?.hasEffects(e)}include(e,t){if(this.included=!0,t)this.includeRecursively(t,e);else{const t=this.getTestValue();"symbol"==typeof t?this.includeUnknownTest(e):this.includeKnownTest(e,t)}}render(e,t){const{snippets:{getPropertyAccess:n}}=t,s=this.getTestValue(),i=[],r=this.test.included,o=!this.scope.context.options.treeshake;r?this.test.render(e,t):e.remove(this.start,this.consequent.start),this.consequent.included&&(o||"symbol"==typeof s||s)?this.consequent.render(e,t):(e.overwrite(this.consequent.start,this.consequent.end,r?";":""),i.push(...this.consequentScope.hoistedDeclarations)),this.alternate&&(!this.alternate.included||!o&&"symbol"!=typeof s&&s?(r&&this.shouldKeepAlternateBranch()?e.overwrite(this.alternate.start,this.end,";"):e.remove(this.consequent.end,this.end),i.push(...this.alternateScope.hoistedDeclarations)):(r?101===e.original.charCodeAt(this.alternate.start-1)&&e.prependLeft(this.alternate.start," "):e.remove(this.consequent.end,this.alternate.start),this.alternate.render(e,t))),this.renderHoistedDeclarations(i,e,n)}getTestValue(){return this.testValue===pl?this.testValue=Qa(this.test.getLiteralValueAtPath(Le,Ue,this)):this.testValue}includeKnownTest(e,t){this.test.shouldBeIncluded(e)&&this.test.include(e,!1),t&&this.consequent.shouldBeIncluded(e)&&this.consequent.include(e,!1,{asSingleStatement:!0}),!t&&this.alternate?.shouldBeIncluded(e)&&this.alternate.include(e,!1,{asSingleStatement:!0})}includeRecursively(e,t){this.test.include(t,e),this.consequent.include(t,e),this.alternate?.include(t,e)}includeUnknownTest(e){this.test.include(e,!1);const{brokenFlow:t}=e;let n=!1;this.consequent.shouldBeIncluded(e)&&(this.consequent.include(e,!1,{asSingleStatement:!0}),n=e.brokenFlow,e.brokenFlow=t),this.alternate?.shouldBeIncluded(e)&&(this.alternate.include(e,!1,{asSingleStatement:!0}),e.brokenFlow=e.brokenFlow&&n)}renderHoistedDeclarations(e,t,n){const s=[...new Set(e.map(e=>{const t=e.variable;return t.included?t.getName(n):""}))].filter(Boolean).join(", ");if(s){const e=this.parent.type,n=e!==Kn&&e!==zn;t.prependRight(this.start,`${n?"{ ":""}var ${s}; `),n&&t.appendLeft(this.end," }")}}shouldKeepAlternateBranch(){let e=this.parent;do{if("IfStatement"===e.type&&e.alternate)return!0;if(e.type===zn)return!1;e=e.parent}while(e);return!1}}fl.prototype.includeNode=is,fl.prototype.applyDeoptimizations=rs;class ml extends ns{bind(){}hasEffects(){return!1}initialise(){super.initialise(),this.scope.context.addImport(this)}render(e,t,n){e.remove(n.start,n.end)}}ml.prototype.needsBoundaries=!0,ml.prototype.includeNode=is,ml.prototype.applyDeoptimizations=rs;class gl extends ns{}gl.prototype.includeNode=is,gl.prototype.applyDeoptimizations=rs;class yl{constructor(e){this.interaction={args:[null,e],type:2,withNew:!1}}deoptimizeArgumentsOnInteractionAtPath(e,t,n){st(e),2===e.type&&0===t.length&&(as(e.args[1])||os(e.args[1]))&&e.args[1].deoptimizeArgumentsOnInteractionAtPath(this.interaction,[],n)}includeCallArguments(e,t){rt(e,t),2===e.type&&(as(e.args[1])||os(e.args[1]))&&e.args[1].includeCallArgumentsWhenCalledAtPath(Le,this.interaction,t)}}class bl{deoptimizeArgumentsOnInteractionAtPath(e){st(e)}includeCallArguments(e,t){rt(e,t)}}function El(e){return{fileName:e.getFileName(),...e.getPreRenderedChunkInfo()}}class xl extends ns{constructor(){super(...arguments),this.inlineNamespace=null,this.resolution=null,this.attributes=null,this.mechanism=null,this.namespaceExportName=void 0,this.localResolution=null,this.resolutionString=null}get shouldIncludeDynamicAttributes(){return Xe(this.flags,268435456)}set shouldIncludeDynamicAttributes(e){this.flags=Je(this.flags,268435456,e)}bind(){const{options:e,parent:t,resolution:n,source:s}=this;if(s.bind(),e?.bind(),"object"!=typeof n||!n||!("namespace"in n))return;if(t.type===jn||"AwaitExpression"===t.type)return void(this.localResolution={resolution:n,tracked:!0});if(t.type!==Hn)return void(this.localResolution={resolution:n,tracked:!1});let i=t,r=this;for(;!i.computed&&i.object===r&&i.property.type===Gn&&i.parent.type===Fn;){const e=i.property.name;if(r=i.parent,"then"===e){const e=r.arguments[0];if(void 0===e||e.type===Un||e.type===Bn)return i.promiseHandler=new yl(vo(n.namespace)),void(this.localResolution={resolution:n,tracked:!0})}else if("catch"===e||"finally"===e){if(r.parent.type===Hn){i.promiseHandler=new bl,i=r.parent;continue}if(r.parent.type===jn)return i.promiseHandler=new bl,void(this.localResolution={resolution:n,tracked:!0})}break}this.localResolution={resolution:n,tracked:!1}}deoptimizePath(e){this.localResolution?.resolution?.namespace.deoptimizePath(e)}hasEffects(){return!0}include(e,t){this.included||this.includeNode(e),this.source.include(e,t),this.shouldIncludeDynamicAttributes&&this.options?.include(e,t),t&&this.localResolution?.resolution.includeAllExports()}includeNode(e){this.included=!0;const{localResolution:t,scope:n,shouldIncludeDynamicAttributes:s}=this;s&&this.options?.includePath(Te,e),n.context.includeDynamicImport(this),n.addAccessedDynamicImport(this),t&&(t.tracked?t.resolution.includeModuleInExecution():t.resolution.includeAllExports())}includePath(e,t){this.included||this.includeNode(t),this.localResolution?.resolution?.namespace.includeMemberPath(e,t)}initialise(){super.initialise(),this.scope.context.addDynamicImport(this)}render(e,t){const{snippets:{_:n,getDirectReturnFunction:s,getObject:i,getPropertyAccess:r},importAttributesKey:o}=t;if(this.inlineNamespace){const[t,n]=s([],{functionReturn:!0,lineBreakIndent:null,name:null});return void e.overwrite(this.start,this.end,`Promise.resolve().then(${t}${this.inlineNamespace.getName(r)}${n})`)}if(this.mechanism&&(e.overwrite(this.start,re(e.original,"(",this.start+6)+1,this.mechanism.left),e.overwrite(this.end-1,this.end,this.mechanism.right)),this.resolutionString){if(e.overwrite(this.source.start,this.source.end,this.resolutionString),this.namespaceExportName){const[t,n]=s(["n"],{functionReturn:!0,lineBreakIndent:null,name:null});e.prependLeft(this.end,`.then(${t}n.${this.namespaceExportName}${n})`)}}else this.source.render(e,t);!0!==this.attributes&&(this.options&&e.overwrite(this.source.end,this.end-1,"",{contentOnly:!0}),this.attributes&&e.appendLeft(this.end-1,`,${n}${i([[o,this.attributes]],{lineBreakIndent:null})}`))}setExternalResolution(e,t,n,s,i,r,o,a,l,c){const{format:u}=t;this.inlineNamespace=null,this.resolutionString=r,this.namespaceExportName=o,this.attributes=a;const d=[...Al[u]||[]];let h;({helper:h,mechanism:this.mechanism}=this.getDynamicImportMechanismAndHelper(e,t,n,s,l,c)),h&&d.push(h),d.length>0&&this.scope.addAccessedGlobals(d,i)}setInternalResolution(e){this.inlineNamespace=e}getDynamicImportMechanismAndHelper(e,{compact:t,dynamicImportInCjs:n,format:s,generatedCode:{arrowFunctions:i},interop:r},{_:o,getDirectReturnFunction:a,getDirectReturnIifeLeft:l},c,u,d){const{resolution:h,scope:p}=this,f=c.hookFirstSync("renderDynamicImport",[{chunk:El(u),customResolution:"string"==typeof h?h:null,format:s,getTargetChunkImports(){if(null===d)return null;const e=[],t=u.getFileName();for(const n of d.dependencies){const s=`'${n.getImportPath(t)}'`;n instanceof So?e.push({fileName:n.getFileName(),resolvedImportPath:s,type:"external"}):e.push({chunk:n.getPreRenderedChunkInfo(),fileName:n.getFileName(),resolvedImportPath:s,type:"internal"})}return e},moduleAttributes:p.context.module.info.attributes,moduleId:p.context.module.id,moduleRawId:p.context.module.rawId,targetChunk:d?El(d):null,targetModuleAttributes:h&&"string"!=typeof h?h.info.attributes:{},targetModuleId:h&&"string"!=typeof h?h.id:null,targetModuleRawId:h&&"string"!=typeof h?h.info.rawId:null}]);if(f)return{helper:null,mechanism:f};const m=!h||"string"==typeof h;switch(s){case"cjs":{if(n&&(!h||"string"==typeof h||h instanceof Cs))return{helper:null,mechanism:null};const t=vl(h,e,r);let s="require(",o=")";t&&(s=`/*#__PURE__*/${t}(${s}`,o+=")");const[c,u]=a([],{functionReturn:!0,lineBreakIndent:null,name:null});return s=`Promise.resolve().then(${c}${s}`,o+=`${u})`,!i&&m&&(s=l(["t"],`${s}t${o}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),o=")"),{helper:t,mechanism:{left:s,right:o}}}case"amd":{const n=t?"c":"resolve",s=t?"e":"reject",c=vl(h,e,r),[u,d]=a(["m"],{functionReturn:!1,lineBreakIndent:null,name:null}),p=c?`${u}${n}(/*#__PURE__*/${c}(m))${d}`:n,[f,g]=a([n,s],{functionReturn:!1,lineBreakIndent:null,name:null});let y=`new Promise(${f}require([`,b=`],${o}${p},${o}${s})${g})`;return!i&&m&&(y=l(["t"],`${y}t${b}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),b=")"),{helper:c,mechanism:{left:y,right:b}}}case"system":return{helper:null,mechanism:{left:"module.import(",right:")"}}}return{helper:null,mechanism:null}}}function vl(e,t,n){return"external"===t?Dr[n(e instanceof Cs?e.id:null)]:"default"===t?Cr:null}xl.prototype.applyDeoptimizations=rs;const Al={amd:["require"],cjs:["require"],system:["module"]};class Sl extends ns{}Sl.prototype.includeNode=is,Sl.prototype.applyDeoptimizations=rs;class Pl extends ns{}Pl.prototype.includeNode=is,Pl.prototype.applyDeoptimizations=rs;class $l extends Ui{constructor(){super(...arguments),this.isNativeElement=!1}bind(){const e=this.getType();0===e?(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)):1===e&&(this.isNativeElement=!0)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),null!==this.variable&&this.scope.context.includeVariableInModule(this.variable,Le,e)}includePath(e,t){this.included?e.length>0&&this.variable?.includePath(e,t):(this.included=!0,null!==this.variable&&this.scope.context.includeVariableInModule(this.variable,e,t))}render(e,{snippets:{getPropertyAccess:t},useOriginalName:n}){if(this.variable){const s=this.variable.getName(t,n);s!==this.name&&e.overwrite(this.start,this.end,s,{contentOnly:!0,storeName:!0})}else this.isNativeElement&&"preserve"!==this.scope.context.options.jsx.mode&&e.update(this.start,this.end,JSON.stringify(this.name))}getType(){switch(this.parent.type){case"JSXOpeningElement":case"JSXClosingElement":return this.name.startsWith(this.name.charAt(0).toUpperCase())?0:1;case"JSXMemberExpression":return this.parent.object===this?0:2;case"JSXAttribute":case"JSXNamespacedName":return 2;default:throw new Error(`Unexpected parent node type for JSXIdentifier: ${this.parent.type}`)}}}class wl extends ns{render(e,t,{jsxMode:n}=ye){if(super.render(e,t),["classic","automatic"].includes(n)){const{name:t,value:s}=this,i=t instanceof $l?t.name:`${t.namespace.name}:${t.name.name}`;if("automatic"!==n||"key"!==i){const n=ws(i);i!==n&&e.overwrite(t.start,t.end,n,{contentOnly:!0}),s?(e.overwrite(t.end,s.start,": ",{contentOnly:!0}),s instanceof Yr&&"string"==typeof s.value&&s.value.includes("\n")&&e.overwrite(s.start,s.end,JSON.stringify(s.value),{contentOnly:!0})):e.appendLeft(t.end,": true")}}}}wl.prototype.includeNode=ss;class Il extends ns{render(e,t){const{mode:n}=this.scope.context.options.jsx;"preserve"!==n?e.overwrite(this.start,this.end,")",{contentOnly:!0}):super.render(e,t)}}Il.prototype.includeNode=ss;class Cl extends ns{render(e,t){this.argument.render(e,t);const{mode:n}=this.scope.context.options.jsx;"preserve"!==n&&(e.overwrite(this.start,this.argument.start,"",{contentOnly:!0}),e.overwrite(this.argument.end,this.end,"",{contentOnly:!0}))}}class kl extends ns{}kl.prototype.includeNode=ss;class Nl extends ns{includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.expression.includePath(Te,e)}render(e,t){const{mode:n}=this.scope.context.options.jsx;"preserve"!==n&&(e.remove(this.start,this.expression.start),e.remove(this.expression.end,this.end)),this.expression.render(e,t)}}const Ol=/^[ \t]*\r?\n[ \t\r\n]*|[ \t]*\r?\n[ \t\r\n]*$/g,Rl=/[ \t]*\r?\n[ \t\r\n]*/g;class Dl extends ns{shouldRender(){return!!this.getRenderedText()}render(e){const{mode:t}=this.scope.context.options.jsx;"preserve"!==t&&e.overwrite(this.start,this.end,JSON.stringify(this.getRenderedText()),{contentOnly:!0})}getRenderedText(){return void 0===this.renderedText&&(this.renderedText=this.value.replace(Ol,"").replace(Rl," ")),this.renderedText}}function Ml(e){let t=0;for(const n of e)n instanceof Nl&&n.expression instanceof kl||n instanceof Dl&&!n.shouldRender()||t++;return t}function _l(e,t,n,s,i){const[r,o]=e.split(".");let a;if(n){if(a=s.scope.context.getImportedJsxFactoryVariable(o?"default":r,s.start,n),t){s.scope.findGlobal(r).includePath(Te,i),a.globalName=r}}else a=s.scope.findGlobal(r);return s.scope.context.includeVariableInModule(a,Te,i),a instanceof ds&&(a.consolidateInitializers(),a.addUsedPlace(s),s.scope.context.requestTreeshakingPass()),a}Dl.prototype.includeNode=ss;class Ll extends ns{constructor(){super(...arguments),this.factoryVariable=null,this.factory=null}initialise(){super.initialise();const{importSource:e}=this.jsxMode=this.getRenderingMode();e&&this.scope.context.addImportSource(e)}include(e,t){this.included||this.includeNode(e);for(const n of this.children)n.include(e,t)}includeNode(e){this.included=!0;const{factory:t,importSource:n,mode:s}=this.jsxMode;t&&(this.factory=t,this.factoryVariable=_l(t,"preserve"===s,n,this,e))}getRenderingMode(){const e=this.scope.context.options.jsx,{mode:t,factory:n,importSource:s}=e;return"automatic"===t?{factory:Ml(this.children)>1?"jsxs":"jsx",importSource:e.jsxImportSource,mode:t}:{factory:n,importSource:s,mode:t}}renderChildren(e,t,n){const{children:s}=this;let i=!1,r=n,o=null;for(const n of s)n instanceof Nl&&n.expression instanceof kl||n instanceof Dl&&!n.shouldRender()?e.remove(r,n.end):(e.appendLeft(r,", "),n.render(e,t),o?i=!0:o=n),r=n.end;return{childrenEnd:r,firstChild:o,hasMultipleChildren:i}}}Ll.prototype.applyDeoptimizations=rs;class Tl extends ns{}Tl.prototype.includeNode=ss;class Bl extends ns{render(e,t,{jsxMode:n=this.scope.context.options.jsx.mode}={}){this.name.render(e,t);for(const s of this.attributes)s.render(e,t,{jsxMode:n})}}Bl.prototype.includeNode=ss;class zl extends ns{hasEffects(e){const{brokenFlow:t,includedLabels:n}=e;e.ignore.labels.add(this.label.name),e.includedLabels=new Set;let s=!1;return this.body.hasEffects(e)?s=!0:(e.ignore.labels.delete(this.label.name),e.includedLabels.has(this.label.name)&&(e.includedLabels.delete(this.label.name),e.brokenFlow=t)),e.includedLabels=new Set([...n,...e.includedLabels]),s}include(e,t){this.included||this.includeNode(e);const{brokenFlow:n,includedLabels:s}=e;e.includedLabels=new Set,this.body.include(e,t),(t||e.includedLabels.has(this.label.name))&&(this.label.include(e,t),e.includedLabels.delete(this.label.name),e.brokenFlow=n),e.includedLabels=new Set([...s,...e.includedLabels])}includeNode(e){this.included=!0,this.body.includePath(Te,e)}render(e,t){this.label.included?this.label.render(e,t):e.remove(this.start,ae(e.original,re(e.original,":",this.label.end)+1)),this.body.render(e,t)}}zl.prototype.applyDeoptimizations=rs;class Fl extends ns{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.usedBranch=null}get isBranchResolutionAnalysed(){return Xe(this.flags,65536)}set isBranchResolutionAnalysed(e){this.flags=Je(this.flags,65536,e)}get hasDeoptimizedCache(){return Xe(this.flags,33554432)}set hasDeoptimizedCache(e){this.flags=Je(this.flags,33554432,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.left.deoptimizeArgumentsOnInteractionAtPath(e,t,n),this.right.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeCache(){if(this.hasDeoptimizedCache)return;if(this.hasDeoptimizedCache=!0,this.usedBranch){const e=this.usedBranch===this.left?this.right:this.left;this.usedBranch=null,e.deoptimizePath(Te),this.included&&e.includePath(Te,Zn())}const{scope:{context:e},expressionsToBeDeoptimized:t}=this;this.expressionsToBeDeoptimized=Ee;for(const e of t)e.deoptimizeCache();e.requestTreeshakingPass()}deoptimizePath(e){const t=this.getUsedBranch();t?t.deoptimizePath(e):(this.left.deoptimizePath(e),this.right.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){if(n===this)return Ye;const s=this.getUsedBranch();if(s)return this.expressionsToBeDeoptimized.push(n),s.getLiteralValueAtPath(e,t,n);if(!this.hasDeoptimizedCache&&!e.length){const s=Qa(this.right.getLiteralValueAtPath(e,t,n));if("symbol"!=typeof s){if(!s&&"&&"===this.operator)return this.expressionsToBeDeoptimized.push(n),Qe;if(s&&"||"===this.operator)return this.expressionsToBeDeoptimized.push(n),Ze}}return Ye}getReturnExpressionWhenCalledAtPath(e,t,n,s){const i=this.getUsedBranch();return i?(this.expressionsToBeDeoptimized.push(s),i.getReturnExpressionWhenCalledAtPath(e,t,n,s)):[new el([this.left.getReturnExpressionWhenCalledAtPath(e,t,n,s)[0],this.right.getReturnExpressionWhenCalledAtPath(e,t,n,s)[0]]),!1]}hasEffects(e){return!!this.left.hasEffects(e)||this.getUsedBranch()!==this.left&&this.right.hasEffects(e)}hasEffectsOnInteractionAtPath(e,t,n){const s=this.getUsedBranch();return s?s.hasEffectsOnInteractionAtPath(e,t,n):this.left.hasEffectsOnInteractionAtPath(e,t,n)||this.right.hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included=!0;const n=this.getUsedBranch();t||!n||n===this.right&&this.left.shouldBeIncluded(e)?(this.left.include(e,t),this.right.include(e,t)):n.include(e,t)}includePath(e,t){this.included=!0;const n=this.getUsedBranch();!n||n===this.right&&this.left.shouldBeIncluded(t)?(this.left.includePath(e,t),this.right.includePath(e,t)):n.includePath(e,t)}removeAnnotations(e){this.left.removeAnnotations(e)}render(e,t,{isCalleeOfRenderedParent:n,preventASI:s,renderedParentType:i,renderedSurroundingElement:r}=ye){if(this.left.included&&this.right.included)this.left.render(e,t,{preventASI:s,renderedSurroundingElement:r}),this.right.render(e,t);else{const o=re(e.original,this.operator,this.left.end);if(this.right.included){const t=ae(e.original,o+2);e.remove(this.start,t),s&&pe(e,t,this.right.start),this.left.removeAnnotations(e)}else e.remove(function(e,t,n){for(;;){if(t>=n)return n;if(!le.test(e[n-1]))return n;n--}}(e.original,this.left.end,o),this.end);this.getUsedBranch().render(e,t,{isCalleeOfRenderedParent:n,preventASI:s,renderedParentType:i||this.parent.type,renderedSurroundingElement:r||this.parent.type})}}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;const e=this.left.getLiteralValueAtPath(Le,Ue,this),t=Qa(e);if("symbol"==typeof t||"??"===this.operator&&"symbol"==typeof e)return null;this.usedBranch="||"===this.operator&&t||"&&"===this.operator&&!t||"??"===this.operator&&null!=e?this.left:this.right}return this.usedBranch}}Fl.prototype.includeNode=is,Fl.prototype.applyDeoptimizations=rs;class Vl extends ns{constructor(){super(...arguments),this.objectEntity=null,this.protoProp=null}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.getObjectEntity().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,t,n,s)}hasEffectsOnInteractionAtPath(e,t,n){return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included||this.includeNode(e),this.getObjectEntity().include(e,t),this.protoProp?.include(e,t)}includeNode(e){this.included=!0,this.protoProp?.includePath(Te,e)}includePath(e,t){this.included||this.includeNode(t),this.getObjectEntity().includePath(e,t)}includeCallArgumentsWhenCalledAtPath(e,t,n){this.getObjectEntity().includeCallArgumentsWhenCalledAtPath(e,t,n)}render(e,t,{renderedSurroundingElement:n}=ye){if(n!==jn&&n!==Bn||(e.appendRight(this.start,"("),e.prependLeft(this.end,")")),this.properties.length>0){const n=he(this.properties,e,this.start+1,this.end-1);let s=null;for(const{node:i,separator:r,start:o,end:a}of n)i.included?(s=r,i.render(e,t)):se(i,e,o,a);s&&e.remove(s,this.end-1)}}getObjectEntity(){if(null!==this.objectEntity)return this.objectEntity;let e=si;const t=[];for(const n of this.properties){if(n instanceof yi){t.push({key:Pe,kind:"init",property:n});continue}let s;if(n.computed){const e=n.key.getLiteralValueAtPath(Le,Ue,this);if("symbol"==typeof e){t.push({key:De(e)?e:Pe,kind:n.kind,property:n});continue}s=String(e)}else if(s=n.key instanceof Wi?n.key.name:String(n.key.value),"__proto__"===s&&"init"===n.kind){this.protoProp=n,e=n.value instanceof Yr&&null===n.value.value?null:n.value;continue}t.push({key:s,kind:n.kind,property:n})}return this.objectEntity=new ei(t,e)}}Vl.prototype.applyDeoptimizations=rs;class jl extends ns{}jl.prototype.includeNode=ss;class Ul extends ns{constructor(){super(...arguments),this.hasCachedEffect=null,this.hasLoggedEffect=!1}hasCachedEffects(){return!!this.included&&(null===this.hasCachedEffect?this.hasCachedEffect=this.hasEffects(Qn()):this.hasCachedEffect)}hasEffects(e){for(const t of this.body)if(t.hasEffects(e)){if(this.scope.context.options.experimentalLogSideEffects&&!this.hasLoggedEffect){this.hasLoggedEffect=!0;const{code:e,log:n,module:s}=this.scope.context;n(Et,mn(e,s.id,pt(e,t.start,{offsetLine:1})),t.start)}return this.hasCachedEffect=!0}return!1}include(e,t){this.included=!0;for(const n of this.body)(t||n.shouldBeIncluded(e))&&n.include(e,t)}initialise(){if(super.initialise(),this.invalidAnnotations)for(const{start:e,end:t,type:n}of this.invalidAnnotations)this.scope.context.magicString.remove(e,t),"pure"!==n&&"noSideEffects"!==n||this.scope.context.log(bt,yn(this.scope.context.code.slice(e,t),this.scope.context.module.id,n),e)}render(e,t){let n=this.start;if(e.original.startsWith("#!")&&(n=Math.min(e.original.indexOf("\n")+1,this.end),e.remove(0,n)),this.body.length>0){for(;"/"===e.original[n]&&/[*/]/.test(e.original[n+1]);){const t=ue(e.original.slice(n,this.body[0].start));if(-1===t[0])break;n+=t[1]}de(this.body,e,n,this.end,t)}else super.render(e,t)}}Ul.prototype.includeNode=is,Ul.prototype.applyDeoptimizations=rs;class Gl extends qi{get method(){return Xe(this.flags,262144)}set method(e){this.flags=Je(this.flags,262144,e)}get shorthand(){return Xe(this.flags,524288)}set shorthand(e){this.flags=Je(this.flags,524288,e)}declare(e,t,n){return this.value.declare(e,this.getPathInProperty(t),n)}deoptimizeAssignment(e,t){this.value.deoptimizeAssignment?.(this.getPathInProperty(e),t)}hasEffects(e){return this.key.hasEffects(e)||this.value.hasEffects(e)}hasEffectsWhenDestructuring(e,t,n){return this.value.hasEffectsWhenDestructuring?.(e,this.getPathInProperty(t),n)}includeDestructuredIfNecessary(e,t,n){const s=this.getPathInProperty(t);let i=this.value.includeDestructuredIfNecessary(e,s,n)||this.included;return(i||=this.key.hasEffects(Qn()))&&(this.key.include(e,!1),this.value.included||(this.value.includeNode(e),this.value.includeDestructuredIfNecessary(e,s,n))),!this.included&&i&&this.includeNode(e),this.included}include(e,t){this.included=!0,this.key.include(e,t),this.value.include(e,t)}includePath(e,t){this.included=!0,this.value.includePath(e,t)}markDeclarationReached(){this.value.markDeclarationReached()}render(e,t){this.shorthand||this.key.render(e,t),this.value.render(e,t,{isShorthandProperty:this.shorthand})}setAssignedValue(e){this.value.setAssignedValue(e)}getPathInProperty(e){return e.at(-1)===Pe?e:this.computed?[...e,Pe]:this.key instanceof Wi?[...e,this.key.name]:[...e,String(this.key.value)]}}Gl.prototype.includeNode=is,Gl.prototype.applyDeoptimizations=rs;class Hl extends ns{constructor(){super(...arguments),this.declarationInit=null}addExportedVariables(e,t){this.argument.addExportedVariables(e,t)}declare(e,t,n){return this.declarationInit=n,this.argument.declare(e,Wl(t),n)}deoptimizeAssignment(e,t){this.argument.deoptimizeAssignment(Wl(e),t)}deoptimizePath(e){0===e.length&&this.argument.deoptimizePath(Le)}hasEffectsOnInteractionAtPath(e,t,n){return e.length>0||this.argument.hasEffectsOnInteractionAtPath(Le,t,n)}hasEffectsWhenDestructuring(e,t,n){return this.argument.hasEffectsWhenDestructuring(e,Wl(t),n)}includeDestructuredIfNecessary(e,t,n){const s=this.argument.includeDestructuredIfNecessary(e,Wl(t),n);return!this.included&&s&&this.includeNode(e),this.included}include(e,t){this.included||this.includeNode(e),this.argument.include(e,t)}markDeclarationReached(){this.argument.markDeclarationReached()}setAssignedValue(e){this.argument.setAssignedValue(e)}applyDeoptimizations(){this.deoptimized=!0,null!==this.declarationInit&&(this.declarationInit.deoptimizePath([Pe,Pe]),this.scope.context.requestTreeshakingPass())}}Hl.prototype.includeNode=ss;const Wl=e=>e.at(-1)===Pe?e:[...e,Pe];class ql extends ns{hasEffects(e){return!(e.ignore.returnYield&&!this.argument?.hasEffects(e))||(e.brokenFlow=!0,!1)}include(e,t){this.included||this.includeNode(e),this.argument?.include(e,t),e.brokenFlow=!0}includeNode(e){this.included=!0,this.argument?.includePath(Te,e)}initialise(){super.initialise(),this.scope.addReturnExpression(this.argument||tt)}render(e,t){this.argument&&(this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+6&&e.prependLeft(this.start+6," "))}}ql.prototype.applyDeoptimizations=rs;class Kl extends ns{deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.expressions[this.expressions.length-1].deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.expressions[this.expressions.length-1].deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(e,t,n)}hasEffects(e){for(const t of this.expressions)if(t.hasEffects(e))return!0;return!1}hasEffectsOnInteractionAtPath(e,t,n){return this.expressions[this.expressions.length-1].hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included=!0;const n=this.expressions[this.expressions.length-1];for(const s of this.expressions)(t||s===n&&!(this.parent instanceof pr)||s.shouldBeIncluded(e))&&s.include(e,t)}includePath(e,t){this.included=!0,this.expressions[this.expressions.length-1].includePath(e,t)}removeAnnotations(e){this.expressions[0].removeAnnotations(e)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:s,preventASI:i}=ye){let r=0,o=null;const a=this.expressions[this.expressions.length-1];for(const{node:l,separator:c,start:u,end:d}of he(this.expressions,e,this.start,this.end))if(l.included)if(r++,o=c,1===r&&i&&pe(e,u,l.start),1===r){const i=n||this.parent.type;l.render(e,t,{isCalleeOfRenderedParent:s&&l===a,renderedParentType:i,renderedSurroundingElement:i})}else l.render(e,t);else se(l,e,u,d);o&&e.remove(o,this.end)}}Kl.prototype.includeNode=is,Kl.prototype.applyDeoptimizations=rs;class Xl extends ns{createScope(e){this.scope=new hr(e)}hasEffects(e){for(const t of this.body)if(t.hasEffects(e))return!0;return!1}include(e,t){this.included=!0;for(const n of this.body)(t||n.shouldBeIncluded(e))&&n.include(e,t)}render(e,t){if(this.body.length>0){const n=re(e.original.slice(this.start,this.end),"{")+1;de(this.body,e,this.start+n,this.end-1,t)}else super.render(e,t)}}Xl.prototype.includeNode=is,Xl.prototype.applyDeoptimizations=rs;class Jl extends ns{hasEffects(e){if(this.test?.hasEffects(e))return!0;for(const t of this.consequent){if(e.brokenFlow)break;if(t.hasEffects(e))return!0}return!1}include(e,t){this.included=!0,this.test?.include(e,t);for(const n of this.consequent)(t||n.shouldBeIncluded(e))&&n.include(e,t)}render(e,t,n){if(this.test&&(this.test.render(e,t),this.test.start===this.start+4&&e.prependLeft(this.test.start," ")),this.consequent.length>0){const s=this.test?this.test.end:re(e.original,"default",this.start)+7,i=re(e.original,":",s)+1;de(this.consequent,e,i,n.end,t)}}}Jl.prototype.needsBoundaries=!0,Jl.prototype.includeNode=is,Jl.prototype.applyDeoptimizations=rs;class Yl extends ns{createScope(e){this.parentScope=e,this.scope=new hr(e)}hasEffects(e){if(this.discriminant.hasEffects(e))return!0;const{brokenFlow:t,hasBreak:n,ignore:s}=e,{breaks:i}=s;s.breaks=!0,e.hasBreak=!1;let r=!0;for(const n of this.cases){if(n.hasEffects(e))return!0;r&&=e.brokenFlow&&!e.hasBreak,e.hasBreak=!1,e.brokenFlow=t}return null!==this.defaultCase&&(e.brokenFlow=r),s.breaks=i,e.hasBreak=n,!1}include(e,t){this.included=!0,this.discriminant.include(e,t);const{brokenFlow:n,hasBreak:s}=e;e.hasBreak=!1;let i=!0,r=t||null!==this.defaultCase&&this.defaultCase<this.cases.length-1;for(let s=this.cases.length-1;s>=0;s--){const o=this.cases[s];if(o.included&&(r=!0),!r){const e=Qn();e.ignore.breaks=!0,r=o.hasEffects(e)}r?(o.include(e,t),i&&=e.brokenFlow&&!e.hasBreak,e.hasBreak=!1,e.brokenFlow=n):i=n}r&&null!==this.defaultCase&&(e.brokenFlow=i),e.hasBreak=s}initialise(){super.initialise();for(let e=0;e<this.cases.length;e++)if(null===this.cases[e].test)return void(this.defaultCase=e);this.defaultCase=null}render(e,t){this.discriminant.render(e,t),this.cases.length>0&&de(this.cases,e,this.cases[0].start,this.end-1,t)}}Yl.prototype.includeNode=is,Yl.prototype.applyDeoptimizations=rs;class Zl extends qa{get hasCheckedForWarnings(){return Xe(this.flags,134217728)}set hasCheckedForWarnings(e){this.flags=Je(this.flags,134217728,e)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const t of this.quasi.expressions)if(t.hasEffects(e))return!0;return this.tag.hasEffects(e)||this.tag.hasEffectsOnInteractionAtPath(Le,this.interaction,e)}include(e,t){this.included||this.includeNode(e),t?super.include(e,!0):(this.quasi.include(e,!1),this.tag.include(e,!1),this.tag.includeCallArgumentsWhenCalledAtPath(Le,this.interaction,e))}initialise(){super.initialise(),this.args=[tt,...this.quasi.expressions],this.interaction={args:[this.tag instanceof to&&!this.tag.variable?this.tag.object:null,...this.args],type:2,withNew:!1}}render(e,t){if(this.tag.render(e,t,{isCalleeOfRenderedParent:!0}),this.quasi.render(e,t),!this.hasCheckedForWarnings&&this.tag.type===Gn){this.hasCheckedForWarnings=!0;const{name:e}=this.tag;this.scope.findVariable(e).isNamespace&&this.scope.context.log(bt,ln(e),this.start)}}applyDeoptimizations(){this.deoptimized=!0,this.tag.deoptimizeArgumentsOnInteractionAtPath(this.interaction,Le,Ue),this.scope.context.requestTreeshakingPass()}getReturnExpression(e=Ue){return null===this.returnExpression?(this.returnExpression=nt,this.returnExpression=this.tag.getReturnExpressionWhenCalledAtPath(Le,this.interaction,e,this)):this.returnExpression}}Zl.prototype.includeNode=ss;class Ql extends ns{get tail(){return Xe(this.flags,1048576)}set tail(e){this.flags=Je(this.flags,1048576,e)}bind(){}hasEffects(){return!1}render(){}}Ql.prototype.includeNode=ss;class ec extends ps{constructor(e,t,n){super(e,t),this.importDescriptions=n,this.variables.set("this",new ds("this",null,Rs,Le,t,"other"))}addDeclaration(e,t,n,s,i){return this.importDescriptions.has(e.name)&&t.error(kn(e.name),e.start),super.addDeclaration(e,t,n,s,i)}addExportDefaultDeclaration(e,t){const n=new Eo(e,t);return this.variables.set("default",n),n}addNamespaceMemberAccess(){}deconflict(e,t,n){for(const s of this.children)s.deconflict(e,t,n)}findLexicalBoundary(){return this}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const n=this.context.traceVariable(e)||this.parent.findVariable(e);return n instanceof Vi&&this.accessedOutsideVariables.set(e,n),n}}class tc extends ns{constructor(){super(...arguments),this.directlyIncluded=!1,this.includedLabelsAfterBlock=null}hasEffects(e){return(this.scope.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(e))||!!this.finalizer?.hasEffects(e)}include(e,t){const n=this.scope.context.options.treeshake?.tryCatchDeoptimization,{brokenFlow:s,includedLabels:i}=e;if(this.directlyIncluded&&n){if(this.includedLabelsAfterBlock)for(const e of this.includedLabelsAfterBlock)i.add(e)}else this.included=!0,this.directlyIncluded=!0,this.block.include(e,n?es:t),i.size>0&&(this.includedLabelsAfterBlock=[...i]),e.brokenFlow=s;null!==this.handler&&(this.handler.include(e,t),e.brokenFlow=s),this.finalizer?.include(e,t)}}tc.prototype.includeNode=is,tc.prototype.applyDeoptimizations=rs;const nc={"!":e=>!e,"+":e=>+e,"-":e=>-e,delete:()=>Ye,typeof:e=>typeof e,void:()=>{},"~":e=>~e},sc=Symbol("Unassigned");class ic extends ns{constructor(){super(...arguments),this.renderedLiteralValue=sc}get prefix(){return Xe(this.flags,2097152)}set prefix(e){this.flags=Je(this.flags,2097152,e)}deoptimizeCache(){this.renderedLiteralValue=Ye}getLiteralValueAtPath(e,t,n){if(e.length>0)return Ye;const s=this.argument.getLiteralValueAtPath(Le,t,n);if("symbol"==typeof s){if("void"===this.operator)return;if("!"===this.operator){if(s===Qe)return!0;if(s===Ze)return!1}return Ye}return nc[this.operator](s)}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!("typeof"===this.operator&&this.argument instanceof Wi)&&(this.argument.hasEffects(e)||"delete"===this.operator&&this.argument.hasEffectsOnInteractionAtPath(Le,at,e))}hasEffectsOnInteractionAtPath(e,{type:t}){return 0!==t||e.length>("void"===this.operator?0:1)}applyDeoptimizations(){this.deoptimized=!0,"delete"===this.operator&&(this.argument.deoptimizePath(Le),this.scope.context.requestTreeshakingPass())}getRenderedLiteralValue(e){return this.renderedLiteralValue!==sc?this.renderedLiteralValue:this.renderedLiteralValue=e?Ye:Va(this.getLiteralValueAtPath(Le,Ue,this))}include(e,t,n){this.deoptimized||this.applyDeoptimizations(),this.included=!0;const s=this.argument instanceof Wi&&this.argument.variable?.included;("symbol"==typeof this.getRenderedLiteralValue(t)||this.argument.shouldBeIncluded(e)||s)&&(this.argument.include(e,t),this.renderedLiteralValue=Ye)}render(e,t){if("symbol"==typeof this.renderedLiteralValue)super.render(e,t);else{let t=this.renderedLiteralValue;rc.test(e.original[this.start-1])||(t=` ${t}`),e.overwrite(this.start,this.end,t)}}}const rc=/[\s([=%&*+-/<>^|,?:;]/;ic.prototype.includeNode=ss;class oc extends ns{hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.argument.hasEffectsAsAssignmentTarget(e,!0)}hasEffectsOnInteractionAtPath(e,{type:t}){return e.length>1||0!==t}include(e,t){this.included||this.includeNode(e),this.argument.includeAsAssignmentTarget(e,t,!0)}initialise(){super.initialise(),this.argument.setAssignedValue(tt)}render(e,t){const{exportNamesByVariable:n,format:s,snippets:{_:i}}=t;if(this.argument.render(e,t),"system"===s){const s=this.argument.variable,r=n.get(s);if(r)if(this.prefix)1===r.length?me(s,this.start,this.end,e,t):ge(s,this.start,this.end,this.parent.type!==jn,e,t);else{const n=this.operator[0];!function(e,t,n,s,i,r,o){const{_:a}=r.snippets;i.prependRight(t,`${fe([e],r,o)},${a}`),s&&(i.prependRight(t,"("),i.appendLeft(n,")"))}(s,this.start,this.end,this.parent.type!==jn,e,t,`${i}${n}${i}1`)}}}applyDeoptimizations(){if(this.deoptimized=!0,this.argument.deoptimizePath(Le),this.argument instanceof Wi){this.scope.findVariable(this.argument.name).markReassigned()}this.scope.context.requestTreeshakingPass()}}function ac(e,t){return null!==e.renderBaseName&&t.has(e)&&e.isReassigned}oc.prototype.includeNode=ss;class lc extends ns{deoptimizePath(){for(const e of this.declarations)e.deoptimizePath(Le)}hasEffectsOnInteractionAtPath(){return!1}include(e,t,{asSingleStatement:n}=ye){this.included=!0;for(const s of this.declarations){(t||s.shouldBeIncluded(e))&&s.include(e,t);const{id:i,init:r}=s;n&&i.include(e,t),r&&i.included&&!r.included&&(i instanceof Ba||i instanceof La)&&r.include(e,t)}}initialise(){super.initialise(),"await using"===this.kind&&za(this);for(const e of this.declarations)e.declareDeclarator(this.kind)}removeAnnotations(e){this.declarations[0].removeAnnotations(e)}render(e,t,n=ye){if(this.areAllDeclarationsIncludedAndNotExported(t.exportNamesByVariable)){for(const n of this.declarations)n.render(e,t);n.isNoStatement||59===e.original.charCodeAt(this.end-1)||e.appendLeft(this.end,";")}else this.renderReplacedDeclarations(e,t)}renderDeclarationEnd(e,t,n,s,i,r,o){59===e.original.charCodeAt(this.end-1)&&e.remove(this.end-1,this.end),t+=";",null===n?e.appendLeft(i,t):(10!==e.original.charCodeAt(s-1)||10!==e.original.charCodeAt(this.end)&&13!==e.original.charCodeAt(this.end)||(s--,13===e.original.charCodeAt(s)&&s--),s===n+1?e.overwrite(n,i,t):(e.overwrite(n,n+1,t),e.remove(s,i))),r.length>0&&e.appendLeft(i,` ${fe(r,o)};`)}renderReplacedDeclarations(e,t){const n=he(this.declarations,e,this.start+this.kind.length,this.end-(59===e.original.charCodeAt(this.end-1)?1:0));let s,i;i=ae(e.original,this.start+this.kind.length);let r=i-1;e.remove(this.start,r);let o,a,l=!1,c=!1,u="";const d=[],h=function(e,t,n){let s=null;if("system"===t.format){for(const{node:i}of e)i.id instanceof Wi&&i.init&&0===n.length&&1===t.exportNamesByVariable.get(i.id.variable)?.length?(s=i.id.variable,n.push(s)):i.id.addExportedVariables(n,t.exportNamesByVariable);n.length>1?s=null:s&&(n.length=0)}return s}(n,t,d);for(const{node:d,start:p,separator:f,contentEnd:m,end:g}of n)if(d.included){if(d.render(e,t),o="",a="",!d.id.included||d.id instanceof Wi&&ac(d.id.variable,t.exportNamesByVariable))c&&(u+=";"),l=!1;else{if(h&&h===d.id.variable){const n=re(e.original,"=",d.id.end);me(h,ae(e.original,n+1),null===f?m:f,e,t)}l?u+=",":(c&&(u+=";"),o+=`${this.kind} `,l=!0)}i===r+1?e.overwrite(r,i,u+o):(e.overwrite(r,r+1,u),e.appendLeft(i,o)),s=m,i=g,c=!0,r=f,u=""}else se(d,e,p,g);this.renderDeclarationEnd(e,u,r,s,i,d,t)}areAllDeclarationsIncludedAndNotExported(e){if("await using"===this.kind||"using"===this.kind)return!0;for(const t of this.declarations){if(!t.id.included)return!1;if(t.id.type===Gn){if(e.has(t.id.variable))return!1}else{const n=[];if(t.id.addExportedVariables(n,e),n.length>0)return!1}}return!0}}lc.prototype.includeNode=is,lc.prototype.applyDeoptimizations=rs;class cc extends ns{declareDeclarator(e){this.isUsingDeclaration="using"===e,this.isAsyncUsingDeclaration="await using"===e,this.id.declare(e,Le,this.init||Rs)}deoptimizePath(e){this.id.deoptimizePath(e)}hasEffects(e){const t=this.init?.hasEffects(e);return this.id.markDeclarationReached(),t||this.isUsingDeclaration||this.isAsyncUsingDeclaration||this.id.hasEffects(e)||this.scope.context.options.treeshake.propertyReadSideEffects&&this.id.hasEffectsWhenDestructuring(e,Le,this.init||Rs)}include(e,t){const{id:n,init:s}=this;this.included||this.includeNode(e),s?.include(e,t),n.markDeclarationReached(),t?n.include(e,t):n.includeDestructuredIfNecessary(e,Le,s||Rs)}removeAnnotations(e){this.init?.removeAnnotations(e)}render(e,t){const{exportNamesByVariable:n,snippets:{_:s,getPropertyAccess:i}}=t,{end:r,id:o,init:a,start:l}=this,c=o.included||this.isUsingDeclaration||this.isAsyncUsingDeclaration;if(c)o.render(e,t);else{const t=re(e.original,"=",o.end);e.remove(l,ae(e.original,t+1))}if(a){if(o instanceof Wi&&a instanceof Za&&!a.id){o.variable.getName(i)!==o.name&&e.appendLeft(a.start+5,` ${o.name}`)}a.render(e,t,c?ye:{renderedSurroundingElement:jn})}else o instanceof Wi&&ac(o.variable,n)&&e.appendLeft(r,`${s}=${s}void 0`)}includeNode(e){this.included=!0;const{id:t,init:n}=this;if(n&&(this.isUsingDeclaration?n.includePath(uc,e):this.isAsyncUsingDeclaration&&n.includePath(dc,e),t instanceof Wi&&n instanceof Za&&!n.id)){const{name:e,variable:s}=t;for(const t of n.scope.accessedOutsideVariables.values())t!==s&&t.forbidName(e)}}}cc.prototype.applyDeoptimizations=rs;const uc=[ke],dc=[Ne];class hc extends ns{hasEffects(e){return!!this.test.hasEffects(e)||rl(e,this.body)}include(e,t){this.included=!0,this.test.include(e,t),ol(e,this.body,t)}}hc.prototype.includeNode=is,hc.prototype.applyDeoptimizations=rs;class pc extends hr{constructor(){super(...arguments),this.hoistedDeclarations=[]}addDeclaration(e,t,n,s,i){return this.hoistedDeclarations.push(e),super.addDeclaration(e,t,n,s,i)}}const fc=[class extends ns{initialise(){const{id:e}=this.scope.context.module;return Ut(On(Gt(Cn(this.message)),e))}},class extends ns{initialise(){const e=this.start,{id:t}=this.scope.context.module,n=On(Gt(Cn(this.message,e)),t);this.scope.context.error(n,e)}},bi,La,class extends mr{constructor(){super(...arguments),this.objectEntity=null}get expression(){return Xe(this.flags,8388608)}set expression(e){this.flags=Je(this.flags,8388608,e)}createScope(e){this.scope=new ur(e,!1)}hasEffects(){return!1}hasEffectsOnInteractionAtPath(e,t,n){if(this.annotationNoSideEffects&&0===e.length&&2===t.type)return!1;if(super.hasEffectsOnInteractionAtPath(e,t,n))return!0;if(2===t.type){const{ignore:e,brokenFlow:t}=n;if(n.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0,this:!1},this.body.hasEffects(n))return!0;n.ignore=e,n.brokenFlow=t}return!1}onlyFunctionCallUsed(){return this.parent.type===Fn&&this.parent.callee===this||super.onlyFunctionCallUsed()}include(e,t){super.include(e,t);for(const n of this.params)n instanceof Wi||n.include(e,t)}includeNode(e){this.included=!0,this.body.includePath(Te,e);for(const t of this.params)t instanceof Wi||t.includePath(Te,e)}getObjectEntity(){return null!==this.objectEntity?this.objectEntity:this.objectEntity=new ei([],si)}},class extends ns{constructor(){super(...arguments),this.isConstReassignment=!1}hasEffects(e){const{deoptimized:t,isConstReassignment:n,left:s,operator:i,right:r}=this;return t||this.applyDeoptimizations(),n||r.hasEffects(e)||s.hasEffectsAsAssignmentTarget(e,"="!==i)||this.left.hasEffectsWhenDestructuring?.(e,Le,r)}hasEffectsOnInteractionAtPath(e,t,n){return 1===t.type&&this.left.included||this.right.hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){const{deoptimized:n,isConstReassignment:s,left:i,right:r,operator:o}=this;n||this.applyDeoptimizations(),this.included||this.includeNode(e);const a=Qn();(t||s||"="!==o||i.included||i.hasEffectsAsAssignmentTarget(a,!1)||i.hasEffectsWhenDestructuring?.(a,Le,r))&&i.includeAsAssignmentTarget(e,t,"="!==o),r.include(e,t)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(Te,e)}initialise(){if(super.initialise(),this.left instanceof Wi){const e=this.scope.variables.get(this.left.name);"const"===e?.kind&&(this.isConstReassignment=!0,this.scope.context.log(bt,{code:"CONST_REASSIGN",message:"Cannot reassign a variable declared with `const`"},this.left.start))}this.left.setAssignedValue(this.right)}render(e,t,{preventASI:n,renderedParentType:s,renderedSurroundingElement:i}=ye){const{left:r,right:o,start:a,end:l,parent:c}=this;if(r.included)r.render(e,t),o.render(e,t);else{const l=ae(e.original,re(e.original,"=",r.end)+1);e.remove(a,l),n&&pe(e,l,o.start),o.render(e,t,{renderedParentType:s||c.type,renderedSurroundingElement:i||c.type})}if("system"===t.format)if(r instanceof Wi){const n=r.variable,s=t.exportNamesByVariable.get(n);if(s)return void(1===s.length?me(n,a,l,e,t):ge(n,a,l,c.type!==jn,e,t))}else{const n=[];if(r.addExportedVariables(n,t.exportNamesByVariable),n.length>0)return void function(e,t,n,s,i,r){const{_:o,getDirectReturnIifeLeft:a}=r.snippets;i.prependRight(t,a(["v"],`${fe(e,r)},${o}v`,{needsArrowReturnParens:!0,needsWrappedFunction:s})),i.appendLeft(n,")")}(n,a,l,i===jn,e,t)}r.included&&r instanceof Ba&&(i===jn||i===Bn)&&(e.appendRight(a,"("),e.prependLeft(l,")"))}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizeAssignment(Le,this.right),this.scope.context.requestTreeshakingPass()}},class extends ns{addExportedVariables(e,t){this.left.addExportedVariables(e,t)}declare(e,t,n){return this.left.declare(e,t,n)}deoptimizeAssignment(e,t){this.left.deoptimizeAssignment(e,t)}deoptimizePath(e){0===e.length&&this.left.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,t,n){return e.length>0||this.left.hasEffectsOnInteractionAtPath(Le,t,n)}hasEffectsWhenDestructuring(e,t,n){return this.left.hasEffectsWhenDestructuring(e,t,n)}includeDestructuredIfNecessary(e,t,n){let s=this.left.includeDestructuredIfNecessary(e,t,n)||this.included;return(s||=this.right.shouldBeIncluded(e))&&(this.right.include(e,!1),this.left.included||(this.left.includeNode(e),this.left.includeDestructuredIfNecessary(e,t,n))),!this.included&&s&&this.includeNode(e),this.included}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(Te,e)}markDeclarationReached(){this.left.markDeclarationReached()}render(e,t,{isShorthandProperty:n}=ye){this.left.render(e,t,{isShorthandProperty:n}),this.right.render(e,t)}setAssignedValue(e){this.left.setAssignedValue(e)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(Le),this.right.deoptimizePath(Te),this.scope.context.requestTreeshakingPass()}},class extends ns{deoptimizePath(e){this.argument.deoptimizePath(e)}hasEffects(){return this.deoptimized||this.applyDeoptimizations(),!0}initialise(){super.initialise(),za(this)}include(e,t){this.included||this.includeNode(e),this.argument.include(e,t)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument.includePath(Fa,e)}includePath(e,t){this.deoptimized||this.applyDeoptimizations(),this.included||this.includeNode(t),this.argument.includePath(e,t)}},Ga,fr,Ha,class extends qa{get hasCheckedForWarnings(){return Xe(this.flags,134217728)}set hasCheckedForWarnings(e){this.flags=Je(this.flags,134217728,e)}get optional(){return Xe(this.flags,128)}set optional(e){this.flags=Je(this.flags,128,e)}bind(){super.bind(),this.interaction={args:[this.callee instanceof to&&!this.callee.variable?this.callee.object:null,...this.arguments],type:2,withNew:!1}}getLiteralValueAtPathAsChainElement(e,t,n){return Zr(this,this.callee,e,t,n)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const t of this.arguments)if(t.hasEffects(e))return!0;return!this.annotationPure&&(this.callee.hasEffects(e)||this.callee.hasEffectsOnInteractionAtPath(Le,this.interaction,e))}hasEffectsAsChainElement(e){const t="hasEffectsAsChainElement"in this.callee?this.callee.hasEffectsAsChainElement(e):this.callee.hasEffects(e);if(t===ts)return ts;if(this.optional&&null==this.callee.getLiteralValueAtPath(Le,Ue,this))return!this.annotationPure&&t||ts;this.deoptimized||this.applyDeoptimizations();for(const t of this.arguments)if(t.hasEffects(e))return!0;return!this.annotationPure&&(t||this.callee.hasEffectsOnInteractionAtPath(Le,this.interaction,e))}include(e,t){this.included||this.includeNode(e),t?(super.include(e,!0),t===es&&this.callee instanceof Wi&&this.callee.variable&&this.callee.variable.markCalledFromTryStatement()):(this.callee.include(e,!1),this.callee.includeCallArgumentsWhenCalledAtPath(Le,this.interaction,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations()}initialise(){super.initialise(),this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationPure=this.annotations.some(e=>"pure"===e.type))}render(e,t,{renderedSurroundingElement:n}=ye){if(this.callee.render(e,t,{isCalleeOfRenderedParent:!0,renderedSurroundingElement:n}),Wa(e,t,this),this.callee instanceof Wi&&!this.hasCheckedForWarnings){this.hasCheckedForWarnings=!0;this.scope.findVariable(this.callee.name).isNamespace&&this.scope.context.log(bt,ln(this.callee.name),this.start),"eval"===this.callee.name&&this.scope.context.log(bt,{code:"EVAL",id:s=this.scope.context.module.id,message:`Use of eval in "${Pt(s)}" is strongly discouraged as it poses security risks and may cause issues with minification.`,url:Ct("troubleshooting/#avoiding-eval")},this.start)}var s}applyDeoptimizations(){this.deoptimized=!0,this.callee.deoptimizeArgumentsOnInteractionAtPath(this.interaction,Le,Ue),this.scope.context.requestTreeshakingPass()}getReturnExpression(e=Ue){return null===this.returnExpression?(this.returnExpression=nt,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(Le,this.interaction,e,this)):this.returnExpression}},Ka,Xa,Ya,Yi,Za,tl,nl,sl,il,pr,al,ll,cl,br,ul,dl,pr,class extends ns{createScope(e){this.scope=new hr(e)}hasEffects(e){const{body:t,deoptimized:n,left:s,right:i}=this;return n||this.applyDeoptimizations(),!(!s.hasEffectsAsAssignmentTarget(e,!1)&&!i.hasEffects(e))||rl(e,t)}include(e,t){const{body:n,deoptimized:s,left:i,right:r}=this;s||this.applyDeoptimizations(),this.included||this.includeNode(e),i.includeAsAssignmentTarget(e,t||!0,!1),r.include(e,t),ol(e,n,t)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(Te,e)}initialise(){super.initialise(),this.left.setAssignedValue(tt)}render(e,t){this.left.render(e,t,ie),this.right.render(e,t,ie),110===e.original.charCodeAt(this.right.start-1)&&e.prependLeft(this.right.start," "),this.body.render(e,t)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(Le),this.scope.context.requestTreeshakingPass()}},class extends ns{get await(){return Xe(this.flags,131072)}set await(e){this.flags=Je(this.flags,131072,e)}createScope(e){this.scope=new hr(e)}hasEffects(){return this.deoptimized||this.applyDeoptimizations(),!0}include(e,t){const{body:n,deoptimized:s,left:i,right:r}=this;s||this.applyDeoptimizations(),this.included||this.includeNode(e),i.includeAsAssignmentTarget(e,t||!0,!1),r.include(e,t),ol(e,n,t)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(Te,e)}initialise(){super.initialise(),this.await&&za(this),this.left.setAssignedValue(tt)}render(e,t){this.left.render(e,t,ie),this.right.render(e,t,ie),102===e.original.charCodeAt(this.right.start-1)&&e.prependLeft(this.right.start," "),this.body.render(e,t)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(Le),this.right.deoptimizePath(Te),this.scope.context.requestTreeshakingPass()}},hl,yr,class extends gr{createScope(e){super.createScope(this.idScope=new ps(e,e.context))}onlyFunctionCallUsed(){return this.parent.type===Fn&&this.parent.callee===this&&(null===this.id||this.id.variable.getOnlyFunctionCallUsed())||super.onlyFunctionCallUsed()}render(e,t,{renderedSurroundingElement:n}=ye){super.render(e,t),n===jn&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}},Wi,fl,class extends ns{},ml,gl,xl,Sl,Pl,wl,class extends Il{},class extends Il{},class extends Ll{include(e,t){super.include(e,t),this.openingElement.include(e,t),this.closingElement?.include(e,t)}render(e,t){switch(this.jsxMode.mode){case"classic":this.renderClassicMode(e,t);break;case"automatic":this.renderAutomaticMode(e,t);break;default:super.render(e,t)}}getRenderingMode(){const e=this.scope.context.options.jsx,{mode:t,factory:n,importSource:s}=e;if("automatic"===t){let e=!1;for(const t of this.openingElement.attributes)if(t instanceof Cl)e=!0;else if(e&&"key"===t.name.name)return{factory:n,importSource:s,mode:"classic"}}return super.getRenderingMode()}renderClassicMode(e,t){const{snippets:{getPropertyAccess:n},useOriginalName:s}=t,{closingElement:i,end:r,factory:o,factoryVariable:a,openingElement:{end:l,selfClosing:c}}=this,[,...u]=o.split("."),{firstAttribute:d,hasAttributes:h,hasSpread:p,inObject:f,previousEnd:m}=this.renderAttributes(e,t,[a.getName(n,s),...u].join("."),!1);this.wrapAttributes(e,f,h,p,d,"null",m),this.renderChildren(e,t,l),c?e.appendLeft(r,")"):i.render(e,t)}renderAutomaticMode(e,t){const{snippets:{getPropertyAccess:n},useOriginalName:s}=t,{closingElement:i,end:r,factoryVariable:o,openingElement:{end:a,selfClosing:l}}=this;let{firstAttribute:c,hasAttributes:u,hasSpread:d,inObject:h,keyAttribute:p,previousEnd:f}=this.renderAttributes(e,t,o.getName(n,s),!0);const{firstChild:m,hasMultipleChildren:g,childrenEnd:y}=this.renderChildren(e,t,a);m&&(e.prependRight(m.start,"children: "+(g?"[":"")),h||(e.prependRight(m.start,"{ "),h=!0),f=i.start,g&&e.appendLeft(f,"]"));const b=m?y:f;if(this.wrapAttributes(e,h,u||!!m,d,c||m,"{}",b),p){const{value:t}=p;e.appendLeft(b,", "),t?e.move(t.start,t.end,b):e.appendLeft(b,"true")}l?e.appendLeft(p?.value?.end||r,")"):i.render(e,t)}renderAttributes(e,t,n,s){const{jsxMode:{mode:i},openingElement:r}=this,{attributes:o,end:a,start:l,name:{start:c,end:u}}=r;e.update(l,c,`/*#__PURE__*/${n}(`),r.render(e,t,{jsxMode:i});let d=null,h=!1,p=!1,f=u,m=!1,g=null;for(const t of o){if(t instanceof wl){if(s&&"key"===t.name.name){d=t,e.remove(f,t.value?.start||t.end);continue}e.appendLeft(f,","),p||(e.prependRight(t.start,"{ "),p=!0),m=!0}else p?(m&&e.appendLeft(f," "),e.appendLeft(f,"},"),p=!1):e.appendLeft(f,","),h=!0;f=t.end,g??=t}return e.remove(o.at(-1)?.end||f,a),{firstAttribute:g,hasAttributes:m,hasSpread:h,inObject:p,keyAttribute:d,previousEnd:f}}wrapAttributes(e,t,n,s,i,r,o){if(t&&e.appendLeft(o," }"),s){if(n){const{start:t}=i;i instanceof Cl&&e.prependRight(t,"{}, "),e.prependRight(t,"Object.assign("),e.appendLeft(o,")")}}else n||e.appendLeft(o,`, ${r}`)}},kl,Nl,class extends Ll{include(e,t){super.include(e,t),this.openingFragment.include(e,t),this.closingFragment.include(e,t)}render(e,t){switch(this.jsxMode.mode){case"classic":this.renderClassicMode(e,t);break;case"automatic":this.renderAutomaticMode(e,t);break;default:super.render(e,t)}}renderClassicMode(e,t){const{snippets:{getPropertyAccess:n},useOriginalName:s}=t,{closingFragment:i,factory:r,factoryVariable:o,openingFragment:a,start:l}=this,[,...c]=r.split(".");a.render(e,t),e.prependRight(l,`/*#__PURE__*/${[o.getName(n,s),...c].join(".")}(`),e.appendLeft(a.end,", null"),this.renderChildren(e,t,a.end),i.render(e,t)}renderAutomaticMode(e,t){const{snippets:{getPropertyAccess:n},useOriginalName:s}=t,{closingFragment:i,factoryVariable:r,openingFragment:o,start:a}=this;o.render(e,t),e.prependRight(a,`/*#__PURE__*/${r.getName(n,s)}(`);const{firstChild:l,hasMultipleChildren:c,childrenEnd:u}=this.renderChildren(e,t,o.end);l?(e.prependRight(l.start,"{ children: "+(c?"[":"")),c&&e.appendLeft(i.start,"]"),e.appendLeft(u," }")):e.appendLeft(o.end,", {}"),i.render(e,t)}},$l,class extends ns{includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.object.includePath([this.property.name],e)}includePath(e,t){this.included||this.includeNode(t),this.object.includePath([this.property.name,...e],t)}},Tl,Bl,class extends ns{constructor(){super(...arguments),this.fragment=null,this.fragmentVariable=null}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();const t=this.scope.context.options.jsx;if("automatic"===t.mode)this.fragment="Fragment",this.fragmentVariable=_l("Fragment",!1,t.jsxImportSource,this,e);else{const{fragment:n,importSource:s,mode:i}=t;null!=n&&(this.fragment=n,this.fragmentVariable=_l(n,"preserve"===i,s,this,e))}}render(e,t){const{mode:n}=this.scope.context.options.jsx;if("preserve"!==n){const{snippets:{getPropertyAccess:n},useOriginalName:s}=t,[,...i]=this.fragment.split("."),r=[this.fragmentVariable.getName(n,s),...i].join(".");e.update(this.start,this.end,r)}}},Cl,class extends ns{render(e,t){super.render(e,t);const{mode:n}=this.scope.context.options.jsx;"preserve"!==n&&(e.overwrite(this.start,this.expression.start,"...",{contentOnly:!0}),e.overwrite(this.expression.end,this.end,"",{contentOnly:!0}))}},Dl,zl,Yr,Yr,Yr,Yr,Yr,Yr,Fl,to,class extends ns{constructor(){super(...arguments),this.metaProperty=null,this.preliminaryChunkId=null,this.referenceId=null}getReferencedFileName(e){const{meta:{name:t},metaProperty:n}=this;if(t===ro){if(n?.startsWith(io))return e.getFileName(n.slice(20));if(n?.startsWith(so))return e.getFileName(n.slice(16))}return null}hasEffects(){return!1}hasEffectsOnInteractionAtPath(e,{type:t}){return e.length>1||0!==t}include(){this.included||this.includeNode()}includeNode(){if(this.included=!0,this.meta.name===ro){this.scope.context.addImportMeta(this);const e=this.parent,t=this.metaProperty=e instanceof to&&"string"==typeof e.propertyKey?e.propertyKey:null;t?.startsWith(io)?this.referenceId=t.slice(20):t?.startsWith(so)&&(this.referenceId=t.slice(16))}}render(e,t){const{format:n,pluginDriver:s,snippets:i}=t,{scope:{context:{module:r}},meta:{name:o},metaProperty:a,parent:l,preliminaryChunkId:c,referenceId:u,start:d,end:h}=this,{id:p,rawId:f,info:{attributes:m}}=r;if(o!==ro)return;const g=c;if(u){const t=s.getFileName(u),i=J(te(Z(g),t)),r=!!a?.startsWith(io),o=s.hookFirstSync("resolveFileUrl",[{chunkId:g,fileName:t,format:n,moduleAttributes:m,moduleId:p,moduleRawId:f,referenceId:u,relativePath:i}])||go[n](i,r);return void e.overwrite(l.start,l.end,o,{contentOnly:!0})}let y=s.hookFirstSync("resolveImportMeta",[a,{chunkId:g,format:n,moduleAttributes:m,moduleId:p,moduleRawId:f}]);y||(y=yo[n]?.(a,{chunkId:g,snippets:i}),t.accessedDocumentCurrentScript||=oo.includes(n)&&"undefined"!==y),"string"==typeof y&&(l instanceof to?e.overwrite(l.start,l.end,y,{contentOnly:!0}):e.overwrite(d,h,y,{contentOnly:!0}))}setResolution(e,t,n){this.preliminaryChunkId=n;const s=(this.metaProperty?.startsWith(so)||this.metaProperty?.startsWith(io)?lo:ao)[e];s.length>0&&this.scope.addAccessedGlobals(s,t)}},Ki,class extends ns{hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const t of this.arguments)if(t.hasEffects(e))return!0;return!this.annotationPure&&(this.callee.hasEffects(e)||this.callee.hasEffectsOnInteractionAtPath(Le,this.interaction,e))}hasEffectsOnInteractionAtPath(e,{type:t}){return e.length>0||0!==t}include(e,t){this.included||this.includeNode(e),t?super.include(e,!0):(this.callee.include(e,!1),this.callee.includeCallArgumentsWhenCalledAtPath(Le,this.interaction,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.callee.includePath(Te,e)}initialise(){super.initialise(),this.interaction={args:[null,...this.arguments],type:2,withNew:!0},this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationPure=this.annotations.some(e=>"pure"===e.type))}render(e,t){this.callee.render(e,t),Wa(e,t,this)}applyDeoptimizations(){this.deoptimized=!0,this.callee.deoptimizeArgumentsOnInteractionAtPath(this.interaction,Le,Ue),this.scope.context.requestTreeshakingPass()}},Vl,Ba,jl,Ul,Gl,Xi,Hl,ql,Kl,yi,Xl,class extends ns{bind(){this.variable=this.scope.findVariable("this")}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.variable.deoptimizePath(e)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.scope.context.includeVariableInModule(this.variable,Le,e)}},Jl,Yl,Zl,Ql,class extends ns{deoptimizeArgumentsOnInteractionAtPath(){}getLiteralValueAtPath(e){return e.length>0||1!==this.quasis.length?Ye:this.quasis[0].value.cooked}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?nt:qs(Hs,e[0])}hasEffectsOnInteractionAtPath(e,t,n){return 0===t.type?e.length>1:2!==t.type||1!==e.length||Ws(Hs,e[0],t,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(const t of this.expressions)t.includePath(Te,e)}render(e,t){this.scope.context.addIndentExclusionRange([this.start,this.end]),super.render(e,t)}},class extends ns{bind(){this.variable=this.scope.findVariable("this")}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.variable.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,t,n){return 0===e.length?0!==t.type:this.variable.hasEffectsOnInteractionAtPath(e,t,n)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.scope.context.includeVariableInModule(this.variable,Le,e)}includePath(e,t){this.included?e.length>0&&this.variable.includePath(e,t):(this.included=!0,this.scope.context.includeVariableInModule(this.variable,e,t));const n=function(e,t){for(;!(e instanceof dr&&e.thisVariable===t);){if(!(e instanceof ps))return null;e=e.parent}return e}(this.scope,this.variable);n&&n.functionNode.parent instanceof Gl&&n.functionNode.parent.parent instanceof Vl&&n.functionNode.parent.parent.includePath(e,t)}initialise(){super.initialise(),this.alias=this.scope.findLexicalBoundary()instanceof ec?this.scope.context.moduleContext:null,"undefined"===this.alias&&this.scope.context.log(bt,{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:Ct("troubleshooting/#error-this-is-undefined")},this.start)}render(e){null!==this.alias&&e.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}},class extends ns{hasEffects(){return!0}include(e,t){this.included||this.includeNode(e),this.argument.include(e,t),e.brokenFlow=!0}includeNode(e){this.included||(this.included=!0,this.argument.includePath(Te,e))}render(e,t){this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," ")}},tc,ic,oc,lc,cc,hc,class extends ns{applyDeoptimizations(){this.deoptimized=!0,this.argument?.deoptimizePath(Te)}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!(e.ignore.returnYield&&!this.argument?.hasEffects(e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument?.includePath(Te,e)}render(e,t){this.argument&&(this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," "))}}],mc=[function(e,t,n){e.message=n.convertString(n[t])},function(e,t,n){e.message=n.convertString(n[t])},function(e,t,n){const{scope:s}=e;e.elements=yc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.elements=yc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.async=!(1&~i),e.expression=!(2&~i),e.generator=!(4&~i);const r=e.annotations=xa(n[t+1],n);e.annotationNoSideEffects=r.some(e=>"noSideEffects"===e.type);const o=e.params=yc(e,s,n[t+2],n);s.addParameterVariables(o.map(e=>e.declare("parameter",Le,tt)),o[o.length-1]instanceof Hl),e.body=gc(e,s.bodyScope,n[t+3],n)},function(e,t,n){const{scope:s}=e;e.operator=Ea[n[t]],e.left=gc(e,s,n[t+1],n),e.right=gc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e;e.left=gc(e,s,n[t],n),e.right=gc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.argument=gc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.operator=Ea[n[t]],e.left=gc(e,s,n[t+1],n),e.right=gc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e;e.body=yc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.label=0===i?null:gc(e,s,i,n)},function(e,t,n){const{scope:s}=e,i=n[t];e.optional=!(1&~i),e.annotations=xa(n[t+1],n),e.callee=gc(e,s,n[t+2],n),e.arguments=yc(e,s,n[t+3],n)},function(e,t,n){const{scope:s}=e,i=n[t],r=e.param=0===i?null:gc(e,s,i,n);r?.declare("parameter",Le,tt),e.body=gc(e,s.bodyScope,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.expression=gc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e,i=n[t];if(i){const t=n[i],r=e.body=new Array(t);for(let o=0;o<t;o++){const t=n[i+1+o];r[o]=gc(e,79===n[t]||1&n[t+3]?s:s.instanceScope,t,n)}}else e.body=[]},function(e,t,n){const{scope:s}=e;e.decorators=yc(e,s,n[t],n);const i=n[t+1];e.id=0===i?null:gc(e,s.parent,i,n);const r=n[t+2];e.superClass=0===r?null:gc(e,s,r,n),e.body=gc(e,s,n[t+3],n)},function(e,t,n){const{scope:s}=e;e.decorators=yc(e,s,n[t],n);const i=n[t+1];e.id=0===i?null:gc(e,s,i,n);const r=n[t+2];e.superClass=0===r?null:gc(e,s,r,n),e.body=gc(e,s,n[t+3],n)},function(e,t,n){const{scope:s}=e;e.test=gc(e,s,n[t],n),e.consequent=gc(e,s,n[t+1],n),e.alternate=gc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.label=0===i?null:gc(e,s,i,n)},function(){},function(e,t,n){const{scope:s}=e;e.expression=gc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.directive=n.convertString(n[t]),e.expression=gc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.body=gc(e,s,n[t],n),e.test=gc(e,s,n[t+1],n)},function(){},function(e,t,n){const{scope:s}=e,i=n[t];e.exported=0===i?null:gc(e,s,i,n),e.source=gc(e,s,n[t+1],n),e.attributes=yc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e;e.declaration=gc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.specifiers=yc(e,s,n[t],n);const i=n[t+1];e.source=0===i?null:gc(e,s,i,n),e.attributes=yc(e,s,n[t+2],n);const r=n[t+3];e.declaration=0===r?null:gc(e,s,r,n)},function(e,t,n){const{scope:s}=e;e.local=gc(e,s,n[t],n);const i=n[t+1];e.exported=0===i?e.local:gc(e,s,i,n)},function(e,t,n){const{scope:s}=e;e.expression=gc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.left=gc(e,s,n[t],n),e.right=gc(e,s,n[t+1],n),e.body=gc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.await=!(1&~i),e.left=gc(e,s,n[t+1],n),e.right=gc(e,s,n[t+2],n),e.body=gc(e,s,n[t+3],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.init=0===i?null:gc(e,s,i,n);const r=n[t+1];e.test=0===r?null:gc(e,s,r,n);const o=n[t+2];e.update=0===o?null:gc(e,s,o,n),e.body=gc(e,s,n[t+3],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.async=!(1&~i),e.generator=!(2&~i);const r=e.annotations=xa(n[t+1],n);e.annotationNoSideEffects=r.some(e=>"noSideEffects"===e.type);const o=n[t+2];e.id=0===o?null:gc(e,s.parent,o,n);const a=e.params=yc(e,s,n[t+3],n);s.addParameterVariables(a.map(e=>e.declare("parameter",Le,tt)),a[a.length-1]instanceof Hl),e.body=gc(e,s.bodyScope,n[t+4],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.async=!(1&~i),e.generator=!(2&~i);const r=e.annotations=xa(n[t+1],n);e.annotationNoSideEffects=r.some(e=>"noSideEffects"===e.type);const o=n[t+2];e.id=0===o?null:gc(e,e.idScope,o,n);const a=e.params=yc(e,s,n[t+3],n);s.addParameterVariables(a.map(e=>e.declare("parameter",Le,tt)),a[a.length-1]instanceof Hl),e.body=gc(e,s.bodyScope,n[t+4],n)},function(e,t,n){e.name=n.convertString(n[t])},function(e,t,n){const{scope:s}=e;e.test=gc(e,s,n[t],n),e.consequent=gc(e,e.consequentScope=new pc(s),n[t+1],n);const i=n[t+2];e.alternate=0===i?null:gc(e,e.alternateScope=new pc(s),i,n)},function(e,t,n){const{scope:s}=e;e.key=gc(e,s,n[t],n),e.value=gc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.specifiers=yc(e,s,n[t],n),e.source=gc(e,s,n[t+1],n),e.attributes=yc(e,s,n[t+2],n);const i=n[t+3];e.phase=0===i?void 0:Ea[n[t+3]]},function(e,t,n){const{scope:s}=e;e.local=gc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.source=gc(e,s,n[t],n),e.sourceAstNode=Pa(n[t],n);const i=n[t+1];e.options=0===i?null:gc(e,s,i,n);const r=n[t+2];e.phase=0===r?void 0:Ea[n[t+2]]},function(e,t,n){const{scope:s}=e;e.local=gc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.local=gc(e,s,n[t+1],n),e.imported=0===i?e.local:gc(e,s,i,n)},function(e,t,n){const{scope:s}=e;e.name=gc(e,s,n[t],n);const i=n[t+1];e.value=0===i?null:gc(e,s,i,n)},function(e,t,n){const{scope:s}=e;e.name=gc(e,s,n[t],n)},function(){},function(e,t,n){const{scope:s}=e;e.openingElement=gc(e,s,n[t],n),e.children=yc(e,s,n[t+1],n);const i=n[t+2];e.closingElement=0===i?null:gc(e,s,i,n)},function(){},function(e,t,n){const{scope:s}=e;e.expression=gc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.openingFragment=gc(e,s,n[t],n),e.children=yc(e,s,n[t+1],n),e.closingFragment=gc(e,s,n[t+2],n)},function(e,t,n){e.name=n.convertString(n[t])},function(e,t,n){const{scope:s}=e;e.object=gc(e,s,n[t],n),e.property=gc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.namespace=gc(e,s,n[t],n),e.name=gc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.selfClosing=!(1&~i),e.name=gc(e,s,n[t+1],n),e.attributes=yc(e,s,n[t+2],n)},function(e){e.attributes=[],e.selfClosing=!1},function(e,t,n){const{scope:s}=e;e.argument=gc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.expression=gc(e,s,n[t],n)},function(e,t,n){e.value=n.convertString(n[t]),e.raw=n.convertString(n[t+1])},function(e,t,n){const{scope:s}=e;e.label=gc(e,s,n[t],n),e.body=gc(e,s,n[t+1],n)},function(e,t,n){const s=e.bigint=n.convertString(n[t]);e.raw=n.convertString(n[t+1]),e.value=BigInt(s)},function(e,t,n){const s=n[t],i=e.value=!(1&~s);e.raw=i?"true":"false"},function(e){e.value=null},function(e,t,n){const s=n[t];e.raw=0===s?void 0:n.convertString(s),e.value=n.convertFloat64(t+1)},function(e,t,n){const s=n.convertString(n[t]),i=n.convertString(n[t+1]);e.raw=`/${i}/${s}`,e.regex={flags:s,pattern:i},e.value=new RegExp(i,s)},function(e,t,n){e.value=n.convertString(n[t]);const s=n[t+1];e.raw=0===s?void 0:n.convertString(s)},function(e,t,n){const{scope:s}=e;e.operator=Ea[n[t]],e.left=gc(e,s,n[t+1],n),e.right=gc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.computed=!(1&~i),e.optional=!(2&~i),e.object=gc(e,s,n[t+1],n),e.property=gc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e;e.meta=gc(e,s,n[t],n),e.property=gc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.static=!(1&~i),e.computed=!(2&~i),e.decorators=yc(e,s,n[t+1],n),e.key=gc(e,s,n[t+2],n),e.value=gc(e,s,n[t+3],n),e.kind=Ea[n[t+4]]},function(e,t,n){const{scope:s}=e;e.annotations=xa(n[t],n),e.callee=gc(e,s,n[t+1],n),e.arguments=yc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e;e.properties=yc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.properties=yc(e,s,n[t],n)},function(e,t,n){e.name=n.convertString(n[t])},function(e,t,n){const{scope:s}=e;e.body=yc(e,s,n[t],n),e.invalidAnnotations=xa(n[t+1],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.method=!(1&~i),e.shorthand=!(2&~i),e.computed=!(4&~i);const r=n[t+1];e.value=gc(e,s,n[t+2],n),e.kind=Ea[n[t+3]],e.key=0===r?e.value:gc(e,s,r,n)},function(e,t,n){const{scope:s}=e,i=n[t];e.static=!(1&~i),e.computed=!(2&~i),e.decorators=yc(e,s,n[t+1],n),e.key=gc(e,s,n[t+2],n);const r=n[t+3];e.value=0===r?null:gc(e,s,r,n)},function(e,t,n){const{scope:s}=e;e.argument=gc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.argument=0===i?null:gc(e,s,i,n)},function(e,t,n){const{scope:s}=e;e.expressions=yc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.argument=gc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.body=yc(e,s,n[t],n)},function(){},function(e,t,n){const{scope:s}=e,i=n[t];e.test=0===i?null:gc(e,s,i,n),e.consequent=yc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.discriminant=gc(e,e.parentScope,n[t],n),e.cases=yc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.tag=gc(e,s,n[t],n),e.quasi=gc(e,s,n[t+1],n)},function(e,t,n){const s=n[t];e.tail=!(1&~s);const i=n[t+1],r=0===i?void 0:n.convertString(i),o=n.convertString(n[t+2]);e.value={cooked:r,raw:o}},function(e,t,n){const{scope:s}=e;e.quasis=yc(e,s,n[t],n),e.expressions=yc(e,s,n[t+1],n)},function(){},function(e,t,n){const{scope:s}=e;e.argument=gc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.block=gc(e,s,n[t],n);const i=n[t+1];e.handler=0===i?null:gc(e,s,i,n);const r=n[t+2];e.finalizer=0===r?null:gc(e,s,r,n)},function(e,t,n){const{scope:s}=e;e.operator=Ea[n[t]],e.argument=gc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.prefix=!(1&~i),e.operator=Ea[n[t+1]],e.argument=gc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e;e.kind=Ea[n[t]],e.declarations=yc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.id=gc(e,s,n[t],n);const i=n[t+1];e.init=0===i?null:gc(e,s,i,n)},function(e,t,n){const{scope:s}=e;e.test=gc(e,s,n[t],n),e.body=gc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.delegate=!(1&~i);const r=n[t+1];e.argument=0===r?null:gc(e,s,r,n)}];function gc(e,t,n,s){const i=s[n],r=fc[i];if(!r)throw console.trace(),new Error(`Unknown node type: ${i}`);const o=new r(e,t);return o.type=_a[i],o.start=s[n+1],o.end=s[n+2],mc[i](o,n+3,s),o.initialise(),o}function yc(e,t,n,s){if(0===n)return Ee;const i=s[n++],r=new Array(i);for(let o=0;o<i;o++){const i=s[n++];r[o]=i?gc(e,t,i,s):null}return r}class bc extends us{constructor(e){super(Vo),this.module=e}includePath(e,t){super.includePath(e,t),this.module.needsExportShim=!0}}var Ec;!function(e){e[e.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",e[e.ANALYSE=1]="ANALYSE",e[e.GENERATE=2]="GENERATE"}(Ec||(Ec={}));const xc=new WeakMap;function vc(e,t){if(e){const t=xc.get(e);t&&function(e){void 0===e.encodedMappings&&e.decodedMappings&&(e.encodedMappings=g(e.decodedMappings)),e.decodedMappings=void 0}(t)}if(t)for(const e of t)e.missing||vc(e)}function Ac(e){if(!e)return null;if("string"==typeof e&&(e=JSON.parse(e)),!e.mappings)return{mappings:[],names:[],sources:[],version:3};const t=e.mappings,n=Array.isArray(t),s={decodedMappings:n?t:void 0,encodedMappings:n?void 0:t},i={...e,get mappings(){return s.decodedMappings||(s.decodedMappings=s.encodedMappings?function(e){const{length:t}=e,n=new p(e),s=[];let i=0,r=0,l=0,c=0,d=0;do{const e=n.indexOf(";"),t=[];let h=!0,p=0;for(i=0;n.pos<e;){let s;i+=a(o(n)),i<p&&(h=!1),p=i,u(n,e)?(r+=a(o(n)),l+=a(o(n)),c+=a(o(n)),u(n,e)?(d+=a(o(n)),s=[i,r,l,c,d]):s=[i,r,l,c]):s=[i],t.push(s),n.pos++}h||f(t),s.push(t),n.pos=e+1}while(n.pos<=t);return s}(s.encodedMappings):[],s.encodedMappings=void 0),s.decodedMappings}};return xc.set(i,s),i}function Sc(e){return e.id}function Pc(e,t){if(!t||0===Object.keys(t).length)return e;const n=Object.fromEntries(Object.entries(t).sort(([e],[t])=>e<t?-1:e>t?1:0));return`${e}${e.includes("?")?"&":"?"}attributes=${encodeURIComponent(JSON.stringify(n))}`}function $c(e){return"object"==typeof e?Pc(e.rawId,e.attributes):e}function wc(e){if("object"==typeof e)return{...e,id:Pc(e.rawId,e.attributes)};const{rawId:t,attributes:n}=function(e){const t=Math.max(e.lastIndexOf("?attributes="),e.lastIndexOf("&attributes="));if(-1===t)return{rawId:e};try{const n=e.slice(0,t),s=JSON.parse(decodeURIComponent(e.slice(t+12)));if(Pc(n,s)===e)return{attributes:s,rawId:n}}catch{}return{rawId:e}}(e);return{attributes:n,id:e,rawId:t}}function Ic(e,t,n){try{const o=Gc.__wbindgen_add_to_stack_pointer(-16),a=zc(e,Gc.__wbindgen_export2,Gc.__wbindgen_export3),l=Hc;Gc.parse(o,a,l,t,n);var s=Rc().getInt32(o+0,!0),i=Rc().getInt32(o+4,!0),r=Nc(s,i).slice();return Gc.__wbindgen_export(s,1*i,1),r}finally{Gc.__wbindgen_add_to_stack_pointer(16)}}function Cc(){return{__proto__:null,"./bindings_wasm_bg.js":{__proto__:null,__wbg___wbindgen_throw_41e9ee4f547fc59a:function(e,t){throw new Error(Dc(e,t))},__wbg_error_757e9472f8410341:function(e,t){let n,s;try{n=e,s=t,console.error(Dc(e,t))}finally{Gc.__wbindgen_export(n,s,1)}},__wbg_get_index_511c6dca3ba3bccb:function(e,t){return Lc(e)[t>>>0]},__wbg_length_7f3c00c40364105e:function(e){return Lc(e).length},__wbg_new_227d7c05414eb861:function(){return kc(new Error)},__wbg_prototypesetcall_bc27214492979395:function(e,t,n){Uint8Array.prototype.set.call(Nc(e,t),Lc(n))},__wbg_stack_3b0d974bbf31e44f:function(e,t){const n=zc(Lc(t).stack,Gc.__wbindgen_export2,Gc.__wbindgen_export3),s=Hc;Rc().setInt32(e+4,s,!0),Rc().setInt32(e+0,n,!0)},__wbindgen_object_drop_ref:function(e){!function(e){const t=Lc(e);(function(e){if(e<1028)return;Tc[e]=Bc,Bc=e})(e)}(e)}}}}function kc(e){Bc===Tc.length&&Tc.push(Tc.length+1);const t=Bc;return Bc=Tc[t],Tc[t]=e,t}function Nc(e,t){return e>>>=0,_c().subarray(e/1,e/1+t)}let Oc=null;function Rc(){return(null===Oc||!0===Oc.buffer.detached||void 0===Oc.buffer.detached&&Oc.buffer!==Gc.memory.buffer)&&(Oc=new DataView(Gc.memory.buffer)),Oc}function Dc(e,t){return function(e,t){jc+=t,jc>=Vc&&(Fc=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Fc.decode(),jc=t);return Fc.decode(_c().subarray(e,e+t))}(e>>>0,t)}let Mc=null;function _c(){return null!==Mc&&0!==Mc.byteLength||(Mc=new Uint8Array(Gc.memory.buffer)),Mc}function Lc(e){return Tc[e]}let Tc=new Array(1024).fill(void 0);Tc.push(void 0,null,!0,!1);let Bc=Tc.length;function zc(e,t,n){if(void 0===n){const n=Uc.encode(e),s=t(n.length,1)>>>0;return _c().subarray(s,s+n.length).set(n),Hc=n.length,s}let s=e.length,i=t(s,1)>>>0;const r=_c();let o=0;for(;o<s;o++){const t=e.charCodeAt(o);if(t>127)break;r[i+o]=t}if(o!==s){0!==o&&(e=e.slice(o)),i=n(i,s,s=o+3*e.length,1)>>>0;const t=_c().subarray(i+o,i+s);o+=Uc.encodeInto(e,t).written,i=n(i,s,o,1)>>>0}return Hc=o,i}let Fc=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Fc.decode();const Vc=2146435072;let jc=0;const Uc=new TextEncoder;"encodeInto"in Uc||(Uc.encodeInto=function(e,t){const n=Uc.encode(e);return t.set(n),{read:e.length,written:n.length}});let Gc,Hc=0;async function Wc(e){if(void 0!==Gc)return Gc;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL("bindings_wasm_bg.wasm",import.meta.url));const t=Cc();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:n}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if(!e.ok)throw new Error(`failed to fetch Wasm: ${e.status} ${e.statusText} fetching '${e.url}'`);if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(!function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)||"application/wasm"===e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(await e,t);return function(e){return Gc=e.exports,Oc=null,Mc=null,Gc}(n)}const qc=0===new Uint8Array(new Uint32Array([1]).buffer)[0],Kc=e=>{if(qc){const t=new Uint32Array(e.buffer,e.byteOffset,e.byteLength>>2);for(let e=0;e<t.length;e++){const n=t[e];t[e]=(255&n)<<24|(65280&n)<<8|n>>>8&65280|n>>>24}}return e};async function Xc(e,t,n,s,i){return Kc(function(e,t,n,s,i){try{const l=Gc.__wbindgen_add_to_stack_pointer(-16),c=zc(e,Gc.__wbindgen_export2,Gc.__wbindgen_export3),u=Hc;Gc.parseAndWalkSync(l,c,u,t,n,kc(s),i);var r=Rc().getInt32(l+0,!0),o=Rc().getInt32(l+4,!0),a=Nc(r,o).slice();return Gc.__wbindgen_export(r,1*o,1),a}finally{Gc.__wbindgen_add_to_stack_pointer(16)}}(e,t,n,s,i))}const Jc=[function(e,t){return{type:"PanicError",start:t[e],end:t[e+1],message:t.convertString(t[e+2])}},function(e,t){return{type:"ParseError",start:t[e],end:t[e+1],message:t.convertString(t[e+2])}},function(e,t){return{type:"ArrayExpression",start:t[e],end:t[e+1],elements:Zc(t[e+2],t)}},function(e,t){return{type:"ArrayPattern",start:t[e],end:t[e+1],elements:Zc(t[e+2],t)}},function(e,t){const n=t[e+2],s=xa(t[e+3],t);return{type:"ArrowFunctionExpression",start:t[e],end:t[e+1],async:!(1&~n),expression:!(2&~n),generator:!(4&~n),...s.length>0?{annotations:s}:{},params:Zc(t[e+4],t),body:Yc(t[e+5],t),id:null}},function(e,t){return{type:"AssignmentExpression",start:t[e],end:t[e+1],operator:Ea[t[e+2]],left:Yc(t[e+3],t),right:Yc(t[e+4],t)}},function(e,t){return{type:"AssignmentPattern",start:t[e],end:t[e+1],left:Yc(t[e+2],t),right:Yc(t[e+3],t)}},function(e,t){return{type:"AwaitExpression",start:t[e],end:t[e+1],argument:Yc(t[e+2],t)}},function(e,t){return{type:"BinaryExpression",start:t[e],end:t[e+1],operator:Ea[t[e+2]],left:Yc(t[e+3],t),right:Yc(t[e+4],t)}},function(e,t){return{type:"BlockStatement",start:t[e],end:t[e+1],body:Zc(t[e+2],t)}},function(e,t){const n=t[e+2];return{type:"BreakStatement",start:t[e],end:t[e+1],label:0===n?null:Yc(n,t)}},function(e,t){const n=t[e+2],s=xa(t[e+3],t);return{type:"CallExpression",start:t[e],end:t[e+1],optional:!(1&~n),...s.length>0?{annotations:s}:{},callee:Yc(t[e+4],t),arguments:Zc(t[e+5],t)}},function(e,t){const n=t[e+2];return{type:"CatchClause",start:t[e],end:t[e+1],param:0===n?null:Yc(n,t),body:Yc(t[e+3],t)}},function(e,t){return{type:"ChainExpression",start:t[e],end:t[e+1],expression:Yc(t[e+2],t)}},function(e,t){return{type:"ClassBody",start:t[e],end:t[e+1],body:Zc(t[e+2],t)}},function(e,t){const n=t[e+3],s=t[e+4];return{type:"ClassDeclaration",start:t[e],end:t[e+1],decorators:Zc(t[e+2],t),id:0===n?null:Yc(n,t),superClass:0===s?null:Yc(s,t),body:Yc(t[e+5],t)}},function(e,t){const n=t[e+3],s=t[e+4];return{type:"ClassExpression",start:t[e],end:t[e+1],decorators:Zc(t[e+2],t),id:0===n?null:Yc(n,t),superClass:0===s?null:Yc(s,t),body:Yc(t[e+5],t)}},function(e,t){return{type:"ConditionalExpression",start:t[e],end:t[e+1],test:Yc(t[e+2],t),consequent:Yc(t[e+3],t),alternate:Yc(t[e+4],t)}},function(e,t){const n=t[e+2];return{type:"ContinueStatement",start:t[e],end:t[e+1],label:0===n?null:Yc(n,t)}},function(e,t){return{type:"DebuggerStatement",start:t[e],end:t[e+1]}},function(e,t){return{type:"Decorator",start:t[e],end:t[e+1],expression:Yc(t[e+2],t)}},function(e,t){return{type:"ExpressionStatement",start:t[e],end:t[e+1],directive:t.convertString(t[e+2]),expression:Yc(t[e+3],t)}},function(e,t){return{type:"DoWhileStatement",start:t[e],end:t[e+1],body:Yc(t[e+2],t),test:Yc(t[e+3],t)}},function(e,t){return{type:"EmptyStatement",start:t[e],end:t[e+1]}},function(e,t){const n=t[e+2];return{type:"ExportAllDeclaration",start:t[e],end:t[e+1],exported:0===n?null:Yc(n,t),source:Yc(t[e+3],t),attributes:Zc(t[e+4],t)}},function(e,t){return{type:"ExportDefaultDeclaration",start:t[e],end:t[e+1],declaration:Yc(t[e+2],t)}},function(e,t){const n=t[e+3],s=t[e+5];return{type:"ExportNamedDeclaration",start:t[e],end:t[e+1],specifiers:Zc(t[e+2],t),source:0===n?null:Yc(n,t),attributes:Zc(t[e+4],t),declaration:0===s?null:Yc(s,t)}},function(e,t){const n=Yc(t[e+2],t),s=t[e+3];return{type:"ExportSpecifier",start:t[e],end:t[e+1],local:n,exported:0===s?{...n}:Yc(s,t)}},function(e,t){return{type:"ExpressionStatement",start:t[e],end:t[e+1],expression:Yc(t[e+2],t)}},function(e,t){return{type:"ForInStatement",start:t[e],end:t[e+1],left:Yc(t[e+2],t),right:Yc(t[e+3],t),body:Yc(t[e+4],t)}},function(e,t){const n=t[e+2];return{type:"ForOfStatement",start:t[e],end:t[e+1],await:!(1&~n),left:Yc(t[e+3],t),right:Yc(t[e+4],t),body:Yc(t[e+5],t)}},function(e,t){const n=t[e+2],s=t[e+3],i=t[e+4];return{type:"ForStatement",start:t[e],end:t[e+1],init:0===n?null:Yc(n,t),test:0===s?null:Yc(s,t),update:0===i?null:Yc(i,t),body:Yc(t[e+5],t)}},function(e,t){const n=t[e+2],s=xa(t[e+3],t),i=t[e+4];return{type:"FunctionDeclaration",start:t[e],end:t[e+1],async:!(1&~n),generator:!(2&~n),...s.length>0?{annotations:s}:{},id:0===i?null:Yc(i,t),params:Zc(t[e+5],t),body:Yc(t[e+6],t),expression:!1}},function(e,t){const n=t[e+2],s=xa(t[e+3],t),i=t[e+4];return{type:"FunctionExpression",start:t[e],end:t[e+1],async:!(1&~n),generator:!(2&~n),...s.length>0?{annotations:s}:{},id:0===i?null:Yc(i,t),params:Zc(t[e+5],t),body:Yc(t[e+6],t),expression:!1}},function(e,t){return{type:"Identifier",start:t[e],end:t[e+1],name:t.convertString(t[e+2])}},function(e,t){const n=t[e+4];return{type:"IfStatement",start:t[e],end:t[e+1],test:Yc(t[e+2],t),consequent:Yc(t[e+3],t),alternate:0===n?null:Yc(n,t)}},function(e,t){return{type:"ImportAttribute",start:t[e],end:t[e+1],key:Yc(t[e+2],t),value:Yc(t[e+3],t)}},function(e,t){const n=t[e+5];return{type:"ImportDeclaration",start:t[e],end:t[e+1],specifiers:Zc(t[e+2],t),source:Yc(t[e+3],t),attributes:Zc(t[e+4],t),phase:0===n?void 0:Ea[t[e+5]]}},function(e,t){return{type:"ImportDefaultSpecifier",start:t[e],end:t[e+1],local:Yc(t[e+2],t)}},function(e,t){const n=t[e+3],s=t[e+4];return{type:"ImportExpression",start:t[e],end:t[e+1],source:Yc(t[e+2],t),options:0===n?null:Yc(n,t),phase:0===s?void 0:Ea[t[e+4]]}},function(e,t){return{type:"ImportNamespaceSpecifier",start:t[e],end:t[e+1],local:Yc(t[e+2],t)}},function(e,t){const n=t[e+2],s=Yc(t[e+3],t);return{type:"ImportSpecifier",start:t[e],end:t[e+1],imported:0===n?{...s}:Yc(n,t),local:s}},function(e,t){const n=t[e+3];return{type:"JSXAttribute",start:t[e],end:t[e+1],name:Yc(t[e+2],t),value:0===n?null:Yc(n,t)}},function(e,t){return{type:"JSXClosingElement",start:t[e],end:t[e+1],name:Yc(t[e+2],t)}},function(e,t){return{type:"JSXClosingFragment",start:t[e],end:t[e+1]}},function(e,t){const n=t[e+4];return{type:"JSXElement",start:t[e],end:t[e+1],openingElement:Yc(t[e+2],t),children:Zc(t[e+3],t),closingElement:0===n?null:Yc(n,t)}},function(e,t){return{type:"JSXEmptyExpression",start:t[e],end:t[e+1]}},function(e,t){return{type:"JSXExpressionContainer",start:t[e],end:t[e+1],expression:Yc(t[e+2],t)}},function(e,t){return{type:"JSXFragment",start:t[e],end:t[e+1],openingFragment:Yc(t[e+2],t),children:Zc(t[e+3],t),closingFragment:Yc(t[e+4],t)}},function(e,t){return{type:"JSXIdentifier",start:t[e],end:t[e+1],name:t.convertString(t[e+2])}},function(e,t){return{type:"JSXMemberExpression",start:t[e],end:t[e+1],object:Yc(t[e+2],t),property:Yc(t[e+3],t)}},function(e,t){return{type:"JSXNamespacedName",start:t[e],end:t[e+1],namespace:Yc(t[e+2],t),name:Yc(t[e+3],t)}},function(e,t){const n=t[e+2];return{type:"JSXOpeningElement",start:t[e],end:t[e+1],selfClosing:!(1&~n),name:Yc(t[e+3],t),attributes:Zc(t[e+4],t)}},function(e,t){return{type:"JSXOpeningFragment",start:t[e],end:t[e+1],attributes:[],selfClosing:!1}},function(e,t){return{type:"JSXSpreadAttribute",start:t[e],end:t[e+1],argument:Yc(t[e+2],t)}},function(e,t){return{type:"JSXSpreadChild",start:t[e],end:t[e+1],expression:Yc(t[e+2],t)}},function(e,t){return{type:"JSXText",start:t[e],end:t[e+1],value:t.convertString(t[e+2]),raw:t.convertString(t[e+3])}},function(e,t){return{type:"LabeledStatement",start:t[e],end:t[e+1],label:Yc(t[e+2],t),body:Yc(t[e+3],t)}},function(e,t){const n=t.convertString(t[e+2]);return{type:"Literal",start:t[e],end:t[e+1],bigint:n,raw:t.convertString(t[e+3]),value:BigInt(n)}},function(e,t){const n=!(1&~t[e+2]);return{type:"Literal",start:t[e],end:t[e+1],value:n,raw:n?"true":"false"}},function(e,t){return{type:"Literal",start:t[e],end:t[e+1],raw:"null",value:null}},function(e,t){const n=t[e+2];return{type:"Literal",start:t[e],end:t[e+1],raw:0===n?void 0:t.convertString(n),value:t.convertFloat64(e+3)}},function(e,t){const n=t.convertString(t[e+2]),s=t.convertString(t[e+3]);return{type:"Literal",start:t[e],end:t[e+1],raw:`/${s}/${n}`,regex:{flags:n,pattern:s},value:new RegExp(s,n)}},function(e,t){const n=t[e+3];return{type:"Literal",start:t[e],end:t[e+1],value:t.convertString(t[e+2]),raw:0===n?void 0:t.convertString(n)}},function(e,t){return{type:"LogicalExpression",start:t[e],end:t[e+1],operator:Ea[t[e+2]],left:Yc(t[e+3],t),right:Yc(t[e+4],t)}},function(e,t){const n=t[e+2];return{type:"MemberExpression",start:t[e],end:t[e+1],computed:!(1&~n),optional:!(2&~n),object:Yc(t[e+3],t),property:Yc(t[e+4],t)}},function(e,t){return{type:"MetaProperty",start:t[e],end:t[e+1],meta:Yc(t[e+2],t),property:Yc(t[e+3],t)}},function(e,t){const n=t[e+2];return{type:"MethodDefinition",start:t[e],end:t[e+1],static:!(1&~n),computed:!(2&~n),decorators:Zc(t[e+3],t),key:Yc(t[e+4],t),value:Yc(t[e+5],t),kind:Ea[t[e+6]]}},function(e,t){const n=xa(t[e+2],t);return{type:"NewExpression",start:t[e],end:t[e+1],...n.length>0?{annotations:n}:{},callee:Yc(t[e+3],t),arguments:Zc(t[e+4],t)}},function(e,t){return{type:"ObjectExpression",start:t[e],end:t[e+1],properties:Zc(t[e+2],t)}},function(e,t){return{type:"ObjectPattern",start:t[e],end:t[e+1],properties:Zc(t[e+2],t)}},function(e,t){return{type:"PrivateIdentifier",start:t[e],end:t[e+1],name:t.convertString(t[e+2])}},function(e,t){const n=xa(t[e+3],t);return{type:"Program",start:t[e],end:t[e+1],body:Zc(t[e+2],t),...n.length>0?{invalidAnnotations:n}:{},sourceType:"module"}},function(e,t){const n=t[e+2],s=t[e+3],i=Yc(t[e+4],t);return{type:"Property",start:t[e],end:t[e+1],method:!(1&~n),shorthand:!(2&~n),computed:!(4&~n),key:0===s?{...i}:Yc(s,t),value:i,kind:Ea[t[e+5]]}},function(e,t){const n=t[e+2],s=t[e+5];return{type:"PropertyDefinition",start:t[e],end:t[e+1],static:!(1&~n),computed:!(2&~n),decorators:Zc(t[e+3],t),key:Yc(t[e+4],t),value:0===s?null:Yc(s,t)}},function(e,t){return{type:"RestElement",start:t[e],end:t[e+1],argument:Yc(t[e+2],t)}},function(e,t){const n=t[e+2];return{type:"ReturnStatement",start:t[e],end:t[e+1],argument:0===n?null:Yc(n,t)}},function(e,t){return{type:"SequenceExpression",start:t[e],end:t[e+1],expressions:Zc(t[e+2],t)}},function(e,t){return{type:"SpreadElement",start:t[e],end:t[e+1],argument:Yc(t[e+2],t)}},function(e,t){return{type:"StaticBlock",start:t[e],end:t[e+1],body:Zc(t[e+2],t)}},function(e,t){return{type:"Super",start:t[e],end:t[e+1]}},function(e,t){const n=t[e+2];return{type:"SwitchCase",start:t[e],end:t[e+1],test:0===n?null:Yc(n,t),consequent:Zc(t[e+3],t)}},function(e,t){return{type:"SwitchStatement",start:t[e],end:t[e+1],discriminant:Yc(t[e+2],t),cases:Zc(t[e+3],t)}},function(e,t){return{type:"TaggedTemplateExpression",start:t[e],end:t[e+1],tag:Yc(t[e+2],t),quasi:Yc(t[e+3],t)}},function(e,t){const n=t[e+2],s=t[e+3],i=0===s?void 0:t.convertString(s),r=t.convertString(t[e+4]);return{type:"TemplateElement",start:t[e],end:t[e+1],tail:!(1&~n),value:{cooked:i,raw:r}}},function(e,t){return{type:"TemplateLiteral",start:t[e],end:t[e+1],quasis:Zc(t[e+2],t),expressions:Zc(t[e+3],t)}},function(e,t){return{type:"ThisExpression",start:t[e],end:t[e+1]}},function(e,t){return{type:"ThrowStatement",start:t[e],end:t[e+1],argument:Yc(t[e+2],t)}},function(e,t){const n=t[e+3],s=t[e+4];return{type:"TryStatement",start:t[e],end:t[e+1],block:Yc(t[e+2],t),handler:0===n?null:Yc(n,t),finalizer:0===s?null:Yc(s,t)}},function(e,t){return{type:"UnaryExpression",start:t[e],end:t[e+1],operator:Ea[t[e+2]],argument:Yc(t[e+3],t),prefix:!0}},function(e,t){const n=t[e+2];return{type:"UpdateExpression",start:t[e],end:t[e+1],prefix:!(1&~n),operator:Ea[t[e+3]],argument:Yc(t[e+4],t)}},function(e,t){return{type:"VariableDeclaration",start:t[e],end:t[e+1],kind:Ea[t[e+2]],declarations:Zc(t[e+3],t)}},function(e,t){const n=t[e+3];return{type:"VariableDeclarator",start:t[e],end:t[e+1],id:Yc(t[e+2],t),init:0===n?null:Yc(n,t)}},function(e,t){return{type:"WhileStatement",start:t[e],end:t[e+1],test:Yc(t[e+2],t),body:Yc(t[e+3],t)}},function(e,t){const n=t[e+2],s=t[e+3];return{type:"YieldExpression",start:t[e],end:t[e+1],delegate:!(1&~n),argument:0===s?null:Yc(s,t)}}];function Yc(e,t){const n=t[e],s=Jc[n];if(!s)throw console.trace(),new Error(`Unknown node type: ${n}`);return s(e+1,t)}function Zc(e,t){if(0===e)return Ee;const n=t[e++],s=new Array(n);for(let i=0;i<n;i++){const n=t[e++];s[i]=n?Yc(n,t):null}return s}var Qc={"!":10,"!=":18,"!==":20,"%":30,"%=":45,"&":33,"&&":35,"&&=":53,"&=":51,"*":28,"**":38,"**=":52,"*=":43,"+":9,"++":15,"+=":41,"-":8,"--":16,"-=":42,"/":29,"/=":44,"<":21,"<<":25,"<<=":46,"<=":22,"=":40,"==":17,"===":19,">":23,">=":24,">>":26,">>=":47,">>>":27,">>>=":48,"??":39,"??=":55,"^":32,"^=":50,"await using":60,const:2,constructor:6,defer:62,delete:14,get:4,in:36,init:3,instanceof:37,let:1,method:7,noSideEffects:57,pure:56,set:5,source:61,sourcemap:58,typeof:12,using:59,var:0,void:13,"|":31,"|=":49,"||":34,"||=":54,"~":11};const eu=e=>{const t=("undefined"==typeof Buffer?Da:Ma)(65536);return(tu[e.type]||Ut(cn(e.type,null,"")))(e,t).toOutput()},tu={ArrayExpression:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=2,t[n+1]=e.start,t[n+2]=e.end,t=du("elements",e,t,n+3)},ArrayPattern:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=3,t[n+1]=e.start,t[n+2]=e.end,t=du("elements",e,t,n+3)},ArrowFunctionExpression:(e,t)=>{const n=t.position;return(t=t.reserve(8))[n]=4,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.async|e.expression<<1|e.generator<<2,t=uu("body",e,t=du("params",e,t=hu(e.annotations,t,n+4),n+5),n+6)},AssignmentExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=5,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=Qc[e.operator],t=uu("left",e,t,n+4),t=uu("right",e,t,n+5)},AssignmentPattern:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=6,t[n+1]=e.start,t[n+2]=e.end,t=uu("left",e,t,n+3),t=uu("right",e,t,n+4)},AwaitExpression:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=7,t[n+1]=e.start,t[n+2]=e.end,t=uu("argument",e,t,n+3)},BinaryExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=8,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=Qc[e.operator],t=uu("left",e,t,n+4),t=uu("right",e,t,n+5)},BlockStatement:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=9,t[n+1]=e.start,t[n+2]=e.end,t=du("body",e,t,n+3)},BreakStatement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=10,t[n+1]=e.start,t[n+2]=e.end,null!=e.label&&(t=uu("label",e,t,n+3)),t},CallExpression:(e,t)=>{const n=t.position;return(t=t.reserve(7))[n]=11,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.optional|0,t=du("arguments",e,t=uu("callee",e,t=hu(e.annotations,t,n+4),n+5),n+6)},CatchClause:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=12,t[n+1]=e.start,t[n+2]=e.end,null!=e.param&&(t=uu("param",e,t,n+3)),t=uu("body",e,t,n+4)},ChainExpression:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=13,t[n+1]=e.start,t[n+2]=e.end,t=uu("expression",e,t,n+3)},ClassBody:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=14,t[n+1]=e.start,t[n+2]=e.end,t=du("body",e,t,n+3)},ClassDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(8))[n]=15,t[n+1]=e.start,t[n+2]=e.end,t=du("decorators",e,t,n+3),null!=e.id&&(t=uu("id",e,t,n+4)),null!=e.superClass&&(t=uu("superClass",e,t,n+5)),t=uu("body",e,t,n+6)},ClassExpression:(e,t)=>{const n=t.position;return(t=t.reserve(8))[n]=16,t[n+1]=e.start,t[n+2]=e.end,t=du("decorators",e,t,n+3),null!=e.id&&(t=uu("id",e,t,n+4)),null!=e.superClass&&(t=uu("superClass",e,t,n+5)),t=uu("body",e,t,n+6)},ConditionalExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=17,t[n+1]=e.start,t[n+2]=e.end,t=uu("test",e,t,n+3),t=uu("consequent",e,t,n+4),t=uu("alternate",e,t,n+5)},ContinueStatement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=18,t[n+1]=e.start,t[n+2]=e.end,null!=e.label&&(t=uu("label",e,t,n+3)),t},DebuggerStatement:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=19,t[n+1]=e.start,t[n+2]=e.end,t},Decorator:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=20,t[n+1]=e.start,t[n+2]=e.end,t=uu("expression",e,t,n+3)},DoWhileStatement:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=22,t[n+1]=e.start,t[n+2]=e.end,t=uu("body",e,t,n+3),t=uu("test",e,t,n+4)},EmptyStatement:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=23,t[n+1]=e.start,t[n+2]=e.end,t},ExportAllDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=24,t[n+1]=e.start,t[n+2]=e.end,null!=e.exported&&(t=uu("exported",e,t,n+3)),t=du("attributes",e,t=uu("source",e,t,n+4),n+5)},ExportDefaultDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=25,t[n+1]=e.start,t[n+2]=e.end,t=uu("declaration",e,t,n+3)},ExportNamedDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(7))[n]=26,t[n+1]=e.start,t[n+2]=e.end,t=du("specifiers",e,t,n+3),null!=e.source&&(t=uu("source",e,t,n+4)),t=du("attributes",e,t,n+5),null!=e.declaration&&(t=uu("declaration",e,t,n+6)),t},ExportSpecifier:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=27,t[n+1]=e.start,t[n+2]=e.end,t=uu("local",e,t,n+3),e.exported.end!=e.local.end&&(t=uu("exported",e,t,n+4)),t},ExpressionStatement:(e,t)=>"directive"in e?nu(e,t):su(e,t),ForInStatement:(e,t)=>{const n=t.position;return(t=t.reserve(7))[n]=29,t[n+1]=e.start,t[n+2]=e.end,t=uu("left",e,t,n+3),t=uu("right",e,t,n+4),t=uu("body",e,t,n+5)},ForOfStatement:(e,t)=>{const n=t.position;return(t=t.reserve(8))[n]=30,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.await|0,t=uu("left",e,t,n+4),t=uu("right",e,t,n+5),t=uu("body",e,t,n+6)},ForStatement:(e,t)=>{const n=t.position;return(t=t.reserve(8))[n]=31,t[n+1]=e.start,t[n+2]=e.end,null!=e.init&&(t=uu("init",e,t,n+3)),null!=e.test&&(t=uu("test",e,t,n+4)),null!=e.update&&(t=uu("update",e,t,n+5)),t=uu("body",e,t,n+6)},FunctionDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(9))[n]=32,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.async|e.generator<<1,t=hu(e.annotations,t,n+4),null!=e.id&&(t=uu("id",e,t,n+5)),t=uu("body",e,t=du("params",e,t,n+6),n+7)},FunctionExpression:(e,t)=>{const n=t.position;return(t=t.reserve(9))[n]=33,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.async|e.generator<<1,t=hu(e.annotations,t,n+4),null!=e.id&&(t=uu("id",e,t,n+5)),t=uu("body",e,t=du("params",e,t,n+6),n+7)},Identifier:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=34,t[n+1]=e.start,t[n+2]=e.end,t=t.addStringToBuffer(e.name,n+3)},IfStatement:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=35,t[n+1]=e.start,t[n+2]=e.end,t=uu("test",e,t,n+3),t=uu("consequent",e,t,n+4),null!=e.alternate&&(t=uu("alternate",e,t,n+5)),t},ImportAttribute:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=36,t[n+1]=e.start,t[n+2]=e.end,t=uu("key",e,t,n+3),t=uu("value",e,t,n+4)},ImportDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(7))[n]=37,t[n+1]=e.start,t[n+2]=e.end,t=du("specifiers",e,t,n+3),t=du("attributes",e,t=uu("source",e,t,n+4),n+5),null!=e.phase&&(t[n+6]=Qc[e.phase]),t},ImportDefaultSpecifier:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=38,t[n+1]=e.start,t[n+2]=e.end,t=uu("local",e,t,n+3)},ImportExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=39,t[n+1]=e.start,t[n+2]=e.end,t=uu("source",e,t,n+3),null!=e.options&&(t=uu("options",e,t,n+4)),null!=e.phase&&(t[n+5]=Qc[e.phase]),t},ImportNamespaceSpecifier:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=40,t[n+1]=e.start,t[n+2]=e.end,t=uu("local",e,t,n+3)},ImportSpecifier:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=41,t[n+1]=e.start,t[n+2]=e.end,e.imported.end!=e.local.end&&(t=uu("imported",e,t,n+3)),t=uu("local",e,t,n+4)},JSXAttribute:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=42,t[n+1]=e.start,t[n+2]=e.end,t=uu("name",e,t,n+3),null!=e.value&&(t=uu("value",e,t,n+4)),t},JSXClosingElement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=43,t[n+1]=e.start,t[n+2]=e.end,t=uu("name",e,t,n+3)},JSXClosingFragment:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=44,t[n+1]=e.start,t[n+2]=e.end,t},JSXElement:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=45,t[n+1]=e.start,t[n+2]=e.end,t=du("children",e,t=uu("openingElement",e,t,n+3),n+4),null!=e.closingElement&&(t=uu("closingElement",e,t,n+5)),t},JSXEmptyExpression:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=46,t[n+1]=e.start,t[n+2]=e.end,t},JSXExpressionContainer:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=47,t[n+1]=e.start,t[n+2]=e.end,t=uu("expression",e,t,n+3)},JSXFragment:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=48,t[n+1]=e.start,t[n+2]=e.end,t=uu("openingFragment",e,t,n+3),t=uu("closingFragment",e,t=du("children",e,t,n+4),n+5)},JSXIdentifier:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=49,t[n+1]=e.start,t[n+2]=e.end,t=t.addStringToBuffer(e.name,n+3)},JSXMemberExpression:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=50,t[n+1]=e.start,t[n+2]=e.end,t=uu("object",e,t,n+3),t=uu("property",e,t,n+4)},JSXNamespacedName:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=51,t[n+1]=e.start,t[n+2]=e.end,t=uu("namespace",e,t,n+3),t=uu("name",e,t,n+4)},JSXOpeningElement:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=52,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.selfClosing|0,t=du("attributes",e,t=uu("name",e,t,n+4),n+5)},JSXOpeningFragment:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=53,t[n+1]=e.start,t[n+2]=e.end,t},JSXSpreadAttribute:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=54,t[n+1]=e.start,t[n+2]=e.end,t=uu("argument",e,t,n+3)},JSXSpreadChild:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=55,t[n+1]=e.start,t[n+2]=e.end,t=uu("expression",e,t,n+3)},JSXText:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=56,t[n+1]=e.start,t[n+2]=e.end,t=(t=t.addStringToBuffer(e.value,n+3)).addStringToBuffer(e.raw,n+4)},LabeledStatement:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=57,t[n+1]=e.start,t[n+2]=e.end,t=uu("label",e,t,n+3),t=uu("body",e,t,n+4)},Literal:(e,t)=>{switch(typeof e.value){case"object":return null===e.value?ou(e,t):lu(e,t);case"boolean":return ru(e,t);case"number":return au(e,t);case"string":return cu(e,t);case"bigint":return iu(e,t);default:throw new Error("Unexpected node value type for Literal: "+typeof e.value)}},LogicalExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=64,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=Qc[e.operator],t=uu("left",e,t,n+4),t=uu("right",e,t,n+5)},MemberExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=65,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.computed|e.optional<<1,t=uu("object",e,t,n+4),t=uu("property",e,t,n+5)},MetaProperty:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=66,t[n+1]=e.start,t[n+2]=e.end,t=uu("meta",e,t,n+3),t=uu("property",e,t,n+4)},MethodDefinition:(e,t)=>{const n=t.position;return(t=t.reserve(8))[n]=67,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.static|e.computed<<1,t=uu("key",e,t=du("decorators",e,t,n+4),n+5),(t=uu("value",e,t,n+6))[n+7]=Qc[e.kind],t},NewExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=68,t[n+1]=e.start,t[n+2]=e.end,t=du("arguments",e,t=uu("callee",e,t=hu(e.annotations,t,n+3),n+4),n+5)},ObjectExpression:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=69,t[n+1]=e.start,t[n+2]=e.end,t=du("properties",e,t,n+3)},ObjectPattern:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=70,t[n+1]=e.start,t[n+2]=e.end,t=du("properties",e,t,n+3)},PanicError:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=0,t[n+1]=e.start,t[n+2]=e.end,t=t.addStringToBuffer(e.message,n+3)},ParseError:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=1,t[n+1]=e.start,t[n+2]=e.end,t=t.addStringToBuffer(e.message,n+3)},PrivateIdentifier:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=71,t[n+1]=e.start,t[n+2]=e.end,t=t.addStringToBuffer(e.name,n+3)},Program:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=72,t[n+1]=e.start,t[n+2]=e.end,t=du("body",e,t,n+3),t=hu(e.invalidAnnotations,t,n+4)},Property:(e,t)=>{const n=t.position;return(t=t.reserve(7))[n]=73,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.method|e.shorthand<<1|e.computed<<2,e.key.end!=e.value.end&&(t=uu("key",e,t,n+4)),(t=uu("value",e,t,n+5))[n+6]=Qc[e.kind],t},PropertyDefinition:(e,t)=>{const n=t.position;return(t=t.reserve(7))[n]=74,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.static|e.computed<<1,t=uu("key",e,t=du("decorators",e,t,n+4),n+5),null!=e.value&&(t=uu("value",e,t,n+6)),t},RestElement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=75,t[n+1]=e.start,t[n+2]=e.end,t=uu("argument",e,t,n+3)},ReturnStatement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=76,t[n+1]=e.start,t[n+2]=e.end,null!=e.argument&&(t=uu("argument",e,t,n+3)),t},SequenceExpression:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=77,t[n+1]=e.start,t[n+2]=e.end,t=du("expressions",e,t,n+3)},SpreadElement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=78,t[n+1]=e.start,t[n+2]=e.end,t=uu("argument",e,t,n+3)},StaticBlock:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=79,t[n+1]=e.start,t[n+2]=e.end,t=du("body",e,t,n+3)},Super:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=80,t[n+1]=e.start,t[n+2]=e.end,t},SwitchCase:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=81,t[n+1]=e.start,t[n+2]=e.end,null!=e.test&&(t=uu("test",e,t,n+3)),t=du("consequent",e,t,n+4)},SwitchStatement:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=82,t[n+1]=e.start,t[n+2]=e.end,t=du("cases",e,t=uu("discriminant",e,t,n+3),n+4)},TaggedTemplateExpression:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=83,t[n+1]=e.start,t[n+2]=e.end,t=uu("tag",e,t,n+3),t=uu("quasi",e,t,n+4)},TemplateElement:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=84,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.tail|0,null!=e.value.cooked&&(t=t.addStringToBuffer(e.value.cooked,n+4)),t=t.addStringToBuffer(e.value.raw,n+5)},TemplateLiteral:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=85,t[n+1]=e.start,t[n+2]=e.end,t=du("quasis",e,t,n+3),t=du("expressions",e,t,n+4)},ThisExpression:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=86,t[n+1]=e.start,t[n+2]=e.end,t},ThrowStatement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=87,t[n+1]=e.start,t[n+2]=e.end,t=uu("argument",e,t,n+3)},TryStatement:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=88,t[n+1]=e.start,t[n+2]=e.end,t=uu("block",e,t,n+3),null!=e.handler&&(t=uu("handler",e,t,n+4)),null!=e.finalizer&&(t=uu("finalizer",e,t,n+5)),t},UnaryExpression:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=89,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=Qc[e.operator],t=uu("argument",e,t,n+4)},UpdateExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=90,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.prefix|0,t[n+4]=Qc[e.operator],t=uu("argument",e,t,n+5)},VariableDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=91,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=Qc[e.kind],t=du("declarations",e,t,n+4)},VariableDeclarator:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=92,t[n+1]=e.start,t[n+2]=e.end,t=uu("id",e,t,n+3),null!=e.init&&(t=uu("init",e,t,n+4)),t},WhileStatement:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=93,t[n+1]=e.start,t[n+2]=e.end,t=uu("test",e,t,n+3),t=uu("body",e,t,n+4)},YieldExpression:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=94,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.delegate|0,null!=e.argument&&(t=uu("argument",e,t,n+4)),t}},nu=(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=21,t[n+1]=e.start,t[n+2]=e.end,t=uu("expression",e,t=t.addStringToBuffer(e.directive,n+3),n+4)},su=(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=28,t[n+1]=e.start,t[n+2]=e.end,t=uu("expression",e,t,n+3)},iu=(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=58,t[n+1]=e.start,t[n+2]=e.end,t=(t=t.addStringToBuffer(e.bigint,n+3)).addStringToBuffer(e.raw,n+4)},ru=(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=59,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.value|0,t},ou=(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=60,t[n+1]=e.start,t[n+2]=e.end,t},au=(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=61,t[n+1]=e.start,t[n+2]=e.end,null!=e.raw&&(t=t.addStringToBuffer(e.raw,n+3)),t.writeFloat64(e.value,n+4),t},lu=(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=62,t[n+1]=e.start,t[n+2]=e.end,t=(t=t.addStringToBuffer(e.regex.flags,n+3)).addStringToBuffer(e.regex.pattern,n+4)},cu=(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=63,t[n+1]=e.start,t[n+2]=e.end,t=t.addStringToBuffer(e.value,n+3),null!=e.raw&&(t=t.addStringToBuffer(e.raw,n+4)),t};function uu(e,t,n,s){n[s]=n.position;const i=t[e];return(tu[i.type]||Ut(cn(i.type,t.type,e)))(i,n)}function du(e,t,n,s){const i=t[e];if(null==i)return n;const{length:r}=i;if(0===r)return n;if(null==r)return Ut(function(e,t,n){return{code:Kt,message:`Could not serialize AST: Expected ${e}.${t} to be an array, but it was ${JSON.stringify(n)}.`}}(t.type,e,t[e]));let o=n.position;(n=n.reserve(r+1))[s]=o,n[o]=r,o++;for(let s=0;s<r;s++){const r=i[s];null!=r&&(n[o+s]=n.position,n=(tu[r.type]||Ut(cn(r.type,t.type,e)))(r,n))}return n}function hu(e,t,n){if(!e?.length)return t;const{length:s}=e;let i=t.position;(t=t.reserve(s+1))[n]=i,t[i]=s,i++;for(let n=0;n<s;n++){const s=e[n],r=t.position;(t=t.reserve(3))[i+n]=r,t[r]=s.start,t[r+1]=s.end,t[r+2]=Qc[s.type]}return t}const pu={ArrayExpression:[2],ArrayPattern:[3],ArrowFunctionExpression:[4],AssignmentExpression:[5],AssignmentPattern:[6],AwaitExpression:[7],BinaryExpression:[8],BlockStatement:[9],BreakStatement:[10],CallExpression:[11],CatchClause:[12],ChainExpression:[13],ClassBody:[14],ClassDeclaration:[15],ClassExpression:[16],ConditionalExpression:[17],ContinueStatement:[18],DebuggerStatement:[19],Decorator:[20],DoWhileStatement:[22],EmptyStatement:[23],ExportAllDeclaration:[24],ExportDefaultDeclaration:[25],ExportNamedDeclaration:[26],ExportSpecifier:[27],ExpressionStatement:[21,28],ForInStatement:[29],ForOfStatement:[30],ForStatement:[31],FunctionDeclaration:[32],FunctionExpression:[33],Identifier:[34],IfStatement:[35],ImportAttribute:[36],ImportDeclaration:[37],ImportDefaultSpecifier:[38],ImportExpression:[39],ImportNamespaceSpecifier:[40],ImportSpecifier:[41],JSXAttribute:[42],JSXClosingElement:[43],JSXClosingFragment:[44],JSXElement:[45],JSXEmptyExpression:[46],JSXExpressionContainer:[47],JSXFragment:[48],JSXIdentifier:[49],JSXMemberExpression:[50],JSXNamespacedName:[51],JSXOpeningElement:[52],JSXOpeningFragment:[53],JSXSpreadAttribute:[54],JSXSpreadChild:[55],JSXText:[56],LabeledStatement:[57],Literal:[58,59,60,61,62,63],LogicalExpression:[64],MemberExpression:[65],MetaProperty:[66],MethodDefinition:[67],NewExpression:[68],ObjectExpression:[69],ObjectPattern:[70],PanicError:[0],ParseError:[1],PrivateIdentifier:[71],Program:[72],Property:[73],PropertyDefinition:[74],RestElement:[75],ReturnStatement:[76],SequenceExpression:[77],SpreadElement:[78],StaticBlock:[79],Super:[80],SwitchCase:[81],SwitchStatement:[82],TaggedTemplateExpression:[83],TemplateElement:[84],TemplateLiteral:[85],ThisExpression:[86],ThrowStatement:[87],TryStatement:[88],UnaryExpression:[89],UpdateExpression:[90],VariableDeclaration:[91],VariableDeclarator:[92],WhileStatement:[93],YieldExpression:[94]};async function fu(e,t,{allowReturnOutsideFunction:n=!1,collectScopes:s=!1,jsx:i=!1}={}){const r=function(e){let t=0n;for(const n of Object.keys(e)){const e=pu[n];if(!e)throw new Error(`Unknown node type "${n}" when calling "parseAndWalk".`);for(const n of e)t|=1n<<BigInt(n)}const n=new BigUint64Array(2);return n[0]=t&(1n<<64n)-1n,n[1]=t>>64n,n}(t);!function(e,t,n){const s=e[0],i=3;if(0===s)return Aa(e,1);let r=s;const o=new Map,a={parseChildren(){const t=s+e[r+1]*i;r+=i,l(t),r-=i},skipChildren(){r=s+e[r+1]*i-i}};function l(s){for(;r<s;r+=i){const s=e[r];n&&(a.scope=c(e[r+2]));const i=_a[e[s]];t[i](Aa(e,s),a)}}function c(t){if(0===t)throw new Error("Internal Error: Missing scope information in parseAndWalk.");let n=o.get(t);return n||(n={contains(n){for(let s=t;s;){const t=e[s+1];for(let i=0;i<t;i++){const t=e[s+2+i];if(e.convertString(e[t+3])===n)return!0}s=e[s+0]}return!1}},o.set(t,n)),n}l(e.length)}(Ra(await Xc(e,n,i,r,s)),t,s)}const mu=(e,t=0)=>((e,t)=>{const n=Yc(t,e);switch(n.type){case Wn:return Ut(Gt(Cn(n.message)));case qn:return Ut(Gt(Cn(n.message,n.start)));default:return n}})(Ra(e),t),gu=(e,t=0)=>Aa(Ra(e),t),yu=(e,{allowReturnOutsideFunction:t=!1,jsx:n=!1}={})=>mu(function(e,t,n){return Kc(Ic(e,t,n))}(e,t,n)),bu=new Set(["assert","with"]);function Eu(e){const{scope:{context:t},options:n,start:s}=e;if(!(n instanceof Vl))return n&&t.module.log(bt,vn(t.module.id),s),be;const i=n.properties.find(e=>bu.has(xu(e)))?.value;if(!i)return be;if(!(i instanceof Vl))return t.module.log(bt,(r=t.module.id,{code:Jt,message:`Rollup could not statically analyze the options argument of a dynamic import in "${Pt(r)}". Dynamic import options need to be an object with a nested attributes object.`}),s),be;var r;const o=i.properties.map(e=>{const n=xu(e);return"string"==typeof n&&"string"==typeof e.value.value?[n,e.value.value]:(t.module.log(bt,vn(t.module.id),e.start),null)}).filter(e=>!!e);return o.length>0?Object.fromEntries(o):be}const xu=e=>{const t=e.key;return t&&!e.computed&&(t.name||t.value)};function vu(e){return e?.length?Object.fromEntries(e.map(e=>[xu(e),e.value.value])):be}function Au(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length||n.some(n=>e[n]!==t[n])}var Su="performance"in("undefined"==typeof globalThis?"undefined"==typeof window?{}:window:globalThis)?performance:{now:()=>0},Pu={memoryUsage:()=>({heapUsed:0})};let $u=new Map;function wu(e,t){switch(t){case 1:return`# ${e}`;case 2:return`## ${e}`;case 3:return e;default:return`- ${e}`}}function Iu(e,t=3){e=wu(e,t);const n=Pu.memoryUsage().heapUsed,s=Su.now(),i=$u.get(e);void 0===i?$u.set(e,{memory:0,startMemory:n,startTime:s,time:0,totalMemory:0}):(i.startMemory=n,i.startTime=s)}function Cu(e,t=3){e=wu(e,t);const n=$u.get(e);if(void 0!==n){const e=Pu.memoryUsage().heapUsed;n.memory+=e-n.startMemory,n.time+=Su.now()-n.startTime,n.totalMemory=Math.max(n.totalMemory,e)}}function ku(){const e={};for(const[t,{memory:n,time:s,totalMemory:i}]of $u)e[t]=[s,n,i];return e}let Nu=Ns,Ou=Ns;const Ru=["augmentChunkHash","buildEnd","buildStart","generateBundle","load","moduleParsed","options","outputOptions","renderChunk","renderDynamicImport","renderStart","resolveDynamicImport","resolveFileUrl","resolveId","resolveImportMeta","shouldTransformCachedModule","transform","writeBundle"];function Du(e,t){if(e._hasTimer)return e;e._hasTimer=!0;for(const n of Ru)if(n in e){let s=`plugin ${t}`;e.name&&(s+=` (${e.name})`),s+=` - ${n}`;const i=function(...e){Nu(s,4);const t=r.apply(this,e);return Ou(s,4),t};let r;"function"==typeof e[n].handler?(r=e[n].handler,e[n].handler=i):(r=e[n],e[n]=i)}return e}const Mu={identifier:null,localName:Vo};function _u(e,t,n,s,i=new Map,r,o,a){const l=i.get(t);if(l){if(l.has(e))return s?[null]:Ut((c=t,{code:"CIRCULAR_REEXPORT",exporter:u=e.id,message:`"${c}" cannot be exported from "${Pt(u)}" as it is a reexport that references itself.`}));l.add(e)}else i.set(t,new Set([e]));var c,u;return e.getVariableForExportName(t,{exportOrReexportModules:a,importChain:r,importerForSideEffects:n,isExportAllSearch:s,searchedNamesAndModules:i,sideEffectModules:o})}function Lu(e,t){const n=ve(t.sideEffectDependenciesByVariable,e,Ae);let s=e;const i=new Set([s]);for(;;){const e=s.module;if(s=s instanceof Eo?s.getDirectOriginalVariable():s instanceof Ao?s.syntheticNamespace:null,!s||i.has(s))break;i.add(s),n.add(e);const t=e.sideEffectDependenciesByVariable.get(s);if(t)for(const e of t)n.add(e)}return n}class Tu{constructor(e,t,n,s,i,r,o,a,l){this.graph=e,this.id=t,this.rawId=n,this.options=s,this.attributes=l,this.alternativeReexportModules=new Map,this.chunkFileNames=new Set,this.chunkNames=[],this.cycles=new Set,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicImporters=[],this.dynamicImports=[],this.execIndex=1/0,this.hasTreeShakingPassStarted=!1,this.implicitlyLoadedAfter=new Set,this.implicitlyLoadedBefore=new Set,this.importDescriptions=new Map,this.importMetas=[],this.importedFromNotTreeshaken=!1,this.importers=[],this.includedDynamicImporters=[],this.includedTopLevelAwaitingDynamicImporters=new Set,this.includedImports=new Set,this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.needsExportShim=!1,this.sideEffectDependenciesByVariable=new Map,this.sourcePhaseSources=new Set,this.sourcesWithAttributesList=new Map,this.allExportsIncluded=!1,this.ast=null,this.exportAllModules=[],this.exportAllSourcesWithAttributesList=new Map,this.exportDescriptions=new Map,this.exportedVariablesByName=null,this.exportNamesByVariable=null,this.exportShimVariable=new bc(this),this.indentExclusionRanges=[],this.namespaceReexportsByName=new Map,this.reexportDescriptions=new Map,this.relevantDependencies=null,this.syntheticExports=new Map,this.syntheticNamespace=null,this.transformDependencies=[],this.excludeFromSourcemap=/\0/.test(t),this.context=s.moduleContext(t),this.preserveSignature=this.options.preserveEntrySignatures;const c=this,{dynamicImports:u,dynamicImporters:d,exportAllSourcesWithAttributesList:h,exportDescriptions:p,implicitlyLoadedAfter:f,implicitlyLoadedBefore:m,importers:g,reexportDescriptions:y,sourcesWithAttributesList:b}=this;this.info={ast:null,attributes:l,code:null,get dynamicallyImportedIdResolutions(){return u.map(({argument:e})=>"string"==typeof e&&c.resolvedIds[e]).filter(Boolean)},get dynamicallyImportedIds(){return u.map(({id:e})=>e).filter(e=>null!=e)},get dynamicImporters(){return d.sort()},get exportedBindings(){const e={".":[...p.keys()]};for(const[t,{source:n,attributes:s}]of y)(e[Pc(n,s)]??=[]).push(t);for(const[t,n]of h)for(const s of n)(e[Pc(t,s)]??=[]).push("*");return e},get exports(){return[...p.keys(),...y.keys(),...[...h].map(()=>"*")]},get hasDefaultExport(){return c.ast?c.exportDescriptions.has("default")||y.has("default"):null},id:t,get implicitlyLoadedAfterOneOf(){return Array.from(f,Sc).sort()},get implicitlyLoadedBefore(){return Array.from(m,Sc).sort()},get importedIdResolutions(){return Array.from(b.entries(),([e,t])=>t.map(t=>c.resolvedIds[Pc(e,t)])).flat().filter(Boolean)},get importedIds(){return Array.from(b.entries(),([e,t])=>t.map(t=>c.resolvedIds[Pc(e,t)]?.id)).flat().filter(Boolean)},get importers(){return g.sort()},isEntry:i,isExternal:!1,get isIncluded(){return e.phase!==Ec.GENERATE?null:c.isIncluded()},meta:{...a},moduleSideEffects:r,rawId:n,safeVariableNames:null,syntheticNamedExports:o}}basename(){const e=Y(this.id),t=Q(this.id);return Ss(t?e.slice(0,-t.length):e)}bindReferences(){this.ast.bind()}cacheInfoGetters(){Es(this.info,["dynamicallyImportedIdResolutions","dynamicallyImportedIds","dynamicImporters","exportedBindings","exports","hasDefaultExport","implicitlyLoadedAfterOneOf","implicitlyLoadedBefore","importedIdResolutions","importedIds","importers"])}error(e,t){return void 0!==t&&this.addLocationToLogProps(e,t),Ut(e)}estimateSize(){let e=0;for(const t of this.ast.body)t.included&&(e+=t.end-t.start);return e}getDependenciesToBeIncluded(){if(this.relevantDependencies)return this.relevantDependencies;this.relevantDependencies=new Set;const e=new Set,t=new Set,n=new Set(this.includedImports);if(this.info.isEntry||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0)for(const e of this.getExportedVariablesByName().values())e.included&&n.add(e);for(let s of n){const n=this.sideEffectDependenciesByVariable.get(s);if(n)for(const e of n)t.add(e);s instanceof Ao?s=s.getBaseVariable():s instanceof Eo&&(s=s.getOriginalVariable()),e.add(s.module)}if(this.options.treeshake&&"no-treeshake"!==this.info.moduleSideEffects)this.addRelevantSideEffectDependencies(this.relevantDependencies,e,t);else for(const e of this.dependencies)this.relevantDependencies.add(e);for(const t of e)this.relevantDependencies.add(t);return this.relevantDependencies}getExportedVariablesByName(){if(this.exportedVariablesByName)return this.exportedVariablesByName;const e=this.exportedVariablesByName=new Map;for(const t of this.exportDescriptions.keys())if(t!==this.info.syntheticNamedExports){const[n]=this.getVariableForExportName(t);if(!n)return Ut(Sn(t,this.id));e.set(t,n)}for(const t of this.reexportDescriptions.keys()){const[n]=this.getVariableForExportName(t);n&&e.set(t,n)}for(const t of this.exportAllModules)if(t instanceof Cs)e.set(`*${t.id}`,t.getVariableForExportName("*",{importChain:[this.id]})[0]);else for(const n of t.getExportedVariablesByName().keys())if("default"!==n&&!e.has(n)){const[t]=this.getVariableForExportName(n);t&&e.set(n,t)}return this.exportedVariablesByName=new Map([...e].sort(Fu))}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;const e=new Map;for(const[t,n]of this.getExportedVariablesByName().entries()){const s=n instanceof Eo?n.getOriginalVariable():n;if(!n||!(n.included||n instanceof bs))continue;const i=e.get(s);i?i.push(t):e.set(s,[t])}return this.exportNamesByVariable=e}getRenderedExports(){const e=[],t=[];for(const n of this.exportDescriptions.keys())(this.getExportedVariablesByName().get(n)?.included?e:t).push(n);return{removedExports:t,renderedExports:e}}getSyntheticNamespace(){return null===this.syntheticNamespace&&(this.syntheticNamespace=void 0,[this.syntheticNamespace]=this.getVariableForExportName("string"==typeof this.info.syntheticNamedExports?this.info.syntheticNamedExports:"default",{onlyExplicit:!0})),this.syntheticNamespace?this.syntheticNamespace:Ut((e=this.id,t=this.info.syntheticNamedExports,{code:"SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT",exporter:e,message:`Module "${Pt(e)}" that is marked with \`syntheticNamedExports: ${JSON.stringify(t)}\` needs ${"string"==typeof t&&"default"!==t?`an explicit export named "${t}"`:"a default export"} that does not reexport an unresolved named export of the same module.`}));var e,t}getVariableForExportName(e,{importerForSideEffects:t,importChain:n=[],isExportAllSearch:s,onlyExplicit:i,searchedNamesAndModules:r,sideEffectModules:o,exportOrReexportModules:a}=be){if("*"===e[0]){if(1===e.length)return[this.namespace];return this.graph.modulesById.get(e.slice(1)).getVariableForExportName("*",{importChain:[...n,this.id]})}const l=this.reexportDescriptions.get(e);if(l){const[e,s]=_u(l.module,l.localName,t,!1,r,[...n,this.id],o,a);return e?(t&&(Bu(e,t,this),this.info.moduleSideEffects&&ve(t.sideEffectDependenciesByVariable,e,Ae).add(this)),this.info.moduleSideEffects&&o?.add(this),a?.add(this),[e]):this.error(Pn(l.localName,this.id,l.module.id,!!s?.missingButExportExists),l.start)}const c=this.exportDescriptions.get(e);if(c){if(c===Mu)return[this.exportShimVariable];const e=c.localName,n=this.traceVariable(e,{exportOrReexportModules:a,importerForSideEffects:t,searchedNamesAndModules:r,sideEffectModules:o});return n?(t&&(Bu(n,t,this),ve(t.sideEffectDependenciesByVariable,n,Ae).add(this)),o?.add(this),a?.add(this),[n]):[null,{missingButExportExists:!0}]}if(i)return[null];if("default"!==e){const s=this.namespaceReexportsByName.get(e)??this.getVariableFromNamespaceReexports(e,t,r,[...n,this.id]);if(this.namespaceReexportsByName.set(e,s),s[0]){const[e,n]=s;if(t){const{exportOrReexportModules:s,sideEffectModules:i}=n;for(const n of s)t.alternativeReexportModules.has(e)||Bu(e,t,n);for(const n of i)ve(t.sideEffectDependenciesByVariable,e,Ae).add(n)}return s}}return this.info.syntheticNamedExports?[ve(this.syntheticExports,e,()=>new Ao(this.astContext,e,this.getSyntheticNamespace()))]:!s&&this.options.shimMissingExports?(this.shimMissingExport(e),[this.exportShimVariable]):[null]}hasEffects(){return"no-treeshake"===this.info.moduleSideEffects||this.ast.hasCachedEffects()}hasTopLevelAwait(){return this.astContext.usesTopLevelAwait}include(){const e=Zn();this.ast.shouldBeIncluded(e)&&this.ast.include(e,!1)}includeAllExports(){if(this.allExportsIncluded)return;this.allExportsIncluded=!0,this.includeModuleInExecution();const e=Zn();for(const t of this.getExportedVariablesByName().values())this.includeVariable(t,Te,e),t.deoptimizePath(Te),t instanceof bs&&(t.module.reexported=!0)}includeAllInBundle(){this.ast.include(Zn(),!0),this.includeAllExports()}includeModuleInExecution(){this.isExecuted||(ks(this),this.graph.needsTreeshakingPass=!0)}isIncluded(){return this.ast&&(this.ast.included||this.namespace.included||this.importedFromNotTreeshaken||this.exportShimVariable.included)}isEmitted(){return this.isIncluded()||this.info.isEntry||this.includedDynamicImporters.length>0||this.implicitlyLoadedAfter.size>0}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);const e=[];for(const[t,n]of this.exportAllSourcesWithAttributesList)for(const s of n){const n=this.graph.modulesById.get(this.resolvedIds[Pc(t,s)].id);n instanceof Cs?e.push(n):this.exportAllModules.push(n)}this.exportAllModules.push(...e)}log(e,t,n){this.addLocationToLogProps(t,n),this.options.onLog(e,t)}render(e){this.indentExclusionRanges=[];const t=this.magicString.clone();this.ast.render(t,e),t.trim();const{usesTopLevelAwait:n}=this.astContext;return n&&"es"!==e.format&&"system"!==e.format?Ut((s=this.id,i=e.format,{code:"INVALID_TLA_FORMAT",id:s,message:`Module format "${i}" does not support top-level await. Use the "es" or "system" output formats rather.`})):{indentExclusionRanges:this.indentExclusionRanges,source:t,usesTopLevelAwait:n};var s,i}setSource({astBuffer:e,code:t,customTransformCache:n,originalCode:s,originalSourcemap:i,resolvedIds:r,sourcemapChain:o,transformDependencies:a,transformFiles:l,safeVariableNames:c,...u}){if(Nu("generate ast",3),t.startsWith("#!")){const e=t.indexOf("\n");this.shebang=t.slice(2,e)}this.info.code=t,this.info.safeVariableNames=c,this.originalCode=s,this.originalSourcemap=Ac(i),this.sourcemapChain=o.map(e=>e.missing?e:Ac(e)),vc(this.originalSourcemap,this.sourcemapChain),l&&(this.transformFiles=l),this.transformDependencies=a,this.customTransformCache=n,this.updateOptions(u),this.resolvedIds=r??Object.create(null);const d=this.id;var h,p,f;this.magicString=new z(t,{filename:this.excludeFromSourcemap?null:d}),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),addImportSource:this.addImportSource.bind(this),addIndentExclusionRange:e=>this.indentExclusionRanges.push(e),code:t,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:d,getImportedJsxFactoryVariable:this.getImportedJsxFactoryVariable.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),importDescriptions:this.importDescriptions,includeDynamicImport:this.includeDynamicImport.bind(this),includeVariableInModule:this.includeVariableInModule.bind(this),log:this.log.bind(this),magicString:this.magicString,manualPureFunctions:this.graph.pureFunctions,module:this,moduleContext:this.context,newlyIncludedVariableInits:this.graph.newlyIncludedVariableInits,options:this.options,requestTreeshakingPass:()=>this.graph.needsTreeshakingPass=!0,traceExport:e=>this.getVariableForExportName(e),traceVariable:this.traceVariable.bind(this),usesTopLevelAwait:!1},this.scope=new ec(this.graph.scope,this.astContext,this.importDescriptions),this.namespace=new xo(this.astContext),this.astBuffer=e,Object.defineProperty(this.info,"ast",{enumerable:!0,get:()=>this.tryParseLazy(this.astBuffer)}),this.ast=(h=this.astBuffer,p=null,f=this.scope,gc(p,f,0,Ra(h))),Ou("generate ast",3)}toJSON(){return{astBuffer:this.astBuffer,attributes:this.info.attributes,code:this.info.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,Sc),id:this.id,meta:this.info.meta,moduleSideEffects:this.info.moduleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,rawId:this.rawId,resolvedIds:this.resolvedIds,safeVariableNames:this.info.safeVariableNames,sourcemapChain:this.sourcemapChain,syntheticNamedExports:this.info.syntheticNamedExports,transformDependencies:this.transformDependencies,transformFiles:this.transformFiles}}traceVariable(e,{importerForSideEffects:t,isExportAllSearch:n,searchedNamesAndModules:s,sideEffectModules:i,exportOrReexportModules:r}=be){const o=this.scope.variables.get(e);if(o)return o;const a=this.importDescriptions.get(e);if(a){const e=a.module;if(e instanceof Tu&&"*"===a.name)return e.namespace;const[o,l]=_u(e,a.name,t||this,n,s,[this.id],i,r);return o||this.error(Pn(a.name,this.id,e.id,!!l?.missingButExportExists),a.start)}return null}updateOptions({meta:e,moduleSideEffects:t,syntheticNamedExports:n},{replaceExistingMeta:s=!1}=be){if(null!=t&&(this.info.moduleSideEffects=t),null!=n&&(this.info.syntheticNamedExports=n),null!=e){if(s)for(const e of Object.keys(this.info.meta))delete this.info.meta[e];Object.assign(this.info.meta,e)}}addDynamicImport(e){let t=e.sourceAstNode;"TemplateLiteral"===t.type?1===t.quasis.length&&"string"==typeof t.quasis[0].value.cooked&&(t=t.quasis[0].value.cooked):"Literal"===t.type&&"string"==typeof t.value&&(t=t.value),this.dynamicImports.push({argument:t,id:null,node:e})}assertUniqueExportName(e,t){(this.exportDescriptions.has(e)||this.reexportDescriptions.has(e))&&this.error(function(e){return{code:"DUPLICATE_EXPORT",message:`Duplicate export "${e}"`}}(e),t)}addExport(e){if(e instanceof br)this.assertUniqueExportName("default",e.start),this.exportDescriptions.set("default",{identifier:e.variable.getAssignedVariableName(),localName:"default"});else if(e instanceof cl){const t=e.source.value;if(this.addSource(t,e),e.exported){const n=e.exported instanceof Yr?e.exported.value:e.exported.name;this.assertUniqueExportName(n,e.exported.start),this.reexportDescriptions.set(n,{attributes:vu(e.attributes),localName:"*",module:null,source:t,start:e.start})}else{const n=this.exportAllSourcesWithAttributesList.get(t),s=vu(e.attributes);n?n.find(e=>!Au(e,s))||n.push(s):this.exportAllSourcesWithAttributesList.set(t,[s])}}else if(e.source instanceof Yr){const t=e.source.value;this.addSource(t,e);for(const{exported:n,local:s,start:i}of e.specifiers){const r=n instanceof Yr?n.value:n.name;this.assertUniqueExportName(r,i),this.reexportDescriptions.set(r,{attributes:vu(e.attributes),localName:s instanceof Yr?s.value:s.name,module:null,source:t,start:i})}}else if(e.declaration){const t=e.declaration;if(t instanceof lc)for(const e of t.declarations)for(const t of ba(e.id))this.assertUniqueExportName(t,e.id.start),this.exportDescriptions.set(t,{identifier:null,localName:t});else{const e=t.id.name;this.assertUniqueExportName(e,t.id.start),this.exportDescriptions.set(e,{identifier:null,localName:e})}}else for(const{local:t,exported:n}of e.specifiers){const e=t.name,s=n instanceof Wi?n.name:n.value;this.assertUniqueExportName(s,n.start),this.exportDescriptions.set(s,{identifier:null,localName:e})}}addImport(e){const t=e.source.value;this.addSource(t,e);for(const n of e.specifiers){const s=n.local.name;(this.scope.variables.has(s)||this.importDescriptions.has(s))&&this.error(kn(s),n.local.start);const i="source"===e.phase?ys:n instanceof gl?"default":n instanceof Sl?"*":n.imported instanceof Wi?n.imported.name:n.imported.value;this.importDescriptions.set(s,{attributes:vu(e.attributes),module:null,name:i,phase:"source"===e.phase?"source":"instance",source:t,start:n.start})}}addImportSource(e){e&&!this.sourcesWithAttributesList.has(e)&&this.sourcesWithAttributesList.set(e,[be])}addImportMeta(e){this.importMetas.push(e)}addLocationToLogProps(e,t){e.id=this.id,e.pos=t;let n=this.info.code;const s=pt(n,t,{offsetLine:1});if(s){let{column:i,line:r}=s;try{({column:i,line:r}=function(e,t){const n=e.filter(e=>!e.missing);e:for(;n.length>0;){const e=n.pop().mappings[t.line-1];if(e){const n=e.filter(e=>e.length>1),s=n[n.length-1];let i=n[0];for(let e of n){if(e[0]>=t.column||e===s){e=e[0]!==t.column?i:e,t={column:e[3],line:e[2]+1};continue e}i=e}}throw new Error("Can't resolve original location of error.")}return t}(this.sourcemapChain,{column:i,line:r})),n=this.originalCode}catch(e){this.options.onLog(bt,function(e,t,n,s,i){return{cause:e,code:"SOURCEMAP_ERROR",id:t,loc:{column:n,file:t,line:s},message:`Error when using sourcemap for reporting an error: ${e.message}`,pos:i}}(e,this.id,i,r,t))}Ht(e,{column:i,line:r},n,this.id)}}addModulesToImportDescriptions(e){for(const t of e.values()){const{id:e}=this.resolvedIds[Pc(t.source,t.attributes)];t.module=this.graph.modulesById.get(e)}}addRelevantSideEffectDependencies(e,t,n){const s=new Set,i=r=>{for(const o of r)s.has(o)||(s.add(o),t.has(o)?e.add(o):(o.info.moduleSideEffects||n.has(o))&&(o instanceof Cs||o.hasEffects()?e.add(o):i(o.dependencies)))};i(this.dependencies),i(n)}addSource(e,t){const n=vu(t.attributes),s=this.sourcesWithAttributesList.get(e);s?s.some(e=>!Au(e,n))||s.push(n):this.sourcesWithAttributesList.set(e,[n]),"source"===t.phase&&this.sourcePhaseSources.add(e)}getImportedJsxFactoryVariable(e,t,n){const{id:s}=this.resolvedIds[n],i=this.graph.modulesById.get(s),[r]=i.getVariableForExportName(e,{importChain:[this.id]});return r||this.error((o=e,a=s,l=this.id,{code:"MISSING_JSX_EXPORT",exporter:a,id:l,message:`Export "${o}" is not defined in module "${Pt(a)}" even though it is needed in "${Pt(l)}" to provide JSX syntax. Please check your "jsx" option.`,names:[o],url:Ct(Nt)}),t);var o,a,l}getVariableFromNamespaceReexports(e,t,n,s){let i=null;const r=new Map,o=new Set,a=new Set,l=new Set;for(const c of this.exportAllModules){if(c.info.syntheticNamedExports===e)continue;const[u,d]=_u(c,e,t,!0,zu(n),s,a,l);c instanceof Cs||d?.indirectExternal?o.add(u):u instanceof Ao?i||(i=u):u&&r.set(u,c)}if(r.size>0){const t=[...r],n=t[0][0];return 1===t.length?[n,{exportOrReexportModules:l,sideEffectModules:a}]:(this.options.onLog(bt,(c=e,u=this.id,d=t.map(([,e])=>e.id),{binding:c,code:"NAMESPACE_CONFLICT",ids:d,message:`Conflicting namespaces: "${Pt(u)}" re-exports "${c}" from one of the modules ${At(d.map(e=>Pt(e)))} (will be ignored).`,reexporter:u})),[null])}var c,u,d;if(o.size>0){const t=[...o],n=t[0];return t.length>1&&this.options.onLog(bt,function(e,t,n,s){return{binding:e,code:"AMBIGUOUS_EXTERNAL_NAMESPACES",ids:s,message:`Ambiguous external namespace resolution: "${Pt(t)}" re-exports "${e}" from one of the external modules ${At(s.map(e=>Pt(e)))}, guessing "${Pt(n)}".`,reexporter:t}}(e,this.id,n.module.id,t.map(e=>e.module.id))),[n,{exportOrReexportModules:l,indirectExternal:!0,sideEffectModules:a}]}return i?[i,{exportOrReexportModules:l,sideEffectModules:a}]:[null]}includeAndGetAdditionalMergedNamespaces(){const e=new Set,t=new Set;for(const n of[this,...this.exportAllModules])if(n instanceof Cs){const[t]=n.getVariableForExportName("*",{importChain:[this.id]});t.includePath(Te,Zn()),this.includedImports.add(t),e.add(t)}else if(n.info.syntheticNamedExports){const e=n.getSyntheticNamespace();e.includePath(Te,Zn()),this.includedImports.add(e),t.add(e)}return[...t,...e]}includeDynamicImport(e){const{resolution:t}=e;t instanceof Tu&&(t.includedDynamicImporters.includes(this)||(t.includedDynamicImporters.push(this),this.astContext.usesTopLevelAwait&&t.includedTopLevelAwaitingDynamicImporters.add(this)))}includeVariable(e,t,n){const{included:s,module:i}=e;if(e.includePath(t,n),s)i instanceof Tu&&i!==this&&Lu(e,this);else if(this.graph.needsTreeshakingPass=!0,i instanceof Tu&&(i.includeModuleInExecution(),i!==this)){const t=Lu(e,this);for(const e of t)e.includeModuleInExecution()}}includeVariableInModule(e,t,n){this.includeVariable(e,t,n);const s=e.module;s&&s!==this&&this.includedImports.add(e)}shimMissingExport(e){var t,n;this.options.onLog(bt,(t=this.id,{binding:n=e,code:"SHIMMED_EXPORT",exporter:t,message:`Missing export "${n}" has been shimmed in module "${Pt(t)}".`})),this.exportDescriptions.set(e,Mu)}tryParseLazy(e){try{return gu(e)}catch(e){return this.error(On(e,this.id),e.pos)}}}function Bu(e,t,n){if(e.module instanceof Tu&&e.module!==n){const s=e.module.cycles;if(s.size>0){const i=n.cycles;for(const r of i)if(s.has(r)){t.alternativeReexportModules.set(e,n);break}}}}const zu=e=>e&&new Map(Array.from(e,([e,t])=>[e,new Set(t)])),Fu=([e],[t])=>e<t?-1:e>t?1:0,Vu=(e,t)=>[e,t].filter(Boolean).join("\n"),ju=(e,t)=>[e,t].filter(Boolean).join("\n\n");const Uu={amd:Wu,cjs:Wu,es:Hu,iife:Wu,system:Hu,umd:Wu};function Gu(e,t,n,s,i,r,o,a,l,c,u,d,h,p){const f=[...e].reverse();for(const e of f)e.scope.addUsedOutsideNames(s,i,d,h);!function(e,t,n){for(const s of t){s.info.safeVariableNames||={};for(const t of s.scope.variables.values())if(t.included&&!(t.renderBaseName||t instanceof Eo&&t.getOriginalVariable()!==t)){const n=Object.getOwnPropertyDescriptor(s.info.safeVariableNames,t.name)?.value;if(n&&!e.has(n)){e.add(n),t.setRenderNames(null,n);continue}t.setRenderNames(null,dt(t.name,e,t.forbiddenNames)),s.info.safeVariableNames[t.name]=t.renderName}if(n.has(s)){const t=s.namespace;t.setRenderNames(null,dt(t.name,e,t.forbiddenNames))}}}(s,f,p),Uu[i](s,n,t,r,o,a,l,c,u);for(const e of f)e.scope.deconflict(i,d,h)}function Hu(e,t,n,s,i,r,o,a,l){for(const t of n.dependencies)(i||t instanceof So)&&(t.variableName=dt(t.suggestedVariableName,e,null));for(const n of t){const t=n.module,s=n.name;n.isNamespace&&(i||t instanceof Cs)?n.setRenderNames(null,(t instanceof Cs?a.get(t):o.get(t)).variableName):t instanceof Cs&&n.isSourcePhase?n.setRenderNames(null,dt(t.suggestedVariableName+"__source",e,n.forbiddenNames)):t instanceof Cs&&"default"===s?n.setRenderNames(null,dt([...t.exportedVariables].some(([e,t])=>"*"===t&&e.included)?t.suggestedVariableName+"__default":t.suggestedVariableName,e,n.forbiddenNames)):n.setRenderNames(null,dt(Ss(s),e,n.forbiddenNames))}for(const t of l)t.setRenderNames(null,dt(t.name,e,t.forbiddenNames))}function Wu(e,t,{deconflictedDefault:n,deconflictedNamespace:s,dependencies:i},r,o,a,l,c){for(const t of i)t.variableName=dt(t.suggestedVariableName,e,null);for(const t of s)t.namespaceVariableName=dt(`${t.suggestedVariableName}__namespace`,e,null);for(const t of n)t.defaultVariableName=s.has(t)&&Mr(r(t.id),a)?t.namespaceVariableName:dt(`${t.suggestedVariableName}__default`,e,null);for(const e of t){const t=e.module;if(t instanceof Cs){const n=c.get(t),s=e.name;if("default"===s){const s=r(t.id),i=Or[s]?n.defaultVariableName:n.variableName;Rr(s,a)?e.setRenderNames(i,"default"):e.setRenderNames(null,i)}else"*"===s?e.setRenderNames(null,Dr[r(t.id)]?n.namespaceVariableName:n.variableName):e.setRenderNames(n.variableName,null)}else{const n=l.get(t);o&&e.isNamespace?e.setRenderNames(null,"default"===n.exportMode?n.namespaceVariableName:n.variableName):"default"===n.exportMode?e.setRenderNames(null,n.variableName):e.setRenderNames(n.variableName,n.getVariableExportName(e))}}}function qu(e,{exports:t,name:n,format:s},i,r){const o=e.getExportNames();if("default"===t){if(1!==o.length||"default"!==o[0])return Ut(xn("default",o,i))}else if("none"===t&&o.length>0)return Ut(xn("none",o,i));return"auto"===t&&(0===o.length?t="none":1===o.length&&"default"===o[0]?t="default":("es"!==s&&"system"!==s&&o.includes("default")&&r(bt,function(e,t){return{code:"MIXED_EXPORTS",id:e,message:`Entry module "${Pt(e)}" is using named and default exports together. Consumers of your bundle will have to use \`${t||"chunk"}.default\` to access the default export, which may not be what you want. Use \`output.exports: "named"\` to disable this warning.`,url:Ct(Dt)}}(i,n)),t="named")),t}function Ku(e){const t=e.split("\n"),n=t.filter(e=>/^\t+/.test(e)),s=t.filter(e=>/^ {2,}/.test(e));if(0===n.length&&0===s.length)return null;if(n.length>=s.length)return"\t";const i=s.reduce((e,t)=>{const n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return" ".repeat(i)}function Xu(e,t,n,s,i,r){const o=e.getDependenciesToBeIncluded();for(const e of o){if(e instanceof Cs){t.push(r.get(e));continue}const o=i.get(e);o===s?n.has(e)||(n.add(e),Xu(e,t,n,s,i,r)):t.push(o)}}const Ju="!~{",Yu="}~",Zu=new RegExp(`${Ju}[0-9a-zA-Z_$]{1,16}${Yu}`,"g"),Qu=(e,t)=>e.replace(Zu,e=>t.get(e)||e),ed=(e,t,n)=>e.replace(Zu,e=>e===t?n:e),td=(e,t)=>{const n=new Set,s=e.replace(Zu,e=>t.has(e)?(n.add(e),`${Ju}${"0".repeat(e.length-5)}${Yu}`):e);return{containedPlaceholders:n,transformedCode:s}},nd=Symbol("bundleKeys"),sd={type:"placeholder"};function id(e,t,n){return $t(e)?Ut(Ln(`Invalid pattern "${e}" for "${t}", patterns can be neither absolute nor relative paths. If you want your files to be stored in a subdirectory, write its name without a leading slash like this: subdirectory/pattern.`)):e.replace(/\[(\w+)(:\d+)?]/g,(e,s,i)=>{if(!n.hasOwnProperty(s)||i&&"hash"!==s)return Ut(Ln(`"[${s}${i||""}]" is not a valid placeholder in the "${t}" pattern.`));const r=n[s](i&&Number.parseInt(i.slice(1)));return $t(r)?Ut(Ln(`Invalid substitution "${r}" for placeholder "[${s}]" in "${t}" pattern, can be neither absolute nor relative path.`)):r})}function rd(e,{[nd]:t}){if(!t.has(e.toLowerCase()))return e;const n=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\")),s=e.slice(0,n+1),i=e.slice(n+1),r=i.indexOf(".",1),o=s+(-1===r?i:i.slice(0,r)),a=-1===r?"":i.slice(r);let l,c=1;for(;t.has((l=o+ ++c+a).toLowerCase()););return l}const od=["Object","Promise","module","exports","require","__filename","__dirname",...Xr],ad=new Set([".js",".jsx",".ts",".tsx",".mjs",".mts",".cjs",".cts"]);function ld(e,t,n,s,i){const{attributes:r,rawId:o}=e.moduleInfo,a="function"==typeof t?t(o,{attributes:r}):t[o];return a?(n&&"object"==typeof t&&function(e,t,n,s){const i=n.get(e)??0;1===i&&s(bt,function(e,t){return{code:"AMBIGUOUS_GLOBAL_NAME",id:e,message:`The object form of "output.globals" maps several import attribute variants of the external module "${e}" to the same global name "${t}". Use the function form of "output.globals" to give each variant its own global name.`,url:Ct(_t)}}(e,t));n.set(e,i+1)}(o,a,s,i),a):n?(i(bt,(l=e.id,c=e.variableName,{code:"MISSING_GLOBAL_NAME",id:l,message:`No name was provided for external module "${l}" in "output.globals" – guessing "${c}".`,names:[c],url:Ct(_t)})),e.variableName):void 0;var l,c}class cd{constructor(e,t,n,s,i,r,o,a,l,c,u,d,h,p,f){this.orderedModules=e,this.inputOptions=t,this.outputOptions=n,this.unsetOptions=s,this.pluginDriver=i,this.modulesById=r,this.chunkByModule=o,this.externalChunkByModule=a,this.facadeChunkByModule=l,this.includedNamespaces=c,this.manualChunkAlias=u,this.getPlaceholder=d,this.bundle=h,this.inputBase=p,this.snippets=f,this.dependencies=new Set,this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.namespaceVariableName="",this.variableName="",this.isManualChunk=!1,this.accessedGlobalsByScope=new Map,this.dynamicEntryModules=[],this.dynamicName=null,this.exportNamesByVariable=new Map,this.exports=new Set,this.exportsByName=new Map,this.fileName=null,this.implicitEntryModules=[],this.implicitlyLoadedBefore=new Set,this.imports=new Set,this.includedDynamicImports=null,this.includedReexportsByModule=new Map,this.isEmpty=!0,this.name=null,this.needsExportsShim=!1,this.preRenderedChunkInfo=null,this.preliminaryFileName=null,this.preliminarySourcemapFileName=null,this.renderedChunkInfo=null,this.renderedDependencies=null,this.renderedModules=Object.create(null),this.sortedExportNames=null,this.strictFacade=!1,this.allowExtensionModules=new Set,this.execIndex=e.length>0?e[0].execIndex:1/0;const m=new Set(e);for(const t of e){o.set(t,this),t.namespace.included&&!n.preserveModules&&c.add(t),this.isEmpty&&t.isIncluded()&&(this.isEmpty=!1),(t.info.isEntry||n.preserveModules)&&this.entryModules.push(t);for(const e of t.includedDynamicImporters)if(!m.has(e)){this.dynamicEntryModules.push(t),t.info.syntheticNamedExports&&(c.add(t),this.exports.add(t.namespace));break}t.implicitlyLoadedAfter.size>0&&this.implicitEntryModules.push(t)}this.suggestedVariableName=Ss(this.generateVariableName()),this.isManualChunk=null!==u}static generateFacade(e,t,n,s,i,r,o,a,l,c,u,d,h,p,f){const m=new cd([],e,t,n,s,i,r,o,a,l,null,d,h,p,f);m.assignFacadeName(u,c),a.has(c)||a.set(c,m);for(const e of c.getDependenciesToBeIncluded())m.dependencies.add(e instanceof Tu?r.get(e):o.get(e));return!m.dependencies.has(r.get(c))&&c.info.moduleSideEffects&&c.hasEffects()&&m.dependencies.add(r.get(c)),m.ensureReexportsAreAvailableForModule(c),m.facadeModule=c,m.strictFacade=!0,m}canModuleBeFacade(e,t){const n=e.getExportNamesByVariable();for(const e of this.exports)if(!n.has(e))return!1;for(const s of t)if(!(s.module===e||n.has(s)||s instanceof Ao&&n.has(s.getBaseVariable())))return!1;return!0}finalizeChunk(e,t,n,s){const i=this.getRenderedChunkInfo(),r=e=>Qu(e,s),o=i.fileName,a=this.fileName=r(o);return{...i,code:e,dynamicImports:i.dynamicImports.map(r),fileName:a,implicitlyLoadedBefore:i.implicitlyLoadedBefore.map(r),importedBindings:Object.fromEntries(Object.entries(i.importedBindings).map(([e,t])=>[r(e),t])),imports:i.imports.map(r),map:t,preliminaryFileName:o,referencedFiles:i.referencedFiles.map(r),sourcemapFileName:n}}generateExports(){this.sortedExportNames=null;const e=new Set(this.exports);if(null!==this.facadeModule&&(!1!==this.facadeModule.preserveSignature||this.strictFacade)){const t=this.facadeModule.getExportNamesByVariable();for(const[n,s]of t){this.exportNamesByVariable.set(n,[...s]);for(const e of s)this.exportsByName.set(e,n);e.delete(n)}}for(const t of this.allowExtensionModules){const n=t.getExportNamesByVariable();for(const[t,s]of n){this.exportNamesByVariable.set(t,[...s]);for(const e of s)this.exportsByName.set(e,t);e.delete(t)}}this.outputOptions.minifyInternalExports?function(e,t,n){let s=0;for(const i of e){let[e]=i.name;if(t.has(e))do{e=ut(++s),49===e.charCodeAt(0)&&(s+=9*64**(e.length-1),e=ut(s))}while(ct.has(e)||t.has(e));t.set(e,i),n.set(i,[e])}}(e,this.exportsByName,this.exportNamesByVariable):function(e,t,n){for(const s of e){let e=0,i=s.name;for(;t.has(i);)i=s.name+"$"+ ++e;t.set(i,s),n.set(s,[i])}}(e,this.exportsByName,this.exportNamesByVariable),(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.info.isEntry)&&(this.exportMode=qu(this,this.outputOptions,this.facadeModule.id,this.inputOptions.onLog))}generateFacades(){const e=[],t=new Set([...this.entryModules,...this.implicitEntryModules]),n=new Set(this.dynamicEntryModules.map(({namespace:e})=>e));for(const s of t){if("allow-extension"===s.preserveSignature){if(this.canPreserveModuleExports(s)&&!s.chunkFileNames.size&&s.chunkNames.every(({isUserDefined:e})=>!e)){this.allowExtensionModules.add(s),this.facadeModule||(this.facadeModule=s,this.strictFacade=!1,this.assignFacadeName({},s,this.outputOptions.preserveModules)),this.facadeChunkByModule.set(s,this);continue}}const t=Array.from(new Set(s.chunkNames.filter(({isUserDefined:e})=>e).map(({name:e})=>e)),e=>({name:e}));if(0===t.length&&s.isUserDefinedEntryPoint&&t.push({}),t.push(...Array.from(s.chunkFileNames,e=>({fileName:e}))),0===t.length&&t.push({}),!this.facadeModule){const e=!this.outputOptions.preserveModules&&("strict"===s.preserveSignature||"exports-only"===s.preserveSignature&&s.getExportNamesByVariable().size>0);e&&!this.canModuleBeFacade(s,n)||(this.facadeModule=s,this.facadeChunkByModule.set(s,this),s.preserveSignature&&(this.strictFacade=e),this.assignFacadeName(t.shift(),s,this.outputOptions.preserveModules))}for(const n of t)e.push(cd.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.externalChunkByModule,this.facadeChunkByModule,this.includedNamespaces,s,n,this.getPlaceholder,this.bundle,this.inputBase,this.snippets))}for(const e of this.dynamicEntryModules)e.info.syntheticNamedExports||(!this.facadeModule&&this.canModuleBeFacade(e,n)?(this.facadeModule=e,this.facadeChunkByModule.set(e,this),this.strictFacade=!0,this.dynamicName=ud(e)):this.facadeModule===e&&!this.strictFacade&&this.canModuleBeFacade(e,n)?this.strictFacade=!0:this.facadeChunkByModule.get(e)?.strictFacade||(this.includedNamespaces.add(e),this.exports.add(e.namespace)));return this.outputOptions.preserveModules||this.addNecessaryImportsForFacades(),e}canPreserveModuleExports(e){const t=e.getExportNamesByVariable();for(const[e,n]of t)for(const t of n){const n=this.exportsByName.get(t);if(n&&n!==e)return!1}for(const[e,n]of t)for(const t of n)this.exportsByName.set(t,e);return!0}getChunkName(){return this.name??=this.outputOptions.sanitizeFileName(this.getFallbackChunkName())}getExportNames(){return this.sortedExportNames??=[...this.exportsByName.keys()].sort()}getFileName(){return this.fileName||this.getPreliminaryFileName().fileName}getImportPath(e){return Ar(It(e,this.getFileName(),"amd"===this.outputOptions.format&&!this.outputOptions.amd.forceJsExtensionForImports,!0))}getPreliminaryFileName(){if(this.preliminaryFileName)return this.preliminaryFileName;let e,t=null;const{chunkFileNames:n,entryFileNames:s,file:i,format:r,preserveModules:o}=this.outputOptions;if(i)e=Y(i);else if(null===this.fileName){const[i,a]=o||this.facadeModule?.isUserDefinedEntryPoint?[s,"output.entryFileNames"]:[n,"output.chunkFileNames"];e=id("function"==typeof i?i(this.getPreRenderedChunkInfo()):i,a,{format:()=>r,hash:e=>t||(t=this.getPlaceholder(a,e||8)),name:()=>this.getChunkName()}),t||(e=rd(e,this.bundle))}else e=this.fileName;return t||(this.bundle[e]=sd),this.preliminaryFileName={fileName:e,hashPlaceholder:t}}getPreliminarySourcemapFileName(){if(this.preliminarySourcemapFileName)return this.preliminarySourcemapFileName;const{sourcemapFileNames:e,format:t}=this.outputOptions;if(!e)return null;let n=null;const[s,i]=[e,"output.sourcemapFileNames"];let r=id("function"==typeof s?s(this.getPreRenderedChunkInfo()):s,i,{chunkhash:()=>this.getPreliminaryFileName().hashPlaceholder||"",format:()=>t,hash:e=>n||(n=this.getPlaceholder(i,e||8)),name:()=>this.getChunkName()});return n||(r=rd(r,this.bundle)),this.preliminarySourcemapFileName={fileName:r,hashPlaceholder:n}}getRenderedChunkInfo(){if(this.renderedChunkInfo)return this.renderedChunkInfo;const e=this.getRenderedDependencies();return this.renderedChunkInfo={...this.getPreRenderedChunkInfo(),dynamicImports:this.getDynamicDependencies().map(fd),fileName:this.getFileName(),implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,fd),importedBindings:hd(e,fd),imports:Array.from(e.keys(),fd),modules:this.renderedModules,referencedFiles:this.getReferencedFiles()}}getVariableExportName(e){return this.outputOptions.preserveModules&&e instanceof xo?"*":this.exportNamesByVariable.get(e)[0]}link(){this.dependencies=function(e,t,n,s){const i=[],r=new Set;for(let o=t.length-1;o>=0;o--){const a=t[o];if(!r.has(a)){const t=[];Xu(a,t,r,e,n,s),i.unshift(t)}}const o=new Set;for(const e of i)for(const t of e)o.add(t);return o}(this,this.orderedModules,this.chunkByModule,this.externalChunkByModule);for(const e of this.orderedModules)this.addImplicitlyLoadedBeforeFromModule(e),this.setUpChunkImportsAndExportsForModule(e)}inlineTransitiveImports(){const{facadeModule:e,dependencies:t,outputOptions:n}=this,{hoistTransitiveImports:s,preserveModules:i}=n;if(s&&!i&&null!==e)for(const e of t)e instanceof cd&&this.inlineChunkDependencies(e)}async render(){const{exportMode:e,facadeModule:t,inputOptions:{onLog:n},outputOptions:s,pluginDriver:i,snippets:r}=this,{format:o,preserveModules:a}=s,l=this.getPreliminaryFileName(),c=this.getPreliminarySourcemapFileName(),{accessedGlobals:u,indent:d,magicString:h,renderedSource:p,usedModules:f,usesTopLevelAwait:m}=this.renderModules(l.fileName),g=[...this.getRenderedDependencies().values()],y="none"===e?[]:this.getChunkExportDeclarations(o),b="es"===o&&new Set(y.map(({exported:e})=>e));let E=y.length>0,x=!1;for(const e of g){const{reexports:t}=e;t?.length&&(E=!0,!x&&t.some(e=>"default"===e.reexported)&&(x=!0),b&&(e.reexports=t.filter(({reexported:e})=>!b.has(e))))}if(!x)for(const{exported:e}of y)if("default"===e){x=!0;break}const{intro:v,outro:A,banner:S,footer:P}=await async function(e,t,n){try{let[s,i,r,o]=await Promise.all([t.hookReduceValue("banner",e.banner(n),[n],Vu),t.hookReduceValue("footer",e.footer(n),[n],Vu),t.hookReduceValue("intro",e.intro(n),[n],ju),t.hookReduceValue("outro",e.outro(n),[n],ju)]);return r&&(r+="\n\n"),o&&(o=`\n\n${o}`),s&&(s+="\n"),i&&(i="\n"+i),{banner:s,footer:i,intro:r,outro:o}}catch(e){return Ut((s=e.message,{code:"ADDON_ERROR",message:`Could not retrieve "${e.hook}". Check configuration of plugin "${e.plugin}".\n\tError Message: ${s}`}))}var s}(s,i,this.getRenderedChunkInfo());if(Jo[o](p,{accessedGlobals:u,dependencies:g,exports:y,hasDefaultExport:x,hasExports:E,id:l.fileName,indent:d,intro:v,isEntryFacade:a||null!==t&&t.info.isEntry,isModuleFacade:null!==t,log:n,namedExportsMode:"default"!==e,outro:A,snippets:r,usesTopLevelAwait:m},s),S&&h.prepend(S),"es"===o||"cjs"===o){const e=null!==t&&t.info.isEntry&&t.shebang;e&&h.prepend(`#!${e}\n`)}return P&&h.append(P),{chunk:this,magicString:h,preliminaryFileName:l,preliminarySourcemapFileName:c,usedModules:f}}addImplicitlyLoadedBeforeFromModule(e){const{chunkByModule:t,implicitlyLoadedBefore:n}=this;for(const s of e.implicitlyLoadedBefore){const e=t.get(s);e&&e!==this&&n.add(e)}}addNecessaryImportsForFacades(){for(const[e,t]of this.includedReexportsByModule)if(this.includedNamespaces.has(e))for(const e of t)this.imports.add(e)}assignFacadeName({fileName:e,name:t},n,s){e?this.fileName=e:this.name=this.outputOptions.sanitizeFileName(t||(s?this.getPreserveModulesChunkNameFromModule(n):ud(n)))}checkCircularDependencyImport(e,t){const n=e.module;if(n instanceof Tu){const s=this.chunkByModule.get(n);let i;do{if(i=t.alternativeReexportModules.get(e),i){this.chunkByModule.get(i)!==s&&this.inputOptions.onLog(bt,hn(n.getExportNamesByVariable().get(e)?.[0]||"*",n.id,i.id,t.id,this.outputOptions.preserveModules)),t=i}}while(i)}}ensureReexportsAreAvailableForModule(e){const t=[],n=e.getExportNamesByVariable();for(const s of n.keys()){const n=s instanceof Ao,i=n?s.getBaseVariable():s;if(this.checkCircularDependencyImport(i,e),!(i instanceof xo&&this.outputOptions.preserveModules)){const e=i.module;if(e instanceof Tu){const s=this.chunkByModule.get(e);s&&s!==this&&(s.exports.add(i),t.push(i),n&&this.imports.add(i))}else e instanceof Cs&&i.included&&t.push(i)}}t.length>0&&this.includedReexportsByModule.set(e,t)}generateVariableName(){if(this.manualChunkAlias)return this.manualChunkAlias;const e=this.entryModules[0]||this.implicitEntryModules[0]||this.dynamicEntryModules[0]||this.orderedModules[this.orderedModules.length-1];return e?ud(e):"chunk"}getChunkExportDeclarations(e){const t=[];for(const n of this.getExportNames()){if("*"===n[0])continue;const s=this.exportsByName.get(n);if(!(s instanceof Ao)){const t=s.module;if(t){const s=this.chunkByModule.get(t);if(s!==this){if(!s||"es"!==e)continue;const t=this.renderedDependencies.get(s);if(!t)continue;const{imports:i,reexports:r}=t,o=r?.find(({reexported:e})=>e===n),a=i?.find(({imported:e})=>e===o?.imported);if(!a)continue}}}let i=null,r=!1,o=s.getName(this.snippets.getPropertyAccess);if(s instanceof ds){for(const e of s.declarations)if(e.parent instanceof yr||e instanceof br&&e.declaration instanceof yr){r=!0;break}}else s instanceof Ao&&(i=o,"es"===e&&(o=s.renderName));t.push({exported:n,expression:i,hoisted:r,local:o,needsLiveBinding:s.isReassigned&&this.exportNamesByVariable.get(s).length>1})}return t}getDependenciesToBeDeconflicted(e,t,n){const s=new Set,i=new Set,r=new Set;for(const t of[...this.exportNamesByVariable.keys(),...this.imports])if(e||t.isNamespace){const o=t.module;if(o instanceof Cs){const a=this.externalChunkByModule.get(o);s.add(a),e&&("default"===t.name?Or[n(o.id)]&&i.add(a):t.isNamespace&&Dr[n(o.id)]&&(this.imports.has(t)||!this.exportNamesByVariable.get(t)?.every(e=>"*"===e[0]))&&r.add(a))}else{const n=this.chunkByModule.get(o);n!==this&&(s.add(n),e&&"default"===n.exportMode&&t.isNamespace&&r.add(n))}}if(t)for(const e of this.dependencies)s.add(e);return{deconflictedDefault:i,deconflictedNamespace:r,dependencies:s}}getDynamicDependencies(){return this.getIncludedDynamicImports().map(e=>e.facadeChunk||e.chunk||e.externalChunk||e.resolution).filter(e=>e!==this&&(e instanceof cd||e instanceof So))}getDynamicImportStringAndAttributes(e,t,n){const{externalImportAttributes:s}=this.outputOptions,i=["es","cjs"].includes(this.outputOptions.format)&&s;if(e instanceof Cs){const n=this.externalChunkByModule.get(e),s=n.getImportAttributes(this.snippets);return[`'${n.getImportPath(t)}'`,s||!!i||null]}let r=null;if(i){const e=Eu(n);r=e===be||Po(e,this.snippets)}return[e||"",r]}getFallbackChunkName(){return this.manualChunkAlias?this.manualChunkAlias:this.dynamicName?this.dynamicName:this.fileName?St(this.fileName):St(this.orderedModules[this.orderedModules.length-1].id)}getImportSpecifiers(){const{interop:e}=this.outputOptions,t=new Map;for(const n of this.imports){const s=n.module;let i,r;const o=s instanceof Cs&&n.isSourcePhase;if(s instanceof Cs){if(i=this.externalChunkByModule.get(s),r=n.name,!o&&"default"!==r&&"*"!==r&&"defaultOnly"===e(s.id))return Ut(Mn(s.id,r,!1))}else i=this.chunkByModule.get(s),r=i.getVariableExportName(n);ve(t,i,Se).push({imported:r,local:n.getName(this.snippets.getPropertyAccess),phase:o?"source":"instance"})}return t}getIncludedDynamicImports(){if(this.includedDynamicImports)return this.includedDynamicImports;const e=[];for(const t of this.orderedModules)for(const{node:n}of t.dynamicImports){if(!n.included)continue;const{resolution:t}=n;e.push(t instanceof Tu?{chunk:this.chunkByModule.get(t),externalChunk:null,facadeChunk:this.facadeChunkByModule.get(t),node:n,resolution:t}:t instanceof Cs?{chunk:null,externalChunk:this.externalChunkByModule.get(t),facadeChunk:null,node:n,resolution:t}:{chunk:null,externalChunk:null,facadeChunk:null,node:n,resolution:t})}return this.includedDynamicImports=e}getPreRenderedChunkInfo(){if(this.preRenderedChunkInfo)return this.preRenderedChunkInfo;const{dynamicEntryModules:e,facadeModule:t,implicitEntryModules:n,orderedModules:s}=this;return this.preRenderedChunkInfo={exports:this.getExportNames(),facadeModuleAttributes:t?t.info.attributes:{},facadeModuleId:t&&t.id,facadeModuleRawId:t?t.info.rawId:null,isDynamicEntry:e.length>0,isEntry:!!t?.info.isEntry,isImplicitEntry:n.length>0,moduleIds:s.map(({id:e})=>e),name:this.getChunkName(),type:"chunk"}}getPreserveModulesChunkNameFromModule(e){const t=dd(e);if(t)return t;const{preserveModulesRoot:n,sanitizeFileName:s}=this.outputOptions,i=s(J(e.id.split(pd,1)[0])),r=s(this.inputBase),o=Q(i),a=ad.has(o)?i.slice(0,-o.length):i;return K(a)?n&&ne(a).startsWith(n)?a.slice(n.length).replace(/^[/\\]/,""):"/"===r&&"/"!==a[0]?te(r,a.replace(/^[a-zA-Z]:[/\\]/,"/")):te(r,a):this.outputOptions.virtualDirname.replace(/\/$/,"")+"/"+Y(a)}getReexportSpecifiers(){const{externalLiveBindings:e,interop:t}=this.outputOptions,n=new Map;for(let s of this.getExportNames()){let i,r,o;if("*"===s[0]){const n=s.slice(1);"defaultOnly"===t(n)&&this.inputOptions.onLog(bt,_n(n)),o=e,i=this.externalChunkByModule.get(this.modulesById.get(n)),r=s="*"}else{const n=this.exportsByName.get(s);if(n instanceof Ao)continue;const a=n.module;if(a instanceof Tu){if(i=this.chunkByModule.get(a),i===this)continue;r=i.getVariableExportName(n),o=n.isReassigned}else{if(i=this.externalChunkByModule.get(a),r=n.name,"default"!==r&&"*"!==r&&"defaultOnly"===t(a.id))return Ut(Mn(a.id,r,!0));o=e&&("default"!==r||Rr(t(a.id),!0))}}ve(n,i,Se).push({imported:r,needsLiveBinding:o,reexported:s})}return n}getReferencedFiles(){const e=new Set;for(const t of this.orderedModules)for(const n of t.importMetas){const t=n.getReferencedFileName(this.pluginDriver);t&&e.add(t)}return[...e]}getRenderedDependencies(){if(this.renderedDependencies)return this.renderedDependencies;const e=this.getImportSpecifiers(),t=this.getReexportSpecifiers(),n=new Map,s=this.getFileName(),i="iife"===this.outputOptions.format||"umd"===this.outputOptions.format?new Map:void 0;for(const r of this.dependencies){const o=e.get(r)||null,a=t.get(r)||null;null===o&&null===a&&r instanceof So&&!r.moduleSideEffects&&!this.outputOptions.hoistTransitiveImports||n.set(r,this.getRenderedDependency(r,o,a,s,i))}return this.renderedDependencies=n}getRenderedDependency(e,t,n,s,i){const r=e instanceof So||"default"!==e.exportMode,o=e.getImportPath(s),a=t?.find(e=>"source"===e.phase),l=t?.filter(e=>"source"!==e.phase)??null;return{attributes:e instanceof So?e.getImportAttributes(this.snippets):null,defaultVariableName:e.defaultVariableName,globalName:i&&e instanceof So&&ld(e,this.outputOptions.globals,null!==(t||n),i,this.inputOptions.onLog),importPath:o,imports:l&&l.length>0?l:null,isChunk:e instanceof cd,name:e.variableName,namedExportsMode:r,namespaceVariableName:e.namespaceVariableName,reexports:n,sourcePhaseImport:a?.local}}inlineChunkDependencies(e){for(const t of e.dependencies)this.dependencies.has(t)||(this.dependencies.add(t),t instanceof cd&&this.inlineChunkDependencies(t))}renderModules(e){const{accessedGlobalsByScope:t,dependencies:n,exportNamesByVariable:s,includedNamespaces:i,inputOptions:{onLog:r},isEmpty:o,orderedModules:a,outputOptions:l,pluginDriver:c,renderedModules:u,snippets:d}=this,{compact:h,format:p,freeze:f,generatedCode:{symbols:m},importAttributesKey:g}=l,{_:y,cnst:b,n:E}=d;this.setDynamicImportResolutions(e),this.setImportMetaResolutions(e),this.setIdentifierRenderResolutions();const x=new V({separator:`${E}${E}`}),v=function(e,t){if(!0!==t.indent)return t.indent;for(const t of e){const e=Ku(t.originalCode);if(null!==e)return e}return"\t"}(a,l),A=[];let S="";const P=new Set,$={accessedDocumentCurrentScript:!1,exportNamesByVariable:s,format:p,freeze:f,importAttributesKey:g,indent:v,pluginDriver:c,snippets:d,symbols:m,useOriginalName:null};let w=!1;for(const e of a){let n,s=0;if(e.isIncluded()||i.has(e)){const r=e.render($);!$.accessedDocumentCurrentScript&&oo.includes(p)&&this.accessedGlobalsByScope.get(e.scope)?.delete(Nr),$.accessedDocumentCurrentScript=!1,({source:n}=r),w||=r.usesTopLevelAwait,s=n.length(),s&&(h&&n.lastLine().includes("//")&&n.append("\n"),x.addSource({content:n,indentExclusionRanges:r.indentExclusionRanges}),A.push(e));const o=e.namespace;if(i.has(e)){const e=o.renderBlock($);o.renderFirst()?S+=E+e:x.addSource(new z(e))}const a=t.get(e.scope);if(a)for(const e of a)P.add(e)}const{renderedExports:r,removedExports:o}=e.getRenderedExports();u[e.id]={attributes:e.info.attributes,get code(){return n?.toString()??null},originalLength:e.originalCode.length,rawId:e.info.rawId,removedExports:o,renderedExports:r,renderedLength:s}}S&&x.prepend(S+E+E),this.needsExportsShim&&x.prepend(`${E}${b} ${Vo}${y}=${y}void 0;${E}${E}`);const I=h?x:x.trim();var C;return o&&0===this.getExportNames().length&&0===n.size&&r(bt,{code:"EMPTY_BUNDLE",message:`Generated an empty chunk: "${C=this.getChunkName()}".`,names:[C]}),{accessedGlobals:P,indent:v,magicString:x,renderedSource:I,usedModules:A,usesTopLevelAwait:w}}setDynamicImportResolutions(e){const{accessedGlobalsByScope:t,outputOptions:n,pluginDriver:s,snippets:i}=this;for(const r of this.getIncludedDynamicImports())if(r.chunk){const{chunk:o,facadeChunk:a,node:l,resolution:c}=r;o===this?l.setInternalResolution(c.namespace):l.setExternalResolution((a||o).exportMode,n,i,s,t,`'${(a||o).getImportPath(e)}'`,!a?.strictFacade&&o.exportNamesByVariable.get(c.namespace)[0],null,this,a||o)}else{const{node:o,resolution:a}=r,[l,c]=this.getDynamicImportStringAndAttributes(a,e,o);o.setExternalResolution("external",n,i,s,t,l,!1,c,this,null)}}setIdentifierRenderResolutions(){const{format:e,generatedCode:{symbols:t},interop:n,preserveModules:s,externalLiveBindings:i}=this.outputOptions;for(const e of this.orderedModules)for(const t of e.scope.variables.values())t.setRenderNames(null,null);const r=new Set;for(const t of this.getExportNames()){const n=this.exportsByName.get(t);"es"!==e&&"system"!==e&&n.isReassigned&&!n.isId?n.setRenderNames("exports",t):n instanceof Ao?r.add(n):n.setRenderNames(null,null)}for(const e of this.orderedModules)if(e.needsExportShim){this.needsExportsShim=!0;break}const o=new Set(od);this.needsExportsShim&&o.add(Vo),t&&o.add("Symbol"),Gu(this.orderedModules,this.getDependenciesToBeDeconflicted("es"!==e&&"system"!==e,"amd"===e||"umd"===e||"iife"===e,n),this.imports,o,e,n,s,i,this.chunkByModule,this.externalChunkByModule,r,this.exportNamesByVariable,this.accessedGlobalsByScope,this.includedNamespaces)}setImportMetaResolutions(e){const{accessedGlobalsByScope:t,includedNamespaces:n,orderedModules:s,outputOptions:{format:i}}=this;for(const r of s){for(const n of r.importMetas)n.setResolution(i,t,e);n.has(r)&&r.namespace.prepare(t)}}setUpChunkImportsAndExportsForModule(e){const t=new Set(e.includedImports);if(!this.outputOptions.preserveModules&&this.includedNamespaces.has(e))for(const n of e.getExportedVariablesByName().values())n.included&&t.add(n);for(let n of t){n instanceof Eo&&(n=n.getOriginalVariable()),n instanceof Ao&&(n=n.getBaseVariable());const t=this.chunkByModule.get(n.module);t!==this&&(this.imports.add(n),n.module instanceof Tu&&(this.checkCircularDependencyImport(n,e),n instanceof xo&&this.outputOptions.preserveModules||t.exports.add(n)))}(this.includedNamespaces.has(e)||e.info.isEntry&&!1!==e.preserveSignature||e.includedDynamicImporters.some(e=>this.chunkByModule.get(e)!==this))&&this.ensureReexportsAreAvailableForModule(e);for(const{node:{included:t,resolution:n}}of e.dynamicImports)t&&n instanceof Tu&&this.chunkByModule.get(n)===this&&!this.includedNamespaces.has(n)&&(this.includedNamespaces.add(n),this.ensureReexportsAreAvailableForModule(n))}}function ud(e){return dd(e)??St(e.id)}function dd(e){return e.chunkNames.find(({isUserDefined:e})=>e)?.name??e.chunkNames[0]?.name}function hd(e,t){const n={};for(const[s,i]of e){const e=new Set;if(i.imports)for(const{imported:t}of i.imports)e.add(t);if(i.reexports)for(const{imported:t}of i.reexports)e.add(t);n[t(s)]=[...e]}return n}const pd=/[#?]/,fd=e=>e.getFileName();function*md(e){for(const t of e)yield*t}function gd(e,t,n,s,i){const{manualChunkByModule:r,manualChunks:o}=function(e,t){const n=Object.create(null),s=[...e].sort(([e],[t])=>e.execIndex-t.execIndex);for(const[e,t]of s)(n[t]||=[]).push(e);const i=[],r=new Map;for(const[e,s]of Object.entries(n)){const n=s.filter(e=>e.isEmitted());if(0===n.length){t(bt,pn(e));continue}const o={alias:e,modules:n};i.push(o);for(const e of n)r.set(e,o)}return{manualChunkByModule:r,manualChunks:i}}(t,s),a=new Map;o.forEach((t,n)=>{a.set(t,e.length+n)});const{entriesAndManualChunksCount:l,dependentEntriesByModule:c,dynamicallyDependentEntriesByDynamicEntry:u,dynamicImportsByEntry:d,dynamicallyDependentEntriesByAwaitedDynamicEntry:h,awaitedDynamicImportsByEntry:p}=function(e,t,n,s){const i=new Set,r=new Set,o=new Map,a=t.map(e=>e.modules),l=new Set(e);for(const e of a)for(const t of e)l.add(t);const c=e.map(e=>[e]).concat(a),u=new Array(c.length),d=new Array(c.length),h=new Array(c.length),p=new Array(c.length);let f=0;for(const e of c){const t=new Set,s=new Set,a=new Set,m=new Set;u[f]=t,d[f]=s,h[f]=a,p[f]=m;const g=new Set(e);let y=!1;const b=new Set;for(const e of g){y||=e.hasTopLevelAwait(),ve(o,e,Ae).add(f);const s=n.get(e);if(s&&!b.has(s)){b.add(s);for(const e of s.modules)g.add(e)}for(const t of e.getDependenciesToBeIncluded())t instanceof Cs||g.add(t);for(const{node:{resolution:s}}of e.dynamicImports)if(s instanceof Tu&&s.includedDynamicImporters.length>0){if(l.has(s)){if(!i.has(s)){const e=n.get(s);if(!e)continue;a.add(e)}}else i.add(s),l.add(s),c.push([s]);t.add(s)}for(const s of e.implicitlyLoadedBefore)if(l.has(s)){const e=n.get(s);e&&(a.add(e),t.add(s))}else i.add(s),l.add(s),c.push([s])}if(y)for(const e of t){const t=n.get(e);t?m.add(t):r.add(e),s.add(e)}f++}const{awaitedDynamicEntries:m,awaitedDynamicImportsByEntry:g,dynamicEntries:y,dynamicImportsByEntry:b}=function(e,t,n,s,i,r,o,a){const l=new Map,c=new Set,u=new Set;for(const[n,i]of e.entries())for(const e of i)l.set(e,n),t.has(e)&&c.add(n),s.has(e)&&u.add(n);for(const e of r)for(const t of e)c.add(a.get(t));for(const e of o)for(const t of e)u.add(a.get(t));const d=bd(n,l),h=bd(i,l);return{awaitedDynamicEntries:u,awaitedDynamicImportsByEntry:h,dynamicEntries:c,dynamicImportsByEntry:d}}(c,i,u,r,d,h,p,s);return{awaitedDynamicImportsByEntry:g,dependentEntriesByModule:o,dynamicallyDependentEntriesByAwaitedDynamicEntry:Ed(xd(o,m,c,e=>e.includedTopLevelAwaitingDynamicImporters),g),dynamicallyDependentEntriesByDynamicEntry:xd(o,y,c,e=>e.includedDynamicImporters),dynamicImportsByEntry:b,entriesAndManualChunksCount:c.length}}(e,o,r,a),{modulesWithDependentEntries:f,topLevelAwaitingCycleSingletons:m}=function(e,t){const n=[],s=[];for(const[i,r]of e){const e=t.get(i)?.alias??null;null===e&&i.cycles.size>0&&i.includedTopLevelAwaitingDynamicImporters.size>0?s.push({alias:null,modules:[i]}):n.push({alias:e,dependentEntries:r,module:i})}return{modulesWithDependentEntries:n,topLevelAwaitingCycleSingletons:s}}(c,r),g=function(e,t){const n=yd(e,t),s=Object.create(null);for(const[t,{dependentEntries:i,module:r}]of e.entries()){const{alias:e,key:o}=n[t];(s[o]||={alias:e,dependentEntries:new Set(i),modules:[]}).modules.push(r)}return Object.values(s)}(f,i),y=function(e,t){const n=new Array(e).fill(0n);let s=1n;for(const{dependentEntries:e}of t){for(const t of e)n[t]|=s;s<<=1n}return n}(l,g),b=function(e,t,n,s){const i=Array.from({length:s},(e,n)=>t.has(n)?-1n:0n);for(const[s,r]of t){t.delete(s);const o=i[s];let a=o;for(const t of r)a&=e[t]|i[t];if(a!==o){i[s]=a;for(const e of n[s])ve(t,e,Ae).add(s)}}return i}(y,u,d,l),E=function(e,t,n,s){const i=new Array(s).fill(0n);for(const[s,r]of t){t.delete(s);const o=i[s];let a=o;for(const t of r)a|=e[t]|i[t];if(a!==o){i[s]=a;for(const e of n[s])ve(t,e,Ae).add(s)}}return i}(y,h,p,l);!function(e,t,n){const s=new Map;for(const[e,{alias:n}]of t.entries())null!==n&&s.set(n,1n<<BigInt(e));for(const[t,i]of e){const e=s.get(t.alias),r=n[i];void 0!==e&&(r&e)===e&&(n[i]=0n)}}(a,g,b),function(e,t,n){let s=1n;for(const{dependentEntries:i}of e){for(const e of i)(t[e]&s)===s&&0n===(n[e]&s)&&i.delete(e);s<<=1n}}(g,b,E);const{chunks:x,sideEffectAtoms:v,sizeByAtom:A}=function(e,t,n,s,i){const r=yd(e,i),o=Object.create(null),a=new Map,l=new Array(e.length);let c=0n,u=1n;for(const[i,{dependentEntries:d,modules:h}]of e.entries()){let e=-1n;for(const s of d)e&=t[s]|n[s];const{alias:p,key:f}=r[i],m=o[f]||={alias:p,containedAtoms:0n,correlatedAtoms:e,dependencies:new Set,dependentChunks:new Set,dependentEntries:new Set(d),modules:[],pure:!0,size:0};let g=0,y=!0;for(const e of h)a.set(e,m),e.isIncluded()&&(y&&=!e.hasEffects(),g+=s>1?e.estimateSize():1);y||(c|=u),l[i]=g,m.containedAtoms|=u,m.modules.push(...h),m.pure&&=y,m.size+=g,u<<=1n}const d=Object.values(o);return c|=function(e,t,n){const s=new Map;let i=0n;for(const r of e){const{dependencies:e,modules:o}=r;for(const a of o)for(const o of a.getDependenciesToBeIncluded())if(o instanceof Cs){if(o.info.moduleSideEffects){const e=ve(s,o,()=>{const e=n;return n<<=1n,i|=e,e});r.containedAtoms|=e,r.correlatedAtoms|=e}}else{const n=t.get(o);n&&n!==r&&(e.add(n),n.dependentChunks.add(r))}}return i}(d,a,u),{chunks:d,sideEffectAtoms:c,sizeByAtom:l}}(g,y,b,n,i);return[...m,...vd(x,n,v,A,s).map(({alias:e,modules:t})=>({alias:e,modules:t}))]}function yd(e,t){const n=new Array(e.length),s=t?null:new Map;for(const[t,{dependentEntries:i,alias:r}]of e.entries()){let e=0n;for(const t of i)e|=1n<<BigInt(t);const o=String(e);if(n[t]=o,s&&null!==r){const e=s.get(o);s.set(o,void 0===e||e===r?r:null)}}return e.map(({alias:e},t)=>{const i=e??s?.get(n[t])??null;return{alias:i,key:null===i?n[t]:`manual:${i}`}})}function bd(e,t){const n=new Array(e.length);let s=0;for(const i of e){const e=new Set;for(const n of i)e.add(t.get(n));n[s++]=e}return n}function Ed(e,t){for(const[n,s]of t.entries())for(const t of s)ve(e,t,Ae).add(n);return e}function xd(e,t,n,s){const i=new Map;for(const r of t){const t=ve(i,r,Ae),o=n[r];for(const n of o)for(const i of md([s(n),n.implicitlyLoadedAfter])){const n=e.get(i);if(n)for(const e of n)t.add(e)}}return i}function vd(e,t,n,s,i){Nu("optimize chunks",3);const r=function(e,t){const n=[],s=[],i=[];for(const r of e)null!==r.alias?i.push(r):(r.size<t?n:s).push(r);if(0===n.length)return null;return n.sort(Ad),s.sort(Ad),{big:new Set(s),fixed:new Set(i),small:new Set(n)}}(e,t);return r?(t>1&&i("info",In(e.length,r.small.size,"Initially")),function(e,t,n,s){const{small:i}=e;for(const r of i){const o=Sd(r,e,n,s,t<=1?1:1/0);if(o){const{containedAtoms:n,correlatedAtoms:s,modules:a,pure:l,size:c}=r;i.delete(r),wd(o,t,e).delete(o),o.modules.push(...a),o.size+=c,o.pure&&=l;const{dependencies:u,dependentChunks:d,dependentEntries:h}=o;o.correlatedAtoms&=s,o.containedAtoms|=n;for(const e of r.dependentEntries)h.add(e);for(const e of r.dependencies)u.add(e),e.dependentChunks.delete(r),e.dependentChunks.add(o);for(const e of r.dependentChunks)d.add(e),e.dependencies.delete(r),e.dependencies.add(o);u.delete(o),d.delete(o),wd(o,t,e).add(o)}}}(r,t,n,s),t>1&&i("info",In(r.small.size+r.big.size+r.fixed.size,r.small.size,"After merging chunks")),Ou("optimize chunks",3),[...r.small,...r.big,...r.fixed]):(Ou("optimize chunks",3),e)}function Ad({size:e},{size:t}){return e-t}function Sd(e,{big:t,small:n},s,i,r){let o=null;for(const a of md([n,t])){if(e===a)continue;const t=Pd(e,a,r,s,i);if(t<r){if(o=a,0===t)break;r=t}}return o}function Pd(e,t,n,s,i){const r=$d(e,t,n,s,i);return r<n?r+$d(t,e,n-r,s,i):1/0}function $d(e,t,n,s,i){const{correlatedAtoms:r}=t;let o=e.containedAtoms;const a=o&s;if((r&a)!==a)return 1/0;const l=new Set(e.dependencies);for(const{dependencies:e,containedAtoms:n}of l){o|=n;const i=n&s;if((r&i)!==i)return 1/0;for(const n of e){if(n===t)return 1/0;l.add(n)}}return function(e,t,n){let s=0,i=0,r=1n;const{length:o}=n;for(;i<o;i++)if((e&r)===r&&(s+=n[i]),r<<=1n,s>=t)return 1/0;return s}(o&~r,n,i)}function wd(e,t,n){return e.size<t?n.small:n.big}const Id=(e,t)=>e.execIndex>t.execIndex?1:-1;function Cd(e){e.sort(Id)}function kd(e){let t=0;const n=[],s=new Set,i=new Set,r=new Map,o=[],a=(e,t)=>{r.has(e)?s.has(e)||n.push(function(e,t,n){const s=Symbol(e.id),i=[e.id];let r=t;e.cycles.add(s);for(;r!==e;)r.cycles.add(s),i.push(r.id),r=n.get(r);return i.push(i[0]),i.reverse(),i}(e,t,r)):(r.set(e,t),l(e))},l=e=>{if(e instanceof Tu){for(const t of e.dependencies)a(t,e);for(const t of e.implicitlyLoadedBefore)i.add(t);for(const{node:{resolution:t,scope:n}}of e.dynamicImports)t instanceof Tu&&(n.context.usesTopLevelAwait?a(t,e):i.add(t));o.push(e)}e.execIndex=t++,s.add(e)};for(const t of e)r.has(t)||(r.set(t,null),l(t));for(const e of i)r.has(e)||(r.set(e,null),l(e));return{cyclePaths:n,orderedModules:o}}const Nd=(e,t)=>t?`(${e})`:e;class Od{constructor(e,t){this.isOriginal=!0,this.filename=e,this.content=t}traceSegment(e,t,n){return{column:t,line:e,name:n,source:this}}}class Rd{constructor(e,t){this.sources=t,this.names=e.names,this.mappings=e.mappings}traceMappings(){const e=[],t=new Map,n=[],s=[],i=new Map,r=[];for(const o of this.mappings){const a=[];for(const r of o){if(1===r.length)continue;const o=this.sources[r[1]];if(!o)continue;const l=o.traceSegment(r[2],r[3],5===r.length?this.names[r[4]]:"");if(l){const{column:o,line:c,name:u,source:{content:d,filename:h}}=l;let p=t.get(h);if(void 0===p)p=e.length,e.push(h),t.set(h,p),n[p]=d;else if(null==n[p])n[p]=d;else if(null!=d&&n[p]!==d)return Ut(Dn(h));const f=[r[0],p,c,o];if(u){let e=i.get(u);void 0===e&&(e=s.length,s.push(u),i.set(u,e)),f[4]=e}a.push(f)}}r.push(a)}return{mappings:r,names:s,sources:e,sourcesContent:n}}traceSegment(e,t,n){const s=this.mappings[e];if(!s)return null;let i=0;let r=s.length-1;for(;i<=r;){const e=i+r>>1;let o=s[e];if(o[0]!==t&&i===r){o=s[s[i][0]>t?Math.max(0,i-1):i]}if(o[0]===t||i===r){if(1==o.length)return null;const e=this.sources[o[1]];return e?e.traceSegment(o[2],o[3],5===o.length?this.names[o[4]]:n):null}o[0]>t?r=e-1:i=e+1}return null}}function Dd(e){return function(t,n){return n.missing?(e(bt,(s=n.plugin,{code:nn,message:`Sourcemap is likely to be incorrect: a plugin (${s}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:s,url:Ct("troubleshooting/#warning-sourcemap-is-likely-to-be-incorrect")})),new Rd({mappings:[],names:[]},[t])):new Rd(n,[t]);var s}}function Md(e,t,n,s,i){let r;if(n){const t=n.sources,s=n.sourcesContent||[],i=Z(e)||".",o=n.sourceRoot||".",a=t.map((e,t)=>new Od(ne(i,o,e),s[t]));r=new Rd(n,a)}else r=new Od(e,t);return s.reduce(i,r)}let _d;const Ld=e=>function(e){let t,n;try{const r=Gc.__wbindgen_add_to_stack_pointer(-16);Gc.xxhashBase64Url(r,kc(e));var s=Rc().getInt32(r+0,!0),i=Rc().getInt32(r+4,!0);return t=s,n=i,Dc(s,i)}finally{Gc.__wbindgen_add_to_stack_pointer(16),Gc.__wbindgen_export(t,n,1)}}(Bd(e)),Td={base36:e=>function(e){let t,n;try{const r=Gc.__wbindgen_add_to_stack_pointer(-16);Gc.xxhashBase36(r,kc(e));var s=Rc().getInt32(r+0,!0),i=Rc().getInt32(r+4,!0);return t=s,n=i,Dc(s,i)}finally{Gc.__wbindgen_add_to_stack_pointer(16),Gc.__wbindgen_export(t,n,1)}}(Bd(e)),base64:Ld,hex:e=>function(e){let t,n;try{const r=Gc.__wbindgen_add_to_stack_pointer(-16);Gc.xxhashBase16(r,kc(e));var s=Rc().getInt32(r+0,!0),i=Rc().getInt32(r+4,!0);return t=s,n=i,Dc(s,i)}finally{Gc.__wbindgen_add_to_stack_pointer(16),Gc.__wbindgen_export(t,n,1)}}(Bd(e))};function Bd(e){return"string"==typeof e?"undefined"==typeof Buffer?(_d??=new TextEncoder,_d.encode(e)):Buffer.from(e):e}let zd="sourceMa";async function Fd(e,t,n,s,i){Nu("render chunks",2),function(e){for(const t of e)t.facadeModule&&t.facadeModule.isUserDefinedEntryPoint&&t.getPreliminaryFileName()}(e);const r=await Promise.all(e.map(e=>e.render()));Ou("render chunks",2),Nu("transform chunks",2);const o=Td[s.hashCharacters],a=function(e){return Object.fromEntries(e.map(e=>{const t=e.getRenderedChunkInfo();return[t.fileName,t]}))}(e),{hashDependenciesByPlaceholder:l,initialHashesByPlaceholder:c,nonHashedChunksWithPlaceholders:u,placeholders:d,renderedChunksByPlaceholder:h,usedFileNames:p}=await async function(e,t,n,s,i,r,o){const a=[],l=new Map,c=new Map,u=new Map,d=new Set;for(const{preliminaryFileName:{hashPlaceholder:t}}of e)t&&d.add(t);const h=await Promise.all(e.map(async({chunk:e,preliminaryFileName:{fileName:i,hashPlaceholder:o},preliminarySourcemapFileName:a,magicString:l,usedModules:c})=>{const u={chunk:e,fileName:i,sourcemapFileName:a?.fileName??null,...await Vd(l,i,c,t,n,s,r)};return{hashAugmentation:o?s.hookReduceValueSync("augmentChunkHash","",[e.getRenderedChunkInfo()],(e,t)=>e+(t||"")):"",hashPlaceholder:o,preliminarySourcemapFileName:a,transformedChunk:u}})),p=new Set(o[nd]);for(const{transformedChunk:e,hashPlaceholder:t,preliminarySourcemapFileName:s,hashAugmentation:r}of h){const{map:o}=e,h=s?.hashPlaceholder;if(o&&h){const{transformedCode:e}=td(o.toString(),d);u.set(h,"inline"===n.sourcemap?i(e).slice(0,h.length):Ud(e,s.fileName,h,p,i))}t?(l.set(t,e),c.set(t,jd(e,n,i,d,u,r))):a.push(e)}return{hashDependenciesByPlaceholder:c,initialHashesByPlaceholder:u,nonHashedChunksWithPlaceholders:a,placeholders:d,renderedChunksByPlaceholder:l,usedFileNames:p}}(r,a,s,n,o,i,t),f=function(e,t,n,s,i,r,o){const a=new Map(n);for(const n of s){const{fileName:s}=e.get(n);let l="";const c=new Set([n]);for(const e of c){const{containedPlaceholders:n,contentHash:s}=t.get(e);l+=s;for(const e of n)c.add(e)}const u=Ud(l,s,n,r,o);i[ed(s,n,u)]=sd,a.set(n,u)}return a}(h,l,c,d,t,p,o);!function(e,t,n,s,i,r){for(const{chunk:s,code:o,fileName:a,sourcemapFileName:l,map:c}of e.values()){let e=Qu(o,t);const u=Qu(a,t);let d=null;c&&(r.sourcemapDebugIds&&(e+=Wd(e,c)),d=l?Qu(l,t):`${u}.map`,c.file=Qu(c.file??"",t),e+=Gd(d,c,i,r)),n[u]=s.finalizeChunk(e,c,d,t)}for(const{chunk:e,code:o,fileName:a,sourcemapFileName:l,map:c}of s){let s=t.size>0?Qu(o,t):o,u=null;c&&(r.sourcemapDebugIds&&(s+=Wd(s,c)),u=l?Qu(l,t):`${a}.map`,s+=Gd(u,c,i,r)),n[a]=e.finalizeChunk(s,c,u,t)}}(h,f,t,u,n,s),Ou("transform chunks",2)}async function Vd(e,t,n,s,i,r,o){let a=null;const l=[];let c=await r.hookReduceArg0("renderChunk",[e.toString(),s[t],i,{chunks:s}],(e,t,n)=>{if(null==t)return e;if("string"==typeof t&&(t={code:t,map:void 0}),null!==t.map){const e=Ac(t.map);l.push(e||{missing:!0,plugin:n.name})}return t.code});const{compact:u,dir:d,file:h,sourcemap:p,sourcemapExcludeSources:f,sourcemapFile:m,sourcemapPathTransform:g,sourcemapIgnoreList:y}=i;if(u||"\n"===c[c.length-1]||(c+="\n"),p){let s;Nu("sourcemaps",3),s=h?ne(m||h):d?ne(d,t):ne(t);a=function(e,t,n,s,i,r){const o=Dd(r),a=n.filter(e=>!e.excludeFromSourcemap).map(e=>Md(e.id,e.originalCode,e.originalSourcemap,e.sourcemapChain,o)),l=new Rd(t,a),c=s.reduce(o,l);let{sources:u,sourcesContent:d,names:h,mappings:p}=c.traceMappings();if(e){const t=Z(e);u=u.map(e=>te(t,e)),e=Y(e)}for(const e of n)vc(e.originalSourcemap,e.sourcemapChain);return new A({file:e,mappings:p,names:h,sources:u,sourcesContent:i?void 0:d})}(s,e.generateDecodedMap({}),n,l,f,o);for(let e=0;e<a.sources.length;++e){let t=a.sources[e];const n=`${s}.map`,i=y(t,n);"boolean"!=typeof i&&Ut(Ln("sourcemapIgnoreList function must return a boolean.")),i&&(void 0===a.x_google_ignoreList&&(a.x_google_ignoreList=[]),a.x_google_ignoreList.includes(e)||a.x_google_ignoreList.push(e)),g&&(t=g(t,n),"string"!=typeof t&&Ut(Ln("sourcemapPathTransform function must return a string."))),a.sources[e]=J(t)}Ou("sourcemaps",3)}return{code:c,map:a}}function jd({code:e,map:t,fileName:n,sourcemapFileName:s},i,r,o,a,l){const{containedPlaceholders:c,transformedCode:u}=td(e,o);let d=u;if(t&&"hidden"!==i.sourcemap){let e;if("inline"===i.sourcemap){const{containedPlaceholders:n,transformedCode:s}=td(t.toString(),o);e=n,d+=`//# ${zd}=data:application/json,${s}\n`}else{const{containedPlaceholders:r,transformedCode:l}=td(Qu(s??`${n}.map`,a),o);e=r,d+=Hd(l,t,i.sourcemap,i.sourcemapBaseUrl)}for(const t of e)c.add(t)}return l&&(d+=l),{containedPlaceholders:c,contentHash:r(d)}}function Ud(e,t,n,s,i){let r,o;do{o&&(e=o),o=i(e).slice(0,n.length),r=ed(t,n,o).toLowerCase()}while(s.has(r));return s.add(r),o}function Gd(e,t,n,{sourcemap:s,sourcemapBaseUrl:i}){return"inline"!==s&&n.emitFile({fileName:e,originalFileName:null,source:t.toString(),type:"asset"}),Hd(e,t,s,i)}function Hd(e,t,n,s){const i="inline"===n?t.toUrl():s?new URL(Y(e),s).toString():Y(e);return"hidden"===n?"":`//# ${zd}=${i}\n`}function Wd(e,t){const n=Td.hex(e),s=[n.slice(0,8),n.slice(8,12),"4"+n.slice(12,15),(3&parseInt(n.slice(15,16),16)|8).toString(16)+n.slice(17,20),n.slice(20,32)].join("-");return t.debugId=s,"//# debugId="+s+"\n"}zd+="ppingURL";class qd{constructor(e,t,n,s,i){this.outputOptions=e,this.unsetOptions=t,this.inputOptions=n,this.pluginDriver=s,this.graph=i,this.facadeChunkByModule=new Map,this.includedNamespaces=new Set}async generate(e){Nu("GENERATE",1);const t=Object.create(null),n=(e=>{const t=new Set;return new Proxy(e,{deleteProperty:(e,n)=>("string"==typeof n&&t.delete(n.toLowerCase()),Reflect.deleteProperty(e,n)),get:(e,n)=>n===nd?t:Reflect.get(e,n),set:(e,n,s)=>("string"==typeof n&&t.add(n.toLowerCase()),Reflect.set(e,n,s))})})(t);this.pluginDriver.setOutputBundle(n,this.outputOptions);try{Nu("initialize render",2),await this.pluginDriver.hookParallel("renderStart",[this.outputOptions,this.inputOptions]),Ou("initialize render",2),Nu("generate chunks",2);const e=(()=>{let e=0;return(t,n)=>{if(n>21)return Ut(Ln(`Hashes cannot be longer than 21 characters, received ${n}. Check the "${t}" option.`));const s=`${Ju}${ut(++e).padStart(n-5,"0")}${Yu}`;return s.length>n?Ut(Ln(`To generate hashes for this number of chunks (currently ${e}), you need a minimum hash size of ${s.length}, received ${n}. Check the "${t}" option.`)):s}})(),t=await this.generateChunks(n,e);t.length>1&&function(e,t){if("umd"===e.format||"iife"===e.format)return Ut(An("output.format",Mt,"UMD and IIFE output formats are not supported for code-splitting builds",e.format));if("string"==typeof e.file)return Ut(An("output.file",Rt,'when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option'));if(e.sourcemapFile)return Ut(An("output.sourcemapFile",Ft,'"output.sourcemapFile" is only supported for single-file builds'));!e.amd.autoId&&e.amd.id&&t(bt,An("output.amd.id",Ot,'this option is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath" instead'))}(this.outputOptions,this.inputOptions.onLog),this.pluginDriver.setChunkInformation(this.facadeChunkByModule);for(const e of t)e.generateExports(),e.inlineTransitiveImports();Ou("generate chunks",2),await Fd(t,n,this.pluginDriver,this.outputOptions,this.inputOptions.onLog)}catch(e){throw await this.pluginDriver.hookParallel("renderError",[e]),e}return(e=>{const t=new Set,n=Object.values(e);for(const e of n)"asset"===e.type&&e.needsCodeReference&&t.add(e.fileName);for(const e of n)if("chunk"===e.type)for(const n of e.referencedFiles)t.has(n)&&t.delete(n);for(const n of t)delete e[n]})(n),Nu("generate bundle",2),await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,n,e]),this.finaliseAssets(n),function(e){for(const[t,n]of Object.entries(e)){if(Xd(t))return Ut(fn(t));if("placeholder"!==n.type){const{fileName:e}=n;if(e!==t&&Xd(e))return Ut(fn(e))}}}(n),Ou("generate bundle",2),Ou("GENERATE",1),t}async addManualChunks(e){const t=new Map,n=await Promise.all(Object.entries(e).map(async([e,t])=>({alias:e,entries:await this.graph.moduleLoader.addAdditionalModules(t,!0)})));for(const{alias:e,entries:s}of n)for(const n of s)Kd(e,n,t);return t}assignManualChunks(e){const t=new Map,n={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(const s of this.graph.modulesById.values())if(s instanceof Tu){const i=e(s.id,n);"string"==typeof i&&Kd(i,s,t)}return t}finaliseAssets(e){if(this.outputOptions.validate)for(const t of Object.values(e))if("code"in t)try{yu(t.code,{jsx:!1!==this.inputOptions.jsx})}catch(e){this.inputOptions.onLog(bt,un(t,e))}this.pluginDriver.finaliseAssets()}async generateChunks(e,t){const{experimentalMinChunkSize:n,inlineDynamicImports:s,manualChunks:i,preserveModules:r,onlyExplicitManualChunks:o}=this.outputOptions,a="object"==typeof i?await this.addManualChunks(i):this.assignManualChunks(i),l=function({compact:e,generatedCode:{arrowFunctions:t,constBindings:n,objectShorthand:s,reservedNamesAsProps:i}}){const{_:r,n:o,s:a}=e?{_:"",n:"",s:""}:{_:" ",n:"\n",s:";"},l=n?"const":"var",c=(e,{isAsync:t,name:n})=>`${t?"async ":""}function${n?` ${n}`:""}${r}(${e.join(`,${r}`)})${r}`,u=t?(e,{isAsync:t,name:n})=>{const s=1===e.length;return`${n?`${l} ${n}${r}=${r}`:""}${t?`async${s?" ":r}`:""}${s?e[0]:`(${e.join(`,${r}`)})`}${r}=>${r}`}:c,d=(e,{functionReturn:n,lineBreakIndent:s,name:i})=>[`${u(e,{isAsync:!1,name:i})}${t?s?`${o}${s.base}${s.t}`:"":`{${s?`${o}${s.base}${s.t}`:r}${n?"return ":""}`}`,t?`${i?";":""}${s?`${o}${s.base}`:""}`:`${a}${s?`${o}${s.base}`:r}}`],h=i?e=>Ps.test(e):e=>!ct.has(e)&&Ps.test(e);return{_:r,cnst:l,getDirectReturnFunction:d,getDirectReturnIifeLeft:(e,n,{needsArrowReturnParens:s,needsWrappedFunction:i})=>{const[r,o]=d(e,{functionReturn:!0,lineBreakIndent:null,name:null});return`${Nd(`${r}${Nd(n,t&&s)}${o}`,t||i)}(`},getFunctionIntro:u,getNonArrowFunctionIntro:c,getObject(e,{lineBreakIndent:t}){const n=t?`${o}${t.base}${t.t}`:r;return`{${e.map(([e,t])=>{if(null===e)return`${n}${t}`;const i=ws(e);return e===t&&s&&e===i?n+e:`${n}${i}:${r}${t}`}).join(",")}${0===e.length?"":t?`${o}${t.base}`:r}}`},getPropertyAccess:e=>h(e)?`.${e}`:`[${JSON.stringify(e)}]`,n:o,s:a}}(this.outputOptions),c=function(e){const t=[];for(const n of e.values())n instanceof Tu&&n.isEmitted()&&t.push(n);return t}(this.graph.modulesById),u=function(e){if(0===e.length)return"/";if(1===e.length)return Z(e[0]);const t=e.slice(1).reduce((e,t)=>{const n=t.split(/\/+|\\+/);let s;for(s=0;e[s]===n[s]&&s<Math.min(e.length,n.length);s++);return e.slice(0,s)},e[0].split(/\/+|\\+/));return t.length>1?t.join("/"):"/"}(function(e,t){const n=[];for(const s of e)(s.info.isEntry||t)&&K(s.id)&&n.push(s.id);return n}(c,r)),d=function(e,t,n){const s=new Map;for(const i of e.values())i instanceof Cs&&s.set(i,new So(i,t,n));return s}(this.graph.modulesById,this.outputOptions,u),h=s?[{alias:null,modules:c}]:r?c.map(e=>({alias:null,modules:[e]})):gd(this.graph.entryModules,a,n,this.inputOptions.onLog,o),p=new Array(h.length),f=new Map;let m=0;for(const{alias:n,modules:s}of h){Cd(s);const i=new cd(s,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,f,d,this.facadeChunkByModule,this.includedNamespaces,n,t,e,u,l);p[m++]=i}for(const e of p)e.link();s||r||this.checkCircularChunks(p,o);const g=[];for(const e of p)g.push(...e.generateFacades());return[...p,...g]}checkCircularChunks(e,t){const n=new Set,s=new Map,i=(e,i)=>{if(s.has(e)){if(!n.has(e)){const n=[e.getChunkName()],r=[e];let o=i;for(;o!==e&&o;)n.push(o.getChunkName()),r.push(o),o=s.get(o);const a=r.filter(e=>e.isManualChunk).map(e=>e.getChunkName()),l=r.find(e=>!e.isManualChunk)?.getChunkName();n.push(n[0]),n.reverse(),this.inputOptions.onLog(bt,function(e,t,n,s){return{code:"CIRCULAR_CHUNK",ids:e,message:0===t.length?`Circular chunk: ${e.join(" -> ")}.`:`Circular chunk: ${e.join(" -> ")}. ${void 0===n?"Please adjust the manual chunk logic for these chunks.":s?`Please consider disabling the "output.onlyExplicitManualChunks" option, as enabling it causes modules located between the modules included in the manual chunk "${t[0]}" to be extracted into the separate chunk "${n}".`:"Please adjust the manual chunks or the module structure."}`}}(n,a,l,t))}}else s.set(e,i),r(e)},r=e=>{for(const t of e.dependencies)t instanceof cd&&i(t,e);n.add(e)};for(const t of e)s.has(t)||r(t)}}function Kd(e,t,n){const s=n.get(t);if("string"==typeof s&&s!==e)return Ut((i=t.id,r=e,o=s,{code:"INVALID_CHUNK",message:`Cannot assign "${Pt(i)}" to the "${r}" chunk as it is already in the "${o}" chunk.`}));var i,r,o;n.set(t,e)}function Xd(e){const t=function(...e){const t=e.filter(Boolean).join("/");if(""===t)return".";const n=H.test(t[0]),s=(n?"/":"")+(ee(t.split(H),n).join("/")||(n?"":"."));return q.test(t)&&!s.endsWith("/")?s+"/":s}(e).replaceAll("\\","/");return".."===t||t.startsWith("../")||"."===t||K(t)}class Jd extends hs{constructor(){super(),this.parent=null,this.variables.set("undefined",new bo)}findVariable(e){let t=this.variables.get(e);return t||(t=new Vi(e),this.variables.set(e,t)),t}}const Yd=(e,t,n=th)=>{const{onwarn:s,onLog:i}=e,r=Zd(n,s);if(i){const e=vt[t];return(t,n)=>i(t,Qd(n),(t,n)=>{if("error"===t)return Ut(eh(n));vt[t]>=e&&r(t,eh(n))})}return r},Zd=(e,t)=>t?(n,s)=>{n===bt?t(Qd(s),t=>e(bt,eh(t))):e(n,s)}:e,Qd=e=>(Object.defineProperty(e,"toString",{value:()=>e.message,writable:!0}),e),eh=e=>"string"==typeof e?{message:e}:"function"==typeof e?eh(e()):e,th=(e,{message:t})=>{switch(e){case bt:return console.warn(t);case xt:return console.debug(t);default:return console.info(t)}};function nh(e,t,n,s,i=/$./){const r=new Set(t),o=Object.keys(e).filter(e=>!(r.has(e)||i.test(e)));o.length>0&&s(bt,function(e,t,n){return{code:"UNKNOWN_OPTION",message:`Unknown ${e}: ${t.join(", ")}. Allowed options: ${n.join(", ")}`}}(n,o,[...r].sort()))}const sh={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:Ee,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,manualPureFunctions:Ee,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:Ee,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},ih={preserve:{factory:null,fragment:null,importSource:null,mode:"preserve"},"preserve-react":{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"preserve"},react:{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"classic"},"react-jsx":{factory:"React.createElement",importSource:"react",jsxImportSource:"react/jsx-runtime",mode:"automatic"}},rh={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}},oh=(e,t,n,s,i)=>{const r=e?.preset;if(r){const i=t[r];if(i)return{...i,...e};Ut(An(`${n}.preset`,s,`valid values are ${At(Object.keys(t))}`,r))}return((e,t,n,s)=>i=>{if("string"==typeof i){const r=e[i];if(r)return r;Ut(An(t,n,`valid values are ${s}${At(Object.keys(e))}. You can also supply an object for more fine-grained control`,i))}return(e=>e&&"object"==typeof e?e:{})(i)})(t,n,s,i)(e)},ah=async e=>(await async function(e){do{e=(await Promise.all(e)).flat(1/0)}while(e.some(e=>e?.then));return e}([e])).filter(Boolean);function lh(e,t,n,s,i){return vt[e]<vt[i]?Ns:(i,r)=>{null!=r&&n(bt,{code:"INVALID_LOG_POSITION",message:`Plugin "${s}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}),(i=eh(i)).code&&!i.pluginCode&&(i.pluginCode=i.code),i.code=t,i.plugin=s,n(e,i)}}const ch="at position ",uh="at output position ";const dh={delete:()=>!1,get(){},has:()=>!1,set(){}};function hh(e){return e.startsWith(ch)||e.startsWith(uh)?Ut({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):Ut({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${e} 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).`})}const ph=e;function fh(e,t,n,s){const i=wc(e),r=!!t&&Object.keys(t).length>0;return"string"==typeof e&&!i.attributes&&r?(Tn('The "importerAttributes" option is deprecated. Provide a UniqueModuleId for "importer" instead.',"plugin-development/#this-resolve",!0,s,n),wc({attributes:t,rawId:e})):i}function mh(e,t,n,s,i,r){const{logLevel:o,onLog:a}=s;let l,c=!0;if("string"!=typeof e.cacheKey&&(e.name.startsWith(ch)||e.name.startsWith(uh)||r.has(e.name)?c=!1:r.add(e.name)),t)if(c){const n=e.cacheKey||e.name;d=t[n]||(t[n]=Object.create(null)),l={delete:e=>delete d[e],get(e){const t=d[e];if(t)return t[0]=0,t[1]},has(e){const t=d[e];return!!t&&(t[0]=0,!0)},set(e,t){d[e]=[0,t]}}}else u=e.name,l={delete:()=>hh(u),get:()=>hh(u),has:()=>hh(u),set:()=>hh(u)};else l=dh;var u,d;return{addWatchFile(e){n.watchFiles[e]=!0},cache:l,debug:lh(xt,"PLUGIN_LOG",a,e.name,o),emitFile:i.emitFile.bind(i),error:t=>Ut(Rn(eh(t),e.name)),fs:s.fs,getFileName:i.getFileName,getModuleIds:()=>n.modulesById.keys(),getModuleInfo:n.getModuleInfo,getWatchFiles:()=>Object.keys(n.watchFiles),info:lh(Et,"PLUGIN_LOG",a,e.name,o),load:e=>n.moduleLoader.preloadModule({...e,...wc(e.id)}),meta:{rollupVersion:ph,watchMode:n.watchMode},parse:yu,parseAndWalk:fu,resolve(t,i,{attributes:r,custom:o,importerAttributes:a,isEntry:l,skipSelf:c}=ye){c??=!0;const{id:u,attributes:d,rawId:h}=i?fh(i,a,e.name,s):ye;return n.moduleLoader.resolveId(t,u,o,l,r||be,d||be,h,c?[{importer:u,plugin:e,source:t}]:null)},setAssetSource:i.setAssetSource,warn:lh(bt,"PLUGIN_WARNING",a,e.name,o)}}async function gh(e,t,n,s,i,r,o,a,l,c,u){const d=await function(e,t,n,s,i,r,o,a,l,c,u){let d=null,h=null;if(i){d=new Set;for(const n of i)e===n.source&&t===n.importer&&d.add(n.plugin);h=(e,t)=>({...e,resolve:(e,n,{attributes:r,custom:o,importerAttributes:a,isEntry:l,skipSelf:c}=ye)=>{c??=!0;const{id:d,attributes:h,rawId:p}=n?fh(n,a,t.name,u):ye;return c&&-1!==i.findIndex(n=>n.plugin===t&&n.source===e&&n.importer===d)?Promise.resolve(null):s(e,d,o,l,r||be,h||be,p,c?[...i,{importer:d,plugin:t,source:e}]:i)}})}return n.hookFirstAndGetPlugin("resolveId",[e,t,{attributes:a,custom:r,importerAttributes:l||be,importerRawId:c,isEntry:o}],h,d)}(e,t,n,s,i,r,o,a,l,c,u);if(null!=d){const[e,t]=d;return"string"==typeof e?{id:e,resolvedBy:t.name}:"object"==typeof e?{...e,resolvedBy:e.resolvedBy||t.name}:e}return void 0===t||K(e)||"."===e[0]?async function(e,t,n){return await yh(e,t,n)??await yh(e+".mjs",t,n)??await yh(e+".js",t,n)}(t?ne(Z(t),e):ne(e),u.preserveSymlinks,u.fs):null}async function yh(e,t,n){try{const s=await n.lstat(e);if(!t&&s.isSymbolicLink())return await yh(await n.realpath(e),t,n);if(t&&s.isSymbolicLink()||s.isFile()){const t=Y(e);if((await n.readdir(Z(e))).includes(t))return e}}catch{}}function bh(e){return 65279===e.charCodeAt(0)?bh(e.slice(1)):e}async function Eh(e,t,n,s){const i=t.id,r=[];let o=null===e.map?null:Ac(e.map);const a=e.code;let l=e.ast;const c=[],u=[];let d=!1;const h=()=>d=!0;let p="",f=e.code;const m=e=>(t,n)=>{t=eh(t),n&&Ht(t,n,f,i),t.id=i,t.hook="transform",e(t)};let g;try{g=await n.hookReduceArg0("transform",[f,i,{attributes:t.info.attributes,rawId:t.info.rawId}],function(e,n,i){let o,a;if("string"==typeof n)o=n;else{if(!n||"object"!=typeof n)return e;if(t.updateOptions(n),null==n.code)return(n.map||n.ast)&&s.onLog(bt,function(e){return{code:"NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",message:`The plugin "${e}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}(i.name)),e;n.attributes&&Tn('Returning attributes from the "transform" hook is deprecated.',"plugin-development/#transform",!0,s),({code:o,map:a,ast:l}=n)}return null!==a&&r.push(Ac("string"==typeof a?JSON.parse(a):a)||{missing:!0,plugin:i.name}),f=o,o},(e,t)=>{return p=t.name,{...e,addWatchFile(t){c.push(t),e.addWatchFile(t)},cache:d?e.cache:(l=e.cache,g=h,{delete:e=>(g(),l.delete(e)),get:e=>(g(),l.get(e)),has:e=>(g(),l.has(e)),set:(e,t)=>(g(),l.set(e,t))}),debug:m(e.debug),emitFile:e=>(u.push(e),n.emitFile(e)),error:(t,n)=>("string"==typeof t&&(t={message:t}),n&&Ht(t,n,f,i),t.id=i,t.hook="transform",e.error(t)),getCombinedSourcemap(){const e=function(e,t,n,s,i){return 0===s.length?n:Ac({version:3,...Md(e,t,n,s,Dd(i)).traceMappings()})}(i,a,o,r,s.onLog);if(!e){return new z(a).generateMap({hires:!0,includeContent:!0,source:i})}return o!==e&&(o=e,r.length=0),new A({...e,sourcesContent:e.sourcesContent})},info:m(e.info),setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn:m(e.warn)};var l,g})}catch(e){return Ut(Rn(e,p,{hook:"transform",id:i}))}!d&&u.length>0&&(t.transformFiles=u);const y=l?eu(l):await async function(e,t,n){return Kc(Ic(e,t,n))}(g,!1,!1!==s.jsx);return{astBuffer:y,code:g,customTransformCache:d,originalCode:a,originalSourcemap:o,safeVariableNames:null,sourcemapChain:r,transformDependencies:c}}const xh="resolveDependencies";class vh{constructor(e,t,n,s){this.graph=e,this.modulesById=t,this.options=n,this.pluginDriver=s,this.implicitEntryModules=new Set,this.sortedEntryModules=[],this.entryModules=new Set,this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.resolveId=async(e,t,n,s,i,r,o,a=null)=>this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(e,t,!1,{attributes:i,importerAttributes:r,importerRawId:o})&&await gh(e,t,this.pluginDriver,this.resolveId,a,n,"boolean"==typeof s?s:!t,i,r,o,this.options),t,e,i,r,o),i),this.hasModuleSideEffects=n.treeshake?n.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(e,t){const n=this.extendLoadModulesPromise(Promise.all(e.map(e=>this.loadEntryModule(e,!1,void 0,null,t))));return await this.awaitLoadModulesPromise(),n}async addEntryModules(e,t){const n=await this.extendLoadModulesPromise(Promise.all(e.map(({id:e,importer:t,attributes:n})=>this.loadEntryModule(e,!0,t,null,void 0,n))).then(n=>{let s=!1;for(const[i,r]of n.entries())r.isUserDefinedEntryPoint=r.isUserDefinedEntryPoint||t,Sh(r,e[i],t),this.entryModules.has(r)||(this.sortedEntryModules.push(r),this.entryModules.add(r),s=!0);return s&&this.sortedEntryModules.sort((e,t)=>e.id>t.id?1:-1),n}));return await this.awaitLoadModulesPromise(),{entryModules:this.sortedEntryModules,implicitEntryModules:[...this.implicitEntryModules],newEntryModules:n}}async emitChunk({fileName:e,id:t,importer:n,name:s,implicitlyLoadedAfterOneOf:i,preserveSignature:r,attributes:o}){const a={attributes:o,fileName:e||null,id:t,importer:n&&$c(n),name:s||null},l=i?await this.addEntryWithImplicitDependants(a,i):(await this.addEntryModules([a],!1)).newEntryModules[0];return null!=r&&(l.preserveSignature=r),l}async preloadModule(e){return(await this.fetchModule({...this.getResolvedIdWithDefaults(e,be),rawId:e.rawId},void 0,!1,!e.resolveDependencies||xh)).info}addEntryWithImplicitDependants(e,t){return this.extendLoadModulesPromise(this.loadEntryModule(e.id,!1,e.importer,null).then(async n=>{if(Sh(n,e,!1),!n.info.isEntry){const s=await Promise.all(t.map(t=>{const s=wc(t);return this.loadEntryModule(s.id,!1,e.importer,n.id,void 0,s.attributes)}));if(!n.info.isEntry){this.implicitEntryModules.add(n);for(const e of s)n.implicitlyLoadedAfter.add(e);for(const e of n.implicitlyLoadedAfter)e.implicitlyLoadedBefore.add(n)}}return n}))}async addModuleSource(e,t,n){let s;try{s=await this.graph.fileOperationQueue.run(async()=>{const t=await this.pluginDriver.hookFirst("load",[e,{attributes:n.info.attributes,rawId:n.info.rawId}]);return null!==t?("object"==typeof t&&t.attributes&&Tn('Returning attributes from the "load" hook is deprecated.',"plugin-development/#load",!0,this.options),t):(this.graph.watchFiles[n.info.rawId]=!0,await this.options.fs.readFile(n.info.rawId,{encoding:"utf8"}))})}catch(n){let s=`Could not load ${e}`;throw t&&(s+=` (imported by ${Pt(t)})`),s+=`: ${n.message}`,n.message=s,n}const i="string"==typeof s?{code:s}:null!=s&&"object"==typeof s&&"string"==typeof s.code?s:Ut(function(e){return{code:"BAD_LOADER",message:`Error loading "${Pt(e)}": plugin load hook should return a string, a { code, map } object, or nothing/null.`}}(e));i.code=bh(i.code);const r=this.graph.cachedModules.get(e);if(r&&!r.customTransformCache&&r.originalCode===i.code){const e={meta:{...n.info.meta},moduleSideEffects:n.info.moduleSideEffects,syntheticNamedExports:n.info.syntheticNamedExports};if(n.updateOptions(r),!await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:gu(r.astBuffer),attributes:r.attributes,code:r.code,id:r.id,meta:r.meta,moduleSideEffects:r.moduleSideEffects,rawId:r.rawId,resolvedSources:r.resolvedIds,syntheticNamedExports:r.syntheticNamedExports}])){if(r.transformFiles)for(const e of r.transformFiles)this.pluginDriver.emitFile(e);return void await n.setSource(r)}n.updateOptions(e,{replaceExistingMeta:!0})}n.updateOptions(i),await n.setSource(await Eh(i,n,this.pluginDriver,this.options))}async awaitLoadModulesPromise(){let e;do{e=this.latestLoadModulesPromise,await e}while(e!==this.latestLoadModulesPromise)}extendLoadModulesPromise(e){return this.latestLoadModulesPromise=Promise.all([e,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),e}async fetchDynamicDependencies(e,t){const n=await Promise.all(t.map(t=>t.then(async([{argument:t,node:n},s])=>null===s?null:"string"==typeof s?(n.resolution=s,null):"source"!==n.phase||s.external?n.resolution=await this.fetchResolvedDependency(Pt(s.id),e.id,s):Ut(wn("string"==typeof t?t:Pt(s.id),e.id)))));for(const t of n)t&&(e.dynamicDependencies.add(t),t.dynamicImporters.push(e.id))}async fetchModule({attributes:e,id:t,rawId:n,meta:s,moduleSideEffects:i,syntheticNamedExports:r},o,a,l){const c=this.modulesById.get(t);if(c instanceof Tu)return await this.handleExistingModule(c,a,l),c;if(c instanceof Cs)return Ut({code:"EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES",message:`${c.id} is resolved as a module now, but it was an external module before. Please check whether there are conflicts in your Rollup options "external" and "manualChunks", manualChunks cannot include external modules.`});const u=new Tu(this.graph,t,n,this.options,a,i,r,s,e);this.modulesById.set(t,u);const d=this.addModuleSource(t,o,u).then(()=>[this.getResolveStaticDependencyPromises(u),this.getResolveDynamicImportPromises(u),h]),h=$h(d).then(()=>this.pluginDriver.hookParallel("moduleParsed",[u.info]));h.catch(()=>{}),this.moduleLoadPromises.set(u,d);const p=await d;return l?l===xh&&await h:await this.fetchModuleDependencies(u,...p),u}async fetchModuleDependencies(e,t,n,s){this.modulesWithLoadedDependencies.has(e)||(this.modulesWithLoadedDependencies.add(e),await Promise.all([this.fetchStaticDependencies(e,t),this.fetchDynamicDependencies(e,n)]),e.linkImports(),await s)}fetchResolvedDependency(e,t,n){if(n.external){const{attributes:s,external:i,id:r,rawId:o,moduleSideEffects:a,meta:l}=n;let c=this.modulesById.get(r);if(c){if(!(c instanceof Cs))return Ut(function(e,t){return{code:"INVALID_EXTERNAL_ID",message:`"${e}" is imported as an external by "${Pt(t)}", but is already an existing non-external module id.`}}(e,t))}else c=new Cs(this.options,r,o,a,l,"absolute"!==i&&K(r),s),this.modulesById.set(r,c);return Promise.resolve(c)}return this.fetchModule(n,t,!1,!1)}async fetchStaticDependencies(e,t){for(const n of await Promise.all(t.map(t=>t.then(([t,n])=>e.sourcePhaseSources.has(t)&&!n.external?Ut(wn(t,e.id)):this.fetchResolvedDependency(t,e.id,n)))))e.dependencies.add(n),n.importers.push(e.id);if(!this.options.treeshake||"no-treeshake"===e.info.moduleSideEffects)for(const t of e.dependencies)t instanceof Tu&&(t.importedFromNotTreeshaken=!0)}getNormalizedResolvedIdWithoutDefaults(e,t,n,s,i,r){const{makeAbsoluteExternalsRelative:o}=this.options;if(e){if("object"==typeof e){const a=e.external||this.options.external(e.id,t,!0,{attributes:e.attributes||s,importerAttributes:i,importerRawId:r});return{...e,external:a&&("relative"===a||!K(e.id)||!0===a&&Ph(e.id,n,o)||"absolute")}}const a=this.options.external(e,t,!0,{attributes:s,importerAttributes:i,importerRawId:r});return{external:a&&(Ph(e,n,o)||"absolute"),id:a&&o?Ah(e,t):e}}const a=o?Ah(n,t):n;return!1===e||this.options.external(a,t,!0,{attributes:s,importerAttributes:i,importerRawId:r})?{external:Ph(a,n,o)||"absolute",id:a}:null}getResolveDynamicImportPromises(e){return e.dynamicImports.map(async t=>{const n=await this.resolveDynamicImport(e,t.argument,e.id,Eu(t.node));return n&&"string"!=typeof n?(t.node.shouldIncludeDynamicAttributes=!!n.external,t.id=n.id,[t,n]):(t.node.shouldIncludeDynamicAttributes=!0,[t,n])})}getResolveStaticDependencyPromises(e){return Array.from(e.sourcesWithAttributesList).map(([e,t])=>t.map(t=>[e,t])).flat().map(async([t,n])=>{const s=Pc(t,n),i=e.resolvedIds[s];if(i)return[t,i];const r=this.toModuleResolvedId(this.handleInvalidResolvedId(await this.resolveId(t,e.id,be,!1,n,e.info.attributes,e.info.rawId),t,e.id,n));return e.resolvedIds[s]=r,[t,r]})}getResolvedIdWithDefaults(e,t){if(!e)return null;const n=e.external||!1;return{attributes:e.attributes||t,external:n,id:e.id,meta:e.meta||{},moduleSideEffects:e.moduleSideEffects??this.hasModuleSideEffects(e.id,!!n),resolvedBy:e.resolvedBy??"rollup",syntheticNamedExports:e.syntheticNamedExports??!1}}async handleExistingModule(e,t,n){const s=this.moduleLoadPromises.get(e);if(n)return n===xh?$h(s):s;if(t){e.info.isEntry=!0,this.implicitEntryModules.delete(e);for(const t of e.implicitlyLoadedAfter)t.implicitlyLoadedBefore.delete(e);e.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(e,...await s)}handleInvalidResolvedId(e,t,n,s){return null===e?X(t)?Ut(function(e,t){return{code:on,exporter:e,id:t,message:`Could not resolve "${e}" from "${Pt(t)}"`}}(t,n)):(this.options.onLog(bt,function(e,t){return{code:on,exporter:e,id:t,message:`"${e}" is imported by "${Pt(t)}", but could not be resolved – treating it as an external dependency.`,url:Ct("troubleshooting/#warning-treating-module-as-external-dependency")}}(t,n)),{attributes:s,external:!0,id:t,meta:{},moduleSideEffects:this.hasModuleSideEffects(t,!0),resolvedBy:"rollup",syntheticNamedExports:!1}):(e.external&&e.syntheticNamedExports&&this.options.onLog(bt,function(e,t){return{code:"EXTERNAL_SYNTHETIC_EXPORTS",exporter:e,message:`External "${e}" cannot have "syntheticNamedExports" enabled (imported by "${Pt(t)}").`}}(t,n)),e)}async loadEntryModule(e,t,n,s,i=!1,r=be){const o=s?$c(s):null,{attributes:a,rawId:l,id:c}=n?wc(n):ye,u=await gh(e,c,this.pluginDriver,this.resolveId,null,be,!0,r,a,l,this.options);if(null==u)return Ut(null===o?function(e){return{code:rn,message:`Could not resolve entry module "${Pt(e)}".`}}(e):function(e,t){return{code:Qt,message:`Module "${Pt(e)}" that should be implicitly loaded before "${Pt(t)}" could not be resolved.`}}(e,o));const d="object"==typeof u&&u.external;return!1===u||d?Ut(null===o?d&&i?{code:"EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS",message:`"${e}" cannot be included in manualChunks because it is resolved as an external module by the "external" option or plugins.`}:function(e){return{code:rn,message:`Entry module "${Pt(e)}" cannot be external.`}}(e):function(e,t){return{code:Qt,message:`Module "${Pt(e)}" that should be implicitly loaded before "${Pt(t)}" cannot be external.`}}(e,o)):this.fetchModule(this.toModuleResolvedId(this.getResolvedIdWithDefaults("object"==typeof u?u:{id:u},r)),void 0,t,!1)}toModuleResolvedId(e){const{id:t,attributes:n}=e;return{...e,id:Pc(t,n),rawId:t}}async resolveDynamicImport(e,t,n,s){const i=await this.pluginDriver.hookFirst("resolveDynamicImport",[t,n,{attributes:s,importerAttributes:e.info.attributes,importerRawId:e.info.rawId}]);if("string"!=typeof t)return"string"==typeof i?i:i?this.toModuleResolvedId(this.getResolvedIdWithDefaults(i,s)):null;if(null==i){const n=Pc(t,s),i=e.resolvedIds[n];if(i)return i;const r=this.handleInvalidResolvedId(await this.resolveId(t,e.id,be,!1,s,e.info.attributes,e.info.rawId),t,e.id,s);return e.resolvedIds[n]=this.toModuleResolvedId(r),e.resolvedIds[n]}return this.toModuleResolvedId(this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(i,n,t,s,e.info.attributes,e.info.rawId),s),t,n,s))}}function Ah(e,t){return X(e)?t?ne(t,"..",e):ne(e):e}function Sh(e,{fileName:t,name:n},s){null!==t?e.chunkFileNames.add(t):null!==n&&(e.chunkNames.push({isUserDefined:s,name:n}),e.chunkNames.sort((e,t)=>e.name>t.name?1:-1))}function Ph(e,t,n){return!0===n||"ifRelativeSource"===n&&X(t)||!K(e)}async function $h(e){const[t,n]=await e;return Promise.all([...t,...n])}function wh(e,t,n,s,i,r,o,a,l){const c=o.sanitizeFileName(e||"asset");return rd(id("function"==typeof o.assetFileNames?o.assetFileNames({get name(){return Tn('Accessing the "name" property of emitted assets when generating the file name is deprecated. Use the "names" property instead.',jt,!1,l),e},names:t,get originalFileName(){return Tn('Accessing the "originalFileName" property of emitted assets when generating the file name is deprecated. Use the "originalFileNames" property instead.',jt,!1,l),s},originalFileNames:i,source:n,type:"asset"}):o.assetFileNames,"output.assetFileNames",{ext:()=>Q(c).slice(1),extname:()=>Q(c),hash:e=>r.slice(0,Math.min(Math.max(0,e||8),21)),name:()=>c.slice(0,Math.max(0,c.length-Q(c).length))}),a)}function Ih(e,{bundle:t},n){t[nd].has(e.toLowerCase())?n(bt,function(e){return{code:"FILE_NAME_CONFLICT",message:`The emitted file "${e}" overwrites a previously emitted file of the same name.`}}(e)):t[e]=sd}const Ch=new Set(["chunk","asset","prebuilt-chunk"]);function kh(e,t,n){if(!("string"==typeof e||e instanceof Uint8Array)){const e=t.fileName||t.name||n;return Ut(Ln(`Could not set source for ${"string"==typeof e?`asset "${e}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return e}class Nh{constructor(e,t,n){this.graph=e,this.options=t,this.facadeChunkByModule=null,this.nextIdBase=1,this.output=null,this.outputFileEmitters=[],this.emitFile=e=>function(e){return Boolean(e&&Ch.has(e.type))}(e)?"prebuilt-chunk"===e.type?this.emitPrebuiltChunk(e):function(e){const t=e.fileName||e.name;return!t||"string"==typeof t&&!$t(t)}(e)?"chunk"===e.type?this.emitChunk(e):this.emitAsset(e):Ut(Ln(`The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "${e.fileName||e.name}".`)):Ut(Ln(`Emitted files must be of type "asset", "chunk" or "prebuilt-chunk", received "${e&&e.type}".`)),this.finaliseAssets=()=>{for(const[e,t]of this.filesByReferenceId)if("asset"===t.type&&"string"!=typeof t.fileName)return Ut(an(t.name||e))},this.getFileName=e=>{const t=this.filesByReferenceId.get(e);return t?"chunk"===t.type?(n=t,s=this.facadeChunkByModule,n.fileName?n.fileName:s?s.get(n.module).getFileName():Ut({code:"CHUNK_NOT_GENERATED",message:`Plugin error - Unable to get file name for emitted chunk "${n.fileName||n.name}". You can only get file names once chunks have been generated after the "renderStart" hook.`})):"prebuilt-chunk"===t.type?t.fileName:function(e,t){return"string"!=typeof e.fileName?Ut({code:"ASSET_NOT_FINALISED",message:`Plugin error - Unable to get file name for asset "${e.name||t}". Ensure that the source is set and that generate is called first. If you reference assets via import.meta.ROLLUP_FILE_URL_<referenceId>, you need to either have set their source after "renderStart" or need to provide an explicit "fileName" when emitting them.`}):e.fileName}(t,e):Ut({code:"FILE_NOT_FOUND",message:`Plugin error - Unable to get file name for unknown file "${e}".`});var n,s},this.setAssetSource=(e,t)=>{const n=this.filesByReferenceId.get(e);if(!n)return Ut({code:"ASSET_NOT_FOUND",message:`Plugin error - Unable to set the source for unknown asset "${e}".`});if("asset"!==n.type)return Ut(Ln(`Asset sources can only be set for emitted assets but "${e}" is an emitted chunk.`));if(void 0!==n.source)return Ut({code:"ASSET_SOURCE_ALREADY_SET",message:`Unable to set the source for asset "${n.name||e}", source already set.`});const s=kh(t,n,e);if(this.output)this.finalizeAdditionalAsset(n,s,this.output);else{n.source=s;for(const e of this.outputFileEmitters)e.finalizeAdditionalAsset(n,s,e.output)}},this.setChunkInformation=e=>{this.facadeChunkByModule=e},this.setOutputBundle=(e,t)=>{const n=Td[t.hashCharacters],s=this.output={bundle:e,fileNamesBySourceHash:new Map,getHash:n,outputOptions:t};for(const e of this.filesByReferenceId.values())e.fileName&&Ih(e.fileName,s,this.options.onLog);const i=new Map;for(const e of this.filesByReferenceId.values())if("asset"===e.type&&void 0!==e.source)if(e.fileName)this.finalizeAdditionalAsset(e,e.source,s);else{ve(i,n(e.source),Se).push(e)}else"prebuilt-chunk"===e.type&&(this.output.bundle[e.fileName]=this.createPrebuiltChunk(e));for(const[e,t]of i)this.finalizeAssetsWithSameSource(t,e,s)},this.filesByReferenceId=n?new Map(n.filesByReferenceId):new Map,n?.addOutputFileEmitter(this)}addOutputFileEmitter(e){this.outputFileEmitters.push(e)}assignReferenceId(e,t){let n=t;do{n=Ld(n).slice(0,8).replaceAll("-","$")}while(this.filesByReferenceId.has(n)||this.outputFileEmitters.some(({filesByReferenceId:e})=>e.has(n)));e.referenceId=n,this.filesByReferenceId.set(n,e);for(const{filesByReferenceId:t}of this.outputFileEmitters)t.set(n,e);return n}createPrebuiltChunk(e){return{code:e.code,dynamicImports:[],exports:e.exports||[],facadeModuleAttributes:{},facadeModuleId:null,facadeModuleRawId:null,fileName:e.fileName,implicitlyLoadedBefore:[],importedBindings:{},imports:[],isDynamicEntry:!1,isEntry:!1,isImplicitEntry:!1,map:e.map||null,moduleIds:[],modules:{},name:e.fileName,preliminaryFileName:e.fileName,referencedFiles:[],sourcemapFileName:e.sourcemapFileName||null,type:"chunk"}}emitAsset(e){const t=void 0===e.source?void 0:kh(e.source,e,null),n=e.originalFileName||null;"string"==typeof n&&(this.graph.watchFiles[n]=!0);const s={fileName:e.fileName,name:e.name,needsCodeReference:!!e.needsCodeReference,originalFileName:n,referenceId:"",source:t,type:"asset"},i=this.assignReferenceId(s,e.fileName||e.name||String(this.nextIdBase++));if(this.output)this.emitAssetWithReferenceId(s,this.output);else for(const e of this.outputFileEmitters)e.emitAssetWithReferenceId(s,e.output);return i}emitAssetWithReferenceId(e,t){const{fileName:n,source:s}=e;n&&Ih(n,t,this.options.onLog),void 0!==s&&this.finalizeAdditionalAsset(e,s,t)}emitChunk(e){if(this.graph.phase>Ec.LOAD_AND_PARSE)return Ut({code:"INVALID_ROLLUP_PHASE",message:"Cannot emit chunks after module loading has finished."});if("string"!=typeof e.id)return Ut(Ln(`Emitted chunks need to have a valid string id, received "${e.id}"`));const t={fileName:e.fileName,module:null,name:e.name||e.id,referenceId:"",type:"chunk"};return this.graph.moduleLoader.emitChunk(e).then(e=>t.module=e).catch(()=>{}),this.assignReferenceId(t,e.id)}emitPrebuiltChunk(e){if("string"!=typeof e.code)return Ut(Ln(`Emitted prebuilt chunks need to have a valid string code, received "${e.code}".`));if("string"!=typeof e.fileName||$t(e.fileName))return Ut(Ln(`The "fileName" property of emitted prebuilt chunks must be strings that are neither absolute nor relative paths, received "${e.fileName}".`));const t={code:e.code,exports:e.exports,fileName:e.fileName,map:e.map,referenceId:"",type:"prebuilt-chunk"},n=this.assignReferenceId(t,t.fileName);return this.output&&(this.output.bundle[t.fileName]=this.createPrebuiltChunk(t)),n}finalizeAdditionalAsset(e,t,{bundle:n,fileNamesBySourceHash:s,getHash:i,outputOptions:r}){let{fileName:o,name:a,needsCodeReference:l,originalFileName:c,referenceId:u}=e;if(!o){const e=i(t);o=s.get(e),o||(o=wh(a,a?[a]:[],t,c,c?[c]:[],e,r,n,this.options),s.set(e,o))}const d={...e,fileName:o,source:t};this.filesByReferenceId.set(u,d);const h=n[o];if("asset"===h?.type)h.needsCodeReference&&=l,a&&h.names.push(a),c&&h.originalFileNames.push(c);else{const{options:e}=this;n[o]={fileName:o,get name(){return Tn('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',jt,!1,e),a},names:a?[a]:[],needsCodeReference:l,get originalFileName(){return Tn('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',jt,!1,e),c},originalFileNames:c?[c]:[],source:t,type:"asset"}}}finalizeAssetsWithSameSource(e,t,{bundle:n,fileNamesBySourceHash:s,outputOptions:i}){const{names:r,originalFileNames:o}=function(e){const t=[],n=[];for(const{name:s,originalFileName:i}of e)"string"==typeof s&&t.push(s),i&&n.push(i);return n.sort(),t.sort((e,t)=>e.length-t.length||(e>t?1:e===t?0:-1)),{names:t,originalFileNames:n}}(e);let a,l="",c=!0;for(const s of e){c&&=s.needsCodeReference;const e=wh(s.name,r,s.source,s.originalFileName,o,t,i,n,this.options);(!l||e.length<l.length||e.length===l.length&&e<l)&&(l=e,a=s)}s.set(t,l);for(const t of e){const e={...t,fileName:l};this.filesByReferenceId.set(t.referenceId,e)}const{options:u}=this;n[l]={fileName:l,get name(){return Tn('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',jt,!1,u),a.name},names:r,needsCodeReference:c,get originalFileName(){return Tn('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',jt,!1,u),a.originalFileName},originalFileNames:o,source:a.source,type:"asset"}}}function Oh(e){return Array.isArray(e)?e.filter(Boolean):e?[e]:[]}function Rh(e){if(e instanceof RegExp)return t=>{const n=J(t),s=e.test(n);return e.lastIndex=0,s};const t=process.cwd(),n=function(e,t){return e.startsWith("**")||K(e)?J(e):J(ne(t,e))}(e,t),s=ga(n,{dot:!0});return e=>{const t=J(e);return s(t)}}function Dh(e){return e instanceof RegExp?t=>{const n=e.test(t);return e.lastIndex=0,n}:t=>t.includes(e)}function Mh(e,t){if(e||t)return n=>!e?.some(e=>e(n))&&(!!t?.some(e=>e(n))||!(t&&t.length>0))}function _h(e){return"string"==typeof e||e instanceof RegExp?{include:[e]}:Array.isArray(e)?{include:e}:{exclude:e.exclude?Oh(e.exclude):void 0,include:e.include?Oh(e.include):void 0}}function Lh(e){if(!e)return;const{exclude:t,include:n}=_h(e),s=t?.map(Rh),i=n?.map(Rh);return Mh(s,i)}function Th(e,t){if(!e&&!t)return;const n=Lh(e),s=function(e){if(!e)return;const{exclude:t,include:n}=_h(e),s=t?.map(Dh),i=n?.map(Dh);return Mh(s,i)}(t);return(e,t)=>{let i=!0;return n&&(i&&=n(e)),!!i&&(s&&(i&&=s(t)),i)}}const Bh=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,onLog:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1});class zh{constructor(e,t,n,s,i){this.graph=e,this.options=t,this.pluginCache=s,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,this.compiledPluginFilters={idOnlyFilter:new WeakMap,transformFilter:new WeakMap},this.fileEmitter=new Nh(e,t,i&&i.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.finaliseAssets.bind(this.fileEmitter),this.setChunkInformation=this.fileEmitter.setChunkInformation.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=[...i?i.plugins:[],...n];const r=new Set;if(this.pluginContexts=new Map(this.plugins.map(n=>[n,mh(n,s,e,t,this.fileEmitter,r)])),i)for(const e of n)for(const n of Bh)n in e&&t.onLog(bt,bn(e.name,n))}createOutputPluginDriver(e){return new zh(this.graph,this.options,e,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(e,t,n,s){return this.hookFirstAndGetPlugin(e,t,n,s).then(e=>e&&e[0])}async hookFirstAndGetPlugin(e,t,n,s){for(const i of this.getSortedPlugins(e)){if(s?.has(i))continue;const r=await this.runHook(e,t,i,n);if(null!=r)return[r,i]}return null}hookFirstSync(e,t,n){for(const s of this.getSortedPlugins(e)){const i=this.runHookSync(e,t,s,n);if(null!=i)return i}return null}async hookParallel(e,t,n){const s=[];for(const i of this.getSortedPlugins(e))i[e].sequential?(await Promise.all(s),s.length=0,await this.runHook(e,t,i,n)):s.push(this.runHook(e,t,i,n));await Promise.all(s)}hookReduceArg0(e,[t,...n],s,i){let r=Promise.resolve(t);for(const t of this.getSortedPlugins(e))r=r.then(r=>this.runHook(e,[r,...n],t,i).then(e=>s.call(this.pluginContexts.get(t),r,e,t)));return r}hookReduceArg0Sync(e,[t,...n],s,i){for(const r of this.getSortedPlugins(e)){const o=[t,...n],a=this.runHookSync(e,o,r,i);t=s.call(this.pluginContexts.get(r),t,a,r)}return t}async hookReduceValue(e,t,n,s){const i=[],r=[];for(const t of this.getSortedPlugins(e,jh))t[e].sequential?(i.push(...await Promise.all(r)),r.length=0,i.push(await this.runHook(e,n,t))):r.push(this.runHook(e,n,t));return i.push(...await Promise.all(r)),i.reduce(s,await t)}hookReduceValueSync(e,t,n,s,i){let r=t;for(const t of this.getSortedPlugins(e)){const o=this.runHookSync(e,n,t,i);r=s.call(this.pluginContexts.get(t),r,o,t)}return r}hookSeq(e,t,n){let s=Promise.resolve();for(const i of this.getSortedPlugins(e))s=s.then(()=>this.runHook(e,t,i,n));return s.then(Uh)}getSortedPlugins(e,t){return ve(this.sortedPlugins,e,()=>Fh(e,this.plugins,t))}runHook(e,t,n,s){const i=n[e],r="object"==typeof i?i.handler:i;if("object"==typeof i&&"filter"in i&&i.filter)if("transform"===e){const e=i.filter,n=t,s=ve(this.compiledPluginFilters.transformFilter,e,()=>Th(e.id,e.code));if(s&&!s(n[1],n[0]))return Promise.resolve()}else if("resolveId"===e||"load"===e){const e=i.filter,n=t,s=ve(this.compiledPluginFilters.idOnlyFilter,e,()=>function(e){const t=Lh(e);return t?e=>!!t(e):void 0}(e.id));if(s&&!s(n[0]))return Promise.resolve()}let o=this.pluginContexts.get(n);s&&(o=s(o,n));let a=null;return Promise.resolve().then(()=>{if("function"!=typeof r)return r;const s=r.apply(o,t);return s?.then?(a=[n.name,e,t],this.unfulfilledActions.add(a),Promise.resolve(s).then(e=>(this.unfulfilledActions.delete(a),e))):s}).catch(t=>(null!==a&&this.unfulfilledActions.delete(a),Ut(Rn(t,n.name,{hook:e}))))}runHookSync(e,t,n,s){const i=n[e],r="object"==typeof i?i.handler:i;let o=this.pluginContexts.get(n);s&&(o=s(o,n));try{return r.apply(o,t)}catch(t){return Ut(Rn(t,n.name,{hook:e}))}}}function Fh(e,t,n=Vh){const s=[],i=[],r=[];for(const o of t){const t=o[e];if(t){if("object"==typeof t){if(n(t.handler,e,o),"pre"===t.order){s.push(o);continue}if("post"===t.order){r.push(o);continue}}else n(t,e,o);i.push(o)}}return[...s,...i,...r]}function Vh(e,t,n){"function"!=typeof e&&Ut(function(e,t){return{code:Yt,hook:e,message:`Error running plugin hook "${e}" for plugin "${t}", expected a function hook or an object with a "handler" function.`,plugin:t}}(t,n.name))}function jh(e,t,n){if("string"!=typeof e&&"function"!=typeof e)return Ut(function(e,t){return{code:Yt,hook:e,message:`Error running plugin hook "${e}" for plugin "${t}", expected a string, a function hook or an object with a "handler" string or function.`,plugin:t}}(t,n.name))}function Uh(){}class Gh{constructor(e){this.maxParallel=e,this.queue=[],this.workerCount=0}run(e){return new Promise((t,n)=>{this.queue.push({reject:n,resolve:t,task:e}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;let e;for(this.workerCount++;e=this.queue.shift();){const{reject:t,resolve:n,task:s}=e;try{n(await s())}catch(e){t(e)}}this.workerCount--}}class Hh{constructor(e,t){if(this.options=e,this.cachedModules=new Map,this.deoptimizationTracker=new je,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.newlyIncludedVariableInits=new Set,this.phase=Ec.LOAD_AND_PARSE,this.scope=new Jd,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=e=>{const t=$c(e),n=this.modulesById.get(t);return n?n.info:null},!1!==e.cache){if(e.cache?.modules)for(const t of e.cache.modules)this.cachedModules.set(t.id,t);this.pluginCache=e.cache?.plugins||Object.create(null);for(const e in this.pluginCache){const t=this.pluginCache[e];for(const e of Object.values(t))e[0]++}}t&&(this.watchMode=!0,t({closeWatcher:()=>this.pluginDriver.hookParallel("closeWatcher",[]),watchChange:(...e)=>this.pluginDriver.hookParallel("watchChange",e)})),this.pluginDriver=new zh(this,e,e.plugins,this.pluginCache),this.moduleLoader=new vh(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new Gh(e.maxParallelFileOps),this.pureFunctions=(({treeshake:e})=>{const t=Object.create(null);for(const n of e?e.manualPureFunctions:[]){let e=t;for(const t of n.split("."))e=e[t]||=Object.create(null);e[gs]=!0}return t})(e)}async build(){Nu("generate module graph",2),await this.generateModuleGraph(),Ou("generate module graph",2),Nu("sort and bind modules",2),this.phase=Ec.ANALYSE,this.sortAndBindModules(),Ou("sort and bind modules",2),Nu("mark included statements",2),this.includeStatements(),Ou("mark included statements",2),this.phase=Ec.GENERATE}getCache(){for(const e in this.pluginCache){const t=this.pluginCache[e];let n=!0;for(const[e,s]of Object.entries(t))s[0]>=this.options.experimentalCacheExpiry?delete t[e]:n=!1;n&&delete this.pluginCache[e]}return{modules:this.modules.map(e=>e.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){var e;if(({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((e=this.options.input,Array.isArray(e)?e.map(e=>({fileName:null,id:e,implicitlyLoadedAfter:[],importer:void 0,name:null})):Object.entries(e).map(([e,t])=>({fileName:null,id:t,implicitlyLoadedAfter:[],importer:void 0,name:e}))),!0)),0===this.entryModules.length)throw new Error("You must supply options.input to rollup");for(const e of this.modulesById.values())e.cacheInfoGetters(),e instanceof Tu?this.modules.push(e):this.externalModules.push(e)}includeStatements(){const e=[...this.entryModules,...this.implicitEntryModules];for(const t of e)ks(t);if(this.options.treeshake){let t=1;this.newlyIncludedVariableInits.clear();do{Nu(`treeshaking pass ${t}`,3),this.needsTreeshakingPass=!1;for(const e of this.modules)if(e.isExecuted){e.hasTreeShakingPassStarted=!0,"no-treeshake"===e.info.moduleSideEffects?e.includeAllInBundle():e.include();for(const e of this.newlyIncludedVariableInits)this.newlyIncludedVariableInits.delete(e),e.include(Zn(),!1)}if(1===t)for(const t of e)!1!==t.preserveSignature&&(t.includeAllExports(),this.needsTreeshakingPass=!0);Ou("treeshaking pass "+t++,3)}while(this.needsTreeshakingPass)}else for(const e of this.modules)e.includeAllInBundle();for(const e of this.externalModules)e.warnUnusedImports();for(const e of this.implicitEntryModules)for(const t of e.implicitlyLoadedAfter)t.info.isEntry||t.isIncluded()||Ut($n(t))}sortAndBindModules(){const{orderedModules:e,cyclePaths:t}=kd(this.entryModules);for(const e of t)this.options.onLog(bt,dn(e));this.modules=e;for(const e of this.modules)e.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const e of this.modules)for(const t of e.importDescriptions.values())if("*"!==t.name&&"source"!==t.phase){const[n,s]=t.module.getVariableForExportName(t.name,{importChain:[e.id]});n||e.log(bt,Pn(t.name,e.id,t.module.id,!!s?.missingButExportExists),t.start)}}}function Wh(e,t){return t()}const qh=e;function Kh(e,t,n,s){e=Fh("onLog",e);const i=vt[s],r=(s,o,a=xe)=>{qt(o);if(!(vt[s]<i)){for(const t of e){if(a.has(t))continue;const{onLog:e}=t,l=e=>vt[e]<i?Ns:n=>r(e,eh(n),new Set(a).add(t));if(!1===("handler"in e?e.handler:e).call({debug:l(xt),error:e=>Ut(eh(e)),info:l(Et),meta:{rollupVersion:qh,watchMode:n},warn:l(bt)},s,o))return}t(s,o)}};return r}const Xh=e=>()=>Ut(function(e){return{code:"NO_FS_IN_BROWSER",message:`Cannot access the file system (via "${e}") when using the browser build of Rollup. Make sure you supply a plugin with custom resolveId and load hooks to Rollup.`,url:Ct("plugin-development/#a-simple-example")}}(e)),Jh=Xh("fs.appendFile"),Yh=Xh("fs.copyFile"),Zh=Xh("fs.mkdir"),Qh=Xh("fs.mkdtemp"),ep=Xh("fs.readdir"),tp=Xh("fs.readFile"),np=Xh("fs.realpath"),sp=Xh("fs.rename"),ip=Xh("fs.rmdir"),rp=Xh("fs.stat"),op=Xh("fs.lstat"),ap=Xh("fs.unlink"),lp=Xh("fs.writeFile");var cp=Object.freeze({__proto__:null,appendFile:Jh,copyFile:Yh,lstat:op,mkdir:Zh,mkdtemp:Qh,readFile:tp,readdir:ep,realpath:np,rename:sp,rmdir:ip,stat:rp,unlink:ap,writeFile:lp});const up=e=>!0===e.cache?void 0:e.cache?.cache||e.cache,dp=e=>{if(!0===e)return()=>!0;if("function"==typeof e)return(t,...n)=>"\0"!==t[0]&&e(t,...n)||!1;if(e){const t=new Set,n=[];for(const s of Oh(e))s instanceof RegExp?n.push(s):t.add(s);return(e,...s)=>t.has(e)||n.some(t=>t.test(e))}return()=>!1},hp=e=>{const t=e.input;return null==t?[]:"string"==typeof t?[t]:t},pp=e=>{const t=e.jsx;if(!t)return!1;const n=oh(t,ih,"jsx",Nt,"false, "),{factory:s,importSource:i,mode:r}=n;switch(r){case"automatic":return{factory:s||"React.createElement",importSource:i||"react",jsxImportSource:n.jsxImportSource||"react/jsx-runtime",mode:"automatic"};case"preserve":return!i||s||n.fragment||Ut(An("jsx",Nt,"when preserving JSX and specifying an importSource, you also need to specify a factory or fragment")),{factory:s||null,fragment:n.fragment||null,importSource:i||null,mode:"preserve"};default:return r&&"classic"!==r&&Ut(An("jsx.mode",Nt,'mode must be "automatic", "classic" or "preserve"',r)),{factory:s||"React.createElement",fragment:n.fragment||"React.Fragment",importSource:i||null,mode:"classic"}}},fp=e=>{const t=e.maxParallelFileOps;return"number"==typeof t?t<=0?1/0:t:1e3},mp=(e,t)=>{const n=e.moduleContext;if("function"==typeof n)return e=>n(e)??t;if(n){const e=Object.create(null);for(const[t,s]of Object.entries(n))e[ne(t)]=s;return n=>e[n]??t}return()=>t},gp=e=>{if(!1===e.treeshake)return!1;const t=oh(e.treeshake,sh,"treeshake","configuration-options/#treeshake","false, true, ");return{annotations:!1!==t.annotations,correctVarValueBeforeDeclaration:!0===t.correctVarValueBeforeDeclaration,manualPureFunctions:t.manualPureFunctions??Ee,moduleSideEffects:yp(t.moduleSideEffects),propertyReadSideEffects:"always"===t.propertyReadSideEffects?"always":!1!==t.propertyReadSideEffects,tryCatchDeoptimization:!1!==t.tryCatchDeoptimization,unknownGlobalSideEffects:!1!==t.unknownGlobalSideEffects}},yp=e=>{if("boolean"==typeof e)return()=>e;if("no-external"===e)return(e,t)=>!t;if("function"==typeof e)return(t,n)=>"\0"===t[0]||!1!==e(t,n);if(Array.isArray(e)){const t=new Set(e);return e=>t.has(e)}return e&&Ut(An("treeshake.moduleSideEffects","configuration-options/#treeshake-modulesideeffects",'please use one of false, "no-external", a function or an array')),()=>!0},bp=/[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g,Ep=/^[a-z]:/i;function xp(e){const t=Ep.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(bp,"_")}const vp=(e,t,n)=>{const{file:s}=e;if("string"==typeof s){if(t)return Ut(An("output.file",Rt,'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(n.input))return Ut(An("output.file",Rt,'you must set "output.dir" instead of "output.file" when providing named inputs'))}return s},Ap=e=>{const t=e.format;switch(t){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return t;default:return Ut(An("output.format",Mt,'Valid values are "amd", "cjs", "system", "es", "iife" or "umd"',t))}},Sp=(e,t)=>{const n=e.inlineDynamicImports||!1,{input:s}=t;return n&&(Array.isArray(s)?s:Object.keys(s)).length>1?Ut(An("output.inlineDynamicImports",Lt,'multiple inputs are not supported when "output.inlineDynamicImports" is true')):n},Pp=(e,t,n)=>{const s=e.preserveModules||!1;if(s){if(t)return Ut(An("output.inlineDynamicImports",Lt,'this option is not supported for "output.preserveModules"'));if(!1===n.preserveEntrySignatures)return Ut(An("preserveEntrySignatures","configuration-options/#preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return s},$p=e=>{const{preserveModulesRoot:t}=e;if(null!=t)return ne(t)},wp=e=>{const t={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...e.amd};return(t.autoId||t.basePath)&&t.id?Ut(An("output.amd.id",Ot,'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"')):t.basePath&&!t.autoId?Ut(An("output.amd.basePath","configuration-options/#output-amd-basepath",'this option only works with "output.amd.autoId"')):t.autoId?{autoId:!0,basePath:t.basePath,define:t.define,forceJsExtensionForImports:t.forceJsExtensionForImports}:{autoId:!1,define:t.define,forceJsExtensionForImports:t.forceJsExtensionForImports,id:t.id}},Ip=(e,t)=>{const n=e[t];return"function"==typeof n?n:()=>n||""},Cp=(e,t)=>{const{dir:n}=e;return"string"==typeof n&&"string"==typeof t?Ut(An("output.dir",Rt,'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks')):n},kp=(e,t)=>{const n=e.entryFileNames;return null==n&&t.add("entryFileNames"),n??"[name].js"};function Np(e,t){const n=e.exports;if(null==n)t.add("exports");else if(!["default","named","none","auto"].includes(n))return Ut({code:Xt,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${n}".`,url:Ct(Dt)});return n||"auto"}const Op=(e,t)=>(null!=e.externalImportAssertions&&Tn('The "output.externalImportAssertions" option is deprecated. Use the "output.externalImportAttributes" option instead.',"configuration-options/#output-externalimportattributes",!0,t),e.externalImportAttributes??e.externalImportAssertions??!0),Rp=e=>{const t=oh(e.generatedCode,rh,"output.generatedCode","configuration-options/#output-generatedcode","");return{arrowFunctions:!0===t.arrowFunctions,constBindings:!0===t.constBindings,objectShorthand:!0===t.objectShorthand,reservedNamesAsProps:!1!==t.reservedNamesAsProps,symbols:!0===t.symbols}},Dp=(e,t)=>(null!=e.importAttributesKey&&Tn('The "output.importAttributesKey" option is deprecated and will be removed in a future version of Rollup. Only use it if you need to support environments that do not understand the "with" keyword.',"configuration-options/#output-importattributeskey",!1,t),e.importAttributesKey??"with"),Mp=(e,t)=>{if(t)return"";const n=e.indent;return!1===n?"":n??!0},_p=new Set(["compat","auto","esModule","default","defaultOnly"]),Lp=e=>{const t=e.interop;if("function"==typeof t){const e=Object.create(null);let n=null;return s=>null===s?n||Tp(n=t(s)):s in e?e[s]:Tp(e[s]=t(s))}return void 0===t?()=>"default":()=>Tp(t)},Tp=e=>_p.has(e)?e:Ut(An("output.interop",Tt,`use one of ${Array.from(_p,e=>JSON.stringify(e)).join(", ")}`,e)),Bp=(e,t,n)=>{const s=e.manualChunks;if(s){if(t)return Ut(An("output.manualChunks",Bt,'this option is not supported for "output.inlineDynamicImports"'));if(n)return Ut(An("output.manualChunks",Bt,'this option is not supported for "output.preserveModules"'))}return s||{}},zp=(e,t,n)=>e.minifyInternalExports??(n||"es"===t||"system"===t),Fp=(e,t)=>{const n=e.sourcemapFileNames;return null==n&&t.add("sourcemapFileNames"),n},Vp=e=>{const{sourcemapBaseUrl:t}=e;if(t)return function(e){try{new URL(e)}catch{return!1}return!0}(t)?(n=t).endsWith("/")?n:n+"/":Ut(An("output.sourcemapBaseUrl","configuration-options/#output-sourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(t)}`));var n},jp=e;function Up(e){return async function(e,t){const{options:n,unsetOptions:s}=await async function(e,t){if(!e)throw new Error("You must supply an options object to rollup");const n=await async function(e,t){const n=Fh("options",await ah(e.plugins)),s=e.logLevel||Et,i=Kh(n,Yd(e,s),t,s);for(const r of n){const{name:n,options:o}=r,a="handler"in o?o.handler:o,l=await a.call({debug:lh(xt,"PLUGIN_LOG",i,n,s),error:e=>Ut(Rn(eh(e),n,{hook:"onLog"})),info:lh(Et,"PLUGIN_LOG",i,n,s),meta:{rollupVersion:jp,watchMode:t},warn:lh(bt,"PLUGIN_WARNING",i,n,s)},e);l&&(e=l)}return e}(e,t),{options:s,unsetOptions:i}=await async function(e,t){const n=new Set,s=e.context??"undefined",i=await ah(e.plugins),r=e.logLevel||Et,o=Kh(i,Yd(e,r),t,r),a=e.strictDeprecations||!1,l=fp(e),c={cache:up(e),context:s,experimentalCacheExpiry:e.experimentalCacheExpiry??10,experimentalLogSideEffects:e.experimentalLogSideEffects||!1,external:dp(e.external),fs:e.fs??cp,input:hp(e),jsx:pp(e),logLevel:r,makeAbsoluteExternalsRelative:e.makeAbsoluteExternalsRelative??"ifRelativeSource",maxParallelFileOps:l,moduleContext:mp(e,s),onLog:o,perf:e.perf||!1,plugins:i,preserveEntrySignatures:e.preserveEntrySignatures??"exports-only",preserveSymlinks:e.preserveSymlinks||!1,shimMissingExports:e.shimMissingExports||!1,strictDeprecations:a,treeshake:gp(e)};return nh(e,[...Object.keys(c),"onwarn","watch"],"input options",o,/^(output)$/),{options:c,unsetOptions:n}}(n,t);return Gp(s.plugins,ch),{options:s,unsetOptions:i}}(e,null!==t);(function(e){e.perf?($u=new Map,Nu=Iu,Ou=Cu,e.plugins=e.plugins.map(Du)):(Nu=Ns,Ou=Ns)})(n),await async function(){await Wc()}();const i=new Hh(n,t),r=!1!==e.cache;e.cache&&(n.cache=void 0,e.cache=void 0);Nu("BUILD",1),await Wh(i.pluginDriver,async()=>{try{Nu("initialize",2),await i.pluginDriver.hookParallel("buildStart",[n]),Ou("initialize",2),await i.build()}catch(e){const t=Object.keys(i.watchFiles);t.length>0&&(e.watchFiles=t);try{await i.pluginDriver.hookParallel("buildEnd",[e])}catch(t){const n=Gt({...e,message:`There was an error during the build:\n ${e.message}\nAdditionally, handling the error in the 'buildEnd' hook caused the following error:\n ${t.message}`});throw await i.pluginDriver.hookParallel("closeBundle",[n]).catch(()=>{}),n}throw await i.pluginDriver.hookParallel("closeBundle",[e]).catch(()=>{}),e}try{await i.pluginDriver.hookParallel("buildEnd",[])}catch(e){throw await i.pluginDriver.hookParallel("closeBundle",[e]).catch(()=>{}),e}}),Ou("BUILD",1);const o={get cache(){return r?i.getCache():void 0},async close(){o.closed||(o.closed=!0,await i.pluginDriver.hookParallel("closeBundle",[]))},closed:!1,async[Symbol.asyncDispose](){await this.close()},generate:async e=>o.closed?Ut({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Hp(!1,n,s,e,i),get watchFiles(){return Object.keys(i.watchFiles)},write:async e=>o.closed?Ut({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Hp(!0,n,s,e,i)};n.perf&&(o.getTimings=ku);return o}(e,null)}function Gp(e,t){for(const[n,s]of e.entries())s.name||(s.name=`${t}${n+1}`)}async function Hp(e,t,n,s,i){const{options:r,outputPluginDriver:o,unsetOptions:a}=await async function(e,t,n,s){if(!e)throw new Error("You must supply an options object");const i=await ah(e.plugins);Gp(i,uh);const r=t.createOutputPluginDriver(i);return{...await Wp(n,s,e,r),outputPluginDriver:r}}(s,i.pluginDriver,t,n);return Wh(0,async()=>{const n=new qd(r,a,t,o,i),s=await n.generate(e);if(e){if(Nu("WRITE",1),!r.dir&&!r.file)return Ut({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.',url:Ct(Rt)});await Promise.all(Object.values(s).map(e=>i.fileOperationQueue.run(()=>async function(e,t,{fs:{mkdir:n,writeFile:s}}){const i=ne(t.dir||Z(t.file),e.fileName);return await n(Z(i),{recursive:!0}),s(i,"asset"===e.type?e.source:e.code)}(e,r,t)))),await o.hookParallel("writeBundle",[r,s]),Ou("WRITE",1)}return l=s,{output:Object.values(l).filter(e=>Object.keys(e).length>0).sort((e,t)=>Kp(e)-Kp(t))};var l})}function Wp(e,t,n,s){return async function(e,t,n){const s=new Set(n),i=e.compact||!1,r=Ap(e),o=Sp(e,t),a=Pp(e,o,t),l=vp(e,a,t),c=Rp(e),u=Op(e,t),d={amd:wp(e),assetFileNames:e.assetFileNames??"assets/[name]-[hash][extname]",banner:Ip(e,"banner"),chunkFileNames:e.chunkFileNames??"[name]-[hash].js",compact:i,dir:Cp(e,l),dynamicImportInCjs:e.dynamicImportInCjs??!0,entryFileNames:kp(e,s),esModule:e.esModule??"if-default-prop",experimentalMinChunkSize:e.experimentalMinChunkSize??1,exports:Np(e,s),extend:e.extend||!1,externalImportAssertions:u,externalImportAttributes:u,externalLiveBindings:e.externalLiveBindings??!0,file:l,footer:Ip(e,"footer"),format:r,freeze:e.freeze??!0,generatedCode:c,globals:e.globals||{},hashCharacters:e.hashCharacters??"base64",hoistTransitiveImports:e.hoistTransitiveImports??!0,importAttributesKey:Dp(e,t),indent:Mp(e,i),inlineDynamicImports:o,interop:Lp(e),intro:Ip(e,"intro"),manualChunks:Bp(e,o,a),minifyInternalExports:zp(e,r,i),name:e.name,noConflict:e.noConflict||!1,onlyExplicitManualChunks:e.onlyExplicitManualChunks??"function"==typeof e.manualChunks,outro:Ip(e,"outro"),paths:e.paths||{},plugins:await ah(e.plugins),preserveModules:a,preserveModulesRoot:$p(e),reexportProtoFromExternal:e.reexportProtoFromExternal??!0,sanitizeFileName:"function"==typeof e.sanitizeFileName?e.sanitizeFileName:!1===e.sanitizeFileName?e=>e:xp,sourcemap:e.sourcemap||!1,sourcemapBaseUrl:Vp(e),sourcemapDebugIds:e.sourcemapDebugIds||!1,sourcemapExcludeSources:e.sourcemapExcludeSources||!1,sourcemapFile:e.sourcemapFile,sourcemapFileNames:Fp(e,s),sourcemapIgnoreList:"function"==typeof e.sourcemapIgnoreList?e.sourcemapIgnoreList:!1===e.sourcemapIgnoreList?()=>!1:e=>e.includes("node_modules"),sourcemapPathTransform:e.sourcemapPathTransform,strict:e.strict??!0,systemNullSetters:e.systemNullSetters??!0,validate:e.validate||!1,virtualDirname:e.virtualDirname||"_virtual"};return nh(e,Object.keys(d),"output options",t.onLog),{options:d,unsetOptions:s}}(s.hookReduceArg0Sync("outputOptions",[n],(e,t)=>t||e,e=>{const t=()=>e.error({code:"CANNOT_EMIT_FROM_OPTIONS_HOOK",message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...e,emitFile:t,setAssetSource:t}}),e,t)}var qp;function Kp(e){return"asset"===e.type?qp.ASSET:e.isEntry?qp.ENTRY_CHUNK:qp.SECONDARY_CHUNK}function Xp(e){return e}Symbol.asyncDispose??=Symbol("Symbol.asyncDispose"),function(e){e[e.ENTRY_CHUNK=0]="ENTRY_CHUNK",e[e.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",e[e.ASSET=2]="ASSET"}(qp||(qp={}));const Jp=e;export{Jp as VERSION,Xp as defineConfig,Up as rollup};
10
+ var e="5.0.0-2",t=",".charCodeAt(0),n=";".charCodeAt(0),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),r=new Uint8Array(128);for(let e=0;e<64;e++){const t=s.charCodeAt(e);i[e]=t,r[t]=e}function o(e){let t=0,n=0,s=0;do{const i=e.next();s=r[i],t|=(31&s)<<n,n+=5}while(32&s);return t}function a(e){return 1&e?-2147483648|-(e>>>1):e>>>1}function l(e,t){do{let n=31&t;(t>>>=5)>0&&(n|=32),e.write(i[n])}while(t>0)}function c(e){return e<0?-e<<1|1:e<<1}function u(e,n){return!(e.pos>=n)&&e.peek()!==t}var d="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},h=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){const{buffer:t}=this;t[this.pos++]=e,16384===this.pos&&(this.out+=d.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:n}=this;return n>0?t+d.decode(e.subarray(0,n)):t}},p=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:n}=this,s=t.indexOf(e,n);return-1===s?t.length:s}};function f(e){e.sort(m)}function m(e,t){return e[0]-t[0]}function g(e){const s=new h;let i=0,r=0,o=0,a=0;for(let u=0;u<e.length;u++){const d=e[u];if(u>0&&s.write(n),0===d.length)continue;let h=0;for(let e=0;e<d.length;e++){const n=d[e];e>0&&s.write(t),l(s,c(n[0]-h)),h=n[0],1!==n.length&&(l(s,c(n[1]-i)),l(s,c(n[2]-r)),l(s,c(n[3]-o)),i=n[1],r=n[2],o=n[3],4!==n.length&&(l(s,c(n[4]-a)),a=n[4]))}}return s.flush()}var y=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}forEach(e){const t=this.bits;for(let n=0;n<t.length;n++){let s=t[n];for(;s;){const t=s&-s;e(31+(n<<5)-Math.clz32(t)),s^=t}}}},b=class e{constructor(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.replacesUntil=-1,this.replacedFrom=-1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const t=new e(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.replacesUntil=this.replacesUntil,t.replacedFrom=this.replacedFrom,t}contains(e){return this.start<e&&e<this.end}eachNext(e){e(this);let t=this.next;for(;t;)e(t),t=t.next}eachPrevious(e){e(this);let t=this.previous;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.replacesUntil=-1,this.replacedFrom=-1,this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){const n=t-this.start,s=this.original.slice(0,n),i=this.original.slice(n);this.original=s;const r=new e(t,this.end,i);return r.outro=this.outro,this.outro="",this.end=t,this.edited?(r.edit("",!1,!0),r.replacedFrom=this.replacedFrom):this.content=s,r.next=this.next,r.next&&(r.next.previous=r),r.previous=this,this.next=r,r}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.edited?this.edit(t,this.storeName,!0):this.split(this.start+t.length).edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.edited?this.edit(t,this.storeName,!0):(this.split(this.end-t.length),this.edit("",void 0,!0))),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)}},E=class extends Error{name="MagicStringError";constructor(e,t){super(`[MagicString] ${e}`,t)}};function x(){if("undefined"!=typeof globalThis&&"function"==typeof globalThis.btoa)return e=>globalThis.btoa(unescape(encodeURIComponent(e)));const e=globalThis.Buffer;return e?t=>e.from(t,"utf-8").toString("base64"):()=>{throw new E("unsupported environment: `btoa` or `Buffer` is required")}}const v=x();var A=class{constructor(e){if(this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings="string"==typeof e.mappings?e.mappings:g(e.mappings),void 0!==e.x_google_ignoreList&&(this.x_google_ignoreList=e.x_google_ignoreList),void 0!==e.debugId&&(this.debugId=e.debugId),void 0!==e.rangeMappings){let t=!1;for(const n of e.rangeMappings)if(0!==n.length){t=!0;break}t&&(this.rangeMappings=function(e){if(0===e.length)return"";const t=new h;for(let s=0;s<e.length;s++){const i=e[s];s>0&&t.write(n);let r=0;for(let e=0;e<i.length;e++){const n=i[e];l(t,n-r),r=n}}return t.flush()}(e.rangeMappings))}}toString(){return JSON.stringify(this)}toUrl(){return`data:application/json;charset=utf-8;base64,${v(this.toString())}`}};function S(e){const t=[0];for(let n=e.indexOf("\n");-1!==n;n=e.indexOf("\n",n+1))t.push(n+1);return function(e){let n=0,s=t.length;for(;n<s;){const i=n+s>>1;e<t[i]?s=i:n=i+1}const i=n-1;return{line:i,column:e-t[i]}}}function P(e,t){const n=e.split(/[/\\]/),s=t.split(/[/\\]/);for(n.pop();n[0]===s[0];)n.shift(),s.shift();if(n.length){let e=n.length;for(;e--;)n[e]=".."}return n.concat(s).join("/")}const w=Object.prototype.toString;function $(e){return"[object Object]"===w.call(e)}const I=(()=>{const e=new Uint8Array(64);for(let t=0;t<64;t++)e[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(t);return e})(),C=new Uint8Array(16384);function k(e,t){t=t<0?-t<<1|1:t<<1;do{let n=31&t;(t>>>=5)>0&&(n|=32),C[e++]=I[n]}while(t>0);return e}const N=new TextDecoder;var O=class{constructor(){this.out="",this.pos=0,this.lines=[],this.buffered=0,this.needsComma=!1,this.prevGenColumn=0,this.prevSourceIndex=0,this.prevSourceLine=0,this.prevSourceColumn=0,this.prevNameIndex=0}endLine(e){this.lines.push(e),this.buffered+=e.length+1,this.buffered>=4096&&this.drain(null)}segments(e){this.drain(e)}finish(e){return this.drain(e),this.flush(),this.out}drain(e){const t=this.lines,n=t.length;for(let s=0;s<=n;s++){const i=s<n?t[s]:e;if(null===i)break;for(let e=0;e<i.length;e++){this.pos>16348&&this.flush();const t=i[e];this.needsComma&&(C[this.pos++]=44),this.needsComma=!0,this.pos=k(this.pos,t[0]-this.prevGenColumn),this.prevGenColumn=t[0],this.pos=k(this.pos,t[1]-this.prevSourceIndex),this.prevSourceIndex=t[1],this.pos=k(this.pos,t[2]-this.prevSourceLine),this.prevSourceLine=t[2],this.pos=k(this.pos,t[3]-this.prevSourceColumn),this.prevSourceColumn=t[3],5===t.length&&(this.pos=k(this.pos,t[4]-this.prevNameIndex),this.prevNameIndex=t[4])}s<n&&(this.pos>16348&&this.flush(),C[this.pos++]=59,this.needsComma=!1,this.prevGenColumn=0)}t.length=0,this.buffered=0,this.flush()}flush(){this.out+=N.decode(C.subarray(0,this.pos)),this.pos=0}};function R(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||95===e}var D=class{constructor(e,t=null){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.rawRangeMappingsIndices=[],this.rawRangeMappings="experimental-range"===e?[this.rawRangeMappingsIndices]:void 0,this.encoder=t}nextLine(){null===this.encoder?(this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[]):(this.encoder.endLine(this.rawSegments),this.rawSegments=[],this.generatedCodeLine+=1),this.generatedCodeColumn=0,this.rawRangeMappings&&(this.rawRangeMappings[this.generatedCodeLine]=this.rawRangeMappingsIndices=[])}addMagicString(e,t,n){const{original:s}=e,i=S(s);e.intro&&this.advance(e.intro),e.firstChunk.eachNext(r=>{if(r.intro.length&&this.advance(r.intro),-1===t)this.advance(r.content);else if(r.edited){const e=r.storeName?n.get(s.slice(r.start,r.replacesUntil)):void 0;this.addEdit(t,r.content,i(r.start),e??-1)}else this.addUneditedChunk(t,r,s,i(r.start),e.sourcemapLocations);r.outro.length&&this.advance(r.outro)}),e.outro&&this.advance(e.outro)}addEdit(e,t,n,s){if(t.length){const i=t.length-1;let r=t.indexOf("\n",0),o=-1;for(;r>=0&&i>r;){const i=[this.generatedCodeColumn,e,n.line,n.column];s>=0&&i.push(s),this.rawSegments.push(i),this.nextLine(),o=r,r=t.indexOf("\n",r+1)}const a=[this.generatedCodeColumn,e,n.line,n.column];s>=0&&a.push(s),this.rawSegments.push(a),this.advance(t.slice(o+1))}}addUneditedChunk(e,t,n,s,i){const r=t.end;let o=t.start;if(this.hires){const i="boundary"===this.hires,a="experimental-range"===this.hires,l=a?null:this.encoder;let c=!1;for(;o<r;){null!==l&&this.rawSegments.length>=4096&&(l.segments(this.rawSegments),this.rawSegments.length=0),a&&o+1>=r&&this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column]);const u=n.charCodeAt(o);10===u?(s.line+=1,s.column=0,this.nextLine(),c=!1):(i?R(u)?c||(this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column]),c=!0):(this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column]),c=!1):a?o===t.start&&(this.rawRangeMappingsIndices.push(this.rawSegments.length),this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column])):this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column]),s.column+=1,this.generatedCodeColumn+=1),o+=1}}else{const t=i.bits;for(;o<r;){let i=n.indexOf("\n",o);if((-1===i||i>r)&&(i=r),i>o){this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column]);for(let n=o+1>>5,r=i-1>>5;n<=r;n++){let r=t[n];if(!r)continue;const a=n<<5;for(;r;){const t=r&-r,n=a+31-Math.clz32(t);if(n>o&&n<i){const t=n-o;this.rawSegments.push([this.generatedCodeColumn+t,e,s.line,s.column+t])}r^=t}}s.column+=i-o,this.generatedCodeColumn+=i-o}if(i===r)break;s.line+=1,s.column=0,this.nextLine(),o=i+1}}}advance(e){if(!e)return;const t=e.lastIndexOf("\n");for(let t=e.indexOf("\n");-1!==t;t=e.indexOf("\n",t+1))this.nextLine();this.generatedCodeColumn+=e.length-t-1}};const M="\n",_="\n".charCodeAt(0),L="\r".charCodeAt(0),T={insertLeft:!1,insertRight:!1,storeName:!1};function B(e,t,n,s,i,r){if(!e.includes("$"))return e;let o="",a=0;for(;a<e.length;){const l=e.indexOf("$",a);if(-1===l){o+=e.slice(a);break}o+=e.slice(a,l);const c=e[l+1];let u="$",d=1;if("$"===c)d=2;else if("&"===c)u=t,d=2;else if("`"===c)u=s.slice(0,n),d=2;else if("'"===c)u=s.slice(n+t.length),d=2;else if("<"===c&&void 0!==r){const t=e.indexOf(">",l+2);-1!==t&&(u=r[e.slice(l+2,t)]??"",d=t+1-l)}else if(c>="0"&&c<="9"){const t=e[l+2],n=t>="0"&&t<="9"?Number(c+t):NaN,s=Number(c);n>=1&&n<=i.length?(u=i[n-1]??"",d=3):s>=1&&s<=i.length&&(u=i[s-1]??"",d=2)}o+=u,a=l+d}return o}var z=class e{constructor(e,t={}){const n=new b(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},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:new Map([[0,n]])},byEnd:{writable:!0,value:new Map([[e.length,n]])},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new y},storedNames:{writable:!0,value:new Set},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:t.ignoreList},offset:{writable:!0,value:t.offset||0},hasMovedChunks:{writable:!0,value:!1}})}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if("string"!=typeof e)throw new E("content must be a string, got "+typeof e);return this.outro+=e,this}appendLeft(e,t){if((e=this._resolveIndex(e))<0||e>this.original.length)throw new E(`index ${e} is out of bounds`);if("string"!=typeof t)throw new E("content must be a string, got "+typeof t);this._split(e);const n=this.byEnd.get(e);return n?n.appendLeft(t):this.intro+=t,this}appendRight(e,t){if((e=this._resolveIndex(e))<0||e>this.original.length)throw new E(`index ${e} is out of bounds`);if("string"!=typeof t)throw new E("content must be a string, got "+typeof t);this._split(e);const n=this.byStart.get(e);return n?n.appendRight(t):this.outro+=t,this}clone(){const t=new e(this.original,{filename:this.filename,ignoreList:this.ignoreList,offset:this.offset});let n=this.firstChunk,s=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart.set(s.start,s),t.byEnd.set(s.end,s);const e=n.next,i=e&&e.clone();i&&(s.next=i,i.previous=s,s=i),n=e}return t.lastChunk=s,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new y(this.sourcemapLocations),t.storedNames=new Set(this.storedNames),t.intro=this.intro,t.outro=this.outro,t.hasMovedChunks=this.hasMovedChunks,t}generateDecodedMap(e){const t=new D((e=e||{}).hires),n=this._generateMappings(t);return{...this._mapProperties(e,n),mappings:t.raw,rangeMappings:t.rawRangeMappings}}generateMap(e){e=e||{};const t=new O,n=new D(e.hires,t),s=this._generateMappings(n);return new A({...this._mapProperties(e,s),mappings:t.finish(n.rawSegments),rangeMappings:n.rawRangeMappings})}_generateMappings(e){const t=[...this.storedNames];return e.addMagicString(this,0,new Map(t.map((e,t)=>[e,t]))),t}_mapProperties(e,t){return{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?P(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:t,x_google_ignoreList:this.ignoreList?[0]:void 0}}_ensureindentStr(){void 0===this.indentStr&&(this.indentStr=function(e){const t=e.split("\n"),n=t.filter(e=>/^\t+/.test(e)),s=t.filter(e=>/^ {2,}/.test(e));if(0===n.length&&0===s.length)return null;if(n.length>=s.length)return"\t";const i=s.reduce((e,t)=>{const n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return" ".repeat(i)}(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr??"\t"}indent(e,t){const n=/^[^\r\n]/gm;if($(e)&&(t=e,e=void 0),void 0===e&&(this._ensureindentStr(),e=this.indentStr||"\t"),""===e)return this;const s=e;t=t||{};const i=new y;t.exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach(e=>{for(let t=e[0];t<e[1];t+=1)i.add(t)});let r=!1!==t.indentStart;const o=e=>{if(""===e)return e;const t=e.replace(n,(e,t)=>t>0||r?`${s}${e}`:e);return r="\n"===e[e.length-1],t};this.intro=o(this.intro);let a=0,l=this.firstChunk;const c=e=>{r=!1,e===l.start?l.appendRight(s):(this._splitChunk(l,e),l=l.next,l.prependRight(s))};for(;l;){const e=l.end;if(i.has(l.start)||(l.intro=o(l.intro)),l.edited)i.has(l.start)?l.content&&(r="\n"===l.content[l.content.length-1]):l.content=o(l.content);else if(t.exclude)for(a=l.start;a<e;){if(!i.has(a)){const e=this.original.charCodeAt(a);e===_?r=!0:e!==L&&r&&c(a)}a+=1}else for(a=l.start;a<e;){if(!r){const t=this.original.indexOf(M,a);if(-1===t||t>=e)break;r=!0,a=t+1;continue}const t=this.original.charCodeAt(a);t!==_&&t!==L?(c(a),a+=1):a+=1}i.has(l.end-1)||(l.outro=o(l.outro)),a=l.end,l=l.next}return this.outro=o(this.outro),this}insert(){throw new E("insert() is deprecated, use appendLeft() or prependRight()")}insertLeft(e,t){return T.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),T.insertLeft=!0),this.appendLeft(e,t)}insertRight(e,t){return T.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),T.insertRight=!0),this.prependRight(e,t)}move(e,t,n,s="right"){if(e=this._resolveIndex(e),t=this._resolveIndex(t),n=this._resolveIndex(n),e===t)return this;if(e<0||t>this.original.length||n<0||n>this.original.length)throw new E(`range ${e}–${t} is out of bounds`);if(e>t)throw new E(`end must be greater than start (start: ${e}, end: ${t})`);if(n>=e&&n<=t)throw new E("cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);const i=this.byStart.get(e),r=this.byEnd.get(t);if(!i||!r)throw new E(`range ${e}–${t} is out of bounds`);if(this.hasMovedChunks){let n=i;for(;n!==r;)if(n=n.next,!n||n.start<e||n.end>t)throw new E(`cannot move ${e} to ${t} because an earlier move split that range`)}const o=i.previous,a=r.next;let l,c;if("left"===s)if(l=this.byEnd.get(n)??null,l){if(l.next===i)return this;c=l.next}else{if(i===this.firstChunk)return this;c=this.firstChunk}else if(c=this.byStart.get(n)??null,c){if(c.previous===r)return this;l=c.previous}else{if(r===this.lastChunk)return this;l=this.lastChunk}return o&&(o.next=a),a&&(a.previous=o),l&&(l.next=i),c&&(c.previous=r),o||(this.firstChunk=a),a||(this.lastChunk=o,this.lastChunk.next=null),i.previous=l,r.next=c||null,l||(this.firstChunk=i),c||(this.lastChunk=r),this.hasMovedChunks=!0,this}overwrite(e,t,n,s){if(!0===s)return T.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),T.storeName=!0),this.update(e,t,n,{storeName:!0,overwrite:!0});const i="object"==typeof s&&s?s:{};return this.update(e,t,n,{...i,overwrite:!i.contentOnly})}update(e,t,n,s){if(e=this._resolveIndex(e),t=this._resolveIndex(t),"string"!=typeof n)throw new E("content must be a string, got "+typeof n);if(e<0)throw new E(`start ${e} is out of bounds`);if(t>this.original.length)throw new E(`end ${t} is out of bounds`);if(e===t)throw new E(`cannot overwrite a zero-length range at ${e}, use appendLeft() or prependRight()`);if(e>t)throw new E(`end must be greater than start (start: ${e}, end: ${t})`);this._split(e),this._split(t),!0===s&&(T.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),T.storeName=!0),s={storeName:!0});const i="object"==typeof s&&s?s:{},r=i.storeName||!1,o=i.overwrite||!1;r&&this.storedNames.add(this.original.slice(e,t));const a=this.byStart.get(e);for(let e=a;e.end<t;){const t=e.next;if(null===t||t!==this.byStart.get(e.end))throw new E("cannot overwrite across a split point");e=t}for(let n=a.next;null!==n&&n.start<t;n=n.next)n.edit("",!1,!o),n.replacesUntil=-1,n.replacedFrom=e;return a.edit(n,r,!o),a.replacesUntil=t,a.replacedFrom=-1,this}prepend(e){if("string"!=typeof e)throw new E("content must be a string, got "+typeof e);return this.intro=e+this.intro,this}prependLeft(e,t){if((e=this._resolveIndex(e))<0||e>this.original.length)throw new E(`index ${e} is out of bounds`);if("string"!=typeof t)throw new E("content must be a string, got "+typeof t);this._split(e);const n=this.byEnd.get(e);return n?n.prependLeft(t):this.intro=t+this.intro,this}prependRight(e,t){if((e=this._resolveIndex(e))<0||e>this.original.length)throw new E(`index ${e} is out of bounds`);if("string"!=typeof t)throw new E("content must be a string, got "+typeof t);this._split(e);const n=this.byStart.get(e);return n?n.prependRight(t):this.outro=t+this.outro,this}remove(e,t){if((e=this._resolveIndex(e))===(t=this._resolveIndex(t)))return this;if(e<0||t>this.original.length)throw new E(`range ${e}–${t} is out of bounds`);if(e>t)throw new E(`end must be greater than start (start: ${e}, end: ${t})`);this._split(e),this._split(t);let n=this.byStart.get(e);for(;n;)n.start>e&&(n.intro=""),n.end<t&&(n.outro=""),n.edit("",!1,!0),n.replacesUntil=-1,n.replacedFrom=-1,n=t>n.end?this.byStart.get(n.end):void 0;return this}reset(e,t){if((e=this._resolveIndex(e))===(t=this._resolveIndex(t)))return this;if(e<0||t>this.original.length)throw new E(`range ${e}–${t} is out of bounds`);if(e>t)throw new E(`end must be greater than start (start: ${e}, end: ${t})`);this._split(e),this._split(t);let n=this.byStart.get(e);for(;n;)n.reset(),n=t>n.end?this.byStart.get(n.end):void 0;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;for(;e;){if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1];e=e.previous}return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(M);if(-1!==e)return this.outro.slice(e+1);let t=this.outro,n=this.lastChunk;for(;n;){if(n.outro.length>0){if(e=n.outro.lastIndexOf(M),-1!==e)return n.outro.slice(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf(M),-1!==e)return n.content.slice(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf(M),-1!==e)return n.intro.slice(e+1)+t;t=n.intro+t}n=n.previous}return e=this.intro.lastIndexOf(M),-1!==e?this.intro.slice(e+1)+t:this.intro+t}slice(e=0,t=this.original.length-this.offset){e=this._resolveIndex(e),t=this._resolveIndex(t);let n,s="";if(this.hasMovedChunks)for(n=this.firstChunk;n&&(n.start>e||n.end<=e);){if(n.start<t&&n.end>=t||0===t&&0===n.start)return s;n=n.next}else{if(e>=t)return s;n=this._chunkAt(e)}if(n&&n.edited&&n.start!==e)throw new E(`cannot use edited character ${e} as slice start anchor`);const i=n;for(;n&&(0!==t||0!==n.start);){!n.intro||i===n&&n.start!==e||(s+=n.intro);const r=n.start<t&&n.end>=t;if(r&&n.edited&&n.end!==t)throw new E(`cannot use edited character ${t} as slice end anchor`);const o=i===n?e-n.start:0,a=r?n.content.length+t-n.end:n.content.length;if(s+=n.content.slice(o,a),!n.outro||r&&n.end!==t||(s+=n.outro),r)break;n=n.next}return s}snip(e,t){const n=this.clone();return n.remove(-n.offset,e),n.remove(t,n.original.length-n.offset),n}_resolveIndex(e){const t=e+this.offset;if(!Number.isInteger(t))throw new E(`index must be an integer, got ${e}`);return t<0&&0!==this.original.length?Math.max(0,t+this.original.length):t}_chunkAt(e){let t=this.byStart.get(e);if(t)return t;t=this.lastSearchedChunk;const n=e>=t.end;for(;t&&!t.contains(e);)t=n?this.byStart.get(t.end):this.byEnd.get(t.start);return t&&(this.lastSearchedChunk=t),t}_split(e){if(this.byStart.get(e)||this.byEnd.get(e))return;let t=this.lastSearchedChunk,n=t;const s=e>t.end;for(;t;){if(t.contains(e))return this._splitChunk(t,e);if(t=s?this.byStart.get(t.end):this.byEnd.get(t.start),t===n)return;n=t}}_splitChunk(e,t){if(e.edited&&e.content.length){const n=S(this.original)(t);throw new E(`cannot split a chunk that has already been edited (${n.line}:${n.column} – "${e.original}")`)}const n=e.split(t);return this.byEnd.set(t,e),this.byStart.set(t,n),this.byEnd.set(n.end,n),e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,t=this.firstChunk;for(;t;)e+=t.toString(),t=t.next;return e+this.outro}isEmpty(){if(this.intro.length&&this.intro.trim())return!1;let e=this.firstChunk;for(;e;){if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;e=e.next}return!this.outro.length||!this.outro.trim()}length(){let e=this.firstChunk,t=0;for(;e;)t+=e.intro.length+e.content.length+e.outro.length,e=e.next;return t}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const t=new RegExp(`${e||"\\s"}+$`);if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let n=this.lastChunk;do{const e=n.end,s=n.trimEnd(t);if(n.end!==e){const e=n.next;this.lastChunk===n&&(this.lastChunk=e),this.byEnd.set(n.end,n),this.byStart.set(e.start,e),this.byEnd.set(e.end,e)}if(s)return!0;n=n.previous}while(n);return this.intro=this.intro.replace(t,""),this.intro.length>0}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const t=new RegExp(`^${e||"\\s"}+`);if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let n=this.firstChunk;do{const e=n.end,s=n.trimStart(t);if(n.end!==e){const e=n.next;n===this.lastChunk&&(this.lastChunk=e),this.byEnd.set(n.end,n),this.byStart.set(e.start,e),this.byEnd.set(e.end,e)}if(s)return!0;n=n.next}while(n);return this.outro=this.outro.replace(t,""),this.outro.length>0}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){if(this.intro||this.outro)return!0;let e=0,t=this.firstChunk;for(;t;){if(t.intro||t.outro)return!0;if(t.edited||t.start!==e){if(!this.original.startsWith(t.content,e))return!0;e+=t.content.length}else e=t.end;t=t.next}return e!==this.original.length}_hasRemovedContent(e,t){const n=this.byStart.get(e);if(n&&e===t){const t=this.byEnd.get(e);return!!t&&""===t.content&&""===n.content}let s=this._chunkAt(e);for(;s&&s.start<t;){if(""===s.content&&(s.replacedFrom<e||this.byStart.get(s.replacedFrom).replacesUntil<s.end))return!0;s=this.byStart.get(s.end)}return!1}_replaceRegexp(e,t){function n(e,n,s){return"string"==typeof t?B(t,e[0],n,s,e.slice(1),e.groups):void 0===e.groups?t(e[0],...e.slice(1),n,s):t(e[0],...e.slice(1),n,s,e.groups)}const s=e=>{if(null==e.index)return!1;if(this._hasRemovedContent(e.index,e.index+e[0].length))return!1;const t=n(e,e.index,this.original);return t===e[0]||(0===e[0].length?this.appendRight(e.index-this.offset,t):this.overwrite(e.index-this.offset,e.index+e[0].length-this.offset,t)),!0};if(e.global){e.lastIndex=0;for(const t of this.original.matchAll(e))s(t)}else{const t=this.original.match(e);if(t&&!s(t)){const t=new RegExp(e.source,`${e.flags}g`);for(const e of this.original.matchAll(t))if(s(e))break}}return this}_replaceString(e,t){const{original:n}=this;let s=n.indexOf(e);for(;-1!==s;){if(!this._hasRemovedContent(s,s+e.length)){e!==(t="function"==typeof t?t(e,s,n):B(t,e,s,n,[],void 0))&&(0===e.length?this.appendRight(s-this.offset,t):this.overwrite(s-this.offset,s+e.length-this.offset,t));break}s=n.indexOf(e,s+e.length)}return this}replace(e,t){return"string"==typeof e?this._replaceString(e,t):this._replaceRegexp(e,t)}_replaceAllString(e,t){const{original:n}=this,s=e.length;if(0===s){for(let e=0;e<=n.length;e+=1){if(this._hasRemovedContent(e,e))continue;const s="function"==typeof t?t("",e,n):B(t,"",e,n,[],void 0);""!==s&&this.appendRight(e-this.offset,s)}return this}for(let i=n.indexOf(e);-1!==i;i=n.indexOf(e,i+s)){if(this._hasRemovedContent(i,i+s))continue;const e=n.slice(i,i+s),r="function"==typeof t?t(e,i,n):B(t,e,i,n,[],void 0);e!==r&&this.overwrite(i-this.offset,i+s-this.offset,r)}return this}replaceAll(e,t){if("string"==typeof e)return this._replaceAllString(e,t);if(!e.global)throw new E("replaceAll() requires a global RegExp");return this._replaceRegexp(e,t)}};const F=Object.prototype.hasOwnProperty;var V=class e{constructor(e={}){this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename=new Map}addSource(e){if(e instanceof z)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!$(e)||!e.content)throw new E("addSource() requires a `content` property that is a MagicString");const t=e.content,n={content:t,filename:F.call(e,"filename")?e.filename:t.filename,ignoreList:F.call(e,"ignoreList")?e.ignoreList:t.ignoreList,indentExclusionRanges:F.call(e,"indentExclusionRanges")?e.indentExclusionRanges:t.indentExclusionRanges,separator:e.separator??this.separator};if(n.filename){const e=this.uniqueSourceIndexByFilename.get(n.filename);if(void 0===e)this.uniqueSourceIndexByFilename.set(n.filename,this.uniqueSources.length),this.uniqueSources.push({filename:n.filename,content:t.original});else if(t.original!==this.uniqueSources[e].content)throw new E(`duplicate filename "${n.filename}" with different content, use unique filenames`)}return this.sources.push(n),this}append(e,t){return this.addSource({content:new z(e),separator:t&&t.separator||""}),this}clone(){const t=new e({intro:this.intro,separator:this.separator});return this.sources.forEach(e=>{t.addSource({filename:e.filename,content:e.content.clone(),ignoreList:e.ignoreList,indentExclusionRanges:e.indentExclusionRanges,separator:e.separator})}),t}toMagicString(){const e=new z(this.sources.map(e=>e.content.original).join(""));let t=0,n=this.intro,s=null,i=null;const r=new Map,o=new Map;let a=!1;for(const[l,c]of this.sources.entries()){const u=c.content,d=l>0?c.separator:"";if(0===u.original.length){n+=d+u.toString();continue}n+=d+u.intro;let h=null,p=null,f=u.firstChunk;for(;f;){const e=f.clone();e.start+=t,e.end+=t,-1!==e.replacesUntil&&(e.replacesUntil+=t),-1!==e.replacedFrom&&(e.replacedFrom+=t),e.previous=p,e.next=null,p&&(p.next=e),r.set(e.start,e),o.set(e.end,e),h??=e,p=e,f=f.next}const m=p;h.intro=n+h.intro,n="",m.outro+=u.outro,i?(i.next=h,h.previous=i):s=h,i=m,u.sourcemapLocations.forEach(n=>{n<u.original.length&&e.sourcemapLocations.add(n+t)}),u.storedNames.forEach(t=>e.storedNames.add(t)),u.hasMovedChunks&&(a=!0),t+=u.original.length}return s&&i?(n&&(i.outro+=n),e.firstChunk=s,e.lastChunk=i,e.lastSearchedChunk=s,e.byStart=r,e.byEnd=o,e.hasMovedChunks=a,e):(e.intro=n,e)}generateDecodedMap(e={}){const t=new D(e.hires),{names:n,x_google_ignoreList:s}=this._generateMappings(t);return{...this._mapProperties(e,n,s),mappings:t.raw,rangeMappings:t.rawRangeMappings}}generateMap(e={}){const t=new O,n=new D(e.hires,t),{names:s,x_google_ignoreList:i}=this._generateMappings(n);return new A({...this._mapProperties(e,s,i),mappings:t.finish(n.rawSegments),rangeMappings:n.rawRangeMappings})}_generateMappings(e){let t;const n=new Set;this.sources.forEach(e=>e.content.storedNames.forEach(e=>n.add(e)));const s=[...n],i=new Map(s.map((e,t)=>[e,t]));return this.intro&&e.advance(this.intro),this.sources.forEach((n,s)=>{s>0&&e.advance(n.separator);const r=n.filename?this.uniqueSourceIndexByFilename.get(n.filename)??-1:-1;e.addMagicString(n.content,r,i),n.ignoreList&&-1!==r&&(void 0===t&&(t=[]),t.push(r))}),{names:s,x_google_ignoreList:t}}_mapProperties(e,t,n){return{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(t=>e.file?P(e.file,t.filename):t.filename),sourcesContent:this.uniqueSources.map(t=>("function"==typeof e.includeContent?e.includeContent(t):e.includeContent)?t.content:null),names:t,x_google_ignoreList:n}}getIndentString(){const e=new Map;return this.sources.forEach(t=>{const n=t.content._getRawIndentString();null!=n&&e.set(n,(e.get(n)??0)+1)}),[...e.entries()].sort(([,e],[,t])=>t-e)[0]?.[0]??"\t"}indent(e){if(arguments.length||(e=this.getIndentString()),""===e)return this;let t=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach((n,s)=>{const i=t||s>0&&/\r?\n$/.test(n.separator);n.content.indent(e,{exclude:n.indentExclusionRanges,indentStart:i}),t="\n"===n.content.lastChar()}),this.intro&&(this.intro=e+this.intro.replace(/^[^\r\n]/gm,(t,n)=>n>0?e+t:t)),this}prepend(e){return this.intro=e+this.intro,this}toString(){const e=this.sources.map((e,t)=>(t>0?e.separator:"")+e.content.toString()).join("");return this.intro+e}isEmpty(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some((e,t)=>t>0&&""!==e.separator.trim()||!e.content.isEmpty())}length(){return this.sources.reduce((e,t,n)=>e+(n>0?t.separator.length:0)+t.content.length()+t.content.intro.length+t.content.outro.length,this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimStart(e){const t=new RegExp(`^${e||"\\s"}+`);if(this.intro=this.intro.replace(t,""),!this.intro)for(let n=0;n<this.sources.length;n+=1){const s=this.sources[n];if(n>0&&(s.separator=s.separator.replace(t,""),s.separator))break;if(s.content.trimStartAborted(e))break}return this}trimEnd(e){const t=new RegExp(`${e||"\\s"}+$`);for(let n=this.sources.length-1;n>=0;n-=1){const s=this.sources[n];if(s.content.trimEndAborted(e))return this;if(n>0&&(s.separator=s.separator.replace(t,""),s.separator))return this}return this.intro=this.intro.replace(t,""),this}};const j=/^(?:\/|(?:[A-Za-z]:)?[/\\|])/,U=/^\.?\.\//,G=/\\/g,H=/[/\\]/,W=/^[A-Za-z]:$/,q=/[/\\]+$/;function K(e){return j.test(e)}function X(e){return U.test(e)}function J(e){return e.replace(G,"/")}function Y(e){return e.replace(q,"").split(H).pop()||""}function Z(e){const t=e.replace(q,""),n=/[/\\][^/\\]*$/.exec(t);if(n){return t.slice(0,-n[0].length)||"/"}return""===t?e?"/":".":e!==t&&W.test(t)?t:"."}function Q(e){const t=Y(e);if("."===t||".."===t)return"";const n=t.lastIndexOf(".");return n>0?t.slice(n):""}function ee(e,t){const n=[],s=W.test(e[0])?1:0;for(const i of e)".."===i?n.length>s&&".."!==n[n.length-1]?n.pop():t||0!==s||n.push(".."):"."!==i&&""!==i&&n.push(i);return n}function te(e,t){const n=ee(e.split(H),K(e)),s=ee(t.split(H),K(t));for(;n[0]&&s[0]&&n[0]===s[0];)n.shift(),s.shift();for(;n.pop();)s.unshift("..");return s.join("/")}function ne(...e){let t=[],n=!1;for(const s of e)K(s)?(t=s.split(H),n=!0):t.push(...s.split(H));const s=ee(t,n).join("/");return n?/^[A-Za-z]:/.test(s)?s:"/"+s:s||"/"}function se(e,t,n,s){t.remove(n,s),e.removeAnnotations(t)}const ie={isNoStatement:!0};function re(e,t,n=0){let s,i;for(s=e.indexOf(t,n);;){if(-1===(n=e.indexOf("/",n))||n>=s)return s;i=e.charCodeAt(++n),++n,(n=47===i?e.indexOf("\n",n)+1:e.indexOf("*/",n)+2)>s&&(s=e.indexOf(t,n))}}const oe=/\S/g;function ae(e,t){oe.lastIndex=t;return oe.exec(e).index}const le=/\s/;function ce(e,t){return t>0&&13===e.charCodeAt(t-1)?t-1:t}function ue(e){let t,n,s=0;for(t=e.indexOf("\n",s);;){if(s=e.indexOf("/",s),-1===s||s>t)return[ce(e,t),t+1];if(n=e.charCodeAt(s+1),47===n)return[s,t+1];s=e.indexOf("*/",s+2)+2,s>t&&(t=e.indexOf("\n",s))}}function de(e,t,n,s,i){let r,o,a,l,c=e[0],u=!c.included||c.needsBoundaries;u&&(l=n+ue(t.original.slice(n,c.start))[1]);for(let n=1;n<=e.length;n++)r=c,o=l,a=u,c=e[n],u=void 0!==c&&(!c.included||c.needsBoundaries),a||u?(l=r.end+ue(t.original.slice(r.end,void 0===c?s:c.start))[1],r.included?a?r.render(t,i,{end:l,start:o}):r.render(t,i):se(r,t,o,l)):r.render(t,i)}function he(e,t,n,s){const i=[];let r,o,a,l,c=n-1;for(const s of e){for(void 0!==r&&(c=r.end+re(t.original.slice(r.end,s.start),",")),o=a=c+1+ue(t.original.slice(c+1,s.start))[1];l=t.original.charCodeAt(o),32===l||9===l||10===l||13===l;)o++;void 0!==r&&i.push({contentEnd:a,end:o,node:r,separator:c,start:n}),r=s,n=o}return i.push({contentEnd:s,end:s,node:r,separator:null,start:n}),i}function pe(e,t,n){for(;;){const[s,i]=ue(e.original.slice(t,n));if(-1===s)break;e.remove(t+s,t+=i)}}function fe(e,{exportNamesByVariable:t,snippets:{_:n,getObject:s,getPropertyAccess:i}},r=""){if(1===e.length&&1===t.get(e[0]).length){const s=e[0];return`exports(${JSON.stringify(t.get(s)[0])},${n}${s.getName(i)}${r})`}{const n=[];for(const s of e)for(const e of t.get(s))n.push([e,s.getName(i)+r]);return`exports(${s(n,{lineBreakIndent:null})})`}}function me(e,t,n,s,{exportNamesByVariable:i,snippets:{_:r}}){s.prependRight(t,`exports(${JSON.stringify(i.get(e)[0])},${r}`),s.appendLeft(n,")")}function ge(e,t,n,s,i,r){const{_:o,getPropertyAccess:a}=r.snippets;i.appendLeft(n,`,${o}${fe([e],r)},${o}${e.getName(a)}`),s&&(i.prependRight(t,"("),i.appendLeft(n,")"))}const ye=Object.freeze(Object.create(null)),be=Object.freeze({}),Ee=Object.freeze([]),xe=Object.freeze(new class extends Set{add(){throw new Error("Cannot add to empty set")}});function ve(e,t,n){const s=e.get(t);if(void 0!==s)return s;const i=n();return e.set(t,i),i}function Ae(){return new Set}function Se(){return[]}const Pe=Symbol("Unknown Key"),we=Symbol("Unknown Non-Accessor Key"),$e=Symbol("Unknown Integer"),Ie=Symbol("Unknown Well-Known"),Ce=Symbol("Symbol.toStringTag"),ke=Symbol("Symbol.dispose"),Ne=Symbol("Symbol.asyncDispose"),Oe=Symbol("Symbol.hasInstance"),Re=new Set([Ce,ke,Ne,Oe]),De=e=>Re.has(e)||e===Ie,Me=new Set([Oe,ke,Ne]),_e=e=>"string"==typeof e||Re.has(e),Le=[],Te=[Pe],Be=[we],ze=[$e],Fe=[Oe],Ve=Symbol("Entities");class je{constructor(){this.entityPaths=Object.create(null,{[Ve]:{value:new Set}})}trackEntityAtPathAndGetIfTracked(e,t){const n=this.getEntities(e);return!!n.has(t)||(n.add(t),!1)}withTrackedEntityAtPath(e,t,n,s){const i=this.getEntities(e);if(i.has(t))return s;i.add(t);const r=n();return i.delete(t),r}getEntities(e){let t=this.entityPaths;for(const n of e)t=t[n]||=Object.create(null,{[Ve]:{value:new Set}});return t[Ve]}}const Ue=new je;class Ge{constructor(){this.entityPaths=Object.create(null,{[Ve]:{value:new Map}})}trackEntityAtPathAndGetIfTracked(e,t,n){let s=this.entityPaths;for(const t of e)s=s[t]||=Object.create(null,{[Ve]:{value:new Map}});const i=ve(s[Ve],t,Ae);return!!i.has(n)||(i.add(n),!1)}}const He=Object.freeze({[Pe]:be});class We{constructor(){this.includedPaths=null}includePathAndGetIfIncluded(e){let t=!0,n=this,s="includedPaths",i=this.includedPaths||=(t=!1,Object.create(null));for(const r of e){if(i[Pe])return!0;if(!_e(r))return n[s]=He,!1;n=i,s=r,i=i[r]||=(t=!1,Object.create(null))}return t}includeAllPaths(e,t,n){this.includedPaths&&qe(e,t,n,this.includedPaths)}}function qe(e,t,n,s){if(s[Pe])return void e.includePath([...n,Pe],t);const i=Reflect.ownKeys(s);if(0!==i.length)for(const r of i)qe(e,t,[...n,r],s[r]);else e.includePath(n,t)}const Ke=Object.freeze({[Pe]:!0});class Xe{constructor(){this.includedPaths=null}includePathAndGetIfIncluded(e){let t=!0;const n=this.includedPaths||=(t=!1,Object.create(null));if(n[Pe])return!0;const[s,i]=e;return s?_e(s)?i?n[s]===Pe||(n[s]=Pe,!1):!!n[s]||(n[s]=!0,!1):(this.includedPaths=Ke,!1):t}includeAllPaths(e,t,n){const{includedPaths:s}=this;if(s)if(s[Pe])e.includePath([...n,Pe],t);else{const i=Reflect.ownKeys(s);if(0===i.length)e.includePath(n,t);else for(const r of i)e.includePath(s[r]===Pe?[...n,r,Pe]:[...n,r],t)}}}function Je(e,t){return 0!==(e&t)}function Ye(e,t,n){return e&~t|-n&t}const Ze=Symbol("Unknown Value"),Qe=Symbol("Unknown Truthy Value"),et=Symbol("Unknown Falsy Value");class tt{constructor(){this.flags=0}get included(){return Je(this.flags,1)}set included(e){this.flags=Ye(this.flags,1,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){it(e)}deoptimizePath(e){}getKnownFunctionAtPath(e,t,n){return null}getLiteralValueAtPath(e,t,n){return Ze}getReturnExpressionWhenCalledAtPath(e,t,n,s){return st}hasEffectsOnInteractionAtPath(e,t,n){return!0}include(e,t,n){this.included||this.includeNode(e)}includeNode(e){this.included=!0}includePath(e,t){this.included||this.includeNode(t)}includeCallArgumentsWhenCalledAtPath(e,t,n){rt(t,n)}shouldBeIncluded(e){return!0}}const nt=new class extends tt{},st=[nt,!1],it=e=>{for(const t of e.args)t?.deoptimizePath(Te)},rt=(e,t)=>{e.args[0]?.includePath(Te,t),ot(e,t)},ot=({args:e},t)=>{for(let n=1;n<e.length;n++){const s=e[n];s&&(s.includePath(Te,t),s.include(t,!1))}},at={args:[null],type:0},lt={args:[null,nt],type:1},ct={args:[null],type:2,withNew:!1},ut=new Set(["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","NaN","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield"]);function dt(e){let t="";do{const n=e%64;e=e/64|0,t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$"[n]+t}while(0!==e);return t}function ht(e,t,n){let s=e,i=1;for(;t.has(s)||ut.has(s)||n?.has(s);)s=`${e}$${dt(i++)}`;return t.add(s),s}function pt(e,t){return e.start<=t&&t<e.end}function ft(e,t,n){return function(e,t={}){const{offsetLine:n=0,offsetColumn:s=0}=t;let i=0;const r=e.split("\n").map((e,t)=>{const n=i+e.length+1,s={start:i,end:n,line:t};return i=n,s});let o=0;return function(t,i){if("string"==typeof t&&(t=e.indexOf(t,i??0)),-1===t)return;let a=r[o];const l=t>=a.end?1:-1;for(;a;){if(pt(a,t))return{line:n+a.line,column:s+t-a.start,character:t};o+=l,a=r[o]}}}(e,n)(t,n&&n.startIndex)}function mt(e){return e.replace(/^\t+/,e=>e.split("\t").join(" "))}const gt="...";function yt(e,t,n){let s=e.split("\n");if(t>s.length)return"";const i=Math.max(mt(s[t-1].slice(0,n)).length+10+3,120),r=Math.max(0,t-3);let o=Math.min(t+2,s.length);for(s=s.slice(r,o);!/\S/.test(s[s.length-1]);)s.pop(),o-=1;const a=String(o).length;return s.map((e,s)=>{const o=r+s+1===t;let l=String(s+r+1);for(;l.length<a;)l=` ${l}`;let c=mt(e);if(c.length>i&&(c=`${c.slice(0,i-3)}${gt}`),o){const t=function(e){let t="";for(;e--;)t+=" ";return t}(a+2+mt(e.slice(0,n)).length)+"^";return`${l}: ${c}\n${t}`}return`${l}: ${c}`}).join("\n")}const bt="silent",Et="warn",xt="info",vt="debug",At={[vt]:0,[xt]:1,[bt]:3,[Et]:2};function St(e,t){const n=e.length<=1,s=e.map(e=>`"${e}"`);let i=n?s[0]:`${s.slice(0,-1).join(", ")} and ${s.slice(-1)[0]}`;return t&&(i+=` ${n?t[0]:t[1]}`),i}function Pt(e){const t=Y(e);return t.slice(0,Math.max(0,t.length-Q(e).length))}function wt(e){return K(e)?te(ne(),e):e}function $t(e){return"/"===e[0]||"."===e[0]&&("/"===e[1]||"."===e[1])||K(e)}const It=/^(\.\.\/)*\.\.$/;function Ct(e,t,n,s){for(;t.startsWith("../");)t=t.slice(3),e="_/"+e;let i=J(te(Z(e),t));if(n&&i.endsWith(".js")&&(i=i.slice(0,-3)),s){if(""===i)return"../"+Y(t);if(It.test(i))return[...i.split("/"),"..",Y(t)].join("/")}return i?i.startsWith("..")?i:"./"+i:"."}function kt(e){return`https://rollupjs.org/${e}`}const Nt="troubleshooting/#error-name-is-not-exported-by-module",Ot="configuration-options/#jsx",Rt="configuration-options/#output-amd-id",Dt="configuration-options/#output-dir",Mt="configuration-options/#output-exports",_t="configuration-options/#output-format",Lt="configuration-options/#output-globals",Tt="configuration-options/#output-inlinedynamicimports",Bt="configuration-options/#output-interop",zt="configuration-options/#output-manualchunks",Ft="configuration-options/#output-name",Vt="configuration-options/#output-sourcemapfile",jt="es-module-syntax/#source-phase-import",Ut="plugin-development/#generatebundle";function Gt(e){throw e instanceof Error?e:Ht(e)}function Ht(e){Xt(e);const t=Object.assign(new Error(e.message),e);return Object.defineProperty(t,"name",{value:"RollupError",writable:!0}),t}function Wt(e,t,n){Xt(e),Xt(t);const s="buildEnd"===n?"the build":"rendering";return{...e,message:`There was an error during ${s}:\n ${e.message}\nAdditionally, handling the error in the '${n}' hook caused the following error:\n ${t.message}`}}function qt(e,t,n,s){if("object"==typeof t){const{line:n,column:i}=t;e.loc={column:i,file:s,line:n}}else{e.pos=t;const i=ft(n,t,{offsetLine:1});if(!i)return;const{line:r,column:o}=i;e.loc={column:o,file:s,line:r}}if(void 0===e.frame){const{line:t,column:s}=e.loc;e.frame=yt(n,t,s)}}const Kt=Symbol("augmented");function Xt(e){if(!e.plugin&&!e.loc||e[Kt])return;e[Kt]=!0;let t="";e.plugin&&(t+=`[plugin ${e.plugin}] `);const n=e.id||e.loc?.file;if(n){const s=e.loc?` (${e.loc.line}:${e.loc.column})`:"";t+=`${wt(n)}${s}: `}const s=e.message;e.message=t+e.message,vn(e,s)}const Jt="CANNOT_SERIALIZE_AST",Yt="INVALID_EXPORT_OPTION",Zt="INVALID_IMPORT_ATTRIBUTE",Qt="INVALID_PLUGIN_HOOK",en="MISSING_EXPORT",tn="MISSING_IMPLICIT_DEPENDANT",nn="MISSING_NAME_OPTION_FOR_IIFE_EXPORT",sn="PARSE_ERROR",rn="SOURCEMAP_BROKEN",on="UNEXPECTED_NAMED_IMPORT",an="UNRESOLVED_ENTRY",ln="UNRESOLVED_IMPORT";function cn(e){return{code:"ASSET_SOURCE_MISSING",message:`Plugin error creating asset "${e}" - no asset source set.`}}function un(e){return{code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ("${e}").`}}function dn(e,t,n){return{code:Jt,message:`Could not serialize AST: Found unknown node type "${e}" ${t?`in ${t}.${n}`:"at the root"}.`}}function hn({fileName:e,code:t},{pos:n,message:s}){const i={code:"CHUNK_INVALID",message:`Chunk "${e}" is not valid JavaScript: ${s}.`};return qt(i,n,t,e),i}function pn(e){return{code:"CIRCULAR_DEPENDENCY",ids:e,message:`Circular dependency: ${e.map(wt).join(" -> ")}`}}function fn(e,t,n,s,i){return{code:"CYCLIC_CROSS_CHUNK_REEXPORT",exporter:t,id:s,message:`Export "${e}" of module "${wt(t)}" was reexported through module "${wt(n)}" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "${wt(s)}" to point directly to the exporting module or ${i?'do not use "output.preserveModules"':'reconfigure "output.manualChunks"'} to ensure these modules end up in the same chunk.`,reexporter:n}}function mn(e){return{code:"EMPTY_MANUAL_CHUNK",message:`Manual chunk "${e}" was not generated as none of its modules are included in the bundle.`,names:[e],url:kt(zt)}}function gn(e){return{code:"FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY",message:`The output file name "${e}" is not contained in the output directory. Make sure all file names are relative paths without ".." segments.`}}function yn(e,t,{line:n,column:s}){return{code:"FIRST_SIDE_EFFECT",message:`First side effect in ${wt(t)} is at (${n}:${s})\n${yt(e,n,s)}`}}function bn(e,t){return{code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment of import "${e}" in "${wt(t)}".`}}function En(e,t,n){return{code:"INVALID_ANNOTATION",id:t,message:`A comment\n\n"${e}"\n\nin "${wt(t)}" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.`,url:kt("noSideEffects"===n?"configuration-options/#no-side-effects":"configuration-options/#pure")}}function xn(e,t){return{code:"INPUT_HOOK_IN_OUTPUT_PLUGIN",message:`The "${t}" hook used by the output plugin ${e} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}}function vn(e,t){return e.stack?(e.stack=e.stack.replace(t,e.message),e):e}function An(e,t,n){return{code:Yt,message:`"${e}" was specified for "output.exports", but entry module "${wt(n)}" has the following exports: ${St(t)}`,url:kt(Mt)}}function Sn(e){return{code:Zt,message:`Rollup could not statically analyze an import attribute of a dynamic import in "${wt(e)}". Import attributes need to have string keys and values.`}}function Pn(e,t,n,s){return{code:"INVALID_OPTION",message:`Invalid value ${void 0===s?"":`${JSON.stringify(s)} `}for option "${e}" - ${n}.`,url:kt(t)}}function wn(e,t){return{binding:e,code:en,exporter:t,message:`Exported variable "${e}" is not defined in "${wt(t)}".`,url:kt(Nt)}}function $n(e,t,n,s){const i={binding:e,code:en,exporter:n,id:t,url:kt(Nt)};if(s)return{...i,message:`Exported variable "${e}" is not defined in "${wt(n)}", but it is imported by "${wt(t)}".`};const r=".json"===Q(n);return{...i,message:`"${e}" is not exported by "${wt(n)}", imported by "${wt(t)}".${r?" (Note that you need @rollup/plugin-json to import JSON files)":""}`}}function In(e){const t=[...e.implicitlyLoadedBefore].map(e=>wt(e.id)).sort();return{code:tn,message:`Module "${wt(e.id)}" that should be implicitly loaded before ${St(t)} is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`}}function Cn(e,t){return{code:"NON_EXTERNAL_SOURCE_PHASE_IMPORT",message:`Source phase import "${e}" in "${wt(t)}" must be external. Source phase imports are only supported for external modules. Use the "external" option to mark this module as external.`,url:kt(jt)}}function kn(e,t,n){return{code:"OPTIMIZE_CHUNK_STATUS",message:`${n}, there are\n${e} chunks, of which\n${t} are below minChunkSize.`}}function Nn(e,t){return{code:sn,message:e,pos:t}}function On(e){return{code:"REDECLARATION_ERROR",message:`Identifier "${e}" has already been declared`}}function Rn(e){return{code:"RESERVED_NAMESPACE",message:`You have overridden reserved namespace "${e}"`}}function Dn(e,t){let n=e.message.replace(/ \(\d+:\d+\)$/,"");return t.endsWith(".json")?n+=" (Note that you need @rollup/plugin-json to import JSON files)":t.endsWith(".js")||(n+=" (Note that you need plugins to import files that are not JavaScript)"),vn({cause:e,code:sn,id:t,message:n,stack:e.stack},e.message)}function Mn(e,t,{hook:n,id:s}={}){const i=e.code;return e.pluginCode||null==i||"string"==typeof i&&i.startsWith("PLUGIN_")||(e.pluginCode=i),e.code="PLUGIN_ERROR",e.plugin=t,n&&(e.hook=n),s&&(e.id=s),e}function _n(e){return{code:rn,message:`Multiple conflicting contents for sourcemap source ${e}`}}function Ln(e,t,n){const s=n?"reexport":"import";return{code:on,exporter:e,message:`The named export "${t}" was ${s}ed from the external module "${wt(e)}" even though its interop type is "defaultOnly". Either remove or change this ${s} or change the value of the "output.interop" option.`,url:kt(Bt)}}function Tn(e){return{code:on,exporter:e,message:`There was a namespace "*" reexport from the external module "${wt(e)}" even though its interop type is "defaultOnly". This will be ignored as namespace reexports only reexport named exports. If this is not intended, either remove or change this reexport or change the value of the "output.interop" option.`,url:kt(Bt)}}function Bn(e){return{code:"VALIDATION_ERROR",message:e}}function zn(e,t,n,s,i){!function(e,t,n,s,i,r){if(n||i){const n=function(e,t,n){return{code:"DEPRECATED_FEATURE",message:e,url:kt(t),...n?{plugin:n}:{}}}(e,t,r);if(i)return Gt(n);s(Et,n)}}(e,t,n,s.onLog,s.strictDeprecations,i)}const Fn="ArrowFunctionExpression",Vn="BlockStatement",jn="CallExpression",Un="ExportDefaultDeclaration",Gn="ExpressionStatement",Hn="FunctionExpression",Wn="Identifier",qn="MemberExpression",Kn="PanicError",Xn="ParseError",Jn="Program",Yn="Property",Zn="StaticBlock",Qn={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["decorators","id","superClass","body"],ClassExpression:["decorators","id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],Decorator:["expression"],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["specifiers","source","attributes","declaration"],ExportSpecifier:["local","exported"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["decorators","key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PanicError:[],ParseError:[],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["decorators","key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],YieldExpression:["argument"]};function es(){return{brokenFlow:!1,hasBreak:!1,hasContinue:!1,includedCallArguments:new Set,includedLabels:new Set}}function ts(){return{accessed:new je,assigned:new je,brokenFlow:!1,called:new Ge,hasBreak:!1,hasContinue:!1,ignore:{breaks:!1,continues:!1,labels:new Set,returnYield:!1,this:!1},includedLabels:new Set,instantiated:new Ge,replacedVariableInits:new Map}}const ns="variables",ss=Symbol("IS_SKIPPED_CHAIN");class is extends tt{get deoptimized(){return Je(this.flags,2)}set deoptimized(e){this.flags=Ye(this.flags,2,e)}constructor(e,t){super(),this.parent=e,this.scope=t,this.createScope(t)}addExportedVariables(e,t){}bind(){for(const e of Qn[this.type]){const t=this[e];if(Array.isArray(t))for(const e of t)e?.bind();else t&&t.bind()}}createScope(e){this.scope=e}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const t of Qn[this.type]){const n=this[t];if(null!==n)if(Array.isArray(n)){for(const t of n)if(t?.hasEffects(e))return!0}else if(n.hasEffects(e))return!0}return!1}hasEffectsAsAssignmentTarget(e,t){return this.hasEffects(e)||this.hasEffectsOnInteractionAtPath(Le,this.assignmentInteraction,e)}include(e,t,n){this.included||this.includeNode(e);for(const n of Qn[this.type]){const s=this[n];if(null!==s)if(Array.isArray(s))for(const n of s)n?.include(e,t);else s.include(e,t)}}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(const t of Qn[this.type]){const n=this[t];if(null!==n)if(Array.isArray(n))for(const t of n)t?.includePath(Te,e);else n.includePath(Te,e)}}includeAsAssignmentTarget(e,t,n){this.include(e,t)}initialise(){this.scope.context.magicString.addSourcemapLocation(this.start),this.scope.context.magicString.addSourcemapLocation(this.end)}removeAnnotations(e){if(this.annotations)for(const t of this.annotations)e.remove(t.start,t.end)}render(e,t){for(const n of Qn[this.type]){const s=this[n];if(null!==s)if(Array.isArray(s))for(const n of s)n?.render(e,t);else s.render(e,t)}}setAssignedValue(e){this.assignmentInteraction={args:[null,e],type:1}}shouldBeIncluded(e){return this.included||!e.brokenFlow&&this.hasEffects(ts())}applyDeoptimizations(){this.deoptimized=!0;for(const e of Qn[this.type]){const t=this[e];if(null!==t)if(Array.isArray(t))for(const e of t)e?.deoptimizePath(Te);else t.deoptimizePath(Te)}this.scope.context.requestTreeshakingPass()}}function rs(){this.included=!0,this.deoptimized||this.applyDeoptimizations()}function os(){this.included=!0}function as(){this.deoptimized=!0}function ls(e){return e instanceof is&&e.type===Fn}function cs(e){return e instanceof is&&e.type===Hn}function us(e){return e instanceof is&&e.type===Wn}const ds=(e,t)=>{const{length:n}=e,{length:s}=t;return 0===n?t:0===s?e:n+s>6?[...e,...t.slice(0,5-e.length),"UnknownKey"]:[...e,...t]};class hs extends tt{markReassigned(){this.isReassigned=!0}markTargetOfAssignment(){this.isTargetOfAssignment=!0}constructor(e){super(),this.name=e,this.alwaysRendered=!1,this.forbiddenNames=null,this.globalName=null,this.initReached=!1,this.isId=!1,this.kind=null,this.renderBaseName=null,this.renderName=null,this.isReassigned=!1,this.isTargetOfAssignment=!1,this.onlyFunctionCallUsed=!0}addReference(e){}getOnlyFunctionCallUsed(){return this.onlyFunctionCallUsed}addUsedPlace(e){e.parent.type===jn&&e.parent.callee===e||e.parent.type===Un||(this.onlyFunctionCallUsed=!1)}forbidName(e){(this.forbiddenNames||=new Set).add(e)}getBaseVariableName(){return this.renderedLikeHoisted?.getBaseVariableName()||this.renderBaseName||this.renderName||this.name}getName(e,t){if(this.globalName)return this.globalName;if(t?.(this))return this.name;if(this.renderedLikeHoisted)return this.renderedLikeHoisted.getName(e,t);const n=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${e(n)}`:n}hasEffectsOnInteractionAtPath(e,{type:t},n){return 0!==t||e.length>0}includePath(e,t){this.included=!0,this.renderedLikeHoisted?.includePath(e,t)}renderLikeHoisted(e){this.renderedLikeHoisted=e}markCalledFromTryStatement(){}addReassignedValue(e){}setRenderNames(e,t){this.renderBaseName=e,this.renderName=t}}class ps extends hs{constructor(e,t,n,s,i,r){super(e),this.init=n,this.initPath=s,this.kind=r,this.calledFromTryStatement=!1,this.additionalInitializers=null,this.assignedFunctions=null,this.includedPathTracker=new We,this.expressionsToBeDeoptimized=[],this.declarations=t?[t]:[],this.deoptimizationTracker=i.deoptimizationTracker,this.module=i.module}addDeclaration(e,t){this.declarations.push(e),this.markInitializersForDeoptimization().push(t)}consolidateInitializers(){if(this.additionalInitializers)for(const e of this.additionalInitializers)e.deoptimizePath(Te)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.isReassigned||t.length+this.initPath.length>6?it(e):n.withTrackedEntityAtPath(t,this.init,()=>{this.init.deoptimizeArgumentsOnInteractionAtPath(e,[...this.initPath,...t],n)},void 0)}deoptimizePath(e){if(!this.isReassigned&&!this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(e,this))if(0===e.length){this.markReassigned();const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=Ee;for(const t of e)t.deoptimizeCache();this.init.deoptimizePath([...this.initPath,Pe])}else this.init.deoptimizePath(ds(this.initPath,e))}getKnownFunctionAtPath(e,t,n){return this.isReassigned||e.length+this.initPath.length>6?null:t.withTrackedEntityAtPath(e,this.init,()=>(this.expressionsToBeDeoptimized.push(n),this.init.getKnownFunctionAtPath([...this.initPath,...e],t,n)),null)}getLiteralValueAtPath(e,t,n){return this.isReassigned||e.length+this.initPath.length>6?Ze:t.withTrackedEntityAtPath(e,this.init,()=>(this.expressionsToBeDeoptimized.push(n),this.init.getLiteralValueAtPath([...this.initPath,...e],t,n)),Ze)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.isReassigned||e.length+this.initPath.length>6?st:n.withTrackedEntityAtPath(e,this.init,()=>(this.expressionsToBeDeoptimized.push(s),this.init.getReturnExpressionWhenCalledAtPath([...this.initPath,...e],t,n,s)),st)}hasEffectsOnInteractionAtPath(e,t,n){if(e.length+this.initPath.length>6)return!0;switch(t.type){case 0:return!!this.isReassigned||!n.accessed.trackEntityAtPathAndGetIfTracked(e,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],t,n);case 1:return!!this.included||0!==e.length&&(!!this.isReassigned||!n.assigned.trackEntityAtPathAndGetIfTracked(e,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],t,n));case 2:return!!this.isReassigned||!(t.withNew?n.instantiated:n.called).trackEntityAtPathAndGetIfTracked(e,t.args,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],t,n)}}includePath(e,t){if(!this.includedPathTracker.includePathAndGetIfIncluded(e)){this.module.scope.context.requestTreeshakingPass(),this.included||this.module.scope.context.newlyIncludedVariableInits.add(this.init),super.includePath(e,t);for(const e of this.declarations){e.included||e.include(t,!1);let n=e.parent;for(;!n.included&&(n.includeNode(t),n.type!==Jn);)n=n.parent}e.length>0&&(this.init.includePath(ds(this.initPath,e),t),this.additionalInitializers?.forEach(e=>e.includePath(Te,t)))}}includeCallArgumentsWhenCalledAtPath(e,t,n){if(this.isReassigned)return rt(t,n),void(0===e.length&&this.includeCallArgumentsOfAssignedTryCatchHelpers(t,n));n.includedCallArguments.has(this.init)||e.length+this.initPath.length>6?rt(t,n):(n.includedCallArguments.add(this.init),this.init.includeCallArgumentsWhenCalledAtPath([...this.initPath,...e],t,n),n.includedCallArguments.delete(this.init))}includeCallArgumentsOfAssignedTryCatchHelpers(e,t){0===this.initPath.length&&this.includeCallArgumentsOfTryCatchHelper(this.init,e,t);for(const n of this.assignedFunctions??Ee)this.includeCallArgumentsOfTryCatchHelper(n,e,t)}includeCallArgumentsOfTryCatchHelper(e,t,n){(ls(e)||cs(e))&&e.scope.hasParameterCalledFromTryStatement()&&e.scope.includeCallArguments(t,n)}addReassignedValue(e){(ls(e)||cs(e))&&(this.assignedFunctions??=[]).push(e)}markCalledFromTryStatement(){this.calledFromTryStatement=!0}markInitializersForDeoptimization(){return null===this.additionalInitializers&&(this.additionalInitializers=[this.init],this.init=nt,this.markReassigned()),this.additionalInitializers}}class fs{constructor(){this.children=[],this.variables=new Map}addDeclaration(e,t,n,s,i){const r=e.name,o=this.hoistedVariables?.get(r)||this.variables.get(r);if(o){if("var"===i&&"var"===o.kind)return o.addDeclaration(e,n),o;t.error(On(r),e.start)}const a=new ps(e.name,e,n,s,t,i);return this.variables.set(r,a),a}addHoistedVariable(e,t){(this.hoistedVariables||=new Map).set(e,t)}contains(e){return this.variables.has(e)}findVariable(e){throw new Error("Internal Error: findVariable needs to be implemented by a subclass")}}class ms extends fs{constructor(e,t){super(),this.parent=e,this.context=t,this.accessedOutsideVariables=new Map,e.children.push(this)}addAccessedDynamicImport(e){(this.accessedDynamicImports||(this.accessedDynamicImports=new Set)).add(e),this.parent instanceof ms&&this.parent.addAccessedDynamicImport(e)}addAccessedGlobals(e,t){const n=t.get(this)||new Set;for(const t of e)n.add(t);t.set(this,n),this.parent instanceof ms&&this.parent.addAccessedGlobals(e,t)}addNamespaceMemberAccess(e,t){this.accessedOutsideVariables.set(e,t),this.parent.addNamespaceMemberAccess(e,t)}addReturnExpression(e){this.parent instanceof ms&&this.parent.addReturnExpression(e)}addUsedOutsideNames(e,t,n,s){for(const s of this.accessedOutsideVariables.values())s.included&&(e.add(s.getBaseVariableName()),"system"===t&&n.has(s)&&e.add("exports"));const i=s.get(this);if(i)for(const t of i)e.add(t)}contains(e){return this.variables.has(e)||this.parent.contains(e)}deconflict(e,t,n){const s=new Set;if(this.addUsedOutsideNames(s,e,t,n),this.accessedDynamicImports)for(const e of this.accessedDynamicImports)e.inlineNamespace&&s.add(e.inlineNamespace.getBaseVariableName());for(const[e,t]of this.variables)(t.included||t.alwaysRendered)&&t.setRenderNames(null,ht(e,s,t.forbiddenNames));for(const s of this.children)s.deconflict(e,t,n)}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findGlobal(e){const t=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,t),t}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const n=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,n),n}}function gs(e,t){for(const n of e)if(n.hasEffects(t))return!0;return!1}function ys(e,t){if("MemberExpression"===e.type)return!e.computed&&ys(e.object,e);if("Identifier"!==e.type)return!1;switch(t?.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"MetaProperty":return t.meta===e;case"PropertyDefinition":case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}const bs=Symbol("PureFunction"),Es="*source";class xs extends hs{constructor(e,t){super(t),this.referenced=!1,this.module=e,this.isNamespace="*"===t,this.isSourcePhase=t===Es}addReference(e){this.referenced=!0,"default"!==this.name&&"*"!==this.name||this.module.suggestName(e.name)}hasEffectsOnInteractionAtPath(e,{type:t}){return 0!==t||e.length>(this.isNamespace?1:0)}includePath(e,t){super.includePath(e,t),this.module.used=!0}}function vs(e,t){for(const n of t){const t=Object.getOwnPropertyDescriptor(e,n).get;Object.defineProperty(e,n,{get(){const s=t.call(e);return Object.defineProperty(e,n,{value:s}),s}})}}const As=/[^\w$]/g,Ss=/[^\w$]/,Ps=e=>(e=>/\d/.test(e[0]))(e)||ut.has(e)||"arguments"===e;function ws(e){return e=e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()).replace(As,"_"),Ps(e)&&(e=`_${e}`),e||"_"}const $s=/^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u,Is=/^(?:0|[1-9]\d*)$/;function Cs(e){return $s.test(e)?"__proto__"===e?'["__proto__"]':e:Is.test(e)&&+e<=Number.MAX_SAFE_INTEGER?e:JSON.stringify(e)}function ks(e){return $s.test(e)?e:JSON.stringify(e)}class Ns{constructor(e,t,n,s,i,r,o){this.options=e,this.id=t,this.rawId=n,this.renormalizeRenderPath=r,this.dynamicImporters=[],this.execIndex=1/0,this.exportedVariables=new Map,this.importers=[],this.reexported=!1,this.used=!1,this.declarations=new Map,this.importersByExportedName=new Map,this.mostCommonSuggestion=0,this.nameSuggestions=new Map;const a=new URLSearchParams(o);a.sort();const l=a.toString(),c=l?`?${l}`:"";this.suggestedVariableName=ws(`${n.split(/[/\\]/).pop()}${c}`);const{importers:u,dynamicImporters:d}=this;this.info={ast:null,attributes:o,code:null,dynamicallyImportedIdResolutions:Ee,dynamicallyImportedIds:Ee,get dynamicImporters(){return d.sort()},exportedBindings:null,exports:null,hasDefaultExport:null,id:t,implicitlyLoadedAfterOneOf:Ee,implicitlyLoadedBefore:Ee,importedIdResolutions:Ee,importedIds:Ee,get importers(){return u.sort()},isEntry:!1,isExternal:!0,isIncluded:null,meta:i,moduleSideEffects:s,rawId:n,safeVariableNames:null,syntheticNamedExports:!1}}cacheInfoGetters(){vs(this.info,["dynamicImporters","importers"])}getVariableForExportName(e,{importChain:t}){const n=this.declarations.get(e);for(const n of t)ve(this.importersByExportedName,e,Ae).add(n);if(n)return[n];const s=new xs(this,e);return this.declarations.set(e,s),this.exportedVariables.set(s,e),[s]}suggestName(e){const t=(this.nameSuggestions.get(e)??0)+1;this.nameSuggestions.set(e,t),t>this.mostCommonSuggestion&&(this.mostCommonSuggestion=t,this.suggestedVariableName=e)}warnUnusedImports(){const e=[...this.declarations].filter(([e,t])=>"*"!==e&&!t.included&&!this.reexported&&!t.referenced).map(([e])=>e);if(0===e.length)return;const t=new Set;for(const n of e){const e=this.importersByExportedName.get(n);for(const n of this.importers)e?.has(n)&&t.add(n)}const n=[...t];var s,i,r;this.options.onLog(Et,{code:"UNUSED_EXTERNAL_IMPORT",exporter:s=this.id,ids:r=n,message:`${St(i=e,["is","are"])} imported from external module "${s}" but never used in ${St(r.map(e=>wt(e)))}.`,names:i})}}function Os(e){e.isExecuted=!0;const t=[e],n=new Set;for(const e of t)for(const s of[...e.dependencies,...e.implicitlyLoadedBefore])s instanceof Ns||s.isExecuted||!s.info.moduleSideEffects&&!e.implicitlyLoadedBefore.has(s)||n.has(s.id)||(s.isExecuted=!0,n.add(s.id),t.push(s))}const Rs=()=>{};function Ds(e,t=null){return Object.create(t,e)}const Ms=new class extends tt{getLiteralValueAtPath(e){return e.length>0?Ze:void 0}},_s={value:{hasEffectsWhenCalled:null,returns:nt}},Ls=new class extends tt{getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Xs(Gs,e[0]):st}hasEffectsOnInteractionAtPath(e,t,n){return 0===t.type?e.length>1:2!==t.type||1!==e.length||Ks(Gs,e[0],t,n)}},Ts={value:{hasEffectsWhenCalled:null,returns:Ls}},Bs=new class extends tt{getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Xs(Hs,e[0]):st}hasEffectsOnInteractionAtPath(e,t,n){return 0===t.type?e.length>1:2!==t.type||1!==e.length||Ks(Hs,e[0],t,n)}},zs={value:{hasEffectsWhenCalled:null,returns:Bs}},Fs=new class extends tt{getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Xs(qs,e[0]):st}hasEffectsOnInteractionAtPath(e,t,n){return 0===t.type?e.length>1:2!==t.type||1!==e.length||Ks(qs,e[0],t,n)}},Vs={value:{hasEffectsWhenCalled:null,returns:Fs}},js={value:{hasEffectsWhenCalled({args:e},t){const n=e[2];return e.length<3||"symbol"==typeof n.getLiteralValueAtPath(Le,Ue,{deoptimizeCache(){}})&&n.hasEffectsOnInteractionAtPath(Le,ct,t)},returns:Fs}},Us=Ds({hasOwnProperty:Ts,isPrototypeOf:Ts,propertyIsEnumerable:Ts,toLocaleString:Vs,toString:Vs,valueOf:_s}),Gs=Ds({valueOf:Ts},Us),Hs=Ds({toExponential:Vs,toFixed:Vs,toLocaleString:Vs,toPrecision:Vs,valueOf:zs},Us),Ws=Ds({exec:_s,test:Ts},Us),qs=Ds({anchor:Vs,at:_s,big:Vs,blink:Vs,bold:Vs,charAt:Vs,charCodeAt:zs,codePointAt:_s,concat:Vs,endsWith:Ts,fixed:Vs,fontcolor:Vs,fontsize:Vs,includes:Ts,indexOf:zs,italics:Vs,lastIndexOf:zs,link:Vs,localeCompare:zs,match:_s,matchAll:_s,normalize:Vs,padEnd:Vs,padStart:Vs,repeat:Vs,replace:js,replaceAll:js,search:zs,slice:Vs,small:Vs,split:_s,startsWith:Ts,strike:Vs,sub:Vs,substr:Vs,substring:Vs,sup:Vs,toLocaleLowerCase:Vs,toLocaleUpperCase:Vs,toLowerCase:Vs,toString:Vs,toUpperCase:Vs,trim:Vs,trimEnd:Vs,trimLeft:Vs,trimRight:Vs,trimStart:Vs,valueOf:Vs},Us);function Ks(e,t,n,s){return"string"!=typeof t||!e[t]||(e[t].hasEffectsWhenCalled?.(n,s)||!1)}function Xs(e,t){return"string"==typeof t&&e[t]?[e[t].returns,!1]:st}class Js extends tt{constructor(e){super(),this.description=e}deoptimizeArgumentsOnInteractionAtPath({args:e,type:t},n){if(2===t&&0===n.length&&(this.description.mutatesSelfAsArray&&e[0]?.deoptimizePath(ze),this.description.mutatesArgs))for(let t=1;t<e.length;t++)e[t].deoptimizePath(Te)}getReturnExpressionWhenCalledAtPath(e,{args:t}){return e.length>0?st:[this.description.returnsPrimitive||("self"===this.description.returns?t[0]||nt:this.description.returns()),!1]}hasEffectsOnInteractionAtPath(e,{args:t,type:n},s){if(e.length>(0===n?1:0))return!0;if(2===n){if(!0===this.description.mutatesSelfAsArray&&t[0]?.hasEffectsOnInteractionAtPath(ze,lt,s))return!0;if(this.description.callsArgs)for(const e of this.description.callsArgs)if(t[e+1]?.hasEffectsOnInteractionAtPath(Le,ct,s))return!0}return!1}}const Ys=[new Js({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Ls})],Zs=[new Js({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Fs})],Qs=[new Js({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Bs})],ei=[new Js({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:nt})],ti=/^\d+$/;class ni extends tt{get hasLostTrack(){return Je(this.flags,2048)}set hasLostTrack(e){this.flags=Ye(this.flags,2048,e)}get hasUnknownDeoptimizedInteger(){return Je(this.flags,4096)}set hasUnknownDeoptimizedInteger(e){this.flags=Ye(this.flags,4096,e)}get hasUnknownDeoptimizedProperty(){return Je(this.flags,8192)}set hasUnknownDeoptimizedProperty(e){this.flags=Ye(this.flags,8192,e)}constructor(e,t,n=!1){if(super(),this.prototypeExpression=t,this.immutable=n,this.additionalExpressionsToBeDeoptimized=new Set,this.allProperties=[],this.alwaysIncludedProperties=new Set,this.deoptimizedPaths=new Map,this.expressionsToBeDeoptimizedByKey=new Map,this.gettersByKey=new Map,this.propertiesAndGettersByKey=new Map,this.propertiesAndSettersByKey=new Map,this.settersByKey=new Map,this.unknownIntegerProps=[],this.unmatchableGetters=[],this.unmatchablePropertiesAndGetters=[],this.unmatchablePropertiesAndSetters=[],this.unmatchableSetters=[],Array.isArray(e))this.buildPropertyMaps(e);else{this.propertiesAndGettersByKey=this.propertiesAndSettersByKey=e;for(const t of e.values())this.allProperties.push(...t)}}deoptimizeAllProperties(e){const t=this.hasLostTrack||this.hasUnknownDeoptimizedProperty;if(e?this.hasUnknownDeoptimizedProperty=!0:this.hasLostTrack=!0,!t){for(const e of[...this.propertiesAndGettersByKey.values(),...this.settersByKey.values()])for(const t of e)t.deoptimizePath(Te);this.prototypeExpression?.deoptimizePath([Pe,Pe]),this.deoptimizeCachedEntities()}}deoptimizeArgumentsOnInteractionAtPath(e,t,n){const[s,...i]=t,{args:r,type:o}=e;if(this.hasLostTrack||(2===o||t.length>1)&&(this.hasUnknownDeoptimizedProperty||_e(s)&&this.deoptimizedPaths.get(s)))return void it(e);const[a,l,c]=2===o||t.length>1?[this.propertiesAndGettersByKey,this.propertiesAndGettersByKey,this.unmatchablePropertiesAndGetters]:0===o?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(_e(s)){if(a.get(s)){const t=l.get(s);if(t)for(const s of t)s.deoptimizeArgumentsOnInteractionAtPath(e,i,n);if(!this.immutable)for(const e of r)e&&this.additionalExpressionsToBeDeoptimized.add(e);return}for(const t of c)t.deoptimizeArgumentsOnInteractionAtPath(e,i,n);if("string"==typeof s&&ti.test(s))for(const t of this.unknownIntegerProps)t.deoptimizeArgumentsOnInteractionAtPath(e,i,n)}else{for(const t of[...l.values(),c])for(const s of t)s.deoptimizeArgumentsOnInteractionAtPath(e,i,n);for(const t of this.unknownIntegerProps)t.deoptimizeArgumentsOnInteractionAtPath(e,i,n)}if(!this.immutable)for(const e of r)e&&this.additionalExpressionsToBeDeoptimized.add(e);this.prototypeExpression?.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeIntegerProperties(){if(!(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||this.hasUnknownDeoptimizedInteger)){this.hasUnknownDeoptimizedInteger=!0;for(const[e,t]of this.propertiesAndGettersByKey.entries())if("string"==typeof e&&ti.test(e))for(const e of t)e.deoptimizePath(Te);this.deoptimizeCachedIntegerEntities()}}deoptimizePath(e){if(this.hasLostTrack||this.immutable)return;const t=e[0];if(1===e.length){if(t===$e)return this.deoptimizeIntegerProperties();if(!_e(t))return this.deoptimizeAllProperties(t===we);if(!this.deoptimizedPaths.get(t)){this.deoptimizedPaths.set(t,!0);const e=this.expressionsToBeDeoptimizedByKey.get(t);if(e)for(const t of e)t.deoptimizeCache()}}const n=1===e.length?Te:e.slice(1);for(const e of _e(t)?[...this.propertiesAndGettersByKey.get(t)||this.unmatchablePropertiesAndGetters,...this.settersByKey.get(t)||this.unmatchableSetters]:this.allProperties)e.deoptimizePath(n);this.prototypeExpression?.deoptimizePath(1===e.length?[e[0],Pe]:e)}getKnownFunctionAtPath(e,t,n){const s=e[0];if(!_e(s)||this.settersByKey.has(s)||this.unmatchableSetters.length>0)return null;const i=this.getMemberExpressionAndTrackDeopt(s,n);return i?i.getKnownFunctionAtPath(e.slice(1),t,n):this.prototypeExpression?.getKnownFunctionAtPath(e,t,n)||null}getLiteralValueAtPath(e,t,n){if(0===e.length)return Ze;const s=e[0],i=this.getMemberExpressionAndTrackDeopt(s,n);return i?i.getLiteralValueAtPath(e.slice(1),t,n):this.prototypeExpression?this.prototypeExpression.getLiteralValueAtPath(e,t,n):1!==e.length?Ze:void 0}getReturnExpressionWhenCalledAtPath(e,t,n,s){if(0===e.length)return st;const[i,...r]=e,o=this.getMemberExpressionAndTrackDeopt(i,s);return o?o.getReturnExpressionWhenCalledAtPath(r,t,n,s):this.prototypeExpression?this.prototypeExpression.getReturnExpressionWhenCalledAtPath(e,t,n,s):st}hasEffectsOnInteractionAtPath(e,t,n){const[s,...i]=e;if(i.length>0||2===t.type){const r=this.getMemberExpression(s);return r?r.hasEffectsOnInteractionAtPath(i,t,n):!this.prototypeExpression||this.prototypeExpression.hasEffectsOnInteractionAtPath(e,t,n)}if(s===we)return!1;if(this.hasLostTrack)return!0;const[r,o,a]=0===t.type?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(_e(s)){if(r.get(s)){const e=o.get(s);if(e)for(const s of e)if(s.hasEffectsOnInteractionAtPath(i,t,n))return!0;return!1}for(const e of a)if(e.hasEffectsOnInteractionAtPath(i,t,n))return!0}else for(const e of[...o.values(),a])for(const s of e)if(s.hasEffectsOnInteractionAtPath(i,t,n))return!0;return!!this.prototypeExpression&&this.prototypeExpression.hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included=!0;for(const n of this.allProperties)(t||n.shouldBeIncluded(e)||this.alwaysIncludedProperties.has(n))&&n.include(e,t);this.prototypeExpression?.include(e,t)}includePath(e,t){this.included=!0;for(const e of this.alwaysIncludedProperties)e.includePath(Te,t);if(0===e.length)return;const[n,...s]=e,[i,r]=_e(n)?[new Set([...this.propertiesAndGettersByKey.get(n)||this.unmatchablePropertiesAndGetters,...this.propertiesAndSettersByKey.get(n)||this.unmatchablePropertiesAndSetters]),s]:[this.allProperties,Te];for(const e of i)e.includePath(r,t);this.prototypeExpression?.includePath(e,t)}includeCallArgumentsWhenCalledAtPath(e,t,n){const[s,...i]=e;if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||!_e(s)||this.deoptimizedPaths.get(s)||"string"==typeof s&&ti.test(s)&&this.hasUnknownDeoptimizedInteger)return void rt(t,n);const r=this.propertiesAndGettersByKey.get(s);if(void 0===r)this.unmatchablePropertiesAndGetters.length>0||"string"==typeof s&&ti.test(s)&&this.unknownIntegerProps.length>0||!this.prototypeExpression?rt(t,n):this.prototypeExpression.includeCallArgumentsWhenCalledAtPath(e,t,n);else{t.args[0]?.includePath(Te,n);for(const e of r)e.includeCallArgumentsWhenCalledAtPath(i,t,n)}}buildPropertyMaps(e){const{allProperties:t,alwaysIncludedProperties:n,propertiesAndGettersByKey:s,propertiesAndSettersByKey:i,settersByKey:r,gettersByKey:o,unknownIntegerProps:a,unmatchablePropertiesAndGetters:l,unmatchablePropertiesAndSetters:c,unmatchableGetters:u,unmatchableSetters:d}=this;for(let h=e.length-1;h>=0;h--){const{key:p,kind:f,property:m}=e[h];if(t.push(m),!De(p)||Me.has(p)||(n.add(m),p!==Ie))if(_e(p))"set"===f?i.has(p)||(i.set(p,[m,...c]),r.set(p,[m,...d])):"get"===f?s.has(p)||(s.set(p,[m,...l]),o.set(p,[m,...u])):(i.has(p)||i.set(p,[m,...c]),s.has(p)||s.set(p,[m,...l]));else{if(p===$e){a.push(m);continue}"set"===f&&d.push(m),"get"===f&&u.push(m),"get"!==f&&c.push(m),"set"!==f&&l.push(m)}}}deoptimizeCachedEntities(){for(const e of this.expressionsToBeDeoptimizedByKey.values())for(const t of e)t.deoptimizeCache();for(const e of this.additionalExpressionsToBeDeoptimized)e.deoptimizePath(Te)}deoptimizeCachedIntegerEntities(){for(const[e,t]of this.expressionsToBeDeoptimizedByKey.entries())if("string"==typeof e&&ti.test(e))for(const e of t)e.deoptimizeCache();for(const e of this.additionalExpressionsToBeDeoptimized)e.deoptimizePath(ze)}getMemberExpression(e){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||!_e(e)||this.hasUnknownDeoptimizedInteger&&"string"==typeof e&&ti.test(e)||this.deoptimizedPaths.get(e))return nt;const t=this.propertiesAndGettersByKey.get(e);return 1===t?.length?t[0]:t||this.unmatchablePropertiesAndGetters.length>0||this.unknownIntegerProps.length>0&&"string"==typeof e&&ti.test(e)?nt:null}getMemberExpressionAndTrackDeopt(e,t){if(!_e(e))return nt;const n=this.getMemberExpression(e);if(n!==nt&&!this.immutable){let n=this.expressionsToBeDeoptimizedByKey.get(e);n||this.expressionsToBeDeoptimizedByKey.set(e,n=[]),n.push(t)}return n}}const si=e=>e===ke||e===Ne||"string"==typeof e&&/^\d+$/.test(e),ii=new class extends tt{deoptimizeArgumentsOnInteractionAtPath(e,t){2!==e.type||1!==t.length||si(t[0])||it(e)}getLiteralValueAtPath(e){return 1===e.length&&si(e[0])?void 0:Ze}hasEffectsOnInteractionAtPath(e,{type:t}){return e.length>1||2===t}},ri=new ni(new Map([["hasOwnProperty",Ys],["isPrototypeOf",Ys],["propertyIsEnumerable",Ys],["toLocaleString",Zs],["toString",Zs],["valueOf",ei]]),ii,!0),oi=new ni([{key:ke,kind:"init",property:nt}],ri,!0),ai=new ni([{key:Ne,kind:"init",property:nt}],ri,!0),li=[{key:$e,kind:"init",property:nt},{key:"length",kind:"init",property:Bs}],ci=[new Js({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Ls})],ui=[new Js({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Bs})],di=[new Js({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:()=>new ni(li,xi),returnsPrimitive:null})],hi=[new Js({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:()=>new ni(li,xi),returnsPrimitive:null})],pi=[new Js({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:()=>new ni(li,xi),returnsPrimitive:null})],fi=[new Js({callsArgs:null,mutatesArgs:!0,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:Bs})],mi=[new Js({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:nt})],gi=[new Js({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:nt})],yi=[new Js({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:nt})],bi=[new Js({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],Ei=[new Js({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],xi=new ni(new Map([["at",gi],["concat",hi],["copyWithin",bi],["entries",hi],["every",ci],["fill",bi],["filter",pi],["find",yi],["findIndex",ui],["findLast",yi],["findLastIndex",ui],["flat",hi],["flatMap",pi],["forEach",yi],["includes",Ys],["indexOf",Qs],["join",Zs],["keys",ei],["lastIndexOf",Qs],["map",pi],["pop",mi],["push",fi],["reduce",yi],["reduceRight",yi],["reverse",bi],["shift",mi],["slice",hi],["some",ci],["sort",Ei],["splice",di],["toLocaleString",Zs],["toString",Zs],["unshift",fi],["values",gi]]),ri,!0);class vi extends is{deoptimizeArgumentsOnInteractionAtPath(e,t,n){(t.length>0||2===e.type)&&this.argument.deoptimizeArgumentsOnInteractionAtPath(e,Te,n)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();const{propertyReadSideEffects:t}=this.scope.context.options.treeshake;return this.argument.hasEffects(e)||t&&("always"===t||this.argument.hasEffectsOnInteractionAtPath(Te,at,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument.includePath(Te,e)}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath([Pe,Pe]),this.scope.context.requestTreeshakingPass()}}class Ai extends is{constructor(){super(...arguments),this.objectEntity=null}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.getObjectEntity().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,t,n,s)}hasEffectsOnInteractionAtPath(e,t,n){return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,t,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(const t of this.elements)t&&t?.includePath(Te,e)}applyDeoptimizations(){this.deoptimized=!0;let e=!1;for(let t=0;t<this.elements.length;t++){const n=this.elements[t];n&&(e||n instanceof vi)&&(e=!0,n.deoptimizePath(Te))}this.scope.context.requestTreeshakingPass()}getObjectEntity(){if(null!==this.objectEntity)return this.objectEntity;const e=[{key:"length",kind:"init",property:Bs}];let t=!1;for(let n=0;n<this.elements.length;n++){const s=this.elements[n];t||s instanceof vi?s&&(t=!0,e.unshift({key:$e,kind:"init",property:s})):s?e.push({key:String(n),kind:"init",property:s}):e.push({key:String(n),kind:"init",property:Ms})}return this.objectEntity=new ni(e,xi)}}const Si=Symbol("Value Properties"),Pi=()=>Ze,wi=()=>!1,$i=()=>!0,Ii=e=>({__proto__:null,[Si]:{deoptimizeArgumentsOnCall:Rs,getLiteralValue:()=>e,hasEffectsWhenCalled:$i}}),Ci={deoptimizeArgumentsOnCall:Rs,getLiteralValue:Pi,hasEffectsWhenCalled:wi},ki={deoptimizeArgumentsOnCall:Rs,getLiteralValue:Pi,hasEffectsWhenCalled:$i},Ni={deoptimizeArgumentsOnCall:Rs,getLiteralValue:Pi,hasEffectsWhenCalled:({args:e})=>e.length>1&&!(e[1]instanceof Ai)},Oi={deoptimizeArgumentsOnCall:Rs,getLiteralValue:Pi,hasEffectsWhenCalled({args:e}){const[t,n]=e;return void 0!==n&&!(n instanceof Ai)&&"number"!=typeof n.getLiteralValueAtPath(Le,Ue,{deoptimizeCache:Rs})}},Ri={deoptimizeArgumentsOnCall:Rs,getLiteralValue:Pi,hasEffectsWhenCalled({args:e},t){const[n,s]=e;return!(s instanceof tt)||s.hasEffectsOnInteractionAtPath(Te,at,t)}},Di={__proto__:null,[Si]:ki},Mi={__proto__:null,[Si]:Ci},_i={__proto__:null,[Si]:Ri},Li={__proto__:null,[Si]:{deoptimizeArgumentsOnCall({args:[,e]}){e?.deoptimizePath(Te)},getLiteralValue:Pi,hasEffectsWhenCalled:({args:e},t)=>e.length<=1||e[1].hasEffectsOnInteractionAtPath(Be,lt,t)}},Ti={__proto__:null,[Si]:ki,prototype:Di},Bi={__proto__:null,[Si]:Ci,prototype:Di},zi={__proto__:null,[Si]:Ni,prototype:Di},Fi={__proto__:null,[Si]:Oi,from:Di,of:Mi,prototype:Di},Vi={__proto__:null,[Si]:Ci,supportedLocalesOf:Bi},ji={deoptimizeArgumentsOnCall:Rs,getLiteralValue:()=>Ie,hasEffectsWhenCalled:$i},Ui={global:Di,globalThis:Di,self:Di,window:Di,__proto__:null,[Si]:ki,Array:{__proto__:null,[Si]:ki,from:Di,isArray:Mi,of:Mi,prototype:Di},ArrayBuffer:{__proto__:null,[Si]:Ci,isView:Mi,prototype:Di},AggregateError:zi,Atomics:Di,BigInt:Ti,BigInt64Array:Ti,BigUint64Array:Ti,Boolean:Bi,constructor:Ti,DataView:Bi,Date:{__proto__:null,[Si]:Ci,now:Mi,parse:Mi,prototype:Di,UTC:Mi},decodeURI:Mi,decodeURIComponent:Mi,encodeURI:Mi,encodeURIComponent:Mi,Error:Bi,escape:Mi,eval:Di,EvalError:Bi,FinalizationRegistry:Ti,Float32Array:Fi,Float64Array:Fi,Function:Ti,hasOwnProperty:Di,Infinity:Di,Int16Array:Fi,Int32Array:Fi,Int8Array:Fi,isFinite:Mi,isNaN:Mi,isPrototypeOf:Di,JSON:Di,Map:zi,Math:{__proto__:null,[Si]:ki,abs:Mi,acos:Mi,acosh:Mi,asin:Mi,asinh:Mi,atan:Mi,atan2:Mi,atanh:Mi,cbrt:Mi,ceil:Mi,clz32:Mi,cos:Mi,cosh:Mi,exp:Mi,expm1:Mi,floor:Mi,fround:Mi,hypot:Mi,imul:Mi,log:Mi,log10:Mi,log1p:Mi,log2:Mi,max:Mi,min:Mi,pow:Mi,random:Mi,round:Mi,sign:Mi,sin:Mi,sinh:Mi,sqrt:Mi,tan:Mi,tanh:Mi,trunc:Mi},NaN:Di,Number:{__proto__:null,[Si]:Ci,isFinite:Mi,isInteger:Mi,isNaN:Mi,isSafeInteger:Mi,parseFloat:Mi,parseInt:Mi,prototype:Di},Object:{__proto__:null,[Si]:Ci,create:Mi,defineProperty:Li,defineProperties:Li,freeze:Li,getOwnPropertyDescriptor:Mi,getOwnPropertyDescriptors:Mi,getOwnPropertyNames:Mi,getOwnPropertySymbols:Mi,getPrototypeOf:Mi,hasOwn:Mi,is:Mi,isExtensible:Mi,isFrozen:Mi,isSealed:Mi,keys:Mi,fromEntries:Di,entries:_i,values:_i,prototype:Di},parseFloat:Mi,parseInt:Mi,Promise:{__proto__:null,[Si]:ki,all:Di,allSettled:Di,any:Di,prototype:Di,race:Di,reject:Di,resolve:Di},propertyIsEnumerable:Di,Proxy:{__proto__:null,[Si]:{deoptimizeArgumentsOnCall:({args:[,e,t]})=>{if((n=t)instanceof is&&"ObjectExpression"===n.type){if(!t.properties.some(e=>e.type!==Yn)){for(const n of t.properties)n.deoptimizeArgumentsOnInteractionAtPath({args:[null,e],type:2,withNew:!1},Le,Ue);return}}var n;e.deoptimizePath(Te)},getLiteralValue:Pi,hasEffectsWhenCalled:$i}},RangeError:Bi,ReferenceError:Bi,Reflect:Di,RegExp:Bi,Set:zi,SharedArrayBuffer:Ti,String:{__proto__:null,[Si]:Ci,fromCharCode:Mi,fromCodePoint:Mi,prototype:Di,raw:Mi},Symbol:{__proto__:null,[Si]:Ci,for:Mi,keyFor:Mi,prototype:Di,asyncDispose:Ii(Ne),dispose:Ii(ke),hasInstance:Ii(Oe),toStringTag:Ii(Ce)},SyntaxError:Bi,toLocaleString:Di,toString:Di,TypeError:Bi,Uint16Array:Fi,Uint32Array:Fi,Uint8Array:Fi,Uint8ClampedArray:Fi,unescape:Mi,URIError:Bi,valueOf:Di,WeakMap:zi,WeakRef:Ti,WeakSet:zi,clearInterval:Ti,clearTimeout:Ti,console:{__proto__:null,[Si]:ki,assert:Ti,clear:Ti,count:Ti,countReset:Ti,debug:Ti,dir:Ti,dirxml:Ti,error:Ti,exception:Ti,group:Ti,groupCollapsed:Ti,groupEnd:Ti,info:Ti,log:Ti,table:Ti,time:Ti,timeEnd:Ti,timeLog:Ti,trace:Ti,warn:Ti},Intl:{__proto__:null,[Si]:ki,Collator:Vi,DateTimeFormat:Vi,DisplayNames:Vi,ListFormat:Vi,Locale:Vi,NumberFormat:Vi,PluralRules:Vi,RelativeTimeFormat:Vi,Segmenter:Vi},setInterval:Ti,setTimeout:Ti,TextDecoder:Ti,TextEncoder:Ti,URL:{__proto__:null,[Si]:ki,prototype:Di,canParse:Mi},URLSearchParams:Ti,AbortController:Ti,AbortSignal:Ti,addEventListener:Di,alert:Di,AnalyserNode:Ti,Animation:Ti,AnimationEvent:Ti,applicationCache:Di,ApplicationCache:Ti,ApplicationCacheErrorEvent:Ti,atob:Di,Attr:Ti,Audio:Ti,AudioBuffer:Ti,AudioBufferSourceNode:Ti,AudioContext:Ti,AudioDestinationNode:Ti,AudioListener:Ti,AudioNode:Ti,AudioParam:Ti,AudioProcessingEvent:Ti,AudioScheduledSourceNode:Ti,AudioWorkletNode:Ti,BarProp:Ti,BaseAudioContext:Ti,BatteryManager:Ti,BeforeUnloadEvent:Ti,BiquadFilterNode:Ti,Blob:Ti,BlobEvent:Ti,blur:Di,BroadcastChannel:Ti,btoa:Di,ByteLengthQueuingStrategy:Ti,Cache:Ti,caches:Di,CacheStorage:Ti,cancelAnimationFrame:Di,cancelIdleCallback:Di,CanvasCaptureMediaStreamTrack:Ti,CanvasGradient:Ti,CanvasPattern:Ti,CanvasRenderingContext2D:Ti,ChannelMergerNode:Ti,ChannelSplitterNode:Ti,CharacterData:Ti,clientInformation:Di,ClipboardEvent:Ti,close:Di,closed:Di,CloseEvent:Ti,Comment:Ti,CompositionEvent:Ti,confirm:Di,ConstantSourceNode:Ti,ConvolverNode:Ti,CountQueuingStrategy:Ti,createImageBitmap:Di,Credential:Ti,CredentialsContainer:Ti,crypto:Di,Crypto:Ti,CryptoKey:Ti,CSS:Ti,CSSConditionRule:Ti,CSSFontFaceRule:Ti,CSSGroupingRule:Ti,CSSImportRule:Ti,CSSKeyframeRule:Ti,CSSKeyframesRule:Ti,CSSMediaRule:Ti,CSSNamespaceRule:Ti,CSSPageRule:Ti,CSSRule:Ti,CSSRuleList:Ti,CSSStyleDeclaration:Ti,CSSStyleRule:Ti,CSSStyleSheet:Ti,CSSSupportsRule:Ti,CustomElementRegistry:Ti,customElements:Di,CustomEvent:{__proto__:null,[Si]:{deoptimizeArgumentsOnCall({args:e}){e[2]?.deoptimizePath(["detail"])},getLiteralValue:Pi,hasEffectsWhenCalled:wi},prototype:Di},DataTransfer:Ti,DataTransferItem:Ti,DataTransferItemList:Ti,defaultstatus:Di,defaultStatus:Di,DelayNode:Ti,DeviceMotionEvent:Ti,DeviceOrientationEvent:Ti,devicePixelRatio:Di,dispatchEvent:Di,document:Di,Document:Ti,DocumentFragment:Ti,DocumentType:Ti,DOMError:Ti,DOMException:Ti,DOMImplementation:Ti,DOMMatrix:Ti,DOMMatrixReadOnly:Ti,DOMParser:Ti,DOMPoint:Ti,DOMPointReadOnly:Ti,DOMQuad:Ti,DOMRect:Ti,DOMRectReadOnly:Ti,DOMStringList:Ti,DOMStringMap:Ti,DOMTokenList:Ti,DragEvent:Ti,DynamicsCompressorNode:Ti,Element:Ti,ErrorEvent:Ti,Event:Ti,EventSource:Ti,EventTarget:Ti,external:Di,fetch:Di,File:Ti,FileList:Ti,FileReader:Ti,find:Di,focus:Di,FocusEvent:Ti,FontFace:Ti,FontFaceSetLoadEvent:Ti,FormData:Ti,frames:Di,GainNode:Ti,Gamepad:Ti,GamepadButton:Ti,GamepadEvent:Ti,getComputedStyle:Di,getSelection:Di,HashChangeEvent:Ti,Headers:Ti,history:Di,History:Ti,HTMLAllCollection:Ti,HTMLAnchorElement:Ti,HTMLAreaElement:Ti,HTMLAudioElement:Ti,HTMLBaseElement:Ti,HTMLBodyElement:Ti,HTMLBRElement:Ti,HTMLButtonElement:Ti,HTMLCanvasElement:Ti,HTMLCollection:Ti,HTMLContentElement:Ti,HTMLDataElement:Ti,HTMLDataListElement:Ti,HTMLDetailsElement:Ti,HTMLDialogElement:Ti,HTMLDirectoryElement:Ti,HTMLDivElement:Ti,HTMLDListElement:Ti,HTMLDocument:Ti,HTMLElement:Ti,HTMLEmbedElement:Ti,HTMLFieldSetElement:Ti,HTMLFontElement:Ti,HTMLFormControlsCollection:Ti,HTMLFormElement:Ti,HTMLFrameElement:Ti,HTMLFrameSetElement:Ti,HTMLHeadElement:Ti,HTMLHeadingElement:Ti,HTMLHRElement:Ti,HTMLHtmlElement:Ti,HTMLIFrameElement:Ti,HTMLImageElement:Ti,HTMLInputElement:Ti,HTMLLabelElement:Ti,HTMLLegendElement:Ti,HTMLLIElement:Ti,HTMLLinkElement:Ti,HTMLMapElement:Ti,HTMLMarqueeElement:Ti,HTMLMediaElement:Ti,HTMLMenuElement:Ti,HTMLMetaElement:Ti,HTMLMeterElement:Ti,HTMLModElement:Ti,HTMLObjectElement:Ti,HTMLOListElement:Ti,HTMLOptGroupElement:Ti,HTMLOptionElement:Ti,HTMLOptionsCollection:Ti,HTMLOutputElement:Ti,HTMLParagraphElement:Ti,HTMLParamElement:Ti,HTMLPictureElement:Ti,HTMLPreElement:Ti,HTMLProgressElement:Ti,HTMLQuoteElement:Ti,HTMLScriptElement:Ti,HTMLSelectElement:Ti,HTMLShadowElement:Ti,HTMLSlotElement:Ti,HTMLSourceElement:Ti,HTMLSpanElement:Ti,HTMLStyleElement:Ti,HTMLTableCaptionElement:Ti,HTMLTableCellElement:Ti,HTMLTableColElement:Ti,HTMLTableElement:Ti,HTMLTableRowElement:Ti,HTMLTableSectionElement:Ti,HTMLTemplateElement:Ti,HTMLTextAreaElement:Ti,HTMLTimeElement:Ti,HTMLTitleElement:Ti,HTMLTrackElement:Ti,HTMLUListElement:Ti,HTMLUnknownElement:Ti,HTMLVideoElement:Ti,IDBCursor:Ti,IDBCursorWithValue:Ti,IDBDatabase:Ti,IDBFactory:Ti,IDBIndex:Ti,IDBKeyRange:Ti,IDBObjectStore:Ti,IDBOpenDBRequest:Ti,IDBRequest:Ti,IDBTransaction:Ti,IDBVersionChangeEvent:Ti,IdleDeadline:Ti,IIRFilterNode:Ti,Image:Ti,ImageBitmap:Ti,ImageBitmapRenderingContext:Ti,ImageCapture:Ti,ImageData:Ti,indexedDB:Di,innerHeight:Di,innerWidth:Di,InputEvent:Ti,IntersectionObserver:Ti,IntersectionObserverEntry:Ti,isSecureContext:Di,KeyboardEvent:Ti,KeyframeEffect:Ti,length:Di,localStorage:Di,location:Di,Location:Ti,locationbar:Di,matchMedia:Di,MediaDeviceInfo:Ti,MediaDevices:Ti,MediaElementAudioSourceNode:Ti,MediaEncryptedEvent:Ti,MediaError:Ti,MediaKeyMessageEvent:Ti,MediaKeySession:Ti,MediaKeyStatusMap:Ti,MediaKeySystemAccess:Ti,MediaList:Ti,MediaQueryList:Ti,MediaQueryListEvent:Ti,MediaRecorder:Ti,MediaSettingsRange:Ti,MediaSource:Ti,MediaStream:Ti,MediaStreamAudioDestinationNode:Ti,MediaStreamAudioSourceNode:Ti,MediaStreamEvent:Ti,MediaStreamTrack:Ti,MediaStreamTrackEvent:Ti,menubar:Di,MessageChannel:Ti,MessageEvent:Ti,MessagePort:Ti,MIDIAccess:Ti,MIDIConnectionEvent:Ti,MIDIInput:Ti,MIDIInputMap:Ti,MIDIMessageEvent:Ti,MIDIOutput:Ti,MIDIOutputMap:Ti,MIDIPort:Ti,MimeType:Ti,MimeTypeArray:Ti,MouseEvent:Ti,moveBy:Di,moveTo:Di,MutationEvent:Ti,MutationObserver:Ti,MutationRecord:Ti,name:Di,NamedNodeMap:Ti,NavigationPreloadManager:Ti,navigator:Di,Navigator:Ti,NetworkInformation:Ti,Node:Ti,NodeFilter:Di,NodeIterator:Ti,NodeList:Ti,Notification:Ti,OfflineAudioCompletionEvent:Ti,OfflineAudioContext:Ti,offscreenBuffering:Di,OffscreenCanvas:Ti,open:Di,openDatabase:Di,Option:Ti,origin:Di,OscillatorNode:Ti,outerHeight:Di,outerWidth:Di,PageTransitionEvent:Ti,pageXOffset:Di,pageYOffset:Di,PannerNode:Ti,parent:Di,Path2D:Ti,PaymentAddress:Ti,PaymentRequest:Ti,PaymentRequestUpdateEvent:Ti,PaymentResponse:Ti,performance:Di,Performance:Ti,PerformanceEntry:Ti,PerformanceLongTaskTiming:Ti,PerformanceMark:Ti,PerformanceMeasure:Ti,PerformanceNavigation:Ti,PerformanceNavigationTiming:Ti,PerformanceObserver:Ti,PerformanceObserverEntryList:Ti,PerformancePaintTiming:Ti,PerformanceResourceTiming:Ti,PerformanceTiming:Ti,PeriodicWave:Ti,Permissions:Ti,PermissionStatus:Ti,personalbar:Di,PhotoCapabilities:Ti,Plugin:Ti,PluginArray:Ti,PointerEvent:Ti,PopStateEvent:Ti,postMessage:Di,Presentation:Ti,PresentationAvailability:Ti,PresentationConnection:Ti,PresentationConnectionAvailableEvent:Ti,PresentationConnectionCloseEvent:Ti,PresentationConnectionList:Ti,PresentationReceiver:Ti,PresentationRequest:Ti,print:Di,ProcessingInstruction:Ti,ProgressEvent:Ti,PromiseRejectionEvent:Ti,prompt:Di,PushManager:Ti,PushSubscription:Ti,PushSubscriptionOptions:Ti,queueMicrotask:Di,RadioNodeList:Ti,Range:Ti,ReadableStream:Ti,RemotePlayback:Ti,removeEventListener:Di,Request:Ti,requestAnimationFrame:Di,requestIdleCallback:Di,resizeBy:Di,ResizeObserver:Ti,ResizeObserverEntry:Ti,resizeTo:Di,Response:Ti,RTCCertificate:Ti,RTCDataChannel:Ti,RTCDataChannelEvent:Ti,RTCDtlsTransport:Ti,RTCIceCandidate:Ti,RTCIceTransport:Ti,RTCPeerConnection:Ti,RTCPeerConnectionIceEvent:Ti,RTCRtpReceiver:Ti,RTCRtpSender:Ti,RTCSctpTransport:Ti,RTCSessionDescription:Ti,RTCStatsReport:Ti,RTCTrackEvent:Ti,screen:Di,Screen:Ti,screenLeft:Di,ScreenOrientation:Ti,screenTop:Di,screenX:Di,screenY:Di,ScriptProcessorNode:Ti,scroll:Di,scrollbars:Di,scrollBy:Di,scrollTo:Di,scrollX:Di,scrollY:Di,SecurityPolicyViolationEvent:Ti,Selection:Ti,ServiceWorker:Ti,ServiceWorkerContainer:Ti,ServiceWorkerRegistration:Ti,sessionStorage:Di,ShadowRoot:Ti,SharedWorker:Ti,SourceBuffer:Ti,SourceBufferList:Ti,speechSynthesis:Di,SpeechSynthesisEvent:Ti,SpeechSynthesisUtterance:Ti,StaticRange:Ti,status:Di,statusbar:Di,StereoPannerNode:Ti,stop:Di,Storage:Ti,StorageEvent:Ti,StorageManager:Ti,styleMedia:Di,StyleSheet:Ti,StyleSheetList:Ti,SubtleCrypto:Ti,SVGAElement:Ti,SVGAngle:Ti,SVGAnimatedAngle:Ti,SVGAnimatedBoolean:Ti,SVGAnimatedEnumeration:Ti,SVGAnimatedInteger:Ti,SVGAnimatedLength:Ti,SVGAnimatedLengthList:Ti,SVGAnimatedNumber:Ti,SVGAnimatedNumberList:Ti,SVGAnimatedPreserveAspectRatio:Ti,SVGAnimatedRect:Ti,SVGAnimatedString:Ti,SVGAnimatedTransformList:Ti,SVGAnimateElement:Ti,SVGAnimateMotionElement:Ti,SVGAnimateTransformElement:Ti,SVGAnimationElement:Ti,SVGCircleElement:Ti,SVGClipPathElement:Ti,SVGComponentTransferFunctionElement:Ti,SVGDefsElement:Ti,SVGDescElement:Ti,SVGDiscardElement:Ti,SVGElement:Ti,SVGEllipseElement:Ti,SVGFEBlendElement:Ti,SVGFEColorMatrixElement:Ti,SVGFEComponentTransferElement:Ti,SVGFECompositeElement:Ti,SVGFEConvolveMatrixElement:Ti,SVGFEDiffuseLightingElement:Ti,SVGFEDisplacementMapElement:Ti,SVGFEDistantLightElement:Ti,SVGFEDropShadowElement:Ti,SVGFEFloodElement:Ti,SVGFEFuncAElement:Ti,SVGFEFuncBElement:Ti,SVGFEFuncGElement:Ti,SVGFEFuncRElement:Ti,SVGFEGaussianBlurElement:Ti,SVGFEImageElement:Ti,SVGFEMergeElement:Ti,SVGFEMergeNodeElement:Ti,SVGFEMorphologyElement:Ti,SVGFEOffsetElement:Ti,SVGFEPointLightElement:Ti,SVGFESpecularLightingElement:Ti,SVGFESpotLightElement:Ti,SVGFETileElement:Ti,SVGFETurbulenceElement:Ti,SVGFilterElement:Ti,SVGForeignObjectElement:Ti,SVGGElement:Ti,SVGGeometryElement:Ti,SVGGradientElement:Ti,SVGGraphicsElement:Ti,SVGImageElement:Ti,SVGLength:Ti,SVGLengthList:Ti,SVGLinearGradientElement:Ti,SVGLineElement:Ti,SVGMarkerElement:Ti,SVGMaskElement:Ti,SVGMatrix:Ti,SVGMetadataElement:Ti,SVGMPathElement:Ti,SVGNumber:Ti,SVGNumberList:Ti,SVGPathElement:Ti,SVGPatternElement:Ti,SVGPoint:Ti,SVGPointList:Ti,SVGPolygonElement:Ti,SVGPolylineElement:Ti,SVGPreserveAspectRatio:Ti,SVGRadialGradientElement:Ti,SVGRect:Ti,SVGRectElement:Ti,SVGScriptElement:Ti,SVGSetElement:Ti,SVGStopElement:Ti,SVGStringList:Ti,SVGStyleElement:Ti,SVGSVGElement:Ti,SVGSwitchElement:Ti,SVGSymbolElement:Ti,SVGTextContentElement:Ti,SVGTextElement:Ti,SVGTextPathElement:Ti,SVGTextPositioningElement:Ti,SVGTitleElement:Ti,SVGTransform:Ti,SVGTransformList:Ti,SVGTSpanElement:Ti,SVGUnitTypes:Ti,SVGUseElement:Ti,SVGViewElement:Ti,TaskAttributionTiming:Ti,Text:Ti,TextEvent:Ti,TextMetrics:Ti,TextTrack:Ti,TextTrackCue:Ti,TextTrackCueList:Ti,TextTrackList:Ti,TimeRanges:Ti,toolbar:Di,top:Di,Touch:Ti,TouchEvent:Ti,TouchList:Ti,TrackEvent:Ti,TransitionEvent:Ti,TreeWalker:Ti,UIEvent:Ti,ValidityState:Ti,visualViewport:Di,VisualViewport:Ti,VTTCue:Ti,WaveShaperNode:Ti,WebAssembly:Di,WebGL2RenderingContext:Ti,WebGLActiveInfo:Ti,WebGLBuffer:Ti,WebGLContextEvent:Ti,WebGLFramebuffer:Ti,WebGLProgram:Ti,WebGLQuery:Ti,WebGLRenderbuffer:Ti,WebGLRenderingContext:Ti,WebGLSampler:Ti,WebGLShader:Ti,WebGLShaderPrecisionFormat:Ti,WebGLSync:Ti,WebGLTexture:Ti,WebGLTransformFeedback:Ti,WebGLUniformLocation:Ti,WebGLVertexArrayObject:Ti,WebSocket:Ti,WheelEvent:Ti,Window:Ti,Worker:Ti,WritableStream:Ti,XMLDocument:Ti,XMLHttpRequest:Ti,XMLHttpRequestEventTarget:Ti,XMLHttpRequestUpload:Ti,XMLSerializer:Ti,XPathEvaluator:Ti,XPathExpression:Ti,XPathResult:Ti,XSLTProcessor:Ti};for(const e of["window","global","self","globalThis"])Ui[e]=Ui;function Gi(e){let t=Ui;for(const n of e){if("string"!=typeof n)return null;if(t=t[n],!t)return"Symbol"===e[0]&&2===e.length?ji:null}return t[Si]}class Hi extends hs{constructor(e){super(e),this.markReassigned()}deoptimizeArgumentsOnInteractionAtPath(e,t,n){switch(e.type){case 0:case 1:return void(Gi([this.name,...t].slice(0,-1))||super.deoptimizeArgumentsOnInteractionAtPath(e,t,n));case 2:{const s=Gi([this.name,...t]);return void(s?s.deoptimizeArgumentsOnCall(e):super.deoptimizeArgumentsOnInteractionAtPath(e,t,n))}}}getLiteralValueAtPath(e,t,n){const s=Gi([this.name,...e]);return s?s.getLiteralValue():Ze}hasEffectsOnInteractionAtPath(e,t,n){switch(t.type){case 0:return 0===e.length?"undefined"!==this.name&&!Gi([this.name]):!Gi([this.name,...e].slice(0,-1));case 1:return!0;case 2:{const s=Gi([this.name,...e]);return!s||s.hasEffectsWhenCalled(t,n)}}}}const Wi=new Set(["class","const","let","var","using","await using"]);class qi extends is{constructor(){super(...arguments),this.variable=null,this.isVariableReference=!1}get isTDZAccess(){return Je(this.flags,4)?Je(this.flags,8):null}set isTDZAccess(e){this.flags=Ye(this.flags,4,!0),this.flags=Ye(this.flags,8,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){0!==e.length||this.scope.contains(this.name)||this.disallowImportReassignment(),this.variable?.deoptimizePath(e)}getKnownFunctionAtPath(e,t,n){return this.getVariableRespectingTDZ().getKnownFunctionAtPath(e,t,n)}getLiteralValueAtPath(e,t,n){return this.getVariableRespectingTDZ().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){const[i,r]=this.getVariableRespectingTDZ().getReturnExpressionWhenCalledAtPath(e,t,n,s);return[i,r||this.isPureFunction(e)]}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!(!this.isPossibleTDZ()||"var"===this.variable.kind)||this.scope.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof Hi&&!this.isPureFunction(Le)&&this.variable.hasEffectsOnInteractionAtPath(Le,at,e)}hasEffectsOnInteractionAtPath(e,t,n){switch(t.type){case 0:return null!==this.variable&&!this.isPureFunction(e)&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(e,t,n);case 1:return(e.length>0?this.getVariableRespectingTDZ():this.variable).hasEffectsOnInteractionAtPath(e,t,n);case 2:return!this.isPureFunction(e)&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(e,t,n)}}include(e,t){this.included||this.includeNode(e),t&&this.variable?.includePath(Te,e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),null!==this.variable&&this.scope.context.includeVariableInModule(this.variable,Le,e)}includePath(e,t){this.included?e.length>0&&this.variable?.includePath(e,t):(this.included=!0,this.deoptimized||this.applyDeoptimizations(),null!==this.variable&&this.scope.context.includeVariableInModule(this.variable,e,t))}includeCallArgumentsWhenCalledAtPath(e,t,n){this.variable.includeCallArgumentsWhenCalledAtPath(e,t,n)}isPossibleTDZ(){const e=this.isTDZAccess;if(null!==e)return e;if(!(this.variable instanceof ps&&this.variable.kind&&Wi.has(this.variable.kind)&&this.variable.module.hasTreeShakingPassStarted))return this.isTDZAccess=!1;let t;return this.variable.declarations&&1===this.variable.declarations.length&&(t=this.variable.declarations[0])&&this.start<t.start&&Ki(this)===Ki(t)?this.isTDZAccess=!0:this.variable.initReached?this.isTDZAccess=!1:this.isTDZAccess=!0}applyDeoptimizations(){this.deoptimized=!0,this.variable instanceof ps&&(this.variable.module.isExecuted||Os(this.variable.module),this.variable.consolidateInitializers(),this.scope.context.requestTreeshakingPass()),this.isVariableReference&&(this.variable.addUsedPlace(this),this.scope.context.requestTreeshakingPass())}disallowImportReassignment(){return this.scope.context.error(bn(this.name,this.scope.context.module.id),this.start)}getVariableRespectingTDZ(){return this.isPossibleTDZ()?nt:this.variable}isPureFunction(e){let t=this.scope.context.manualPureFunctions[this.name];for(const n of e){if(!t)return!1;if(t[bs])return!0;t=t[n]}return t?.[bs]}}function Ki(e){for(;e&&!/^Program|Function/.test(e.type);)e=e.parent;return e}class Xi extends tt{constructor(e,t){super(),this.object=e,this.path=t}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.object.deoptimizeArgumentsOnInteractionAtPath(e,[...this.path,...t],n)}deoptimizePath(e){this.object.deoptimizePath([...this.path,...e])}getLiteralValueAtPath(e,t,n){return this.object.getLiteralValueAtPath([...this.path,...e],t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.object.getReturnExpressionWhenCalledAtPath([...this.path,...e],t,n,s)}hasEffectsOnInteractionAtPath(e,t,n){return this.object.hasEffectsOnInteractionAtPath([...this.path,...e],t,n)}}class Ji extends qi{constructor(){super(...arguments),this.variable=null}get isDestructuringDeoptimized(){return Je(this.flags,16777216)}set isDestructuringDeoptimized(e){this.flags=Ye(this.flags,16777216,e)}addExportedVariables(e,t){t.has(this.variable)&&e.push(this.variable)}bind(){!this.variable&&ys(this,this.parent)&&(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this),this.isVariableReference=!0,this.assignmentInteraction&&this.variable.markTargetOfAssignment())}declare(e,t,n){let s;const{treeshake:i}=this.scope.context.options;return"parameter"===e?s=this.scope.addParameterDeclaration(this,t):(s=this.scope.addDeclaration(this,this.scope.context,n,t,e),"var"===e&&i&&i.correctVarValueBeforeDeclaration&&s.markInitializersForDeoptimization()),[this.variable=s]}deoptimizeAssignment(e,t){this.deoptimizePath(Le),0===e.length&&this.variable?.addReassignedValue(t),t.deoptimizePath([...e,Pe])}hasEffectsWhenDestructuring(e,t,n){return t.length>0&&n.hasEffectsOnInteractionAtPath(t,at,e)}includeDestructuredIfNecessary(e,t,n){t.length>0&&!this.isDestructuringDeoptimized&&(this.isDestructuringDeoptimized=!0,n.deoptimizeArgumentsOnInteractionAtPath({args:[new Xi(n,t.slice(0,-1))],type:0},t,Ue));const{propertyReadSideEffects:s}=this.scope.context.options.treeshake;let i=this.included;return(i||=t.length>0&&!e.brokenFlow&&s&&("always"===s||n.hasEffectsOnInteractionAtPath(t,at,ts())))&&(this.variable&&!this.variable.included&&this.scope.context.includeVariableInModule(this.variable,Le,e),n.includePath(t,e)),!this.included&&i&&this.includeNode(e),this.included}markDeclarationReached(){this.variable.initReached=!0}render(e,{snippets:{getPropertyAccess:t},useOriginalName:n},{renderedParentType:s,isCalleeOfRenderedParent:i,isShorthandProperty:r}=ye){if(this.variable){const o=this.variable.getName(t,n);o!==this.name&&(e.overwrite(this.start,this.end,o,{contentOnly:!0,storeName:!0}),r&&e.prependRight(this.start,`${this.name}: `)),"eval"===o&&s===jn&&i&&e.appendRight(this.start,"0, ")}}}class Yi extends is{constructor(){super(...arguments),this.accessedValue=null}get computed(){return Je(this.flags,1024)}set computed(e){this.flags=Ye(this.flags,1024,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){return 0===e.type&&"get"===this.kind&&0===t.length||1===e.type&&"set"===this.kind&&0===t.length?this.value.deoptimizeArgumentsOnInteractionAtPath({args:e.args,type:2,withNew:!1},Le,n):void this.getAccessedValue()[0].deoptimizeArgumentsOnInteractionAtPath(e,t,n)}includeCallArgumentsWhenCalledAtPath(e,t,n){this.getAccessedValue()[0].includeCallArgumentsWhenCalledAtPath(e,t,n)}deoptimizeCache(){}deoptimizePath(e){this.getAccessedValue()[0].deoptimizePath(e)}getKnownFunctionAtPath(e,t,n){return"get"===this.kind||"set"===this.kind?null:this.value.getKnownFunctionAtPath(e,t,n)}getLiteralValueAtPath(e,t,n){return this.getAccessedValue()[0].getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.getAccessedValue()[0].getReturnExpressionWhenCalledAtPath(e,t,n,s)}hasEffects(e){return this.key.hasEffects(e)}hasEffectsOnInteractionAtPath(e,t,n){return"get"===this.kind&&0===t.type&&0===e.length||"set"===this.kind&&1===t.type?this.value.hasEffectsOnInteractionAtPath(Le,{args:t.args,type:2,withNew:!1},n):this.getAccessedValue()[0].hasEffectsOnInteractionAtPath(e,t,n)}getAccessedValue(){return null===this.accessedValue?"get"===this.kind?(this.accessedValue=st,this.accessedValue=this.value.getReturnExpressionWhenCalledAtPath(Le,ct,Ue,this)):this.accessedValue=[this.value,!1]:this.accessedValue}}Yi.prototype.includeNode=os,Yi.prototype.applyDeoptimizations=as;class Zi extends Yi{hasEffects(e){return super.hasEffects(e)||gs(this.decorators,e)}}class Qi extends is{get computed(){return Je(this.flags,1024)}set computed(e){this.flags=Ye(this.flags,1024,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.value?.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.value?.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.value?this.value.getLiteralValueAtPath(e,t,n):Ze}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.value?this.value.getReturnExpressionWhenCalledAtPath(e,t,n,s):st}hasEffects(e){return this.key.hasEffects(e)||this.static&&!!this.value?.hasEffects(e)||gs(this.decorators,e)}hasEffectsOnInteractionAtPath(e,t,n){return!this.value||this.value.hasEffectsOnInteractionAtPath(e,t,n)}includeNode(e){this.included=!0,this.value?.includePath(Te,e);for(const t of this.decorators)t.includePath(Te,e)}}Qi.prototype.applyDeoptimizations=as;class er extends is{constructor(){super(...arguments),this.instanceFieldValues=null,this.objectEntity=null}createScope(e){this.scope=new ms(e,e.context)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.getObjectEntity().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,t,n,s)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();const t=this.superClass?.hasEffects(e)||this.body.hasEffects(e);return this.id?.markDeclarationReached(),t||super.hasEffects(e)||gs(this.decorators,e)}hasEffectsOnInteractionAtPath(e,t,n){return 2===t.type&&0===e.length?!t.withNew||(null===this.classConstructor?this.superClass?.hasEffectsOnInteractionAtPath(e,t,n):this.classConstructor.hasEffectsOnInteractionAtPath(e,t,n))||this.hasEffectsOnInstanceFieldInitialization(n):this.getObjectEntity().hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included||this.includeNode(e),this.superClass?.include(e,t),this.body.include(e,t);for(const n of this.decorators)n.include(e,t);this.id&&(this.id.markDeclarationReached(),this.id.include(e,t))}initialise(){super.initialise(),this.id?.declare("class",Le,this),this.instanceEntity=new ni(new Map,new Xi(this,["prototype"])),this.body.scope.instanceThisVariable.addArgumentForDeoptimization(this.instanceEntity);for(const e of this.body.body)if(e instanceof Zi&&"constructor"===e.kind)return void(this.classConstructor=e);this.classConstructor=null}applyDeoptimizations(){this.deoptimized=!0;for(const e of this.body.body)e.type===Zn||e.static||e instanceof Zi&&"constructor"===e.kind||e.deoptimizePath(Te);this.scope.context.requestTreeshakingPass()}hasEffectsOnInstanceFieldInitialization(e){const t=this.getInstanceFieldValues();if(0===t.length)return!1;const{replacedVariableInits:n}=e,s=this.body.scope.instanceThisVariable,i=n.get(s);n.set(s,this.instanceEntity);const r=t.some(t=>t.hasEffects(e));return i?n.set(s,i):n.delete(s),r}getInstanceFieldValues(){if(null===this.instanceFieldValues){this.instanceFieldValues=[];for(const e of this.body.body)e instanceof Qi&&!e.static&&null!==e.value&&this.instanceFieldValues.push(e.value)}return this.instanceFieldValues}getObjectEntity(){if(null!==this.objectEntity)return this.objectEntity;const e=[],t=[];for(const n of this.body.body){if(n.type===Zn)continue;const s=n.static?e:t,i=n.kind;if(s===t&&!i)continue;const r="set"===i||"get"===i?i:"init";let o;if(n.computed){const e=n.key.getLiteralValueAtPath(Le,Ue,this);if("symbol"==typeof e){s.push({key:De(e)?e:Pe,kind:r,property:n});continue}o=String(e)}else o=n.key instanceof Ji?n.key.name:String(n.key.value);s.push({key:o,kind:r,property:n})}return e.unshift({key:"prototype",kind:"init",property:new ni(t,this.superClass?new Xi(this.superClass,["prototype"]):ri)}),this.objectEntity=new ni(e,this.superClass||ri)}}er.prototype.includeNode=rs;class tr extends er{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}render(e,t){const{exportNamesByVariable:n,format:s,snippets:{_:i,getPropertyAccess:r}}=t;if(this.id){const{variable:o,name:a}=this.id;"system"===s&&n.has(o)&&e.appendLeft(this.end,`${i}${fe([o],t)};`);const l=o.getName(r);if(l!==a)return this.decorators.map(n=>n.render(e,t)),this.superClass?.render(e,t),this.body.render(e,{...t,useOriginalName:e=>e===o}),e.prependRight(this.start,`let ${l}${i}=${i}`),void e.prependLeft(this.end,";")}super.render(e,t)}applyDeoptimizations(){super.applyDeoptimizations();const{id:e,scope:t}=this;if(e){const{name:n,variable:s}=e;for(const e of t.accessedOutsideVariables.values())e!==s&&e.forbidName(n)}}}class nr extends ps{constructor(e){super("arguments",null,nt,Le,e,"other")}addArgumentToBeDeoptimized(e){}addReference(){this.deoptimizedArguments=[],this.addArgumentToBeDeoptimized=sr}hasEffectsOnInteractionAtPath(e,{type:t}){return 0!==t||e.length>1}includePath(e,t){super.includePath(e,t);for(const e of this.deoptimizedArguments)e.deoptimizePath(Te);this.deoptimizedArguments.length=0}}function sr(e){this.included?e.deoptimizePath(Te):this.deoptimizedArguments?.push(e)}const ir=Ee,rr=new Set([Pe]),or=new je,ar=new Set([nt]);class lr extends ps{constructor(e,t,n,s){super(e,t,nt,n,s,"parameter"),this.includedPathTracker=new Xe,this.argumentsToBeDeoptimized=new Set,this.deoptimizationInteractions=[],this.deoptimizations=new je,this.deoptimizedFields=new Set,this.expressionsDependingOnKnownValue=[],this.knownValue=null,this.knownValueLiteral=Ze}addArgumentForDeoptimization(e){if(this.updateKnownValue(e),e===nt){if(!this.argumentsToBeDeoptimized.has(nt)){this.argumentsToBeDeoptimized.add(nt);for(const{interaction:e}of this.deoptimizationInteractions)it(e);this.deoptimizationInteractions=ir}}else if(this.deoptimizedFields.has(Pe))e.deoptimizePath([...this.initPath,Pe]);else if(!this.argumentsToBeDeoptimized.has(e)){this.argumentsToBeDeoptimized.add(e);for(const t of this.deoptimizedFields)e.deoptimizePath([...this.initPath,t]);for(const{interaction:t,path:n}of this.deoptimizationInteractions)e.deoptimizeArgumentsOnInteractionAtPath(t,[...this.initPath,...n],Ue)}}markReassigned(){if(!this.isReassigned){super.markReassigned();for(const e of this.expressionsDependingOnKnownValue)e.deoptimizeCache();this.expressionsDependingOnKnownValue=Ee}}deoptimizeCache(){this.markReassigned()}updateKnownValue(e){if(this.isReassigned)return;if(null===this.knownValue)return this.knownValue=e,void(this.knownValueLiteral=e.getLiteralValueAtPath(this.initPath,Ue,this));if(this.knownValue===e||this.knownValue instanceof Ji&&e instanceof Ji&&this.knownValue.variable===e.variable)return;const{knownValueLiteral:t}=this;"symbol"!=typeof t&&e.getLiteralValueAtPath(this.initPath,Ue,this)===t||this.markReassigned()}getKnownValue(){return this.knownValue||nt}getLiteralValueAtPath(e,t,n){if(this.isReassigned||e.length+this.initPath.length>6)return Ze;const s=this.getKnownValue();return this.expressionsDependingOnKnownValue.push(n),t.withTrackedEntityAtPath(e,s,()=>s.getLiteralValueAtPath([...this.initPath,...e],t,n),Ze)}hasEffectsOnInteractionAtPath(e,t,n){const{type:s}=t;return this.isReassigned||1===s||e.length+this.initPath.length>6?super.hasEffectsOnInteractionAtPath(e,t,n):!(2===s?(t.withNew?n.instantiated:n.called).trackEntityAtPathAndGetIfTracked(e,t.args,this):n.accessed.trackEntityAtPathAndGetIfTracked(e,this))&&this.getKnownValue().hasEffectsOnInteractionAtPath([...this.initPath,...e],t,n)}deoptimizeArgumentsOnInteractionAtPath(e,t){if(t.length>=2||this.argumentsToBeDeoptimized.has(nt)||this.deoptimizationInteractions.length>=20||1===t.length&&(this.deoptimizedFields.has(Pe)||2===e.type&&this.deoptimizedFields.has(t[0]))||this.initPath.length+t.length>6)it(e);else if(!this.deoptimizations.trackEntityAtPathAndGetIfTracked(t,e.args)){for(const n of this.argumentsToBeDeoptimized)n.deoptimizeArgumentsOnInteractionAtPath(e,[...this.initPath,...t],Ue);this.argumentsToBeDeoptimized.has(nt)||this.deoptimizationInteractions.push({interaction:e,path:t})}}deoptimizePath(e){if(0===e.length)return void this.markReassigned();if(this.deoptimizedFields.has(Pe))return;const t=e[0];if(!this.deoptimizedFields.has(t)){this.deoptimizedFields.add(t);for(const e of this.argumentsToBeDeoptimized)e.deoptimizePath([...this.initPath,t]);t===Pe&&(this.deoptimizationInteractions=ir,this.deoptimizations=or,this.deoptimizedFields=rr,this.argumentsToBeDeoptimized=ar)}}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.deoptimizePath(Te):this.deoptimizedFields.has(e[0])||this.deoptimizePath([e[0]]),st}includeArgumentPaths(e,t){this.includedPathTracker.includeAllPaths(e,t,this.initPath)}}class cr extends lr{constructor(e){super("this",null,Le,e),this.includedPathTracker=new We}hasEffectsOnInteractionAtPath(e,t,n){return(n.replacedVariableInits.get(this)||nt).hasEffectsOnInteractionAtPath(e,t,n)}}class ur extends tt{constructor(e){super(),this.returnedIdentifier=e}deoptimizeArgumentsOnInteractionAtPath(e,t,n){it(e),this.returnedIdentifier.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.returnedIdentifier.deoptimizePath(e)}includeCallArgumentsWhenCalledAtPath(e,t,n){this.returnedIdentifier.includeCallArgumentsWhenCalledAtPath(e,t,n)}}class dr extends ms{constructor(e){super(e,e.context),this.parent=e}addDeclaration(e,t,n,s,i){if("var"===i){const r=e.name,o=this.hoistedVariables?.get(r)||this.variables.get(r);if(o){const a=o.kind;if("parameter"===a&&"CatchClause"===o.declarations[0].parent.type){const n=this.parent.parent.addDeclaration(e,t,Ms,s,i);return o.renderLikeHoisted(n),this.addHoistedVariable(r,n),n}return"var"===a?(o.addDeclaration(e,n),o):t.error(On(r),e.start)}const a=this.parent.parent.addDeclaration(e,t,n,s,i);return a.markInitializersForDeoptimization(),this.addHoistedVariable(r,a),a}return super.addDeclaration(e,t,n,s,i)}}class hr extends ms{constructor(e){super(e,e.context)}addDeclaration(e,t,n,s,i){const r=e.name,o=this.hoistedVariables?.get(r)||this.variables.get(r);if(o){const s=o.kind;if(!("var"!==i&&"function"!==i||"var"!==s&&"function"!==s&&"parameter"!==s))return o.addDeclaration(e,n),o;t.error(On(r),e.start)}const a=new ps(e.name,e,n,s,t,i);return this.variables.set(r,a),a}}class pr extends ms{constructor(e,t){super(e,e.context),this.hasRest=!1,this.parameters=[],this.bodyScope=t?new dr(this):new hr(this)}addParameterDeclaration(e,t){const{name:n,start:s}=e;if(this.variables.get(n))return this.context.error(function(e){return{code:"DUPLICATE_ARGUMENT_NAME",message:`Duplicate argument name "${e}"`}}(n),s);const i=new lr(n,e,t,this.context);return this.variables.set(n,i),this.bodyScope.addHoistedVariable(n,i),i}addParameterVariables(e,t){this.parameters=e;for(const t of e)for(const e of t)e.alwaysRendered=!0;this.hasRest=t}hasParameterCalledFromTryStatement(){return this.parameters.some(e=>e.some(e=>e.calledFromTryStatement))}includeCallArguments({args:e},t){let n=!1,s=!1;const i=this.hasRest&&this.parameters[this.parameters.length-1];let r=e.length-1;for(let n=1;n<e.length;n++){const i=e[n];i instanceof vi&&!s&&(s=!0,r=n-1),s&&(i.includePath(Te,t),i.include(t,!1))}for(let o=r;o>=1;o--){const r=this.parameters[o-1]||i,a=e[o];if(r)if(n=!1,0===r.length)s=!0;else for(const e of r)e.calledFromTryStatement&&(n=!0),e.included&&(s=!0,n?a.include(t,!0):(e.includeArgumentPaths(a,t),a.include(t,!1)));(s||a.shouldBeIncluded(t))&&(s=!0,a.include(t,n))}}}class fr extends pr{constructor(){super(...arguments),this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(e){this.returnExpressions.push(e)}deoptimizeArgumentsOnCall({args:e}){const{parameters:t}=this;let n=0;for(;n<e.length-1;n++){const s=e[n+1];if(s instanceof vi){for(;n<t.length;n++){e[n+1]?.deoptimizePath(Te);for(const e of t[n])e.markReassigned()}break}if(this.hasRest&&n>=t.length-1)s.deoptimizePath(Te);else{const e=t[n];if(e)for(const t of e)t.addArgumentForDeoptimization(s);this.addArgumentToBeDeoptimized(s)}}const s=this.hasRest?t.length-1:t.length;for(;n<s;n++)for(const e of t[n])e.addArgumentForDeoptimization(Ms)}getReturnExpression(){return null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression}deoptimizeAllParameters(){for(const e of this.parameters)for(const t of e)t.deoptimizePath(Te),t.markReassigned()}reassignAllParameters(){for(const e of this.parameters)for(const t of e)t.markReassigned()}addArgumentToBeDeoptimized(e){}updateReturnExpression(){const{returnExpressions:e}=this,[t]=e;if(t&&this.returnExpressionsResolveToSameVariable(t))this.returnExpression=t.variable.isTargetOfAssignment?new ur(t):t;else if(1===e.length)this.returnExpression=t;else{this.returnExpression=nt;for(const t of e)t.deoptimizePath(Te)}}returnExpressionsResolveToSameVariable(e){return!(!us(e)||null===e.variable)&&this.returnExpressions.every(t=>us(t)&&t.variable===e.variable)}}class mr extends fr{constructor(e,t){super(e,!1),this.functionNode=t;const{context:n}=e;this.variables.set("arguments",this.argumentsVariable=new nr(n)),this.variables.set("this",this.thisVariable=new cr(n))}findLexicalBoundary(){return this}includeCallArguments(e,t){super.includeCallArguments(e,t);const{args:n}=e;if(n[0]&&this.thisVariable.includeArgumentPaths(n[0],t),this.argumentsVariable.included)for(let e=1;e<n.length;e++){const s=n[e];s&&(s.includePath(Te,t),s.include(t,!1))}}addArgumentToBeDeoptimized(e){this.argumentsVariable.addArgumentToBeDeoptimized(e)}}class gr extends ms{constructor(e){super(e,e.context)}addDeclaration(e,t,n,s,i){if("var"===i){const r=e.name,o=this.hoistedVariables?.get(r)||this.variables.get(r);if(o)return"var"===o.kind||"var"===i&&"parameter"===o.kind?(o.addDeclaration(e,n),o):t.error(On(r),e.start);const a=this.parent.addDeclaration(e,t,n,s,i);return a.markInitializersForDeoptimization(),this.addHoistedVariable(r,a),a}return super.addDeclaration(e,t,n,s,i)}}class yr extends is{initialise(){var e,t;super.initialise(),this.directive&&"use strict"!==this.directive&&this.parent.type===Jn&&this.scope.context.log(Et,(e=this.directive,{code:"MODULE_LEVEL_DIRECTIVE",id:t=this.scope.context.module.id,message:`Module level directives cause errors when bundled, "${e}" in "${wt(t)}" was ignored.`}),this.start)}removeAnnotations(e){this.expression.removeAnnotations(e)}render(e,t){super.render(e,t),";"!==e.original[this.end-1]&&e.appendLeft(this.end,";")}shouldBeIncluded(e){return this.directive&&"use strict"!==this.directive?this.parent.type!==Jn:super.shouldBeIncluded(e)}}yr.prototype.includeNode=os,yr.prototype.applyDeoptimizations=as;class br extends is{get deoptimizeBody(){return Je(this.flags,32768)}set deoptimizeBody(e){this.flags=Ye(this.flags,32768,e)}get directlyIncluded(){return Je(this.flags,16384)}set directlyIncluded(e){this.flags=Ye(this.flags,16384,e)}addImplicitReturnExpressionToScope(){const e=this.body[this.body.length-1];e&&"ReturnStatement"===e.type||this.scope.addReturnExpression(nt)}createScope(e){this.scope=this.parent.preventChildBlockScope?e:new gr(e)}hasEffects(e){if(this.deoptimizeBody)return!0;for(const t of this.body){if(e.brokenFlow)break;if(t.hasEffects(e))return!0}return!1}include(e,t){if(!this.deoptimizeBody||!this.directlyIncluded){this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody&&(t=!0);for(const n of this.body)(t||n.shouldBeIncluded(e))&&n.include(e,t)}}initialise(){super.initialise(),this.scope.context.magicString.addSourcemapLocation(this.end-1);const e=this.body[0];this.deoptimizeBody=e instanceof yr&&"use asm"===e.directive}render(e,t){this.body.length>0?de(this.body,e,this.start+1,this.end-1,t):super.render(e,t)}}br.prototype.includeNode=os,br.prototype.applyDeoptimizations=as;class Er extends is{constructor(){super(...arguments),this.parameterVariableValuesDeoptimized=!1}get async(){return Je(this.flags,256)}set async(e){this.flags=Ye(this.flags,256,e)}get deoptimizedReturn(){return Je(this.flags,512)}set deoptimizedReturn(e){this.flags=Ye(this.flags,512,e)}get generator(){return Je(this.flags,4194304)}set generator(e){this.flags=Ye(this.flags,4194304,e)}get hasCachedEffects(){return Je(this.flags,67108864)}set hasCachedEffects(e){this.flags=Ye(this.flags,67108864,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){2===e.type&&0===t.length?this.scope.deoptimizeArgumentsOnCall(e):this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e),1===e.length&&e[0]===Pe&&(this.scope.getReturnExpression().deoptimizePath(Te),this.scope.deoptimizeAllParameters())}getKnownFunctionAtPath(e,t,n){return 0===e.length?this:this.getObjectEntity().getKnownFunctionAtPath(e,t,n)}getLiteralValueAtPath(e,t,n){return this.getObjectEntity().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return e.length>0?this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,t,n,s):this.async||this.generator?(this.deoptimizedReturn||(this.deoptimizedReturn=!0,this.scope.getReturnExpression().deoptimizePath(Te),this.scope.context.requestTreeshakingPass()),st):[this.scope.getReturnExpression(),!1]}hasEffectsOnInteractionAtPath(e,t,n){if(e.length>0||2!==t.type)return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,t,n);if(this.hasCachedEffects)return!0;if(this.async){const{propertyReadSideEffects:e}=this.scope.context.options.treeshake,t=this.scope.getReturnExpression();if(t.hasEffectsOnInteractionAtPath(["then"],ct,n)||e&&("always"===e||t.hasEffectsOnInteractionAtPath(["then"],at,n)))return this.hasCachedEffects=!0,!0}const{propertyReadSideEffects:s}=this.scope.context.options.treeshake;for(let e=0;e<this.params.length;e++){const i=this.params[e];if(i.hasEffects(n)||s&&i.hasEffectsWhenDestructuring(n,Le,t.args[e+1]||Ms))return this.hasCachedEffects=!0,!0}return!1}onlyFunctionCallUsed(){let e=null;const{parent:t}=this;return"VariableDeclarator"===t.type?e=t.id.variable??null:t.type===Un&&(e=t.variable),e?.getOnlyFunctionCallUsed()??!1}include(e,t){this.included||this.includeNode(e),this.parameterVariableValuesDeoptimized||this.onlyFunctionCallUsed()||(this.parameterVariableValuesDeoptimized=!0,this.scope.reassignAllParameters());const{brokenFlow:n}=e;e.brokenFlow=!1,this.body.include(e,t),e.brokenFlow=n}includeCallArgumentsWhenCalledAtPath(e,t,n){0===e.length?this.scope.includeCallArguments(t,n):this.getObjectEntity().includeCallArgumentsWhenCalledAtPath(e,t,n)}initialise(){super.initialise(),this.body instanceof br?this.body.addImplicitReturnExpressionToScope():this.scope.addReturnExpression(this.body),this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationNoSideEffects=this.annotations.some(e=>"noSideEffects"===e.type))}}Er.prototype.preventChildBlockScope=!0,Er.prototype.includeNode=os,Er.prototype.applyDeoptimizations=as;class xr extends Er{constructor(){super(...arguments),this.objectEntity=null}createScope(e){this.scope=new mr(e,this),this.constructedEntity=new ni(new Map,ri),this.scope.thisVariable.addArgumentForDeoptimization(this.constructedEntity)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){super.deoptimizeArgumentsOnInteractionAtPath(e,t,n),2===e.type&&0===t.length&&e.args[0]&&this.scope.thisVariable.addArgumentForDeoptimization(e.args[0])}hasEffects(e){return!this.annotationNoSideEffects&&!!this.id?.hasEffects(e)}hasEffectsOnInteractionAtPath(e,t,n){if(this.annotationNoSideEffects&&0===e.length&&2===t.type)return!1;if(super.hasEffectsOnInteractionAtPath(e,t,n))return!0;if(0===e.length&&2===t.type){const e=n.replacedVariableInits.get(this.scope.thisVariable);n.replacedVariableInits.set(this.scope.thisVariable,t.withNew?this.constructedEntity:nt);const{brokenFlow:s,ignore:i,replacedVariableInits:r}=n;if(n.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0,this:t.withNew},this.body.hasEffects(n))return this.hasCachedEffects=!0,!0;n.brokenFlow=s,e?r.set(this.scope.thisVariable,e):r.delete(this.scope.thisVariable),n.ignore=i}return!1}include(e,t){super.include(e,t),this.id?.include(e,t);const n=this.scope.argumentsVariable.included;for(const s of this.params)s instanceof Ji&&!n||s.include(e,t)}includeNode(e){this.included=!0;const t=this.scope.argumentsVariable.included;for(const n of this.params)n instanceof Ji&&!t||n.includePath(Te,e)}initialise(){super.initialise(),this.id?.declare("function",Le,this)}getObjectEntity(){return null!==this.objectEntity?this.objectEntity:this.objectEntity=new ni([{key:"prototype",kind:"init",property:new ni([],this.getPrototypeOfPrototype())}],ri)}getPrototypeOfPrototype(){return this.generator?this.async?ai:oi:ri}}class vr extends xr{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}onlyFunctionCallUsed(){return this.id?.variable.getOnlyFunctionCallUsed()??super.onlyFunctionCallUsed()}}class Ar extends is{bind(){super.bind();const e=this.declarationName||this.scope.context.getModuleName();this.variable.name=this.scope.variables.get(e)?`${e}_default`:e}include(e,t){this.included=!0,this.declaration.include(e,t),t&&this.scope.context.includeVariableInModule(this.variable,Te,e)}includePath(e,t){this.included=!0,this.declaration.includePath(e,t)}initialise(){super.initialise();const e=this.declaration;this.declarationName=e.id&&e.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this,this.scope.context),this.scope.context.addExport(this)}removeAnnotations(e){this.declaration.removeAnnotations(e)}render(e,t,n){const{start:s,end:i}=n,r=function(e,t){return ae(e,re(e,"default",t)+7)}(e.original,this.start);let o=!1;if(this.declaration instanceof vr)this.renderNamedDeclaration(e,r,null===this.declaration.id?function(e,t){const n=re(e,"function",t)+8;e=e.slice(n,re(e,"(",n));const s=re(e,"*");return-1===s?n:n+s+1}(e.original,r):null,t);else if(this.declaration instanceof tr)this.renderNamedDeclaration(e,r,null===this.declaration.id?re(e.original,"class",s)+5:null,t);else{if(this.variable.getOriginalVariable()!==this.variable)return void se(this,e,s,i);if(!this.variable.included)return e.remove(this.start,r),this.declaration.render(e,t,{renderedSurroundingElement:Gn}),void(";"!==e.original[this.end-1]&&e.appendLeft(this.end,";"));o=this.renderVariableDeclaration(e,r,t)}this.declaration.render(e,t),o&&e.appendLeft(this.end,";")}renderNamedDeclaration(e,t,n,s){const{exportNamesByVariable:i,format:r,snippets:{getPropertyAccess:o}}=s,a=this.variable.getName(o);e.remove(this.start,t),null!==n&&e.appendLeft(n,` ${a}`),"system"===r&&this.declaration instanceof tr&&i.has(this.variable)&&e.appendLeft(this.end,` ${fe([this.variable],s)};`)}renderVariableDeclaration(e,t,{format:n,exportNamesByVariable:s,snippets:{cnst:i,getPropertyAccess:r}}){const o=59===e.original.charCodeAt(this.end-1),a="system"===n&&s.get(this.variable);return a?(e.overwrite(this.start,t,`${i} ${this.variable.getName(r)} = exports(${JSON.stringify(a[0])}, `),e.appendRight(o?this.end-1:this.end,")"+(o?"":";")),!1):(e.overwrite(this.start,t,`${i} ${this.variable.getName(r)} = `),!o)}}Ar.prototype.needsBoundaries=!0,Ar.prototype.includeNode=os,Ar.prototype.applyDeoptimizations=as;const Sr=/[\n\r'\\\u2028\u2029]/,Pr=/[\n\r'\\\u2028\u2029]/g,wr={"\n":"\\n","\r":"\\r","'":"\\'","\\":"\\\\","\u2028":"\\u2028","\u2029":"\\u2029"};function $r(e){return Sr.test(e)?e.replace(Pr,e=>wr[e]):e}const Ir="_interopDefault",Cr="_interopDefaultCompat",kr="_interopNamespace",Nr="_interopNamespaceCompat",Or="_interopNamespaceDefault",Rr="_interopNamespaceDefaultOnly",Dr="_mergeNamespaces",Mr="_documentCurrentScript",_r={auto:Ir,compat:Cr,default:null,defaultOnly:null,esModule:null},Lr=(e,t)=>"esModule"===e||t&&("auto"===e||"compat"===e),Tr={auto:kr,compat:Nr,default:Or,defaultOnly:Rr,esModule:null},Br=(e,t)=>"esModule"!==e&&Lr(e,t),zr=(e,t,n,s,i,r,o)=>{const a=new Set(e);for(const e of Qr)t.has(e)&&a.add(e);return Qr.map(e=>a.has(e)?Fr[e](n,s,i,r,o,a):"").join("")},Fr={[Mr]:(e,{_:t,n:n})=>`var ${Mr}${t}=${t}typeof document${t}!==${t}'undefined'${t}?${t}document.currentScript${t}:${t}null;${n}`,[Cr](e,t,n){const{_:s,getDirectReturnFunction:i,n:r}=t,[o,a]=i(["e"],{functionReturn:!0,lineBreakIndent:null,name:Cr});return`${o}${Ur(t)}${s}?${s}${n?Vr(t):jr(t)}${a}${r}${r}`},[Ir](e,t,n){const{_:s,getDirectReturnFunction:i,n:r}=t,[o,a]=i(["e"],{functionReturn:!0,lineBreakIndent:null,name:Ir});return`${o}e${s}&&${s}e.__esModule${s}?${s}${n?Vr(t):jr(t)}${a}${r}${r}`},[Nr](e,t,n,s,i,r){const{_:o,getDirectReturnFunction:a,n:l}=t;if(r.has(Or)){const[e,n]=a(["e"],{functionReturn:!0,lineBreakIndent:null,name:Nr});return`${e}${Ur(t)}${o}?${o}e${o}:${o}${Or}(e)${n}${l}${l}`}return`function ${Nr}(e)${o}{${l}${e}if${o}(${Ur(t)})${o}return e;${l}`+Gr(e,e,t,n,s,i)+`}${l}${l}`},[Rr](e,t,n,s,i){const{getDirectReturnFunction:r,getObject:o,n:a,_:l}=t,[c,u]=r(["e"],{functionReturn:!0,lineBreakIndent:null,name:Rr});return`${c}${Yr(s,Zr(i,o([[null,`__proto__:${l}null`],["default","e"]],{lineBreakIndent:null}),t))}${u}${a}${a}`},[Or](e,t,n,s,i){const{_:r,n:o}=t;return`function ${Or}(e)${r}{${o}`+Gr(e,e,t,n,s,i)+`}${o}${o}`},[kr](e,t,n,s,i,r){const{_:o,getDirectReturnFunction:a,n:l}=t;if(r.has(Or)){const[e,t]=a(["e"],{functionReturn:!0,lineBreakIndent:null,name:kr});return`${e}e${o}&&${o}e.__esModule${o}?${o}e${o}:${o}${Or}(e)${t}${l}${l}`}return`function ${kr}(e)${o}{${l}${e}if${o}(e${o}&&${o}e.__esModule)${o}return e;${l}`+Gr(e,e,t,n,s,i)+`}${l}${l}`},[Dr](e,t,n,s,i){const{_:r,cnst:o,n:a}=t,l="var"===o&&n;return`function ${Dr}(n, m)${r}{${a}${e}${Wr(`{${a}${e}${e}${e}if${r}(k${r}!==${r}'default'${r}&&${r}!(k in n))${r}{${a}`+(n?l?Kr:Xr:Jr)(e,e+e+e+e,t)+`${e}${e}${e}}${a}`+`${e}${e}}`,l,e,t)}${a}${e}return ${Yr(s,Zr(i,"n",t))};${a}}${a}${a}`}},Vr=({_:e,getObject:t})=>`e${e}:${e}${t([["default","e"]],{lineBreakIndent:null})}`,jr=({_:e,getPropertyAccess:t})=>`e${t("default")}${e}:${e}e`,Ur=({_:e})=>`e${e}&&${e}typeof e${e}===${e}'object'${e}&&${e}'default'${e}in e`,Gr=(e,t,n,s,i,r)=>{const{_:o,cnst:a,getObject:l,getPropertyAccess:c,n:u,s:d}=n,h=`{${u}`+(s?qr:Jr)(e,t+e+e,n)+`${t}${e}}`;return`${t}${a} n${o}=${o}Object.create(null${r?`,${o}{${o}[Symbol.toStringTag]:${o}${eo(l)}${o}}`:""});${u}${t}if${o}(e)${o}{${u}${t}${e}${Hr(h,!s,n)}${u}${t}}${u}${t}n${c("default")}${o}=${o}e;${u}${t}return ${Yr(i,"n")}${d}${u}`},Hr=(e,t,{_:n,cnst:s,getFunctionIntro:i,s:r})=>"var"!==s||t?`for${n}(${s} k in e)${n}${e}`:`Object.keys(e).forEach(${i(["k"],{isAsync:!1,name:null})}${e})${r}`,Wr=(e,t,n,{_:s,cnst:i,getDirectReturnFunction:r,getFunctionIntro:o,n:a})=>{if(t){const[t,i]=r(["e"],{functionReturn:!1,lineBreakIndent:{base:n,t:n},name:null});return`m.forEach(${t}e${s}&&${s}typeof e${s}!==${s}'string'${s}&&${s}!Array.isArray(e)${s}&&${s}Object.keys(e).forEach(${o(["k"],{isAsync:!1,name:null})}${e})${i});`}return`for${s}(var i${s}=${s}0;${s}i${s}<${s}m.length;${s}i++)${s}{${a}${n}${n}${i} e${s}=${s}m[i];${a}${n}${n}if${s}(typeof e${s}!==${s}'string'${s}&&${s}!Array.isArray(e))${s}{${s}for${s}(${i} k in e)${s}${e}${s}}${a}${n}}`},qr=(e,t,n)=>{const{_:s,n:i}=n;return`${t}if${s}(k${s}!==${s}'default')${s}{${i}`+Kr(e,t+e,n)+`${t}}${i}`},Kr=(e,t,{_:n,cnst:s,getDirectReturnFunction:i,n:r})=>{const[o,a]=i([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${t}${s} d${n}=${n}Object.getOwnPropertyDescriptor(e,${n}k);${r}${t}Object.defineProperty(n,${n}k,${n}d.get${n}?${n}d${n}:${n}{${r}${t}${e}enumerable:${n}true,${r}${t}${e}get:${n}${o}e[k]${a}${r}${t}});${r}`},Xr=(e,t,{_:n,cnst:s,getDirectReturnFunction:i,n:r})=>{const[o,a]=i([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${t}${s} d${n}=${n}Object.getOwnPropertyDescriptor(e,${n}k);${r}${t}if${n}(d)${n}{${r}${t}${e}Object.defineProperty(n,${n}k,${n}d.get${n}?${n}d${n}:${n}{${r}${t}${e}${e}enumerable:${n}true,${r}${t}${e}${e}get:${n}${o}e[k]${a}${r}${t}${e}});${r}${t}}${r}`},Jr=(e,t,{_:n,n:s})=>`${t}n[k]${n}=${n}e[k];${s}`,Yr=(e,t)=>e?`Object.freeze(${t})`:t,Zr=(e,t,{_:n,getObject:s})=>e?`Object.defineProperty(${t},${n}Symbol.toStringTag,${n}${eo(s)})`:t,Qr=Object.keys(Fr);function eo(e){return e([["value","'Module'"]],{lineBreakIndent:null})}class to extends is{deoptimizeArgumentsOnInteractionAtPath(){}getLiteralValueAtPath(e){return e.length>0||null===this.value&&110!==this.scope.context.code.charCodeAt(this.start)||"bigint"==typeof this.value||47===this.scope.context.code.charCodeAt(this.start)?Ze:this.value}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?st:Xs(this.members,e[0])}hasEffectsOnInteractionAtPath(e,t,n){switch(t.type){case 0:return e.length>(null===this.value?0:1);case 1:return!0;case 2:return!!(this.included&&this.value instanceof RegExp&&(this.value.global||this.value.sticky))||(1!==e.length||Ks(this.members,e[0],t,n))}}initialise(){super.initialise(),this.members=function(e){if(e instanceof RegExp)return Ws;switch(typeof e){case"boolean":return Gs;case"number":return Hs;case"string":return qs}return Object.create(null)}(this.value)}render(){"string"==typeof this.value&&this.scope.context.addIndentExclusionRange([this.start+1,this.end-1])}}function no(e,t,n,s,i){if("getLiteralValueAtPathAsChainElement"in t){const n=t.getLiteralValueAtPathAsChainElement(Le,Ue,i);if(n===ss||e.optional&&null==n)return ss}else if(e.optional&&null==t.getLiteralValueAtPath(Le,Ue,i))return ss;return e.getLiteralValueAtPath(n,s,i)}function so(e){return e.computed?function(e){if(e instanceof to)return String(e.value);return null}(e.property):e.property.name}function io(e){const t=e.propertyKey,n=e.object;if("string"==typeof t){if(n instanceof Ji)return[{key:n.name,pos:n.start},{key:t,pos:e.property.start}];if(n instanceof ro){const s=io(n);return s&&[...s,{key:t,pos:e.property.start}]}}return null}to.prototype.includeNode=rs;class ro extends is{constructor(){super(...arguments),this.promiseHandler=null,this.variable=null,this.expressionsToBeDeoptimized=[]}get computed(){return Je(this.flags,1024)}set computed(e){this.flags=Ye(this.flags,1024,e)}get optional(){return Je(this.flags,128)}set optional(e){this.flags=Ye(this.flags,128,e)}get assignmentDeoptimized(){return Je(this.flags,16)}set assignmentDeoptimized(e){this.flags=Ye(this.flags,16,e)}get bound(){return Je(this.flags,32)}set bound(e){this.flags=Ye(this.flags,32,e)}get isUndefined(){return Je(this.flags,64)}set isUndefined(e){this.flags=Ye(this.flags,64,e)}bind(){this.bound=!0;const e=io(this),t=e&&this.scope.findVariable(e[0].key);if(t?.isNamespace){const n=oo(t,e.slice(1),this.scope.context);n?"undefined"===n?this.isUndefined=!0:(this.variable=n,this.scope.addNamespaceMemberAccess(function(e){let t=e[0].key;for(let n=1;n<e.length;n++)t+="."+e[n].key;return t}(e),n)):super.bind()}else super.bind()}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.promiseHandler?this.promiseHandler.deoptimizeArgumentsOnInteractionAtPath(e,t,n):this.variable?this.variable.deoptimizeArgumentsOnInteractionAtPath(e,t,n):this.isUndefined||(t.length<6?this.object.deoptimizeArgumentsOnInteractionAtPath(e,this.propertyKey===Pe?Te:[this.propertyKey,...t],n):it(e))}deoptimizeAssignment(e,t){this.deoptimizePath(Le),t.deoptimizePath([...e,Pe])}deoptimizeCache(){if(this.propertyKey===this.dynamicPropertyKey)return;const{expressionsToBeDeoptimized:e,object:t}=this;this.expressionsToBeDeoptimized=Ee,this.dynamicPropertyKey=this.propertyKey,t.deoptimizePath(Te),this.included&&t.includePath(Te,es());for(const t of e)t.deoptimizeCache()}deoptimizePath(e){if(0===e.length&&this.disallowNamespaceReassignment(),this.variable)this.variable.deoptimizePath(e);else if(!this.isUndefined){const{propertyKey:t}=this;this.object.deoptimizePath([t===Pe?we:t,...e.length<6?e:[...e.slice(0,6),Pe]])}}getKnownFunctionAtPath(e,t,n){if(this.variable)return this.variable.getKnownFunctionAtPath(e,t,n);if(this.isUndefined)return null;const s=this.getDynamicPropertyKey();return s!==Pe&&e.length<6?(s!==this.propertyKey&&this.expressionsToBeDeoptimized.push(n),this.object.getKnownFunctionAtPath([s,...e],t,n)):null}getLiteralValueAtPath(e,t,n){if(this.variable)return this.variable.getLiteralValueAtPath(e,t,n);if(this.isUndefined)return;const s=this.getDynamicPropertyKey();return s!==Pe&&e.length<6?(s!==this.propertyKey&&this.expressionsToBeDeoptimized.push(n),this.object.getLiteralValueAtPath([s,...e],t,n)):Ze}getLiteralValueAtPathAsChainElement(e,t,n){return this.variable?this.variable.getLiteralValueAtPath(e,t,n):this.isUndefined?void 0:no(this,this.object,e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){if(this.variable)return this.variable.getReturnExpressionWhenCalledAtPath(e,t,n,s);if(this.isUndefined)return[Ms,!1];const i=this.getDynamicPropertyKey();return i!==Pe&&e.length<6?(i!==this.propertyKey&&this.expressionsToBeDeoptimized.push(s),this.object.getReturnExpressionWhenCalledAtPath([i,...e],t,n,s)):st}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.property.hasEffects(e)||this.object.hasEffects(e)||this.hasAccessEffect(e)}hasEffectsAsChainElement(e){if(this.variable||this.isUndefined)return this.hasEffects(e);const t="hasEffectsAsChainElement"in this.object?this.object.hasEffectsAsChainElement(e):this.object.hasEffects(e);return t===ss?ss:this.optional&&null==this.object.getLiteralValueAtPath(Le,Ue,this)?t||ss:(this.deoptimized||this.applyDeoptimizations(),t||this.property.hasEffects(e)||this.hasAccessEffect(e))}hasEffectsAsAssignmentTarget(e,t){return t&&!this.deoptimized&&this.applyDeoptimizations(),this.assignmentDeoptimized||this.applyAssignmentDeoptimization(),this.property.hasEffects(e)||this.object.hasEffects(e)||t&&this.hasAccessEffect(e)||this.hasEffectsOnInteractionAtPath(Le,this.assignmentInteraction,e)}hasEffectsOnInteractionAtPath(e,t,n){return this.variable?this.variable.hasEffectsOnInteractionAtPath(e,t,n):!!this.isUndefined||(!(e.length<6)||this.object.hasEffectsOnInteractionAtPath([this.getDynamicPropertyKey(),...e],t,n))}hasEffectsWhenDestructuring(e,t,n){return t.length>0&&n.hasEffectsOnInteractionAtPath(t,at,e)}include(e,t){this.included||this.includeNode(e),this.object.include(e,t),this.property.include(e,t),t&&this.variable?.includePath(Te,e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable?this.scope.context.includeVariableInModule(this.variable,Le,e):this.isUndefined||this.object.includePath([this.propertyKey],e)}includeNodeAsAssignmentTarget(e){this.included=!0,this.assignmentDeoptimized||this.applyAssignmentDeoptimization(),this.variable?this.scope.context.includeVariableInModule(this.variable,Le,e):this.isUndefined||this.object.includePath([this.propertyKey],e)}includePath(e,t){this.included||this.includeNode(t),this.variable?this.variable?.includePath(e,t):this.isUndefined||this.object.includePath([this.propertyKey,...e.length<6?e:[...e.slice(0,6),Pe]],t)}includeAsAssignmentTarget(e,t,n){this.included||this.includeNodeAsAssignmentTarget(e),n&&!this.deoptimized&&this.applyDeoptimizations(),this.object.include(e,t),this.property.include(e,t)}includeCallArgumentsWhenCalledAtPath(e,t,n){this.promiseHandler?0===e.length?this.promiseHandler.includeCallArguments(t,n):rt(t,n):this.variable?this.variable.includeCallArgumentsWhenCalledAtPath(e,t,n):!this.isUndefined&&e.length<6?this.object.includeCallArgumentsWhenCalledAtPath(this.propertyKey===Pe?Te:[this.propertyKey,...e],t,n):rt(t,n)}includeDestructuredIfNecessary(){this.scope.context.error({message:"includeDestructuredIfNecessary is currently not supported for MemberExpressions"},this.start)}initialise(){super.initialise(),this.dynamicPropertyKey=so(this),this.propertyKey=null===this.dynamicPropertyKey?Pe:this.dynamicPropertyKey,this.accessInteraction={args:[this.object],type:0}}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:s,renderedSurroundingElement:i}=ye){if(this.variable||this.isUndefined){const{snippets:{getPropertyAccess:i}}=t;let r=this.variable?this.variable.getName(i):"undefined";n&&s&&(r="0, "+r),e.overwrite(this.start,this.end,r,{contentOnly:!0,storeName:!0})}else n&&s&&e.appendRight(this.start,"0, "),this.object.render(e,t,{renderedSurroundingElement:i}),this.property.render(e,t)}setAssignedValue(e){this.assignmentInteraction={args:[this.object,e],type:1}}applyDeoptimizations(){this.deoptimized=!0;const{propertyReadSideEffects:e}=this.scope.context.options.treeshake;this.bound&&e&&!(this.variable||this.isUndefined||this.promiseHandler)&&(this.object.deoptimizeArgumentsOnInteractionAtPath(this.accessInteraction,[this.propertyKey],Ue),this.scope.context.requestTreeshakingPass()),this.variable&&(this.variable.addUsedPlace(this),this.scope.context.requestTreeshakingPass())}applyAssignmentDeoptimization(){this.assignmentDeoptimized=!0;const{propertyReadSideEffects:e}=this.scope.context.options.treeshake;this.bound&&e&&!this.variable&&!this.isUndefined&&(this.object.deoptimizeArgumentsOnInteractionAtPath(this.assignmentInteraction,[this.propertyKey],Ue),this.scope.context.requestTreeshakingPass())}disallowNamespaceReassignment(){if(this.object instanceof Ji){this.scope.findVariable(this.object.name).isNamespace&&(this.variable&&this.scope.context.includeVariableInModule(this.variable,Te,es()),this.scope.context.log(Et,bn(this.object.name,this.scope.context.module.id),this.start))}}getDynamicPropertyKey(){if(null===this.dynamicPropertyKey){this.dynamicPropertyKey=this.propertyKey;const e=this.property.getLiteralValueAtPath(Le,Ue,this);return this.dynamicPropertyKey="symbol"==typeof e?Re.has(e)?e:Pe:String(e)}return this.dynamicPropertyKey}hasAccessEffect(e){const{propertyReadSideEffects:t}=this.scope.context.options.treeshake;return!(this.variable||this.isUndefined)&&t&&("always"===t||this.object.hasEffectsOnInteractionAtPath([this.getDynamicPropertyKey()],this.accessInteraction,e))}}function oo(e,t,n){if(0===t.length)return e;if(!e.isNamespace||e instanceof xs)return null;const s=t[0].key,[i,r]=e.context.traceExport(s);if(!i){if(1===t.length){const i=e.context.fileName;return n.log(Et,$n(s,n.module.id,i,!!r?.missingButExportExists),t[0].pos),"undefined"}return null}return oo(i,t.slice(1),n)}const ao="ROLLUP_FILE_URL_",lo="ROLLUP_FILE_URL_OBJ_",co="import";const uo=["cjs","iife","umd"],ho={amd:["document","module","URL"],cjs:["document","require","URL",Mr],es:[],iife:["document","URL",Mr],system:["module"],umd:["document","require","URL",Mr]},po={amd:["document","require","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},fo=(e,t,n="URL")=>`new ${n}(${e})${t?"":".href"}`,mo=(e,t,n=!1)=>fo(`'${$r(e)}', ${n?"typeof document === 'undefined' ? location.href : ":""}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`,t),go=e=>(t,{chunkId:n})=>{const s=e(n);return null===t?`({ url: ${s} })`:"url"===t?s:"undefined"},yo=(e,t)=>`require('u' + 'rl').pathToFileURL(${e})${t?"":".href"}`,bo=(e,t)=>yo(`__dirname + '/${$r(e)}'`,t),Eo=(e,t=!1)=>`${t?"typeof document === 'undefined' ? location.href : ":""}(${Mr} && ${Mr}.tagName.toUpperCase() === 'SCRIPT' && ${Mr}.src || new URL('${$r(e)}', document.baseURI).href)`,xo={amd:(e,t)=>("."!==e[0]&&(e="./"+e),fo(`require.toUrl('${$r(e)}'), document.baseURI`,t)),cjs:(e,t)=>`(typeof document === 'undefined' ? ${bo(e,t)} : ${mo(e,t)})`,es:(e,t)=>fo(`'${$r(e)}', import.meta.url`,t),iife:(e,t)=>mo(e,t),system:(e,t)=>fo(`'${$r(e)}', module.meta.url`,t),umd:(e,t)=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${bo(e,t)} : ${mo(e,t,!0)})`},vo={amd:go(()=>fo("module.uri, document.baseURI",!1)),cjs:go(e=>`(typeof document === 'undefined' ? ${yo("__filename",!1)} : ${Eo(e)})`),iife:go(e=>Eo(e)),system:(e,{snippets:{getPropertyAccess:t}})=>null===e?"module.meta":`module.meta${t(e)}`,umd:go(e=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${yo("__filename",!1)} : ${Eo(e,!0)})`)};class Ao extends hs{constructor(){super("undefined")}getLiteralValueAtPath(){}}class So extends ps{constructor(e,t){super("default",e,e.declaration,Le,t,"other"),this.hasId=!1,this.originalId=null,this.originalVariable=null;const n=e.declaration;(n instanceof vr||n instanceof tr)&&n.id?(this.hasId=!0,this.originalId=n.id):n instanceof Ji&&(this.originalId=n)}addReference(e){this.hasId||(this.name=e.name)}addUsedPlace(e){const t=this.getOriginalVariable();t===this?super.addUsedPlace(e):t.addUsedPlace(e)}forbidName(e){const t=this.getOriginalVariable();t===this?super.forbidName(e):t.forbidName(e)}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){const e=this.getOriginalVariable();return e===this?super.getBaseVariableName():e.getBaseVariableName()}getDirectOriginalVariable(){return!this.originalId||!this.hasId&&(this.originalId.isPossibleTDZ()||this.originalId.variable.isReassigned||this.originalId.variable instanceof Ao||"syntheticNamespace"in this.originalId.variable)?null:this.originalId.variable}getName(e){const t=this.getOriginalVariable();return t===this?super.getName(e):t.getName(e)}getOriginalVariable(){if(this.originalVariable)return this.originalVariable;let e,t=this;const n=new Set;do{n.add(t),e=t,t=e.getDirectOriginalVariable()}while(t instanceof So&&!n.has(t));return this.originalVariable=t||e}}class Po extends hs{constructor(e){super(e.getModuleName()),this.areAllMembersDeoptimized=!1,this.mergedNamespaces=[],this.nonExplicitNamespacesIncluded=!1,this.referencedEarly=!1,this.references=[],this.context=e,this.module=e.module}addReference(e){this.references.push(e),this.name=e.name}deoptimizeArgumentsOnInteractionAtPath(e,t,n){if(t.length>1||1===t.length&&2===e.type){const s=t[0];"string"==typeof s?this.module.getExportedVariablesByName().get(s)?.deoptimizeArgumentsOnInteractionAtPath(e,t.slice(1),n):it(e)}}deoptimizePath(e){if(e.length>1){const t=e[0];if("string"==typeof t)this.module.getExportedVariablesByName().get(t)?.deoptimizePath(e.slice(1));else if(!this.areAllMembersDeoptimized){this.areAllMembersDeoptimized=!0;for(const e of this.module.getExportedVariablesByName().values())e.deoptimizePath(Te)}}}getLiteralValueAtPath(e){return e[0]===Ce?"Module":Ze}hasEffectsOnInteractionAtPath(e,t,n){const{type:s}=t;if(0===e.length)return!0;if(1===e.length&&2!==s)return 1===s;const i=e[0];if("string"!=typeof i)return!0;const r=this.module.getExportedVariablesByName().get(i);return!r||r.hasEffectsOnInteractionAtPath(e.slice(1),t,n)}includePath(e,t){super.includePath(e,t),this.includeMemberPath(e,t)}includeMemberPath(e,t){if(e.length>0){const[n,...s]=e;if("string"==typeof n){const e=this.module.getExportedVariablesByName().get(n);e?this.context.includeVariableInModule(e,s,t):this.includeNonExplicitNamespaces()}else n&&(this.module.includeAllExports(),this.includeNonExplicitNamespaces())}}prepare(e){this.mergedNamespaces.length>0&&this.module.scope.addAccessedGlobals([Dr],e)}renderBlock(e){const{exportNamesByVariable:t,format:n,freeze:s,indent:i,symbols:r,snippets:{_:o,cnst:a,getObject:l,getPropertyAccess:c,n:u,s:d}}=e,h=[...this.module.getExportedVariablesByName().entries()].filter(([e,t])=>!e.startsWith("*")&&t.included).map(([e,t])=>this.referencedEarly||t.isReassigned||t===this?[null,`get ${Cs(e)}${o}()${o}{${o}return ${t.getName(c)}${d}${o}}`]:[e,t.getName(c)]);h.unshift([null,`__proto__:${o}null`]);let p=l(h,{lineBreakIndent:{base:"",t:i}});if(this.mergedNamespaces.length>0){const e=this.mergedNamespaces.map(e=>e.getName(c));p=`/*#__PURE__*/${Dr}(${p},${o}[${e.join(`,${o}`)}])`}else r&&(p=`/*#__PURE__*/Object.defineProperty(${p},${o}Symbol.toStringTag,${o}${eo(l)})`),s&&(p=`/*#__PURE__*/Object.freeze(${p})`);return p=`${a} ${this.getName(c)}${o}=${o}${p};`,"system"===n&&t.has(this)&&(p+=`${u}${fe([this],e)};`),p}renderFirst(){return this.referencedEarly}setMergedNamespaces(e){this.mergedNamespaces=e;const t=this.context.getModuleExecIndex();for(const e of this.references){const{context:n}=e.scope;if(n.getModuleExecIndex()<=t){this.referencedEarly=!0;break}}}includeNonExplicitNamespaces(){this.nonExplicitNamespacesIncluded||(this.nonExplicitNamespacesIncluded=!0,this.setMergedNamespaces(this.module.includeAndGetAdditionalMergedNamespaces()))}}Po.prototype.isNamespace=!0;const wo=e=>Object.create(e,{includePath:{value(t,n){e.includeMemberPath(t,n)}}});class $o extends hs{constructor(e,t,n){super(t),this.baseVariable=null,this.context=e,this.module=e.module,this.syntheticNamespace=n}getBaseVariable(){if(this.baseVariable)return this.baseVariable;let e=this.syntheticNamespace;for(;e instanceof So||e instanceof $o;){if(e instanceof So){const t=e.getOriginalVariable();if(t===e)break;e=t}e instanceof $o&&(e=e.syntheticNamespace)}return this.baseVariable=e}getBaseVariableName(){return this.syntheticNamespace.getBaseVariableName()}getName(e){return`${this.syntheticNamespace.getName(e)}${e(this.name)}`}includePath(e,t){super.includePath(e,t),this.context.includeVariableInModule(this.syntheticNamespace,[this.name,...e],t)}setRenderNames(e,t){super.setRenderNames(e,t)}}class Io{constructor(e,t,n){this.options=t,this.inputBase=n,this.defaultVariableName="",this.namespaceVariableName="",this.variableName="",this.fileName=null,this.importAttributes=null,this.id=e.id,this.moduleInfo=e.info,this.renormalizeRenderPath=e.renormalizeRenderPath,this.suggestedVariableName=e.suggestedVariableName}get moduleSideEffects(){return this.moduleInfo.moduleSideEffects}getFileName(){if(this.fileName)return this.fileName;const{paths:e}=this.options,t=this.moduleInfo.rawId;return this.fileName=("function"==typeof e?e(t,{attributes:this.moduleInfo.attributes}):e[t])||(this.renormalizeRenderPath?J(te(this.inputBase,t)):t)}getImportAttributes(e){return this.importAttributes||=Co(["es","cjs"].includes(this.options.format)&&this.options.externalImportAttributes&&this.moduleInfo.attributes,e)}getImportPath(e){return $r(this.renormalizeRenderPath?Ct(e,this.getFileName(),"amd"===this.options.format,!1):this.getFileName())}}function Co(e,{getObject:t}){if(!e)return null;const n=Object.entries(e).map(([e,t])=>[e,JSON.stringify(t)]);return n.length>0?t(n,{lineBreakIndent:null}):null}function ko(e){return e.endsWith(".js")?e.slice(0,-3):e}function No(e,t){return e.autoId?`${e.basePath?e.basePath+"/":""}${ko(t)}`:e.id??""}function Oo(e,t,n,s,i,r,o,a,l="return "){const{_:c,getFunctionIntro:u,getPropertyAccess:d,n:h,s:p}=i;if(!n)return`${h}${h}${l}${function(e,t,n,s,i){if(e.length>0)return e[0].local;for(const{defaultVariableName:e,importPath:r,isChunk:o,name:a,namedExportsMode:l,namespaceVariableName:c,reexports:u}of t)if(u)return Ro(a,u[0].imported,l,o,e,c,n,r,s,i)}(e,t,s,o,d)};`;let f="";if(n)for(const{defaultVariableName:e,importPath:n,isChunk:a,name:l,namedExportsMode:u,namespaceVariableName:p,reexports:m}of t)if(m)for(const t of m)if("*"!==t.reexported){const m=Ro(l,t.imported,u,a,e,p,s,n,o,d);f&&(f+=h),"*"!==t.imported&&t.needsLiveBinding?f+=`Object.defineProperty(exports,${c}${JSON.stringify(t.reexported)},${c}${Lo(m,!1,r,i)});`:"__proto__"===t.reexported?f+=`Object.defineProperty(exports,${c}"__proto__",${c}{${h}${r}enumerable:${c}true,${h}${r}value:${c}${m}${h}});`:f+=`exports${d(t.reexported)}${c}=${c}${m};`}for(const{exported:t,local:n,needsLiveBinding:s}of e){const e=`exports${d(t)}`,o=n;if(e!==o){if(f&&(f+=h),s){f+=`Object.defineProperty(exports,${c}${JSON.stringify(t)},${c}${Lo(o,!0,r,i)});`;continue}f+="__proto__"===t?`Object.defineProperty(exports,${c}"__proto__",${c}{${h}${r}enumerable:${c}true,${h}${r}value:${c}${o}${h}});`:`${e}${c}=${c}${o};`}}if(n)for(const{name:e,reexports:n}of t)if(n)for(const t of n)if("*"===t.reexported){if(f&&(f+=h),!t.needsLiveBinding&&a){const t="'__proto__'";f+=`Object.prototype.hasOwnProperty.call(${e},${c}${t})${c}&&${h}${r}!Object.prototype.hasOwnProperty.call(exports,${c}${t})${c}&&${h}${r}Object.defineProperty(exports,${c}${t},${c}{${h}${r}${r}enumerable:${c}true,${h}${r}${r}value:${c}${e}[${t}]${h}${r}});${h}${h}`}const n=`{${h}${r}if${c}(k${c}!==${c}'default'${c}&&${c}!Object.prototype.hasOwnProperty.call(exports,${c}k))${c}${_o(e,t.needsLiveBinding,r,i)}${p}${h}}`;f+=`Object.keys(${e}).forEach(${u(["k"],{isAsync:!1,name:null})}${n});`}return f?`${h}${h}${f}`:""}function Ro(e,t,n,s,i,r,o,a,l,c){if("default"===t){if(!s){const t=o(a),n=_r[t]?i:e;return Lr(t,l)?`${n}${c("default")}`:n}return n?`${e}${c("default")}`:e}return"*"===t?(s?!n:Tr[o(a)])?r:e:`${e}${c(t)}`}function Do(e){return e([["value","true"]],{lineBreakIndent:null})}function Mo(e,t,n,{_:s,getObject:i}){if(e){if(t)return n?`Object.defineProperties(exports,${s}${i([["__esModule",Do(i)],[null,`[Symbol.toStringTag]:${s}${eo(i)}`]],{lineBreakIndent:null})});`:`Object.defineProperty(exports,${s}'__esModule',${s}${Do(i)});`;if(n)return`Object.defineProperty(exports,${s}Symbol.toStringTag,${s}${eo(i)});`}return""}const _o=(e,t,n,s)=>{const{_:i}=s;return t?`Object.defineProperty(exports,${i}k,${i}${Lo(`${e}[k]`,!1,n,s,n)})`:`exports[k]${i}=${i}${e}[k]`},Lo=(e,t,n,{getDirectReturnFunction:s,getObject:i},r="")=>{const[o,a]=s([],{functionReturn:!0,lineBreakIndent:null,name:null}),l=[["enumerable","true"],["get",`${o}${e}${a}`]];return t&&l.unshift(["configurable","true"]),i(l,{lineBreakIndent:{base:r,t:n}})};function To(e,t,n,s,i,r,o,a){const{_:l,cnst:c,n:u}=a,d=new Set,h=[],p=(e,t,n)=>{d.add(t),h.push(`${c} ${e}${l}=${l}/*#__PURE__*/${t}(${n});`)};for(const{defaultVariableName:n,imports:s,importPath:i,isChunk:r,name:o,namedExportsMode:a,namespaceVariableName:l,reexports:c}of e)if(r){for(const{imported:e,reexported:t}of[...s||[],...c||[]])if("*"===e&&"*"!==t){a||p(l,Rr,o);break}}else{const e=t(i);let r=!1,a=!1;for(const{imported:t,reexported:i}of[...s||[],...c||[]]){let s,c;"default"===t?r||(r=!0,n!==l&&(c=n,s=_r[e])):"*"!==t||"*"===i||a||(a=!0,s=Tr[e],c=l),s&&p(c,s,o)}}return`${zr(d,r,o,a,n,s,i)}${h.length>0?`${h.join(u)}${u}${u}`:""}`}function Bo(e,t,n){const s=n.find(e=>e.sourcePhaseImport);s&&Gt(function(e,t,n){return{code:"SOURCE_PHASE_FORMAT_UNSUPPORTED",message:`Source phase imports are not supported for the "${e}" output format, importing "${n}" in "${t}". Use the "es" output format to support source phase imports.`,url:kt(jt)}}(e,t,s.importPath))}function zo(e,t){return"."!==e[0]?e:t?(n=e).endsWith(".js")?n:n+".js":ko(e);var n}const Fo=new Set(["node:assert","assert","node:assert/strict","assert/strict","node:async_hooks","async_hooks","node:bench","node:bench/reporters","node:buffer","buffer","node:child_process","child_process","node:cluster","cluster","node:console","console","node:constants","constants","node:crypto","crypto","node:dgram","dgram","node:diagnostics_channel","diagnostics_channel","node:dns","dns","node:dns/promises","dns/promises","node:domain","domain","node:events","events","node:ffi","node:fs","fs","node:fs/promises","fs/promises","node:http","http","node:http2","http2","node:https","https","node:inspector","inspector","node:inspector/promises","inspector/promises","node:module","module","node:net","net","node:os","os","node:path","path","node:path/posix","path/posix","node:path/win32","path/win32","node:perf_hooks","perf_hooks","node:process","process","node:querystring","querystring","node:quic","node:readline","readline","node:readline/promises","readline/promises","node:repl","repl","node:sea","node:sqlite","node:stream","stream","node:stream/consumers","stream/consumers","node:stream/iter","stream/iter","node:stream/promises","stream/promises","node:stream/web","stream/web","node:string_decoder","string_decoder","node:test","node:test/reporters","node:timers","timers","node:timers/promises","timers/promises","node:tls","tls","node:trace_events","trace_events","node:tty","tty","node:url","url","node:util","util","node:util/types","util/types","node:v8","v8","node:vfs","node:vm","vm","node:wasi","wasi","node:worker_threads","worker_threads","node:zlib","zlib","node:zlib/iter","zlib/iter"]);function Vo(e,t){const n=t.map(({importPath:e})=>e).filter(e=>Fo.has(e)||e.startsWith("node:"));0!==n.length&&e(Et,function(e){return{code:"MISSING_NODE_BUILTINS",ids:e,message:`Creating a browser bundle that depends on Node.js built-in modules (${St(e)}). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`}}(n))}const jo=(e,t)=>e.split(".").map(t).join("");function Uo(e,t,n,s,{_:i,getPropertyAccess:r},o){const a=e.split("."),l=a[0]in Object.prototype;o&&l&&o(Et,Rn(a[0])),a[0]=("function"==typeof n?n(a[0],{attributes:{}}):l?a[0]:n[a[0]])||a[0];const c=a.pop();let u=t,d=[...a.map(e=>(u+=r(e),`${u}${i}=${i}${u}${i}||${i}{}`)),`${u}${r(c)}`].join(`,${i}`)+`${i}=${i}${s}`;return a.length>0&&(d=`(${d})`),d}function Go(e){let t=e.length;for(;t--;){const{imports:n,reexports:s}=e[t];if(n||s)return e.slice(0,t+1)}return[]}const Ho="_missingExportShim";const Wo=({dependencies:e,exports:t})=>{const n=new Set(t.map(e=>e.exported));n.add("default");for(const{reexports:t}of e)if(t)for(const e of t)"*"!==e.reexported&&n.add(e.reexported);return n},qo=(e,t,{_:n,cnst:s,getObject:i,n:r})=>{if(e){const o=[...e].map(e=>[e,"1"]);return o.unshift([null,`__proto__:${n}null`]),`${r}${t}${s} _starExcludes${n}=${n}${i(o,{lineBreakIndent:{base:t,t:t}})};`}return""},Ko=(e,t,{_:n,n:s})=>e.length>0?`${s}${t}var ${e.join(`,${n}`)};`:"",Xo=(e,t,n)=>Jo(e.filter(e=>e.hoisted).map(e=>({name:e.exported,value:e.local})),t,n);function Jo(e,t,{_:n,n:s}){return 0===e.length?"":1===e.length?`exports(${JSON.stringify(e[0].name)},${n}${e[0].value});${s}${s}`:`exports({${s}`+e.map(({name:e,value:s})=>`${t}${Cs(e)}:${n}${s}`).join(`,${s}`)+`${s}});${s}${s}`}const Yo=(e,t,n)=>Jo(e.filter(e=>e.expression).map(e=>({name:e.exported,value:e.local})),t,n),Zo=(e,t,n)=>Jo(e.filter(e=>e.local===Ho).map(e=>({name:e.exported,value:Ho})),t,n);function Qo(e,t,n){return e?`${t}${jo(e,n)}`:"null"}var ea={amd:function(e,{accessedGlobals:t,dependencies:n,exports:s,hasDefaultExport:i,hasExports:r,id:o,indent:a,intro:l,isEntryFacade:c,isModuleFacade:u,namedExportsMode:d,log:h,outro:p,snippets:f},{amd:m,esModule:g,externalLiveBindings:y,freeze:b,generatedCode:{symbols:E},interop:x,reexportProtoFromExternal:v,strict:A}){Vo(h,n),Bo("amd",o,n);const S=n.map(e=>`'${zo(e.importPath,m.forceJsExtensionForImports)}'`),P=n.map(e=>e.name),{n:w,getNonArrowFunctionIntro:$,_:I}=f;r&&(d||"exports.default"===s[0]?.local)&&(P.unshift("exports"),S.unshift("'exports'")),t.has("require")&&(P.unshift("require"),S.unshift("'require'")),t.has("module")&&(P.unshift("module"),S.unshift("'module'"));const C=No(m,o),k=(C?`'${C}',${I}`:"")+(S.length>0?`[${S.join(`,${I}`)}],${I}`:""),N=A?`${I}'use strict';`:"";e.prepend(`${l}${To(n,x,y,b,E,t,a,f)}`);const O=Oo(s,n,d,x,f,a,y,v);let R=Mo(d&&r,c&&(!0===g||"if-default-prop"===g&&i),u&&E,f);R&&(R=w+w+R),e.append(`${O}${R}${p}`).indent(a).prepend(`${m.define}(${k}(${$(P,{isAsync:!1,name:null})}{${N}${w}${w}`).append(`${w}${w}}));`)},cjs:function(e,{accessedGlobals:t,dependencies:n,exports:s,hasDefaultExport:i,hasExports:r,id:o,indent:a,intro:l,isEntryFacade:c,isModuleFacade:u,namedExportsMode:d,outro:h,snippets:p},{compact:f,esModule:m,externalLiveBindings:g,freeze:y,interop:b,generatedCode:{symbols:E},reexportProtoFromExternal:x,strict:v}){Bo("cjs",o,n);const{_:A,n:S}=p,P=v?`'use strict';${S}${S}`:"";let w=Mo(d&&r,c&&(!0===m||"if-default-prop"===m&&i),u&&E,p);w&&(w+=S+S);const $=function(e,{_:t,cnst:n,n:s},i){let r="",o=!1;for(const{importPath:a,name:l,reexports:c,imports:u}of e)c||u?(r+=i&&o?",":`${r?`;${s}`:""}${n} `,o=!0,r+=`${l}${t}=${t}require('${a}')`):(r&&(r+=i&&!o?",":`;${s}`),o=!1,r+=`require('${a}')`);if(r)return`${r};${s}${s}`;return""}(n,p,f),I=To(n,b,g,y,E,t,a,p);e.prepend(`${P}${l}${w}${$}${I}`);const C=Oo(s,n,d,b,p,a,g,x,`module.exports${A}=${A}`);e.append(`${C}${h}`)},es:function(e,{accessedGlobals:t,indent:n,intro:s,outro:i,dependencies:r,exports:o,snippets:a},{externalLiveBindings:l,freeze:c,generatedCode:{symbols:u},importAttributesKey:d}){const{n:h}=a,p=function(e,t,{_:n}){const s=[];for(const{importPath:i,reexports:r,imports:o,name:a,attributes:l,sourcePhaseImport:c}of e){const e=`'${i}'${l?`${n}${t}${n}${l}`:""};`;if(c&&s.push(`import source ${c} from${n}${e}`),r||o){if(o){let t=null,i=null;const r=[];for(const e of o)"default"===e.imported?t=e:"*"===e.imported?i=e:r.push(e);i&&s.push(`import${n}*${n}as ${i.local} from${n}${e}`),t&&0===r.length?s.push(`import ${t.local} from${n}${e}`):r.length>0&&s.push(`import ${t?`${t.local},${n}`:""}{${n}${r.map(e=>e.imported===e.local?e.imported:`${ks(e.imported)} as ${e.local}`).join(`,${n}`)}${n}}${n}from${n}${e}`)}if(r){let t=null;const i=[],l=[];for(const e of r)"*"===e.reexported?t=e:"*"===e.imported?i.push(e):l.push(e);if(t&&s.push(`export${n}*${n}from${n}${e}`),i.length>0){o&&o.some(e=>"*"===e.imported&&e.local===a)||s.push(`import${n}*${n}as ${a} from${n}${e}`);for(const e of i)s.push(`export${n}{${n}${a===e.reexported?a:`${a} as ${ks(e.reexported)}`} };`)}l.length>0&&s.push(`export${n}{${n}${l.map(e=>e.imported===e.reexported?ks(e.imported):`${ks(e.imported)} as ${ks(e.reexported)}`).join(`,${n}`)}${n}}${n}from${n}${e}`)}}else c||s.push(`import${n}${e}`)}return s}(r,d,a);p.length>0&&(s+=p.join(h)+h+h),(s+=zr(null,t,n,a,l,c,u))&&e.prepend(s);const f=function(e,{_:t,cnst:n}){const s=[],i=new Array(e.length);let r=0;for(const o of e)o.expression&&s.push(`${n} ${o.local}${t}=${t}${o.expression};`),i[r++]=o.exported===o.local?o.local:`${o.local} as ${ks(o.exported)}`;i.length>0&&s.push(`export${t}{${t}${i.join(`,${t}`)}${t}};`);return s}(o,a);f.length>0&&e.append(h+h+f.join(h).trim()),i&&e.append(i),e.trim()},iife:function(e,{accessedGlobals:t,dependencies:n,exports:s,hasDefaultExport:i,hasExports:r,id:o,indent:a,intro:l,namedExportsMode:c,log:u,outro:d,snippets:h},{compact:p,esModule:f,extend:m,freeze:g,externalLiveBindings:y,reexportProtoFromExternal:b,globals:E,interop:x,name:v,generatedCode:{symbols:A},strict:S}){Bo("iife",o,n);const{_:P,getNonArrowFunctionIntro:w,getPropertyAccess:$,n:I}=h,C=v&&v.includes("."),k=!m&&!C;if(v&&k&&(Ps(N=v)||Ss.test(N)))return Gt(function(e){return{code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${e}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`,url:kt("configuration-options/#output-extend")}}(v));var N;Vo(u,n);const O=Go(n),R=O.map(e=>e.globalName||"null"),D=O.map(e=>e.name);r&&!v&&u(Et,{code:nn,message:'If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.',url:kt(Ft)}),r&&(c||"exports.default"===s[0]?.local)&&(m?(R.unshift(`this${jo(v,$)}${P}=${P}this${jo(v,$)}${P}||${P}{}`),D.unshift("exports")):(R.unshift("{}"),D.unshift("exports")));const M=S?`${a}'use strict';${I}`:"",_=To(n,x,y,g,A,t,a,h);e.prepend(`${l}${_}`);let L=`(${w(D,{isAsync:!1,name:null})}{${I}${M}${I}`;r&&(!v||m&&c||(L=(k?`var ${v}`:`this${jo(v,$)}`)+`${P}=${P}${L}`),C&&(L=function(e,t,n,{_:s,getPropertyAccess:i,s:r},o,a){const l=e.split("."),c=l[0]in Object.prototype;a&&c&&a(Et,Rn(l[0])),l[0]=("function"==typeof n?n(l[0],{attributes:{}}):c?l[0]:n[l[0]])||l[0],l.pop();let u=t;return l.map(e=>(u+=i(e),`${u}${s}=${s}${u}${s}||${s}{}${r}`)).join(o?",":"\n")+(o&&l.length>0?";":"\n")}(v,"this",E,h,p,u)+L));let T=`${I}${I}})(${R.join(`,${P}`)});`;r&&!m&&c&&(T=`${I}${I}${a}return exports;${T}`);const B=Oo(s,n,c,x,h,a,y,b);let z=Mo(c&&r,!0===f||"if-default-prop"===f&&i,A,h);z&&(z=I+I+z),e.append(`${B}${z}${d}`).indent(a).prepend(L).append(T)},system:function(e,{accessedGlobals:t,dependencies:n,exports:s,hasExports:i,id:r,indent:o,intro:a,snippets:l,outro:c,usesTopLevelAwait:u},{externalLiveBindings:d,freeze:h,name:p,generatedCode:{symbols:f},strict:m,systemNullSetters:g}){Bo("system",r,n);const{_:y,getFunctionIntro:b,getNonArrowFunctionIntro:E,n:x,s:v}=l,{importBindings:A,setters:S,starExcludes:P}=function(e,t,n,{_:s,cnst:i,getObject:r,getPropertyAccess:o,n:a}){const l=[],c=[];let u=null;for(const{imports:d,reexports:h}of e){const p=[];if(d)for(const e of d)l.push(e.local),"*"===e.imported?p.push(`${e.local}${s}=${s}module;`):p.push(`${e.local}${s}=${s}module${o(e.imported)};`);if(h){const a=[];let l=!1;for(const{imported:e,reexported:t}of h)"*"===t?l=!0:a.push([t,"*"===e?"module":`module${o(e)}`]);if(a.length>1||l)if(l){u||(u=Wo({dependencies:e,exports:t})),a.unshift([null,`__proto__:${s}null`]);const o=r(a,{lineBreakIndent:null});p.push(`${i} setter${s}=${s}${o};`,`for${s}(${i} name in module)${s}{`,`${n}if${s}(!_starExcludes[name])${s}setter[name]${s}=${s}module[name];`,"}","exports(setter);")}else{const e=r(a,{lineBreakIndent:null});p.push(`exports(${e});`)}else{const[e,t]=a[0];p.push(`exports(${JSON.stringify(e)},${s}${t});`)}}c.push(p.join(`${a}${n}${n}${n}`))}return{importBindings:l,setters:c,starExcludes:u}}(n,s,o,l),w=p?`'${p}',${y}`:"",$=t.has("module")?["exports","module"]:i?["exports"]:[];let I=`System.register(${w}[`+n.map(({importPath:e})=>`'${e}'`).join(`,${y}`)+`],${y}(${E($,{isAsync:!1,name:null})}{${x}${o}${m?"'use strict';":""}`+qo(P,o,l)+Ko(A,o,l)+`${x}${o}return${y}{${S.length>0?`${x}${o}${o}setters:${y}[${S.map(e=>e?`${b(["module"],{isAsync:!1,name:null})}{${x}${o}${o}${o}${e}${x}${o}${o}}`:g?"null":`${b([],{isAsync:!1,name:null})}{}`).join(`,${y}`)}],`:""}${x}`;I+=`${o}${o}execute:${y}(${E([],{isAsync:u,name:null})}{${x}${x}`;const C=`${o}${o}})${x}${o}}${v}${x}}));`;e.prepend(a+zr(null,t,o,l,d,h,f)+Xo(s,o,l)).append(`${c}${x}${x}`+Yo(s,o,l)+Zo(s,o,l)).indent(`${o}${o}${o}`).append(C).prepend(I)},umd:function(e,{accessedGlobals:t,dependencies:n,exports:s,hasDefaultExport:i,hasExports:r,id:o,indent:a,intro:l,namedExportsMode:c,log:u,outro:d,snippets:h},{amd:p,compact:f,esModule:m,extend:g,externalLiveBindings:y,freeze:b,interop:E,name:x,generatedCode:{symbols:v},globals:A,noConflict:S,reexportProtoFromExternal:P,strict:w}){const{_:$,cnst:I,getFunctionIntro:C,getNonArrowFunctionIntro:k,getPropertyAccess:N,n:O,s:R}=h,D=f?"f":"factory",M=f?"g":"global";if(r&&!x)return Gt({code:nn,message:'You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.',url:kt(Ft)});Bo("umd",o,n),Vo(u,n);const _=n.map(e=>`'${zo(e.importPath,p.forceJsExtensionForImports)}'`),L=n.map(e=>`require('${e.importPath}')`),T=Go(n),B=T.map(e=>Qo(e.globalName,M,N)),z=T.map(e=>e.name);(r||S)&&(c||r&&"exports.default"===s[0]?.local)&&(_.unshift("'exports'"),L.unshift("exports"),B.unshift(Uo(x,M,A,(g?`${Qo(x,M,N)}${$}||${$}`:"")+"{}",h,u)),z.unshift("exports"));const F=No(p,o),V=(F?`'${F}',${$}`:"")+(_.length>0?`[${_.join(`,${$}`)}],${$}`:""),j=p.define,U=!c&&r?`module.exports${$}=${$}`:"",G=w?`${$}'use strict';${O}`:"";let H;if(S){const e=f?"e":"exports";let t;if(!c&&r)t=`${I} ${e}${$}=${$}${Uo(x,M,A,`${D}(${B.join(`,${$}`)})`,h,u)};`;else{t=`${I} ${e}${$}=${$}${B.shift()};${O}${a}${a}${D}(${[e,...B].join(`,${$}`)});`}H=`(${C([],{isAsync:!1,name:null})}{${O}${a}${a}${I} current${$}=${$}${function(e,t,{_:n,getPropertyAccess:s}){let i=t;return e.split(".").map(e=>i+=s(e)).join(`${n}&&${n}`)}(x,M,h)};${O}${a}${a}${t}${O}${a}${a}${e}.noConflict${$}=${$}${C([],{isAsync:!1,name:null})}{${$}${Qo(x,M,N)}${$}=${$}current;${$}return ${e}${R}${$}};${O}${a}})()`}else H=`${D}(${B.join(`,${$}`)})`,!c&&r&&(H=Uo(x,M,A,H,h,u));const W=r||S&&c||B.length>0,q=[D];W&&q.unshift(M);const K=W?`this,${$}`:"",X=W?`(${M}${$}=${$}typeof globalThis${$}!==${$}'undefined'${$}?${$}globalThis${$}:${$}${M}${$}||${$}self,${$}`:"",J=W?")":"",Y=W?`${a}typeof exports${$}===${$}'object'${$}&&${$}typeof module${$}!==${$}'undefined'${$}?${$}${U}${D}(${L.join(`,${$}`)})${$}:${O}`:"",Z=`(${k(q,{isAsync:!1,name:null})}{${O}`+Y+`${a}typeof ${j}${$}===${$}'function'${$}&&${$}${j}.amd${$}?${$}${j}(${V}${D})${$}:${O}`+`${a}${X}${H}${J};${O}`+`})(${K}(${k(z,{isAsync:!1,name:null})}{${G}${O}`,Q=O+O+"}));";e.prepend(`${l}${To(n,E,y,b,v,t,a,h)}`);const ee=Oo(s,n,c,E,h,a,y,P);let te=Mo(c&&r,!0===m||"if-default-prop"===m&&i,v,h);te&&(te=O+O+te),e.append(`${ee}${te}${d}`).trim().indent(a).append(Q).prepend(Z)}};function ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var na,sa,ia,ra,oa,aa,la,ca,ua,da,ha,pa={};function fa(){if(sa)return na;sa=1;const e="\\\\/",t=`[^${e}]`,n="\\.",s="\\/",i="[^/]",r=`(?:${s}|$)`,o=`(?:^|${s})`,a=`${n}{1,2}${r}`,l={DOT_LITERAL:n,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:s,ONE_CHAR:"(?=.)",QMARK:i,END_ANCHOR:r,DOTS_SLASH:a,NO_DOT:`(?!${n})`,NO_DOTS:`(?!${o}${a})`,NO_DOT_SLASH:`(?!${n}{0,1}${r})`,NO_DOTS_SLASH:`(?!${a})`,QMARK_NO_DOT:`[^.${s}]`,STAR:`${i}*?`,START_ANCHOR:o,SEP:"/"},c={...l,SLASH_LITERAL:`[${e}]`,QMARK:t,STAR:`${t}*?`,DOTS_SLASH:`${n}{1,2}(?:[${e}]|$)`,NO_DOT:`(?!${n})`,NO_DOTS:`(?!(?:^|[${e}])${n}{1,2}(?:[${e}]|$))`,NO_DOT_SLASH:`(?!${n}{0,1}(?:[${e}]|$))`,NO_DOTS_SLASH:`(?!${n}{1,2}(?:[${e}]|$))`,QMARK_NO_DOT:`[^.${e}]`,START_ANCHOR:`(?:^|[${e}])`,END_ANCHOR:`(?:[${e}]|$)`,SEP:"\\"};return na={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?c:l},na}function ma(){return ia||(ia=1,function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:i}=fa();e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>s.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,"\\$1"),e.toPosixSlashes=e=>e.replace(t,"/"),e.isWindows=()=>{if("undefined"!=typeof navigator&&navigator.platform){const e=navigator.platform.toLowerCase();return"win32"===e||"windows"===e}return!("undefined"==typeof process||!process.platform)&&"win32"===process.platform},e.removeBackslashes=e=>e.replace(n,e=>"\\"===e?"":e),e.escapeLast=(t,n,s)=>{const i=t.lastIndexOf(n,s);return-1===i?t:"\\"===t[i-1]?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},e.wrapOutput=(e,t={},n={})=>{let s=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(s=`(?:^(?!${s}).*$)`),s},e.basename=(e,{windows:t}={})=>{const n=e.split(t?/[\\/]/:"/"),s=n[n.length-1];return""===s?n[n.length-2]:s}}(pa)),pa}function ga(){if(oa)return ra;oa=1;const e=ma(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:i,CHAR_DOT:r,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:a,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:p,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:m}=fa(),g=e=>e===a||e===s,y=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return ra=(b,E)=>{const x=E||{},v=b.length-1,A=!0===x.parts||!0===x.tokens||!0===x.scanToEnd,S=[],P=[],w=[];let $,I,C=b,k=-1,N=0,O=0,R=!1,D=!1,M=!1,_=!1,L=!1,T=!1,B=!1,z=!1,F=!1,V=!1,j=0,U={value:"",depth:0,isGlob:!1};const G=()=>k>=v,H=()=>C.charCodeAt(k+1),W=()=>($=I,C.charCodeAt(++k));for(;k<v;){let e;if(I=W(),I!==s){if(!0===T||I===l){for(j++;!0!==G()&&(I=W());)if(I!==s)if(I!==l){if(!0!==T&&I===r&&(I=W())===r){if(R=U.isBrace=!0,M=U.isGlob=!0,V=!0,!0===A)continue;break}if(!0!==T&&I===i){if(R=U.isBrace=!0,M=U.isGlob=!0,V=!0,!0===A)continue;break}if(I===p&&(j--,0===j)){T=!1,R=U.isBrace=!0,V=!0;break}}else j++;else B=U.backslashes=!0,W();if(!0===A)continue;break}if(I!==a){if(!0!==x.noext){if(!0===(I===d||I===n||I===t||I===h||I===o)&&H()===c){if(M=U.isGlob=!0,_=U.isExtglob=!0,V=!0,I===o&&k===N&&(F=!0),!0===A){let e=0;for(;!0!==G()&&(I=W());)if(I!==s)if(I!==c){if(I===f&&0===--e){V=!0;break}}else e++;else B=U.backslashes=!0,W();continue}break}}if(I===t){if($===t&&(L=U.isGlobstar=!0),M=U.isGlob=!0,V=!0,!0===A)continue;break}if(I===h){if(M=U.isGlob=!0,V=!0,!0===A)continue;break}if(I===u){for(;!0!==G()&&(e=W());)if(e!==s){if(e===m){D=U.isBracket=!0,M=U.isGlob=!0,V=!0;break}}else B=U.backslashes=!0,W();if(!0===A)continue;break}if(!0===x.nonegate||I!==o||k!==N){if(!0!==x.noparen&&I===c){if(M=U.isGlob=!0,!0===A){let e=1;for(;!0!==G()&&(I=W());)if(I!==s)if(I!==c){if(I===f&&0===--e){V=!0;break}}else e++;else B=U.backslashes=!0,W();continue}break}if(!0===M){if(V=!0,!0===A)continue;break}}else z=U.negated=!0,N++}else{if(S.push(k),P.push(U),U={value:"",depth:0,isGlob:!1},!0===V)continue;if($===r&&k===N+1){N+=2;continue}O=k+1}}else B=U.backslashes=!0,I=W(),I===l&&(T=!0)}!0===x.noext&&(_=!1,M=!1);let q=C,K="",X="";N>0&&(K=C.slice(0,N),C=C.slice(N),O-=N),q&&!0===M&&O>0?(q=C.slice(0,O),X=C.slice(O)):!0===M?(q="",X=C):q=C,q&&""!==q&&"/"!==q&&q!==C&&g(q.charCodeAt(q.length-1))&&(q=q.slice(0,-1)),!0===x.unescape&&(X&&(X=e.removeBackslashes(X)),q&&!0===B&&(q=e.removeBackslashes(q)));const J={prefix:K,input:b,start:N,base:q,glob:X,isBrace:R,isBracket:D,isGlob:M,isExtglob:_,isGlobstar:L,negated:z,negatedExtglob:F};if(!0===x.tokens&&(J.maxDepth=0,g(I)||P.push(U),J.tokens=P),!0===x.parts||!0===x.tokens){let e;for(let t=0;t<S.length;t++){const n=void 0!==e?e+1:N,s=S[t],i=b.slice(n,s);x.tokens&&(0===t&&0!==N?(P[t].isPrefix=!0,P[t].value=K):P[t].value=i,y(P[t]),J.maxDepth+=P[t].depth),s>=N&&(w.push(i),e=s)}const t=void 0!==e?e+1:N,n=b.slice(t);w.push(n),x.tokens&&e&&e+1<b.length&&(P[P.length-1].value=n,y(P[P.length-1]),J.maxDepth+=P[P.length-1].depth),J.slashes=S,J.parts=w}return J},ra}function ya(){if(la)return aa;la=1;const e=fa(),t=ma(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:r,REPLACEMENTS:o}=e,a=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();return`[${e.join("-")}]`},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,c=e=>{const t=[];let n=0,s=0,i=0,r="",o=!1;for(const a of e)if(!0!==o)if("\\"!==a)if('"'!==a){if(0===i)if("["===a)n++;else if("]"===a&&n>0)n--;else if(0===n)if("("===a)s++;else if(")"===a&&s>0)s--;else if("|"===a&&0===s){t.push(r),r="";continue}r+=a}else i=1===i?0:1,r+=a;else r+=a,o=!0;else r+=a,o=!1;return t.push(r),t},u=e=>{let t=e.trim(),n=!0;for(;!0===n;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if((e=>{let t=!1;for(const n of e)if(!0!==t)if("\\"!==n){if(/[?*+@!()[\]{}]/.test(n))return!1}else t=!0;else t=!1;return!0})(t))return t.replace(/\\(.)/g,"$1")},d=(e,t=!0)=>{if("+"!==e[0]&&"*"!==e[0]||"("!==e[1])return;let n=0,s=0,i=0,r=!1;for(let o=1;o<e.length;o++){const a=e[o];if(!0!==r)if("\\"!==a)if('"'!==a){if(1!==i)if("["!==a){if("]"===a&&n>0)n--;else if(!(n>0))if("("!==a){if(")"===a&&(s--,0===s)){if(!0===t&&o!==e.length-1)return;return{type:e[0],body:e.slice(2,o),end:o}}}else s++}else n++}else i=1===i?0:1;else r=!0;else r=!1}},h=e=>`${1===e.length?t.escapeRegex(e[0]):`[${e.map(e=>t.escapeRegex(e)).join("")}]`}*`,p=e=>{let t=0;const n=[];for(;t<e.length;){const s=d(e.slice(t),!1);if(!s||"*"!==s.type)return;const i=c(s.body).map(e=>e.trim());if(1!==i.length)return;const r=u(i[0]);if(!r||1!==r.length)return;n.push(r),t+=s.end+1}if(!(n.length<1))return n},f=e=>{let t=0,n=e.trim(),s=d(n);for(;s;)t++,n=s.body.trim(),s=d(n);return t},m=(t,n)=>{if(!1===n.maxExtglobRecursion)return{risky:!1};const s="number"==typeof n.maxExtglobRecursion?n.maxExtglobRecursion:e.DEFAULT_MAX_EXTGLOB_RECURSION,i=c(t).map(e=>e.trim());if(i.length>1&&(i.some(e=>""===e)||i.some(e=>/^[*?]+$/.test(e))||(e=>{const t=e.map(u).filter(Boolean);for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++){const s=t[e],i=t[n],r=s[0];if(r&&s===r.repeat(s.length)&&i===r.repeat(i.length)&&(s===i||s.startsWith(i)||i.startsWith(s)))return!0}return!1})(i)))return{risky:!0};const r=[];let o=!1,a=!0;for(const e of i){const t=p(e);if(t){o=!0,r.push(...t);continue}const n=u(e);if(n&&1===n.length)r.push(n);else if(a=!1,f(e)>s)return{risky:!0}}return o?a?{risky:!0,safeOutput:h([...new Set(r)])}:{risky:!0}:{risky:!1}},g=(c,u)=>{if("string"!=typeof c)throw new TypeError("Expected a string");c=o[c]||c;const d={...u},h="number"==typeof d.maxLength?Math.min(n,d.maxLength):n;let p=c.length;if(p>h)throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${h}`);const f={type:"bos",value:"",output:d.prepend||""},y=[f],b=d.capture?"":"?:",E=e.globChars(d.windows),x=e.extglobChars(E),{DOT_LITERAL:v,PLUS_LITERAL:A,SLASH_LITERAL:S,ONE_CHAR:P,DOTS_SLASH:w,NO_DOT:$,NO_DOT_SLASH:I,NO_DOTS_SLASH:C,QMARK:k,QMARK_NO_DOT:N,STAR:O,START_ANCHOR:R}=E,D=e=>`(${b}(?:(?!${R}${e.dot?w:v}).)*?)`,M=d.dot?"":$,_=d.dot?k:N;let L=!0===d.bash?D(d):O;d.capture&&(L=`(${L})`),"boolean"==typeof d.noext&&(d.noextglob=d.noext);const T={input:c,index:-1,start:0,dot:!0===d.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:y};c=t.removePrefix(c,T),p=c.length;const B=[],z=[],F=[];let V,j=f;const U=()=>T.index===p-1,G=T.peek=(e=1)=>c[T.index+e],H=T.advance=()=>c[++T.index]||"",W=()=>c.slice(T.index+1),q=(e="",t=0)=>{T.consumed+=e,T.index+=t},K=e=>{T.output+=null!=e.output?e.output:e.value,q(e.value)},X=()=>{let e=1;for(;"!"===G()&&("("!==G(2)||"?"===G(3));)H(),T.start++,e++;return e%2!=0&&(T.negated=!0,T.start++,!0)},J=e=>{T[e]++,F.push(e)},Y=e=>{T[e]--,F.pop()},Z=e=>{if("globstar"===j.type){const t=T.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||B.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(T.output=T.output.slice(0,-j.output.length),j.type="star",j.value="*",j.output=L,T.output+=j.output)}if(B.length&&"paren"!==e.type&&(B[B.length-1].inner+=e.value),(e.value||e.output)&&K(e),j&&"text"===j.type&&"text"===e.type)return j.output=(j.output||j.value)+e.value,void(j.value+=e.value);e.prev=j,y.push(e),j=e},Q=(e,t)=>{const n={...x[t],conditions:1,inner:""};n.prev=j,n.parens=T.parens,n.output=T.output,n.startIndex=T.index,n.tokensIndex=y.length;const s=(d.capture?"(":"")+n.open;J("parens"),Z({type:e,value:t,output:T.output?"":P}),Z({type:"paren",extglob:!0,value:H(),output:s}),B.push(n)},ee=e=>{const n=c.slice(e.startIndex,T.index+1),s=c.slice(e.startIndex+2,T.index),i=m(s,d);if(("plus"===e.type||"star"===e.type)&&i.risky){const s=i.safeOutput?(e.output?"":P)+(d.capture?`(${i.safeOutput})`:i.safeOutput):void 0,r=y[e.tokensIndex];r.type="text",r.value=n,r.output=s||t.escapeRegex(n);for(let t=e.tokensIndex+1;t<y.length;t++)y[t].value="",y[t].output="",delete y[t].suffix;return T.output=e.output+r.output,T.backtrack=!0,Z({type:"paren",extglob:!0,value:V,output:""}),void Y("parens")}let r,o=e.close+(d.capture?")":"");if("negate"===e.type){let t=L;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(t=D(d)),(t!==L||U()||/^\)+$/.test(W()))&&(o=e.close=`)$))${t}`),e.inner.includes("*")&&(r=W())&&/^\.[^\\/.]+$/.test(r)){const n=g(r,{...u,fastpaths:!1}).output;o=e.close=`)${n})${t})`}"bos"===e.prev.type&&(T.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:V,output:o}),Y("parens")};if(!1!==d.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(c)){let e=!1,n=c.replace(r,(t,n,s,i,r,o)=>"\\"===i?(e=!0,t):"?"===i?n?n+i+(r?k.repeat(r.length):""):0===o?_+(r?k.repeat(r.length):""):k.repeat(s.length):"."===i?v.repeat(s.length):"*"===i?n?n+i+(r?L:""):L:n?t:`\\${t}`);return!0===e&&(n=!0===d.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),n===c&&!0===d.contains?(T.output=c,T):(T.output=t.wrapOutput(n,T,u),T)}for(;!U();){if(V=H(),"\0"===V)continue;if("\\"===V){const e=G();if("/"===e&&!0!==d.bash)continue;if("."===e||";"===e)continue;if(!e){V+="\\",Z({type:"text",value:V});continue}const t=/^\\+/.exec(W());let n=0;if(t&&t[0].length>2&&(n=t[0].length,T.index+=n,n%2!=0&&(V+="\\")),!0===d.unescape?V=H():V+=H(),0===T.brackets){Z({type:"text",value:V});continue}}if(T.brackets>0&&("]"!==V||"["===j.value||"[^"===j.value)){if(!1!==d.posix&&":"===V){const e=j.value.slice(1);if(e.includes("[")&&(j.posix=!0,e.includes(":"))){const e=j.value.lastIndexOf("["),t=j.value.slice(0,e),n=j.value.slice(e+2),i=s[n];if(i){j.value=t+i,T.backtrack=!0,H(),f.output||1!==y.indexOf(j)||(f.output=P);continue}}}("["===V&&":"!==G()||"-"===V&&"]"===G())&&(V=`\\${V}`),"]"!==V||"["!==j.value&&"[^"!==j.value||(V=`\\${V}`),!0===d.posix&&"!"===V&&"["===j.value&&(V="^"),j.value+=V,K({value:V});continue}if(1===T.quotes&&'"'!==V){V=t.escapeRegex(V),j.value+=V,K({value:V});continue}if('"'===V){T.quotes=1===T.quotes?0:1,!0===d.keepQuotes&&Z({type:"text",value:V});continue}if("("===V){J("parens"),Z({type:"paren",value:V});continue}if(")"===V){if(0===T.parens&&!0===d.strictBrackets)throw new SyntaxError(l("opening","("));const e=B[B.length-1];if(e&&T.parens===e.parens+1){ee(B.pop());continue}Z({type:"paren",value:V,output:T.parens?")":"\\)"}),Y("parens");continue}if("["===V){if(!0!==d.nobracket&&W().includes("]"))J("brackets");else{if(!0!==d.nobracket&&!0===d.strictBrackets)throw new SyntaxError(l("closing","]"));V=`\\${V}`}Z({type:"bracket",value:V});continue}if("]"===V){if(!0===d.nobracket||j&&"bracket"===j.type&&1===j.value.length){Z({type:"text",value:V,output:`\\${V}`});continue}if(0===T.brackets){if(!0===d.strictBrackets)throw new SyntaxError(l("opening","["));Z({type:"text",value:V,output:`\\${V}`});continue}Y("brackets");const e=j.value.slice(1);if(!0===j.posix||"^"!==e[0]||e.includes("/")||(V=`/${V}`),j.value+=V,K({value:V}),!1===d.literalBrackets||t.hasRegexChars(e))continue;const n=t.escapeRegex(j.value);if(T.output=T.output.slice(0,-j.value.length),!0===d.literalBrackets){T.output+=n,j.value=n;continue}j.value=`(${b}${n}|${j.value})`,T.output+=j.value;continue}if("{"===V&&!0!==d.nobrace){J("braces");const e={type:"brace",value:V,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};z.push(e),Z(e);continue}if("}"===V){const e=z[z.length-1];if(!0===d.nobrace||!e){Z({type:"text",value:V,output:V});continue}let t=")";if(!0===e.dots){const e=y.slice(),n=[];for(let t=e.length-1;t>=0&&(y.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=a(n,d),T.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=T.output.slice(0,e.outputIndex),s=T.tokens.slice(e.tokensIndex);e.value=e.output="\\{",V=t="\\}",T.output=n;for(const e of s)T.output+=e.output||e.value}Z({type:"brace",value:V,output:t}),Y("braces"),z.pop();continue}if("|"===V){B.length>0&&B[B.length-1].conditions++,Z({type:"text",value:V});continue}if(","===V){let e=V;const t=z[z.length-1];t&&"braces"===F[F.length-1]&&(t.comma=!0,e="|"),Z({type:"comma",value:V,output:e});continue}if("/"===V){if("dot"===j.type&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",y.pop(),j=f;continue}Z({type:"slash",value:V,output:S});continue}if("."===V){if(T.braces>0&&"dot"===j.type){"."===j.value&&(j.output=v);const e=z[z.length-1];j.type="dots",j.output+=V,j.value+=V,e.dots=!0;continue}if(T.braces+T.parens===0&&"bos"!==j.type&&"slash"!==j.type){Z({type:"text",value:V,output:v});continue}Z({type:"dot",value:V,output:v});continue}if("?"===V){if(!(j&&"("===j.value)&&!0!==d.noextglob&&"("===G()&&"?"!==G(2)){Q("qmark",V);continue}if(j&&"paren"===j.type){const e=G();let t=V;("("===j.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(W()))&&(t=`\\${V}`),Z({type:"text",value:V,output:t});continue}if(!0!==d.dot&&("slash"===j.type||"bos"===j.type)){Z({type:"qmark",value:V,output:N});continue}Z({type:"qmark",value:V,output:k});continue}if("!"===V){if(!0!==d.noextglob&&"("===G()&&("?"!==G(2)||!/[!=<:]/.test(G(3)))){Q("negate",V);continue}if(!0!==d.nonegate&&0===T.index){X();continue}}if("+"===V){if(!0!==d.noextglob&&"("===G()&&"?"!==G(2)){Q("plus",V);continue}if(j&&"("===j.value||!1===d.regex){Z({type:"plus",value:V,output:A});continue}if(j&&("bracket"===j.type||"paren"===j.type||"brace"===j.type)||T.parens>0){Z({type:"plus",value:V});continue}Z({type:"plus",value:A});continue}if("@"===V){if(!0!==d.noextglob&&"("===G()&&"?"!==G(2)){Z({type:"at",extglob:!0,value:V,output:""});continue}Z({type:"text",value:V});continue}if("*"!==V){"$"!==V&&"^"!==V||(V=`\\${V}`);const e=i.exec(W());e&&(V+=e[0],T.index+=e[0].length),Z({type:"text",value:V});continue}if(j&&("globstar"===j.type||!0===j.star)){j.type="star",j.star=!0,j.value+=V,j.output=L,T.backtrack=!0,T.globstar=!0,q(V);continue}let e=W();if(!0!==d.noextglob&&/^\([^?]/.test(e)){Q("star",V);continue}if("star"===j.type){if(!0===d.noglobstar){q(V);continue}const t=j.prev,n=t.prev,s="slash"===t.type||"bos"===t.type,i=n&&("star"===n.type||"globstar"===n.type);if(!0===d.bash&&(!s||e[0]&&"/"!==e[0])){Z({type:"star",value:V,output:""});continue}const r=T.braces>0&&("comma"===t.type||"brace"===t.type),o=B.length&&("pipe"===t.type||"paren"===t.type);if(!s&&"paren"!==t.type&&!r&&!o){Z({type:"star",value:V,output:""});continue}for(;"/**"===e.slice(0,3);){const t=c[T.index+4];if(t&&"/"!==t)break;e=e.slice(3),q("/**",3)}const a=U()||T.parens>0&&e===")".repeat(T.parens)&&!B.some(e=>"negate"===e.type);if("bos"===t.type&&U()){j.type="globstar",j.value+=V,j.output=D(d),T.output=j.output,T.globstar=!0,q(V);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!i&&a){T.output=T.output.slice(0,-(t.output+j.output).length),t.output=`(?:${t.output}`,j.type="globstar",j.output=D(d)+(d.strictSlashes?")":"|$)"),j.value+=V,T.globstar=!0,T.output+=t.output+j.output,q(V);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){const n=void 0!==e[1]?"|$":"";T.output=T.output.slice(0,-(t.output+j.output).length),t.output=`(?:${t.output}`,j.type="globstar",j.output=`${D(d)}${S}|${S}${n})`,j.value+=V,T.output+=t.output+j.output,T.globstar=!0,q(V+H()),Z({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){j.type="globstar",j.value+=V,j.output=`(?:^|${S}|${D(d)}${S})`,T.output=j.output,T.globstar=!0,q(V+H()),Z({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-j.output.length),j.type="globstar",j.output=D(d),j.value+=V,T.output+=j.output,T.globstar=!0,q(V);continue}const n={type:"star",value:V,output:L};!0!==d.bash?!j||"bracket"!==j.type&&"paren"!==j.type||!0!==d.regex?(T.index!==T.start&&"slash"!==j.type&&"dot"!==j.type||("dot"===j.type?(T.output+=I,j.output+=I):!0===d.dot?(T.output+=C,j.output+=C):(T.output+=M,j.output+=M),"*"!==G()&&(T.output+=P,j.output+=P)),Z(n)):(n.output=V,Z(n)):(n.output=".*?","bos"!==j.type&&"slash"!==j.type||(n.output=M+n.output),Z(n))}for(;T.brackets>0;){if(!0===d.strictBrackets)throw new SyntaxError(l("closing","]"));T.output=t.escapeLast(T.output,"["),Y("brackets")}for(;T.parens>0;){if(!0===d.strictBrackets)throw new SyntaxError(l("closing",")"));T.output=t.escapeLast(T.output,"("),Y("parens")}for(;T.braces>0;){if(!0===d.strictBrackets)throw new SyntaxError(l("closing","}"));T.output=t.escapeLast(T.output,"{"),Y("braces")}if(!0===d.strictSlashes||"star"!==j.type&&"bracket"!==j.type||Z({type:"maybe_slash",value:"",output:`${S}?`}),!0===T.backtrack){T.output="";for(const e of T.tokens)T.output+=null!=e.output?e.output:e.value,e.suffix&&(T.output+=e.suffix)}return T};return g.fastpaths=(s,i)=>{const r={...i},a="number"==typeof r.maxLength?Math.min(n,r.maxLength):n,l=s.length;if(l>a)throw new SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${a}`);s=o[s]||s;const{DOT_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:d,DOTS_SLASH:h,NO_DOT:p,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:y}=e.globChars(r.windows),b=r.dot?f:p,E=r.dot?m:p,x=r.capture?"":"?:";let v=!0===r.bash?".*?":g;r.capture&&(v=`(${v})`);const A=e=>!0===e.noglobstar?v:`(${x}(?:(?!${y}${e.dot?h:c}).)*?)`,S=e=>{switch(e){case"*":return`${b}${d}${v}`;case".*":return`${c}${d}${v}`;case"*.*":return`${b}${v}${c}${d}${v}`;case"*/*":return`${b}${v}${u}${d}${E}${v}`;case"**":return b+A(r);case"**/*":return`(?:${b}${A(r)}${u})?${E}${d}${v}`;case"**/*.*":return`(?:${b}${A(r)}${u})?${E}${v}${c}${d}${v}`;case"**/.*":return`(?:${b}${A(r)}${u})?${c}${d}${v}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=S(t[1]);if(!n)return;return n+c+t[2]}}},P=t.removePrefix(s,{negated:!1,prefix:""});let w=S(P);return w&&!0!==r.strictSlashes&&(w+=`${u}?`),w},aa=g}function ba(){if(ua)return ca;ua=1;const e=ga(),t=ya(),n=ma(),s=fa(),i=(e,t,n=!1)=>{if(Array.isArray(e)){const s=e.map(e=>i(e,t,n)),r=e=>{for(const t of s){const n=t(e);if(n)return n}return!1};return r}const s=(r=e)&&"object"==typeof r&&!Array.isArray(r)&&e.tokens&&e.input;var r;if(""===e||"string"!=typeof e&&!s)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},a=o.windows,l=s?i.compileRe(e,t):i.makeRe(e,t,!1,!0),c=l.state;delete l.state;let u=()=>!1;if(o.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};u=i(o.ignore,e,n)}const d=(n,s=!1)=>{const{isMatch:r,match:d,output:h}=i.test(n,l,t,{glob:e,posix:a}),p={glob:e,state:c,regex:l,posix:a,input:n,output:h,match:d,isMatch:r};return"function"==typeof o.onResult&&o.onResult(p),!1===r?(p.isMatch=!1,!!s&&p):u(n)?("function"==typeof o.onIgnore&&o.onIgnore(p),p.isMatch=!1,!!s&&p):("function"==typeof o.onMatch&&o.onMatch(p),!s||p)};return n&&(d.state=c),d};return i.test=(e,t,s,{glob:r,posix:o}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const a=s||{},l=a.format||(o?n.toPosixSlashes:null);let c=e===r,u=c&&l?l(e):e;return!1===c&&(u=l?l(e):e,c=u===r),!1!==c&&!0!==a.capture||(c=!0===a.matchBase||!0===a.basename?i.matchBase(e,t,s,o):t.exec(u)),{isMatch:Boolean(c),match:c,output:u}},i.matchBase=(e,t,s,r=s&&s.windows)=>(t instanceof RegExp?t:i.makeRe(t,s)).test(n.basename(e,{windows:r})),i.isMatch=(e,t,n)=>i(t,n)(e),i.parse=(e,n)=>Array.isArray(e)?e.map(e=>i.parse(e,n)):t(e,{...n,fastpaths:!1}),i.scan=(t,n)=>e(t,n),i.compileRe=(e,t,n=!1,s=!1)=>{if(!0===n)return e.output;const r=t||{},o=r.contains?"":"^",a=r.contains?"":"$";let l=`${o}(?:${e.output})${a}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);const c=i.toRegex(l,t);return!0===s&&(c.state=e),c},i.makeRe=(e,n={},s=!1,r=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1===n.fastpaths||"."!==e[0]&&"*"!==e[0]||(o.output=t.fastpaths(e,n)),o.output||(o=t(e,n)),i.compileRe(o,n,s,r)},i.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},i.constants=s,ca=i}function Ea(){if(ha)return da;ha=1;const e=ba(),t=ma();function n(n,s,i=!1){return!s||null!==s.windows&&void 0!==s.windows||(s={...s,windows:t.isWindows()}),e(n,s,i)}return Object.assign(n,e),da=n}var xa=ta(Ea());const va={ArrayPattern(e,t){for(const n of t.elements)n&&va[n.type](e,n)},AssignmentPattern(e,t){va[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const n of t.properties)"RestElement"===n.type?va.RestElement(e,n):va[n.value.type](e,n.value)},RestElement(e,t){va[t.argument.type](e,t.argument)}},Aa=function(e){const t=[];return va[e.type](t,e),t};new Set("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 arguments 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(" ")).add("");var Sa=["var","let","const","init","get","set","constructor","method","-","+","!","~","typeof","void","delete","++","--","==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","*","/","%","|","^","&","||","&&","in","instanceof","**","??","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&=","**=","&&=","||=","??=","pure","noSideEffects","sourcemap","using","await using","source","defer"];const Pa=(e,t)=>{if(0===e)return Ee;const n=t[e++],s=new Array(n);for(let i=0;i<n;i++)s[i]=wa(t[e++],t);return s},wa=(e,t)=>{const n=t[e++];return{end:t[e++],start:n,type:Sa[t[e]]}},$a=(e,t)=>{const n=Ca(t,e);switch(n.type){case Kn:return Gt(Ht(Nn(n.message)));case Xn:return Gt(Ht(Nn(n.message,n.start)));default:return n}},Ia=[function(e,t){const n={type:"PanicError",start:t[e],end:t[e+1],get message(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"message",{value:s}),s}};return n},function(e,t){const n={type:"ParseError",start:t[e],end:t[e+1],get message(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"message",{value:s}),s}};return n},function(e,t){const n={type:"ArrayExpression",start:t[e],end:t[e+1],get elements(){const s=ka(t[e+2],t);return Object.defineProperty(n,"elements",{value:s}),s}};return n},function(e,t){const n={type:"ArrayPattern",start:t[e],end:t[e+1],get elements(){const s=ka(t[e+2],t);return Object.defineProperty(n,"elements",{value:s}),s}};return n},function(e,t){const n=t[e+2],s=Pa(t[e+3],t),i={type:"ArrowFunctionExpression",start:t[e],end:t[e+1],async:!(1&~n),expression:!(2&~n),generator:!(4&~n),...s.length>0?{annotations:s}:{},get params(){const n=ka(t[e+4],t);return Object.defineProperty(i,"params",{value:n}),n},get body(){const n=Ca(t[e+5],t);return Object.defineProperty(i,"body",{value:n}),n},id:null};return i},function(e,t){const n={type:"AssignmentExpression",start:t[e],end:t[e+1],get operator(){const s=Sa[t[e+2]];return Object.defineProperty(n,"operator",{value:s}),s},get left(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"left",{value:s}),s},get right(){const s=Ca(t[e+4],t);return Object.defineProperty(n,"right",{value:s}),s}};return n},function(e,t){const n={type:"AssignmentPattern",start:t[e],end:t[e+1],get left(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"left",{value:s}),s},get right(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"right",{value:s}),s}};return n},function(e,t){const n={type:"AwaitExpression",start:t[e],end:t[e+1],get argument(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"argument",{value:s}),s}};return n},function(e,t){const n={type:"BinaryExpression",start:t[e],end:t[e+1],get operator(){const s=Sa[t[e+2]];return Object.defineProperty(n,"operator",{value:s}),s},get left(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"left",{value:s}),s},get right(){const s=Ca(t[e+4],t);return Object.defineProperty(n,"right",{value:s}),s}};return n},function(e,t){const n={type:"BlockStatement",start:t[e],end:t[e+1],get body(){const s=ka(t[e+2],t);return Object.defineProperty(n,"body",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"BreakStatement",start:t[e],end:t[e+1],get label(){const e=0===n?null:Ca(n,t);return Object.defineProperty(s,"label",{value:e}),e}};return s},function(e,t){const n=t[e+2],s=Pa(t[e+3],t),i={type:"CallExpression",start:t[e],end:t[e+1],optional:!(1&~n),...s.length>0?{annotations:s}:{},get callee(){const n=Ca(t[e+4],t);return Object.defineProperty(i,"callee",{value:n}),n},get arguments(){const n=ka(t[e+5],t);return Object.defineProperty(i,"arguments",{value:n}),n}};return i},function(e,t){const n=t[e+2],s={type:"CatchClause",start:t[e],end:t[e+1],get param(){const e=0===n?null:Ca(n,t);return Object.defineProperty(s,"param",{value:e}),e},get body(){const n=Ca(t[e+3],t);return Object.defineProperty(s,"body",{value:n}),n}};return s},function(e,t){const n={type:"ChainExpression",start:t[e],end:t[e+1],get expression(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"expression",{value:s}),s}};return n},function(e,t){const n={type:"ClassBody",start:t[e],end:t[e+1],get body(){const s=ka(t[e+2],t);return Object.defineProperty(n,"body",{value:s}),s}};return n},function(e,t){const n=t[e+3],s=t[e+4],i={type:"ClassDeclaration",start:t[e],end:t[e+1],get decorators(){const n=ka(t[e+2],t);return Object.defineProperty(i,"decorators",{value:n}),n},get id(){const e=0===n?null:Ca(n,t);return Object.defineProperty(i,"id",{value:e}),e},get superClass(){const e=0===s?null:Ca(s,t);return Object.defineProperty(i,"superClass",{value:e}),e},get body(){const n=Ca(t[e+5],t);return Object.defineProperty(i,"body",{value:n}),n}};return i},function(e,t){const n=t[e+3],s=t[e+4],i={type:"ClassExpression",start:t[e],end:t[e+1],get decorators(){const n=ka(t[e+2],t);return Object.defineProperty(i,"decorators",{value:n}),n},get id(){const e=0===n?null:Ca(n,t);return Object.defineProperty(i,"id",{value:e}),e},get superClass(){const e=0===s?null:Ca(s,t);return Object.defineProperty(i,"superClass",{value:e}),e},get body(){const n=Ca(t[e+5],t);return Object.defineProperty(i,"body",{value:n}),n}};return i},function(e,t){const n={type:"ConditionalExpression",start:t[e],end:t[e+1],get test(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"test",{value:s}),s},get consequent(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"consequent",{value:s}),s},get alternate(){const s=Ca(t[e+4],t);return Object.defineProperty(n,"alternate",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"ContinueStatement",start:t[e],end:t[e+1],get label(){const e=0===n?null:Ca(n,t);return Object.defineProperty(s,"label",{value:e}),e}};return s},function(e,t){return{type:"DebuggerStatement",start:t[e],end:t[e+1]}},function(e,t){const n={type:"Decorator",start:t[e],end:t[e+1],get expression(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"expression",{value:s}),s}};return n},function(e,t){const n={type:"ExpressionStatement",start:t[e],end:t[e+1],get directive(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"directive",{value:s}),s},get expression(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"expression",{value:s}),s}};return n},function(e,t){const n={type:"DoWhileStatement",start:t[e],end:t[e+1],get body(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"body",{value:s}),s},get test(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"test",{value:s}),s}};return n},function(e,t){return{type:"EmptyStatement",start:t[e],end:t[e+1]}},function(e,t){const n=t[e+2],s={type:"ExportAllDeclaration",start:t[e],end:t[e+1],get exported(){const e=0===n?null:Ca(n,t);return Object.defineProperty(s,"exported",{value:e}),e},get source(){const n=Ca(t[e+3],t);return Object.defineProperty(s,"source",{value:n}),n},get attributes(){const n=ka(t[e+4],t);return Object.defineProperty(s,"attributes",{value:n}),n}};return s},function(e,t){const n={type:"ExportDefaultDeclaration",start:t[e],end:t[e+1],get declaration(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"declaration",{value:s}),s}};return n},function(e,t){const n=t[e+3],s=t[e+5],i={type:"ExportNamedDeclaration",start:t[e],end:t[e+1],get specifiers(){const n=ka(t[e+2],t);return Object.defineProperty(i,"specifiers",{value:n}),n},get source(){const e=0===n?null:Ca(n,t);return Object.defineProperty(i,"source",{value:e}),e},get attributes(){const n=ka(t[e+4],t);return Object.defineProperty(i,"attributes",{value:n}),n},get declaration(){const e=0===s?null:Ca(s,t);return Object.defineProperty(i,"declaration",{value:e}),e}};return i},function(e,t){const n=Ca(t[e+2],t),s=t[e+3],i={type:"ExportSpecifier",start:t[e],end:t[e+1],local:n,get exported(){const e=0===s?{...n}:Ca(s,t);return Object.defineProperty(i,"exported",{value:e}),e}};return i},function(e,t){const n={type:"ExpressionStatement",start:t[e],end:t[e+1],get expression(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"expression",{value:s}),s}};return n},function(e,t){const n={type:"ForInStatement",start:t[e],end:t[e+1],get left(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"left",{value:s}),s},get right(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"right",{value:s}),s},get body(){const s=Ca(t[e+4],t);return Object.defineProperty(n,"body",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"ForOfStatement",start:t[e],end:t[e+1],await:!(1&~n),get left(){const n=Ca(t[e+3],t);return Object.defineProperty(s,"left",{value:n}),n},get right(){const n=Ca(t[e+4],t);return Object.defineProperty(s,"right",{value:n}),n},get body(){const n=Ca(t[e+5],t);return Object.defineProperty(s,"body",{value:n}),n}};return s},function(e,t){const n=t[e+2],s=t[e+3],i=t[e+4],r={type:"ForStatement",start:t[e],end:t[e+1],get init(){const e=0===n?null:Ca(n,t);return Object.defineProperty(r,"init",{value:e}),e},get test(){const e=0===s?null:Ca(s,t);return Object.defineProperty(r,"test",{value:e}),e},get update(){const e=0===i?null:Ca(i,t);return Object.defineProperty(r,"update",{value:e}),e},get body(){const n=Ca(t[e+5],t);return Object.defineProperty(r,"body",{value:n}),n}};return r},function(e,t){const n=t[e+2],s=Pa(t[e+3],t),i=t[e+4],r={type:"FunctionDeclaration",start:t[e],end:t[e+1],async:!(1&~n),generator:!(2&~n),...s.length>0?{annotations:s}:{},get id(){const e=0===i?null:Ca(i,t);return Object.defineProperty(r,"id",{value:e}),e},get params(){const n=ka(t[e+5],t);return Object.defineProperty(r,"params",{value:n}),n},get body(){const n=Ca(t[e+6],t);return Object.defineProperty(r,"body",{value:n}),n},expression:!1};return r},function(e,t){const n=t[e+2],s=Pa(t[e+3],t),i=t[e+4],r={type:"FunctionExpression",start:t[e],end:t[e+1],async:!(1&~n),generator:!(2&~n),...s.length>0?{annotations:s}:{},get id(){const e=0===i?null:Ca(i,t);return Object.defineProperty(r,"id",{value:e}),e},get params(){const n=ka(t[e+5],t);return Object.defineProperty(r,"params",{value:n}),n},get body(){const n=Ca(t[e+6],t);return Object.defineProperty(r,"body",{value:n}),n},expression:!1};return r},function(e,t){const n={type:"Identifier",start:t[e],end:t[e+1],get name(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"name",{value:s}),s}};return n},function(e,t){const n=t[e+4],s={type:"IfStatement",start:t[e],end:t[e+1],get test(){const n=Ca(t[e+2],t);return Object.defineProperty(s,"test",{value:n}),n},get consequent(){const n=Ca(t[e+3],t);return Object.defineProperty(s,"consequent",{value:n}),n},get alternate(){const e=0===n?null:Ca(n,t);return Object.defineProperty(s,"alternate",{value:e}),e}};return s},function(e,t){const n={type:"ImportAttribute",start:t[e],end:t[e+1],get key(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"key",{value:s}),s},get value(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"value",{value:s}),s}};return n},function(e,t){const n=t[e+5],s={type:"ImportDeclaration",start:t[e],end:t[e+1],get specifiers(){const n=ka(t[e+2],t);return Object.defineProperty(s,"specifiers",{value:n}),n},get source(){const n=Ca(t[e+3],t);return Object.defineProperty(s,"source",{value:n}),n},get attributes(){const n=ka(t[e+4],t);return Object.defineProperty(s,"attributes",{value:n}),n},get phase(){const i=0===n?void 0:Sa[t[e+5]];return Object.defineProperty(s,"phase",{value:i}),i}};return s},function(e,t){const n={type:"ImportDefaultSpecifier",start:t[e],end:t[e+1],get local(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"local",{value:s}),s}};return n},function(e,t){const n=t[e+3],s=t[e+4],i={type:"ImportExpression",start:t[e],end:t[e+1],get source(){const n=Ca(t[e+2],t);return Object.defineProperty(i,"source",{value:n}),n},get options(){const e=0===n?null:Ca(n,t);return Object.defineProperty(i,"options",{value:e}),e},get phase(){const n=0===s?void 0:Sa[t[e+4]];return Object.defineProperty(i,"phase",{value:n}),n}};return i},function(e,t){const n={type:"ImportNamespaceSpecifier",start:t[e],end:t[e+1],get local(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"local",{value:s}),s}};return n},function(e,t){const n=t[e+2],s=Ca(t[e+3],t),i={type:"ImportSpecifier",start:t[e],end:t[e+1],get imported(){const e=0===n?{...s}:Ca(n,t);return Object.defineProperty(i,"imported",{value:e}),e},local:s};return i},function(e,t){const n=t[e+3],s={type:"JSXAttribute",start:t[e],end:t[e+1],get name(){const n=Ca(t[e+2],t);return Object.defineProperty(s,"name",{value:n}),n},get value(){const e=0===n?null:Ca(n,t);return Object.defineProperty(s,"value",{value:e}),e}};return s},function(e,t){const n={type:"JSXClosingElement",start:t[e],end:t[e+1],get name(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"name",{value:s}),s}};return n},function(e,t){return{type:"JSXClosingFragment",start:t[e],end:t[e+1]}},function(e,t){const n=t[e+4],s={type:"JSXElement",start:t[e],end:t[e+1],get openingElement(){const n=Ca(t[e+2],t);return Object.defineProperty(s,"openingElement",{value:n}),n},get children(){const n=ka(t[e+3],t);return Object.defineProperty(s,"children",{value:n}),n},get closingElement(){const e=0===n?null:Ca(n,t);return Object.defineProperty(s,"closingElement",{value:e}),e}};return s},function(e,t){return{type:"JSXEmptyExpression",start:t[e],end:t[e+1]}},function(e,t){const n={type:"JSXExpressionContainer",start:t[e],end:t[e+1],get expression(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"expression",{value:s}),s}};return n},function(e,t){const n={type:"JSXFragment",start:t[e],end:t[e+1],get openingFragment(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"openingFragment",{value:s}),s},get children(){const s=ka(t[e+3],t);return Object.defineProperty(n,"children",{value:s}),s},get closingFragment(){const s=Ca(t[e+4],t);return Object.defineProperty(n,"closingFragment",{value:s}),s}};return n},function(e,t){const n={type:"JSXIdentifier",start:t[e],end:t[e+1],get name(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"name",{value:s}),s}};return n},function(e,t){const n={type:"JSXMemberExpression",start:t[e],end:t[e+1],get object(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"object",{value:s}),s},get property(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"property",{value:s}),s}};return n},function(e,t){const n={type:"JSXNamespacedName",start:t[e],end:t[e+1],get namespace(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"namespace",{value:s}),s},get name(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"name",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"JSXOpeningElement",start:t[e],end:t[e+1],selfClosing:!(1&~n),get name(){const n=Ca(t[e+3],t);return Object.defineProperty(s,"name",{value:n}),n},get attributes(){const n=ka(t[e+4],t);return Object.defineProperty(s,"attributes",{value:n}),n}};return s},function(e,t){return{type:"JSXOpeningFragment",start:t[e],end:t[e+1],attributes:[],selfClosing:!1}},function(e,t){const n={type:"JSXSpreadAttribute",start:t[e],end:t[e+1],get argument(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"argument",{value:s}),s}};return n},function(e,t){const n={type:"JSXSpreadChild",start:t[e],end:t[e+1],get expression(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"expression",{value:s}),s}};return n},function(e,t){const n={type:"JSXText",start:t[e],end:t[e+1],get value(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"value",{value:s}),s},get raw(){const s=t.convertString(t[e+3]);return Object.defineProperty(n,"raw",{value:s}),s}};return n},function(e,t){const n={type:"LabeledStatement",start:t[e],end:t[e+1],get label(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"label",{value:s}),s},get body(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"body",{value:s}),s}};return n},function(e,t){const n=t.convertString(t[e+2]),s={type:"Literal",start:t[e],end:t[e+1],bigint:n,get raw(){const n=t.convertString(t[e+3]);return Object.defineProperty(s,"raw",{value:n}),n},value:BigInt(n)};return s},function(e,t){const n=!(1&~t[e+2]);return{type:"Literal",start:t[e],end:t[e+1],value:n,raw:n?"true":"false"}},function(e,t){return{type:"Literal",start:t[e],end:t[e+1],raw:"null",value:null}},function(e,t){const n=t[e+2],s={type:"Literal",start:t[e],end:t[e+1],get raw(){const e=0===n?void 0:t.convertString(n);return Object.defineProperty(s,"raw",{value:e}),e},get value(){const n=t.convertFloat64(e+3);return Object.defineProperty(s,"value",{value:n}),n}};return s},function(e,t){const n=t.convertString(t[e+2]),s=t.convertString(t[e+3]);return{type:"Literal",start:t[e],end:t[e+1],raw:`/${s}/${n}`,regex:{flags:n,pattern:s},value:new RegExp(s,n)}},function(e,t){const n=t[e+3],s={type:"Literal",start:t[e],end:t[e+1],get value(){const n=t.convertString(t[e+2]);return Object.defineProperty(s,"value",{value:n}),n},get raw(){const e=0===n?void 0:t.convertString(n);return Object.defineProperty(s,"raw",{value:e}),e}};return s},function(e,t){const n={type:"LogicalExpression",start:t[e],end:t[e+1],get operator(){const s=Sa[t[e+2]];return Object.defineProperty(n,"operator",{value:s}),s},get left(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"left",{value:s}),s},get right(){const s=Ca(t[e+4],t);return Object.defineProperty(n,"right",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"MemberExpression",start:t[e],end:t[e+1],computed:!(1&~n),optional:!(2&~n),get object(){const n=Ca(t[e+3],t);return Object.defineProperty(s,"object",{value:n}),n},get property(){const n=Ca(t[e+4],t);return Object.defineProperty(s,"property",{value:n}),n}};return s},function(e,t){const n={type:"MetaProperty",start:t[e],end:t[e+1],get meta(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"meta",{value:s}),s},get property(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"property",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"MethodDefinition",start:t[e],end:t[e+1],static:!(1&~n),computed:!(2&~n),get decorators(){const n=ka(t[e+3],t);return Object.defineProperty(s,"decorators",{value:n}),n},get key(){const n=Ca(t[e+4],t);return Object.defineProperty(s,"key",{value:n}),n},get value(){const n=Ca(t[e+5],t);return Object.defineProperty(s,"value",{value:n}),n},get kind(){const n=Sa[t[e+6]];return Object.defineProperty(s,"kind",{value:n}),n}};return s},function(e,t){const n=Pa(t[e+2],t),s={type:"NewExpression",start:t[e],end:t[e+1],...n.length>0?{annotations:n}:{},get callee(){const n=Ca(t[e+3],t);return Object.defineProperty(s,"callee",{value:n}),n},get arguments(){const n=ka(t[e+4],t);return Object.defineProperty(s,"arguments",{value:n}),n}};return s},function(e,t){const n={type:"ObjectExpression",start:t[e],end:t[e+1],get properties(){const s=ka(t[e+2],t);return Object.defineProperty(n,"properties",{value:s}),s}};return n},function(e,t){const n={type:"ObjectPattern",start:t[e],end:t[e+1],get properties(){const s=ka(t[e+2],t);return Object.defineProperty(n,"properties",{value:s}),s}};return n},function(e,t){const n={type:"PrivateIdentifier",start:t[e],end:t[e+1],get name(){const s=t.convertString(t[e+2]);return Object.defineProperty(n,"name",{value:s}),s}};return n},function(e,t){const n=Pa(t[e+3],t),s={type:"Program",start:t[e],end:t[e+1],get body(){const n=ka(t[e+2],t);return Object.defineProperty(s,"body",{value:n}),n},...n.length>0?{invalidAnnotations:n}:{},sourceType:"module"};return s},function(e,t){const n=t[e+2],s=t[e+3],i=Ca(t[e+4],t),r={type:"Property",start:t[e],end:t[e+1],method:!(1&~n),shorthand:!(2&~n),computed:!(4&~n),get key(){const e=0===s?{...i}:Ca(s,t);return Object.defineProperty(r,"key",{value:e}),e},value:i,get kind(){const n=Sa[t[e+5]];return Object.defineProperty(r,"kind",{value:n}),n}};return r},function(e,t){const n=t[e+2],s=t[e+5],i={type:"PropertyDefinition",start:t[e],end:t[e+1],static:!(1&~n),computed:!(2&~n),get decorators(){const n=ka(t[e+3],t);return Object.defineProperty(i,"decorators",{value:n}),n},get key(){const n=Ca(t[e+4],t);return Object.defineProperty(i,"key",{value:n}),n},get value(){const e=0===s?null:Ca(s,t);return Object.defineProperty(i,"value",{value:e}),e}};return i},function(e,t){const n={type:"RestElement",start:t[e],end:t[e+1],get argument(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"argument",{value:s}),s}};return n},function(e,t){const n=t[e+2],s={type:"ReturnStatement",start:t[e],end:t[e+1],get argument(){const e=0===n?null:Ca(n,t);return Object.defineProperty(s,"argument",{value:e}),e}};return s},function(e,t){const n={type:"SequenceExpression",start:t[e],end:t[e+1],get expressions(){const s=ka(t[e+2],t);return Object.defineProperty(n,"expressions",{value:s}),s}};return n},function(e,t){const n={type:"SpreadElement",start:t[e],end:t[e+1],get argument(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"argument",{value:s}),s}};return n},function(e,t){const n={type:"StaticBlock",start:t[e],end:t[e+1],get body(){const s=ka(t[e+2],t);return Object.defineProperty(n,"body",{value:s}),s}};return n},function(e,t){return{type:"Super",start:t[e],end:t[e+1]}},function(e,t){const n=t[e+2],s={type:"SwitchCase",start:t[e],end:t[e+1],get test(){const e=0===n?null:Ca(n,t);return Object.defineProperty(s,"test",{value:e}),e},get consequent(){const n=ka(t[e+3],t);return Object.defineProperty(s,"consequent",{value:n}),n}};return s},function(e,t){const n={type:"SwitchStatement",start:t[e],end:t[e+1],get discriminant(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"discriminant",{value:s}),s},get cases(){const s=ka(t[e+3],t);return Object.defineProperty(n,"cases",{value:s}),s}};return n},function(e,t){const n={type:"TaggedTemplateExpression",start:t[e],end:t[e+1],get tag(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"tag",{value:s}),s},get quasi(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"quasi",{value:s}),s}};return n},function(e,t){const n=t[e+2],s=t[e+3],i=0===s?void 0:t.convertString(s),r=t.convertString(t[e+4]);return{type:"TemplateElement",start:t[e],end:t[e+1],tail:!(1&~n),value:{cooked:i,raw:r}}},function(e,t){const n={type:"TemplateLiteral",start:t[e],end:t[e+1],get quasis(){const s=ka(t[e+2],t);return Object.defineProperty(n,"quasis",{value:s}),s},get expressions(){const s=ka(t[e+3],t);return Object.defineProperty(n,"expressions",{value:s}),s}};return n},function(e,t){return{type:"ThisExpression",start:t[e],end:t[e+1]}},function(e,t){const n={type:"ThrowStatement",start:t[e],end:t[e+1],get argument(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"argument",{value:s}),s}};return n},function(e,t){const n=t[e+3],s=t[e+4],i={type:"TryStatement",start:t[e],end:t[e+1],get block(){const n=Ca(t[e+2],t);return Object.defineProperty(i,"block",{value:n}),n},get handler(){const e=0===n?null:Ca(n,t);return Object.defineProperty(i,"handler",{value:e}),e},get finalizer(){const e=0===s?null:Ca(s,t);return Object.defineProperty(i,"finalizer",{value:e}),e}};return i},function(e,t){const n={type:"UnaryExpression",start:t[e],end:t[e+1],get operator(){const s=Sa[t[e+2]];return Object.defineProperty(n,"operator",{value:s}),s},get argument(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"argument",{value:s}),s},prefix:!0};return n},function(e,t){const n=t[e+2],s={type:"UpdateExpression",start:t[e],end:t[e+1],prefix:!(1&~n),get operator(){const n=Sa[t[e+3]];return Object.defineProperty(s,"operator",{value:n}),n},get argument(){const n=Ca(t[e+4],t);return Object.defineProperty(s,"argument",{value:n}),n}};return s},function(e,t){const n={type:"VariableDeclaration",start:t[e],end:t[e+1],get kind(){const s=Sa[t[e+2]];return Object.defineProperty(n,"kind",{value:s}),s},get declarations(){const s=ka(t[e+3],t);return Object.defineProperty(n,"declarations",{value:s}),s}};return n},function(e,t){const n=t[e+3],s={type:"VariableDeclarator",start:t[e],end:t[e+1],get id(){const n=Ca(t[e+2],t);return Object.defineProperty(s,"id",{value:n}),n},get init(){const e=0===n?null:Ca(n,t);return Object.defineProperty(s,"init",{value:e}),e}};return s},function(e,t){const n={type:"WhileStatement",start:t[e],end:t[e+1],get test(){const s=Ca(t[e+2],t);return Object.defineProperty(n,"test",{value:s}),s},get body(){const s=Ca(t[e+3],t);return Object.defineProperty(n,"body",{value:s}),s}};return n},function(e,t){const n=t[e+2],s=t[e+3],i={type:"YieldExpression",start:t[e],end:t[e+1],delegate:!(1&~n),get argument(){const e=0===s?null:Ca(s,t);return Object.defineProperty(i,"argument",{value:e}),e}};return i}];function Ca(e,t){const n=t[e],s=Ia[n];if(!s)throw console.trace(),new Error(`Unknown node type: ${n}`);return s(e+1,t)}function ka(e,t){if(0===e)return Ee;const n=t[e++],s=new Array(n);for(let i=0;i<n;i++){const n=t[e++];s[i]=n?Ca(n,t):null}return s}const Na=0===new Uint8Array(new Uint32Array([1]).buffer)[0],Oa=new DataView(new ArrayBuffer(8));let Ra=new Uint8Array(0);const Da=function(e,t){Oa.setFloat64(0,e,!0),this[t]=Oa.getUint32(0,!0),this[t+1]=Oa.getUint32(4,!0)};function Ma(e,t,n,s){const i=n>>2,r=s+3>>2;for(let s=0;s<r;s++){const r=n+(s<<2);e[i+s]=t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24}}const _a=(e,t,n)=>{const s=((e,t,n)=>{const s=n+3>>2<<2;Ra.length<s&&(Ra=new Uint8Array(s));const i=t+1;for(let t=0;t<s>>2;t++){const n=e[i+t];Ra[t<<2]=255&n,Ra[1+(t<<2)]=n>>>8&255,Ra[2+(t<<2)]=n>>>16&255,Ra[3+(t<<2)]=n>>>24&255}return Ra.subarray(0,n)})(e,t,n);return"undefined"!=typeof Buffer?Buffer.from(s.buffer,s.byteOffset,s.length).toString("utf8"):(new TextDecoder).decode(s)};function La(e){const t=3&e.byteOffset?new Uint8Array(e):e,n=new Uint32Array(t.buffer,t.byteOffset,t.byteLength>>2);let s;if(Na)s=e=>_a(n,e,n[e]);else if("undefined"!=typeof Buffer&&e instanceof Buffer)s=t=>{const s=n[t],i=t+1<<2;return e.toString("utf8",i,i+s)};else{const t=new TextDecoder;s=s=>{const i=n[s],r=s+1<<2;return t.decode(e.subarray(r,r+i))}}return Object.assign(n,{convertFloat64(e){return Oa.setUint32(0,this[e],!0),Oa.setUint32(4,this[e+1],!0),Oa.getFloat64(0,!0)},convertString:s})}function Ta(e){const t=new Uint32Array(e),n=new TextEncoder,s=new Uint8Array(t.buffer);return Object.assign(t,{addStringToBuffer(e,s){const i=t.position;t[s]=i;const r=n.encode(e),o=r.length,a=1+(o+3>>2),l=t.reserve(a);l[i]=o;const c=i+1<<2;return l.byteBuffer.set(r,c),Na&&Ma(l,l.byteBuffer,c,o),l},byteBuffer:s,position:0,reserve(e){const n=t.position+e;if(n<=t.length)return t.position=n,t;const s=Ta(2*n);return s.set(t),s.position=n,s},toOutput(){const e=t.position<<2;return s.slice(0,e)},writeFloat64:Da})}function Ba(e){const t=new Uint32Array(e),n=Buffer.from(t.buffer);return Object.assign(t,{addStringToBuffer(e,s){let i=t;const r=t.position+1+(3*e.length+3>>2);r>t.length&&(i=Ba(2*r),n.copy(i.byteBuffer,0,0,t.position<<2),i.position=t.position);const o=i.position;i[s]=o;const a=o+1<<2,l=i.byteBuffer.write(e,a);return i[o]=l,Na&&Ma(i,i.byteBuffer,a,l),i.position=a+l+3>>2,i},byteBuffer:n,position:0,reserve(e){const s=t.position+e;if(s<=t.length)return t.position=s,t;const i=Ba(2*s);return n.copy(i.byteBuffer,0,0,t.position<<2),i.position=s,i},toOutput(){const e=t.position<<2,s=Buffer.allocUnsafeSlow(e);return n.copy(s,0,0,e),s},writeFloat64:Da})}const za=["PanicError","ParseError","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AssignmentExpression","AssignmentPattern","AwaitExpression","BinaryExpression","BlockStatement","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DebuggerStatement","Decorator","ExpressionStatement","DoWhileStatement","EmptyStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportSpecifier","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","ImportAttribute","ImportDeclaration","ImportDefaultSpecifier","ImportExpression","ImportNamespaceSpecifier","ImportSpecifier","JSXAttribute","JSXClosingElement","JSXClosingFragment","JSXElement","JSXEmptyExpression","JSXExpressionContainer","JSXFragment","JSXIdentifier","JSXMemberExpression","JSXNamespacedName","JSXOpeningElement","JSXOpeningFragment","JSXSpreadAttribute","JSXSpreadChild","JSXText","LabeledStatement","Literal","Literal","Literal","Literal","Literal","Literal","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","YieldExpression"];class Fa extends is{addExportedVariables(e,t){for(const n of this.elements)n?.addExportedVariables(e,t)}declare(e,t,n){const s=[],i=Va(t);for(const t of this.elements)null!==t&&s.push(...t.declare(e,i,n));return s}deoptimizeAssignment(e,t){const n=Va(e);for(const e of this.elements)e?.deoptimizeAssignment(n,t)}deoptimizePath(){for(const e of this.elements)e?.deoptimizePath(Le)}hasEffectsWhenDestructuring(e,t,n){const s=Va(t);for(const t of this.elements)if(t?.hasEffectsWhenDestructuring(e,s,n))return!0;return!1}hasEffectsOnInteractionAtPath(e,t,n){for(const e of this.elements)if(e?.hasEffectsOnInteractionAtPath(Le,t,n))return!0;return!1}includeDestructuredIfNecessary(e,t,n){let s=!1;const i=Va(t);for(const t of[...this.elements].reverse())t&&(s&&!t.included&&t.includeNode(e),s=t.includeDestructuredIfNecessary(e,i,n)||s);return!this.included&&s&&this.includeNode(e),this.included}render(e,t){let n=this.start+1;for(const s of this.elements)if(s){if(!s.included){e.remove(n,this.end-1);break}s.render(e,t),n=s.end}}setAssignedValue(e){super.setAssignedValue(e);for(const e of this.elements)e?.setAssignedValue(nt)}markDeclarationReached(){for(const e of this.elements)e?.markDeclarationReached()}}Fa.prototype.includeNode=rs;const Va=e=>e.at(-1)===Pe?e:[...e,$e];class ja extends is{addExportedVariables(e,t){for(const n of this.properties)n.type===Yn?n.value.addExportedVariables(e,t):n.argument.addExportedVariables(e,t)}declare(e,t,n){const s=[];for(const i of this.properties)s.push(...i.declare(e,t,n));return s}deoptimizeAssignment(e,t){for(const n of this.properties)n.deoptimizeAssignment(e,t)}deoptimizePath(e){if(0===e.length)for(const t of this.properties)t.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,t,n){for(const e of this.properties)if(e.hasEffectsOnInteractionAtPath(Le,t,n))return!0;return!1}hasEffectsWhenDestructuring(e,t,n){for(const s of this.properties)if(s.hasEffectsWhenDestructuring(e,t,n))return!0;return!1}includeDestructuredIfNecessary(e,t,n){if(!this.properties.length)return this.included;const s=this.properties.at(-1);let i=s.includeDestructuredIfNecessary(e,t,n);const r="RestElement"===s.type;for(const s of this.properties.slice(0,-1))r&&i&&!s.included&&s.includeNode(e),i=s.includeDestructuredIfNecessary(e,t,n)||i;return!this.included&&i&&this.includeNode(e),this.included}markDeclarationReached(){for(const e of this.properties)e.markDeclarationReached()}render(e,t){if(this.properties.length>0){const n=he(this.properties,e,this.start+1,this.end-1);let s=null;for(const{node:i,separator:r,start:o,end:a}of n)i.included?(s=r,i.render(e,t)):se(i,e,o,a);s&&e.remove(s,this.end-1)}}setAssignedValue(e){super.setAssignedValue(e);for(const e of this.properties)e.setAssignedValue(nt)}}ja.prototype.includeNode=os,ja.prototype.applyDeoptimizations=as;function Ua(e){if(e.scope.context.usesTopLevelAwait)return;let t=e.parent;for(;t;){const{type:e}=t;if(e===Fn||e===Hn||"FunctionDeclaration"===e)return;t=t.parent}e.scope.context.usesTopLevelAwait=!0}const Ga=["then"];function Ha(e){return void 0===e?"void 0":"boolean"==typeof e?String(e):"string"==typeof e?JSON.stringify(e):"number"==typeof e?function(e){if(Object.is(-0,e))return"-0";const t=e.toExponential(),[n,s]=t.split("e"),i=n.split(".")[1]?.length||0,r=`${n.replace(".","")}e${parseInt(s)-i}`,o=String(e).replace("+","");return r.length<o.length?r:o}(e):Ze}const Wa={"!=":(e,t)=>e!=t,"!==":(e,t)=>e!==t,"%":(e,t)=>e%t,"&":(e,t)=>e&t,"*":(e,t)=>e*t,"**":(e,t)=>e**t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"<":(e,t)=>e<t,"<<":(e,t)=>e<<t,"<=":(e,t)=>e<=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"^":(e,t)=>e^t,in:()=>Ze,instanceof:()=>Ze,"|":(e,t)=>e|t},qa=Symbol("Unassigned");class Ka extends is{constructor(){super(...arguments),this.renderedLiteralValue=qa}deoptimizeCache(){this.renderedLiteralValue=Ze}getLiteralValueAtPath(e,t,n){if(e.length>0)return Ze;const s=this.left.getLiteralValueAtPath(Le,t,n);if("symbol"==typeof s)return Ze;if("in"===this.operator&&"variable"in this.right&&this.right.variable instanceof Po){const[e]=this.right.variable.context.traceExport(String(s));return e instanceof xs||e instanceof $o?Ze:!!e}const i=this.right.getLiteralValueAtPath(Le,t,n);return"symbol"==typeof i?Ze:Wa[this.operator](s,i)}getRenderedLiteralValue(){return"in"===this.operator&&"variable"in this.right&&this.right.variable instanceof Po?this.renderedLiteralValue!==qa?this.renderedLiteralValue:this.renderedLiteralValue=Ha(this.getLiteralValueAtPath(Le,Ue,this)):Ze}hasEffects(e){return"+"===this.operator&&this.parent instanceof yr&&""===this.left.getLiteralValueAtPath(Le,Ue,this)||super.hasEffects(e)}hasEffectsOnInteractionAtPath(e,{type:t}){return 0!==t||e.length>1}include(e,t,n){this.included||this.includeNode(e),"symbol"==typeof this.getRenderedLiteralValue()&&(this.left.include(e,t,n),this.right.include(e,t,n),"instanceof"===this.operator&&this.right.includePath(Fe,e))}includeNode(e){this.included=!0,"in"===this.operator&&"symbol"==typeof this.getRenderedLiteralValue()&&this.right.includePath(Te,e)}removeAnnotations(e){this.left.removeAnnotations(e)}render(e,t,{renderedSurroundingElement:n}=ye){const s=this.getRenderedLiteralValue();"symbol"!=typeof s?e.overwrite(this.start,this.end,s):(this.left.render(e,t,{renderedSurroundingElement:n}),this.right.render(e,t))}}Ka.prototype.applyDeoptimizations=as;class Xa extends is{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name)}else{if(!e.ignore.breaks)return!0;e.hasBreak=!0}return e.brokenFlow=!0,!1}include(e,t){this.included=!0,this.label?(this.label.include(e,t),e.includedLabels.add(this.label.name)):e.hasBreak=!0,e.brokenFlow=!0}}function Ja(e,t,n){if(n.arguments.length>0)if(n.arguments[n.arguments.length-1].included)for(const s of n.arguments)s.render(e,t);else{let s=n.arguments.length-2;for(;s>=0&&!n.arguments[s].included;)s--;if(s>=0){for(let i=0;i<=s;i++)n.arguments[i].render(e,t);e.remove(re(e.original,",",n.arguments[s].end),n.end-1)}else e.remove(re(e.original,"(",n.callee.end)+1,n.end-1)}}Xa.prototype.includeNode=os,Xa.prototype.applyDeoptimizations=as;class Ya extends is{constructor(){super(...arguments),this.returnExpression=null,this.deoptimizableDependentExpressions=[],this.expressionsToBeDeoptimized=new Set}deoptimizeArgumentsOnInteractionAtPath(e,t,n){const{args:s}=e,[i,r]=this.getReturnExpression(n);if(r)return;const o=s.filter(e=>!!e&&e!==nt);if(0!==o.length)if(i===nt)for(const e of o)e.deoptimizePath(Te);else n.withTrackedEntityAtPath(t,i,()=>{for(const e of o)this.expressionsToBeDeoptimized.add(e);i.deoptimizeArgumentsOnInteractionAtPath(e,t,n)},null)}deoptimizeCache(){if(this.returnExpression?.[0]!==nt){this.returnExpression=st;const{deoptimizableDependentExpressions:e,expressionsToBeDeoptimized:t}=this;this.expressionsToBeDeoptimized=xe,this.deoptimizableDependentExpressions=Ee;for(const t of e)t.deoptimizeCache();for(const e of t)e.deoptimizePath(Te)}}deoptimizePath(e){if(0===e.length||this.scope.context.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(e,this))return;const[t]=this.getReturnExpression();t!==nt&&t.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){const[s]=this.getReturnExpression(t);return s===nt?Ze:t.withTrackedEntityAtPath(e,s,()=>(this.deoptimizableDependentExpressions.push(n),s.getLiteralValueAtPath(e,t,n)),Ze)}getReturnExpressionWhenCalledAtPath(e,t,n,s){const i=this.getReturnExpression(n);return i[0]===nt?i:n.withTrackedEntityAtPath(e,i,()=>{this.deoptimizableDependentExpressions.push(s);const[r,o]=i[0].getReturnExpressionWhenCalledAtPath(e,t,n,s);return[r,o||i[1]]},st)}hasEffectsOnInteractionAtPath(e,t,n){const{type:s}=t;if(2===s){const{args:s,withNew:i}=t;if((i?n.instantiated:n.called).trackEntityAtPathAndGetIfTracked(e,s,this))return!1}else if((1===s?n.assigned:n.accessed).trackEntityAtPathAndGetIfTracked(e,this))return!1;const[i,r]=this.getReturnExpression();return(1===s||!r)&&i.hasEffectsOnInteractionAtPath(e,t,n)}includeCallArgumentsWhenCalledAtPath(e,t,n){const[s,i]=this.getReturnExpression();i||s===nt||n.includedCallArguments.has(s)?rt(t,n):(n.includedCallArguments.add(s),s.includeCallArgumentsWhenCalledAtPath(e,t,n),n.includedCallArguments.delete(s))}}class Za extends is{createScope(e){this.scope=new pr(e,!0)}}Za.prototype.preventChildBlockScope=!0,Za.prototype.includeNode=rs;class Qa extends is{deoptimizeCache(){}getLiteralValueAtPath(e,t,n){const s=this.expression.getLiteralValueAtPathAsChainElement(e,t,n);return s===ss?void 0:s}hasEffects(e){return!0===this.expression.hasEffectsAsChainElement(e)}includePath(e,t){this.included=!0,this.expression.includePath(e,t)}removeAnnotations(e){this.expression.removeAnnotations(e)}}Qa.prototype.includeNode=os,Qa.prototype.applyDeoptimizations=as;class el extends ms{constructor(e,t){const{context:n}=e;super(e,n),this.variables.set("this",this.thisVariable=new ps("this",null,t,Le,n,"other")),this.instanceScope=new ms(this,n),this.instanceThisVariable=new cr(n),this.instanceScope.variables.set("this",this.instanceThisVariable)}findLexicalBoundary(){return this}}class tl extends is{createScope(e){this.scope=new el(e,this.parent)}include(e,t){this.included=!0,this.scope.context.includeVariableInModule(this.scope.thisVariable,Te,e);for(const n of this.body)n.include(e,t)}}tl.prototype.includeNode=os,tl.prototype.applyDeoptimizations=as;class nl extends er{render(e,t,{renderedSurroundingElement:n}=ye){super.render(e,t),n===Gn&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}}function sl(e){return"symbol"==typeof e?e!==et&&(e===Qe||Ze):!!e}class il extends tt{constructor(e){super(),this.expressions=e}deoptimizePath(e){for(const t of this.expressions)t.deoptimizePath(e)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return[new il(this.expressions.map(i=>i.getReturnExpressionWhenCalledAtPath(e,t,n,s)[0])),!1]}hasEffectsOnInteractionAtPath(e,t,n){for(const s of this.expressions)if(s.hasEffectsOnInteractionAtPath(e,t,n))return!0;return!1}}class rl extends is{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.usedBranch=null}get isBranchResolutionAnalysed(){return Je(this.flags,65536)}set isBranchResolutionAnalysed(e){this.flags=Ye(this.flags,65536,e)}get hasDeoptimizedCache(){return Je(this.flags,33554432)}set hasDeoptimizedCache(e){this.flags=Ye(this.flags,33554432,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.consequent.deoptimizeArgumentsOnInteractionAtPath(e,t,n),this.alternate.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeCache(){if(!this.hasDeoptimizedCache&&(this.hasDeoptimizedCache=!0,null!==this.usedBranch)){const e=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null,e.deoptimizePath(Te),this.included&&e.includePath(Te,es());const{expressionsToBeDeoptimized:t}=this;this.expressionsToBeDeoptimized=Ee;for(const e of t)e.deoptimizeCache()}}deoptimizePath(e){const t=this.getUsedBranch();t?t.deoptimizePath(e):(this.consequent.deoptimizePath(e),this.alternate.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){const s=this.getUsedBranch();if(!s){if(this.hasDeoptimizedCache)return Ze;const s=this.consequent.getLiteralValueAtPath(e,t,n),i=sl(s);if(i===Ze)return Ze;const r=this.alternate.getLiteralValueAtPath(e,t,n);return i!==sl(r)?Ze:(this.expressionsToBeDeoptimized.push(n),s!==r?i?Qe:et:s)}return this.expressionsToBeDeoptimized.push(n),s.getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){const i=this.getUsedBranch();return i?(this.expressionsToBeDeoptimized.push(s),i.getReturnExpressionWhenCalledAtPath(e,t,n,s)):[new il([this.consequent.getReturnExpressionWhenCalledAtPath(e,t,n,s)[0],this.alternate.getReturnExpressionWhenCalledAtPath(e,t,n,s)[0]]),!1]}hasEffects(e){if(this.test.hasEffects(e))return!0;const t=this.getUsedBranch();return t?t.hasEffects(e):this.consequent.hasEffects(e)||this.alternate.hasEffects(e)}hasEffectsOnInteractionAtPath(e,t,n){const s=this.getUsedBranch();return s?s.hasEffectsOnInteractionAtPath(e,t,n):this.consequent.hasEffectsOnInteractionAtPath(e,t,n)||this.alternate.hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included=!0;const n=this.getUsedBranch();null===n||t||this.test.shouldBeIncluded(e)?(this.test.include(e,t),this.consequent.include(e,t),this.alternate.include(e,t)):n.include(e,t)}includePath(e,t){this.included=!0;const n=this.getUsedBranch();null===n||this.test.shouldBeIncluded(t)?(this.consequent.includePath(e,t),this.alternate.includePath(e,t)):n.includePath(e,t)}includeCallArgumentsWhenCalledAtPath(e,t,n){if(0===e.length){const e=this.getUsedBranch();e?e.includeCallArgumentsWhenCalledAtPath(Le,t,n):(this.consequent.includeCallArgumentsWhenCalledAtPath(Le,t,n),this.alternate.includeCallArgumentsWhenCalledAtPath(Le,t,n))}else rt(t,n)}removeAnnotations(e){this.test.removeAnnotations(e)}render(e,t,{isCalleeOfRenderedParent:n,preventASI:s,renderedParentType:i,renderedSurroundingElement:r}=ye){if(this.test.included)this.test.render(e,t,{renderedSurroundingElement:r}),this.consequent.render(e,t),this.alternate.render(e,t);else{const o=this.getUsedBranch(),a=re(e.original,":",this.consequent.end),l=ae(e.original,(this.consequent.included?re(e.original,"?",this.test.end):a)+1);s&&pe(e,l,o.start),e.remove(this.start,l),this.consequent.included&&e.remove(a,this.end),this.test.removeAnnotations(e),o.render(e,t,{isCalleeOfRenderedParent:n,preventASI:!0,renderedParentType:i||this.parent.type,renderedSurroundingElement:r||this.parent.type})}}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;const e=sl(this.test.getLiteralValueAtPath(Le,Ue,this));return"symbol"==typeof e?null:this.usedBranch=e?this.consequent:this.alternate}}rl.prototype.includeNode=os,rl.prototype.applyDeoptimizations=as;class ol extends is{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name)}else{if(!e.ignore.continues)return!0;e.hasContinue=!0}return e.brokenFlow=!0,!1}include(e,t){this.included=!0,this.label?(this.label.include(e,t),e.includedLabels.add(this.label.name)):e.hasContinue=!0,e.brokenFlow=!0}}ol.prototype.includeNode=os,ol.prototype.applyDeoptimizations=as;class al extends is{hasEffects(){return!0}}al.prototype.includeNode=rs;class ll extends is{hasEffects(e){return this.expression.hasEffects(e)||this.expression.hasEffectsOnInteractionAtPath(Le,ct,e)}}function cl(e,t){const{brokenFlow:n,hasBreak:s,hasContinue:i,ignore:r}=e,{breaks:o,continues:a}=r;return r.breaks=!0,r.continues=!0,e.hasBreak=!1,e.hasContinue=!1,!!t.hasEffects(e)||(r.breaks=o,r.continues=a,e.hasBreak=s,e.hasContinue=i,e.brokenFlow=n,!1)}function ul(e,t,n){const{brokenFlow:s,hasBreak:i,hasContinue:r}=e;e.hasBreak=!1,e.hasContinue=!1,t.include(e,n,{asSingleStatement:!0}),e.hasBreak=i,e.hasContinue=r,e.brokenFlow=s}ll.prototype.includeNode=rs;class dl extends is{hasEffects(e){return!!this.test.hasEffects(e)||cl(e,this.body)}include(e,t){this.included=!0,this.test.include(e,t),ul(e,this.body,t)}}dl.prototype.includeNode=os,dl.prototype.applyDeoptimizations=as;class hl extends is{hasEffects(){return!1}}hl.prototype.includeNode=rs;class pl extends is{hasEffects(){return!1}initialise(){super.initialise(),this.scope.context.addExport(this)}render(e,t,n){e.remove(n.start,n.end)}}pl.prototype.needsBoundaries=!0,pl.prototype.includeNode=os,pl.prototype.applyDeoptimizations=as;class fl extends is{bind(){this.declaration?.bind()}hasEffects(e){return!!this.declaration?.hasEffects(e)}initialise(){super.initialise(),this.scope.context.addExport(this)}removeAnnotations(e){this.declaration?.removeAnnotations(e)}render(e,t,n){const{start:s,end:i}=n;if(null===this.declaration)e.remove(s,i);else{let n=this.declaration.start;if(this.declaration instanceof tr){const e=this.declaration.decorators;for(const t of e)n=Math.min(n,t.start);n<=this.start&&(n=this.declaration.start)}e.remove(this.start,n),this.declaration.render(e,t,{end:i,start:s})}}}fl.prototype.needsBoundaries=!0,fl.prototype.includeNode=os,fl.prototype.applyDeoptimizations=as;class ml extends is{}ml.prototype.includeNode=os,ml.prototype.applyDeoptimizations=as;class gl extends is{createScope(e){this.scope=new gr(e)}hasEffects(e){return!!(this.init?.hasEffects(e)||this.test?.hasEffects(e)||this.update?.hasEffects(e))||cl(e,this.body)}include(e,t){this.included=!0,this.init?.include(e,t,{asSingleStatement:!0}),this.test?.include(e,t),this.update?.include(e,t),ul(e,this.body,t)}render(e,t){this.init?.render(e,t,ie),this.test?.render(e,t,ie),this.update?.render(e,t,ie),this.body.render(e,t)}}gl.prototype.includeNode=os,gl.prototype.applyDeoptimizations=as;const yl=Symbol("unset");class bl extends is{constructor(){super(...arguments),this.testValue=yl}deoptimizeCache(){this.testValue=Ze}hasEffects(e){if(this.test.hasEffects(e))return!0;const t=this.getTestValue();if("symbol"==typeof t){const{brokenFlow:t}=e;if(this.consequent.hasEffects(e))return!0;const n=e.brokenFlow;return e.brokenFlow=t,null===this.alternate?!1:!!this.alternate.hasEffects(e)||(e.brokenFlow=e.brokenFlow&&n,!1)}return t?this.consequent.hasEffects(e):!!this.alternate?.hasEffects(e)}include(e,t){if(this.included=!0,t)this.includeRecursively(t,e);else{const t=this.getTestValue();"symbol"==typeof t?this.includeUnknownTest(e):this.includeKnownTest(e,t)}}render(e,t){const{snippets:{getPropertyAccess:n}}=t,s=this.getTestValue(),i=[],r=this.test.included,o=!this.scope.context.options.treeshake;r?this.test.render(e,t):e.remove(this.start,this.consequent.start),this.consequent.included&&(o||"symbol"==typeof s||s)?this.consequent.render(e,t):(e.overwrite(this.consequent.start,this.consequent.end,r?";":""),i.push(...this.consequentScope.hoistedDeclarations)),this.alternate&&(!this.alternate.included||!o&&"symbol"!=typeof s&&s?(r&&this.shouldKeepAlternateBranch()?e.overwrite(this.alternate.start,this.end,";"):e.remove(this.consequent.end,this.end),i.push(...this.alternateScope.hoistedDeclarations)):(r?101===e.original.charCodeAt(this.alternate.start-1)&&e.prependLeft(this.alternate.start," "):e.remove(this.consequent.end,this.alternate.start),this.alternate.render(e,t))),this.renderHoistedDeclarations(i,e,n)}getTestValue(){return this.testValue===yl?this.testValue=sl(this.test.getLiteralValueAtPath(Le,Ue,this)):this.testValue}includeKnownTest(e,t){this.test.shouldBeIncluded(e)&&this.test.include(e,!1),t&&this.consequent.shouldBeIncluded(e)&&this.consequent.include(e,!1,{asSingleStatement:!0}),!t&&this.alternate?.shouldBeIncluded(e)&&this.alternate.include(e,!1,{asSingleStatement:!0})}includeRecursively(e,t){this.test.include(t,e),this.consequent.include(t,e),this.alternate?.include(t,e)}includeUnknownTest(e){this.test.include(e,!1);const{brokenFlow:t}=e;let n=!1;this.consequent.shouldBeIncluded(e)&&(this.consequent.include(e,!1,{asSingleStatement:!0}),n=e.brokenFlow,e.brokenFlow=t),this.alternate?.shouldBeIncluded(e)&&(this.alternate.include(e,!1,{asSingleStatement:!0}),e.brokenFlow=e.brokenFlow&&n)}renderHoistedDeclarations(e,t,n){const s=[...new Set(e.map(e=>{const t=e.variable;return t.included?t.getName(n):""}))].filter(Boolean).join(", ");if(s){const e=this.parent.type,n=e!==Jn&&e!==Vn;t.prependRight(this.start,`${n?"{ ":""}var ${s}; `),n&&t.appendLeft(this.end," }")}}shouldKeepAlternateBranch(){let e=this.parent;do{if("IfStatement"===e.type&&e.alternate)return!0;if(e.type===Vn)return!1;e=e.parent}while(e);return!1}}bl.prototype.includeNode=os,bl.prototype.applyDeoptimizations=as;class El extends is{bind(){}hasEffects(){return!1}initialise(){super.initialise(),this.scope.context.addImport(this)}render(e,t,n){e.remove(n.start,n.end)}}El.prototype.needsBoundaries=!0,El.prototype.includeNode=os,El.prototype.applyDeoptimizations=as;class xl extends is{}xl.prototype.includeNode=os,xl.prototype.applyDeoptimizations=as;class vl{constructor(e){this.interaction={args:[null,e],type:2,withNew:!1}}deoptimizeArgumentsOnInteractionAtPath(e,t,n){it(e),2===e.type&&0===t.length&&(cs(e.args[1])||ls(e.args[1]))&&e.args[1].deoptimizeArgumentsOnInteractionAtPath(this.interaction,[],n)}includeCallArguments(e,t){ot(e,t),2===e.type&&(cs(e.args[1])||ls(e.args[1]))&&e.args[1].includeCallArgumentsWhenCalledAtPath(Le,this.interaction,t)}}class Al{deoptimizeArgumentsOnInteractionAtPath(e){it(e)}includeCallArguments(e,t){ot(e,t)}}function Sl(e){return{fileName:e.getFileName(),...e.getPreRenderedChunkInfo()}}class Pl extends is{constructor(){super(...arguments),this.inlineNamespace=null,this.resolution=null,this.attributes=null,this.mechanism=null,this.namespaceExportName=void 0,this.localResolution=null,this.resolutionString=null}get shouldIncludeDynamicAttributes(){return Je(this.flags,268435456)}set shouldIncludeDynamicAttributes(e){this.flags=Ye(this.flags,268435456,e)}bind(){const{options:e,parent:t,resolution:n,source:s}=this;if(s.bind(),e?.bind(),"object"!=typeof n||!n||!("namespace"in n))return;if(t.type===Gn||"AwaitExpression"===t.type)return void(this.localResolution={resolution:n,tracked:!0});if(t.type!==qn)return void(this.localResolution={resolution:n,tracked:!1});let i=t,r=this;for(;!i.computed&&i.object===r&&i.property.type===Wn&&i.parent.type===jn;){const e=i.property.name;if(r=i.parent,"then"===e){const e=r.arguments[0];if(void 0===e||e.type===Hn||e.type===Fn)return i.promiseHandler=new vl(wo(n.namespace)),void(this.localResolution={resolution:n,tracked:!0})}else if("catch"===e||"finally"===e){if(r.parent.type===qn){i.promiseHandler=new Al,i=r.parent;continue}if(r.parent.type===Gn)return i.promiseHandler=new Al,void(this.localResolution={resolution:n,tracked:!0})}break}this.localResolution={resolution:n,tracked:!1}}deoptimizePath(e){this.localResolution?.resolution?.namespace.deoptimizePath(e)}hasEffects(){return!0}include(e,t){this.included||this.includeNode(e),this.source.include(e,t),this.shouldIncludeDynamicAttributes&&this.options?.include(e,t),t&&this.localResolution?.resolution.includeAllExports()}includeNode(e){this.included=!0;const{localResolution:t,scope:n,shouldIncludeDynamicAttributes:s}=this;s&&this.options?.includePath(Te,e),n.context.includeDynamicImport(this),n.addAccessedDynamicImport(this),t&&(t.tracked?t.resolution.includeModuleInExecution():t.resolution.includeAllExports())}includePath(e,t){this.included||this.includeNode(t),this.localResolution?.resolution?.namespace.includeMemberPath(e,t)}initialise(){super.initialise(),this.scope.context.addDynamicImport(this)}render(e,t){const{snippets:{_:n,getDirectReturnFunction:s,getObject:i,getPropertyAccess:r},importAttributesKey:o}=t;if(this.inlineNamespace){const[t,n]=s([],{functionReturn:!0,lineBreakIndent:null,name:null});return void e.overwrite(this.start,this.end,`Promise.resolve().then(${t}${this.inlineNamespace.getName(r)}${n})`)}if(this.mechanism&&(e.overwrite(this.start,re(e.original,"(",this.start+6)+1,this.mechanism.left),e.overwrite(this.end-1,this.end,this.mechanism.right)),this.resolutionString){if(e.overwrite(this.source.start,this.source.end,this.resolutionString),this.namespaceExportName){const[t,n]=s(["n"],{functionReturn:!0,lineBreakIndent:null,name:null});e.prependLeft(this.end,`.then(${t}n.${this.namespaceExportName}${n})`)}}else this.source.render(e,t);!0!==this.attributes&&(this.options&&e.overwrite(this.source.end,this.end-1,"",{contentOnly:!0}),this.attributes&&e.appendLeft(this.end-1,`,${n}${i([[o,this.attributes]],{lineBreakIndent:null})}`))}setExternalResolution(e,t,n,s,i,r,o,a,l,c){const{format:u}=t;this.inlineNamespace=null,this.resolutionString=r,this.namespaceExportName=o,this.attributes=a;const d=[...$l[u]||[]];let h;({helper:h,mechanism:this.mechanism}=this.getDynamicImportMechanismAndHelper(e,t,n,s,l,c)),h&&d.push(h),d.length>0&&this.scope.addAccessedGlobals(d,i)}setInternalResolution(e){this.inlineNamespace=e}getDynamicImportMechanismAndHelper(e,{compact:t,dynamicImportInCjs:n,format:s,generatedCode:{arrowFunctions:i},interop:r},{_:o,getDirectReturnFunction:a,getDirectReturnIifeLeft:l},c,u,d){const{resolution:h,scope:p}=this,f=c.hookFirstSync("renderDynamicImport",[{chunk:Sl(u),customResolution:"string"==typeof h?h:null,format:s,getTargetChunkImports(){if(null===d)return null;const e=[],t=u.getFileName();for(const n of d.dependencies){const s=`'${n.getImportPath(t)}'`;n instanceof Io?e.push({fileName:n.getFileName(),resolvedImportPath:s,type:"external"}):e.push({chunk:n.getPreRenderedChunkInfo(),fileName:n.getFileName(),resolvedImportPath:s,type:"internal"})}return e},moduleAttributes:p.context.module.info.attributes,moduleId:p.context.module.id,moduleRawId:p.context.module.rawId,targetChunk:d?Sl(d):null,targetModuleAttributes:h&&"string"!=typeof h?h.info.attributes:{},targetModuleId:h&&"string"!=typeof h?h.id:null,targetModuleRawId:h&&"string"!=typeof h?h.info.rawId:null}]);if(f)return{helper:null,mechanism:f};const m=!h||"string"==typeof h;switch(s){case"cjs":{if(n&&(!h||"string"==typeof h||h instanceof Ns))return{helper:null,mechanism:null};const t=wl(h,e,r);let s="require(",o=")";t&&(s=`/*#__PURE__*/${t}(${s}`,o+=")");const[c,u]=a([],{functionReturn:!0,lineBreakIndent:null,name:null});return s=`Promise.resolve().then(${c}${s}`,o+=`${u})`,!i&&m&&(s=l(["t"],`${s}t${o}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),o=")"),{helper:t,mechanism:{left:s,right:o}}}case"amd":{const n=t?"c":"resolve",s=t?"e":"reject",c=wl(h,e,r),[u,d]=a(["m"],{functionReturn:!1,lineBreakIndent:null,name:null}),p=c?`${u}${n}(/*#__PURE__*/${c}(m))${d}`:n,[f,g]=a([n,s],{functionReturn:!1,lineBreakIndent:null,name:null});let y=`new Promise(${f}require([`,b=`],${o}${p},${o}${s})${g})`;return!i&&m&&(y=l(["t"],`${y}t${b}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),b=")"),{helper:c,mechanism:{left:y,right:b}}}case"system":return{helper:null,mechanism:{left:"module.import(",right:")"}}}return{helper:null,mechanism:null}}}function wl(e,t,n){return"external"===t?Tr[n(e instanceof Ns?e.id:null)]:"default"===t?Rr:null}Pl.prototype.applyDeoptimizations=as;const $l={amd:["require"],cjs:["require"],system:["module"]};class Il extends is{}Il.prototype.includeNode=os,Il.prototype.applyDeoptimizations=as;class Cl extends is{}Cl.prototype.includeNode=os,Cl.prototype.applyDeoptimizations=as;class kl extends qi{constructor(){super(...arguments),this.isNativeElement=!1}bind(){const e=this.getType();0===e?(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)):1===e&&(this.isNativeElement=!0)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),null!==this.variable&&this.scope.context.includeVariableInModule(this.variable,Le,e)}includePath(e,t){this.included?e.length>0&&this.variable?.includePath(e,t):(this.included=!0,null!==this.variable&&this.scope.context.includeVariableInModule(this.variable,e,t))}render(e,{snippets:{getPropertyAccess:t},useOriginalName:n}){if(this.variable){const s=this.variable.getName(t,n);s!==this.name&&e.overwrite(this.start,this.end,s,{contentOnly:!0,storeName:!0})}else this.isNativeElement&&"preserve"!==this.scope.context.options.jsx.mode&&e.update(this.start,this.end,JSON.stringify(this.name))}getType(){switch(this.parent.type){case"JSXOpeningElement":case"JSXClosingElement":return this.name.startsWith(this.name.charAt(0).toUpperCase())?0:1;case"JSXMemberExpression":return this.parent.object===this?0:2;case"JSXAttribute":case"JSXNamespacedName":return 2;default:throw new Error(`Unexpected parent node type for JSXIdentifier: ${this.parent.type}`)}}}class Nl extends is{render(e,t,{jsxMode:n}=ye){if(super.render(e,t),["classic","automatic"].includes(n)){const{name:t,value:s}=this,i=t instanceof kl?t.name:`${t.namespace.name}:${t.name.name}`;if("automatic"!==n||"key"!==i){const n=Cs(i);i!==n&&e.overwrite(t.start,t.end,n,{contentOnly:!0}),s?e.overwrite(t.end,s.start,": ",{contentOnly:!0}):e.appendLeft(t.end,": true")}s instanceof to&&"string"==typeof s.value&&e.overwrite(s.start,s.end,JSON.stringify(s.value),{contentOnly:!0})}}}Nl.prototype.includeNode=rs;class Ol extends is{render(e,t){const{mode:n}=this.scope.context.options.jsx;"preserve"!==n?e.overwrite(this.start,this.end,")",{contentOnly:!0}):super.render(e,t)}}Ol.prototype.includeNode=rs;class Rl extends is{render(e,t){this.argument.render(e,t);const{mode:n}=this.scope.context.options.jsx;"preserve"!==n&&(e.overwrite(this.start,this.argument.start,"",{contentOnly:!0}),e.overwrite(this.argument.end,this.end,"",{contentOnly:!0}))}}class Dl extends is{}Dl.prototype.includeNode=rs;class Ml extends is{includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.expression.includePath(Te,e)}render(e,t){const{mode:n}=this.scope.context.options.jsx;"preserve"!==n&&(e.remove(this.start,this.expression.start),e.remove(this.expression.end,this.end)),this.expression.render(e,t)}}const _l=/^[ \t]*\r?\n[ \t\r\n]*|[ \t]*\r?\n[ \t\r\n]*$/g,Ll=/[ \t]*\r?\n[ \t\r\n]*/g;class Tl extends is{shouldRender(){return!!this.getRenderedText()}render(e){const{mode:t}=this.scope.context.options.jsx;"preserve"!==t&&e.overwrite(this.start,this.end,JSON.stringify(this.getRenderedText()),{contentOnly:!0})}getRenderedText(){return void 0===this.renderedText&&(this.renderedText=this.value.replace(_l,"").replace(Ll," ")),this.renderedText}}function Bl(e){let t=0;for(const n of e)n instanceof Ml&&n.expression instanceof Dl||n instanceof Tl&&!n.shouldRender()||t++;return t}function zl(e,t,n,s,i){const[r,o]=e.split(".");let a;if(n){if(a=s.scope.context.getImportedJsxFactoryVariable(o?"default":r,s.start,n),t){s.scope.findGlobal(r).includePath(Te,i),a.globalName=r}}else a=s.scope.findGlobal(r);return s.scope.context.includeVariableInModule(a,Te,i),a instanceof ps&&(a.consolidateInitializers(),a.addUsedPlace(s),s.scope.context.requestTreeshakingPass()),a}Tl.prototype.includeNode=rs;class Fl extends is{constructor(){super(...arguments),this.factoryVariable=null,this.factory=null}initialise(){super.initialise();const{importSource:e}=this.jsxMode=this.getRenderingMode();e&&this.scope.context.addImportSource(e)}include(e,t){this.included||this.includeNode(e);for(const n of this.children)n.include(e,t)}includeNode(e){this.included=!0;const{factory:t,importSource:n,mode:s}=this.jsxMode;t&&(this.factory=t,this.factoryVariable=zl(t,"preserve"===s,n,this,e))}getRenderingMode(){const e=this.scope.context.options.jsx,{mode:t,factory:n,importSource:s}=e;return"automatic"===t?{factory:Bl(this.children)>1?"jsxs":"jsx",importSource:e.jsxImportSource,mode:t}:{factory:n,importSource:s,mode:t}}renderChildren(e,t,n){const{children:s}=this;let i=!1,r=n,o=null;for(const n of s)n instanceof Ml&&n.expression instanceof Dl||n instanceof Tl&&!n.shouldRender()?e.remove(r,n.end):(e.appendLeft(r,", "),n.render(e,t),o?i=!0:o=n),r=n.end;return{childrenEnd:r,firstChild:o,hasMultipleChildren:i}}}Fl.prototype.applyDeoptimizations=as;class Vl extends is{}Vl.prototype.includeNode=rs;class jl extends is{render(e,t,{jsxMode:n=this.scope.context.options.jsx.mode}={}){this.name.render(e,t);for(const s of this.attributes)s.render(e,t,{jsxMode:n})}}jl.prototype.includeNode=rs;class Ul extends is{hasEffects(e){const{brokenFlow:t,includedLabels:n}=e;e.ignore.labels.add(this.label.name),e.includedLabels=new Set;let s=!1;return this.body.hasEffects(e)?s=!0:(e.ignore.labels.delete(this.label.name),e.includedLabels.has(this.label.name)&&(e.includedLabels.delete(this.label.name),e.brokenFlow=t)),e.includedLabels=new Set([...n,...e.includedLabels]),s}include(e,t){this.included||this.includeNode(e);const{brokenFlow:n,includedLabels:s}=e;e.includedLabels=new Set,this.body.include(e,t),(t||e.includedLabels.has(this.label.name))&&(this.label.include(e,t),e.includedLabels.delete(this.label.name),e.brokenFlow=n),e.includedLabels=new Set([...s,...e.includedLabels])}includeNode(e){this.included=!0,this.body.includePath(Te,e)}render(e,t){this.label.included?this.label.render(e,t):e.remove(this.start,ae(e.original,re(e.original,":",this.label.end)+1)),this.body.render(e,t)}}Ul.prototype.applyDeoptimizations=as;class Gl extends is{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.usedBranch=null}get isBranchResolutionAnalysed(){return Je(this.flags,65536)}set isBranchResolutionAnalysed(e){this.flags=Ye(this.flags,65536,e)}get hasDeoptimizedCache(){return Je(this.flags,33554432)}set hasDeoptimizedCache(e){this.flags=Ye(this.flags,33554432,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.left.deoptimizeArgumentsOnInteractionAtPath(e,t,n),this.right.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeCache(){if(this.hasDeoptimizedCache)return;if(this.hasDeoptimizedCache=!0,this.usedBranch){const e=this.usedBranch===this.left?this.right:this.left;this.usedBranch=null,e.deoptimizePath(Te),this.included&&e.includePath(Te,es())}const{scope:{context:e},expressionsToBeDeoptimized:t}=this;this.expressionsToBeDeoptimized=Ee;for(const e of t)e.deoptimizeCache();e.requestTreeshakingPass()}deoptimizePath(e){const t=this.getUsedBranch();t?t.deoptimizePath(e):(this.left.deoptimizePath(e),this.right.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){if(n===this)return Ze;const s=this.getUsedBranch();if(s)return this.expressionsToBeDeoptimized.push(n),s.getLiteralValueAtPath(e,t,n);if(!this.hasDeoptimizedCache&&!e.length){const s=sl(this.right.getLiteralValueAtPath(e,t,n));if("symbol"!=typeof s){if(!s&&"&&"===this.operator)return this.expressionsToBeDeoptimized.push(n),et;if(s&&"||"===this.operator)return this.expressionsToBeDeoptimized.push(n),Qe}}return Ze}getReturnExpressionWhenCalledAtPath(e,t,n,s){const i=this.getUsedBranch();return i?(this.expressionsToBeDeoptimized.push(s),i.getReturnExpressionWhenCalledAtPath(e,t,n,s)):[new il([this.left.getReturnExpressionWhenCalledAtPath(e,t,n,s)[0],this.right.getReturnExpressionWhenCalledAtPath(e,t,n,s)[0]]),!1]}hasEffects(e){return!!this.left.hasEffects(e)||this.getUsedBranch()!==this.left&&this.right.hasEffects(e)}hasEffectsOnInteractionAtPath(e,t,n){const s=this.getUsedBranch();return s?s.hasEffectsOnInteractionAtPath(e,t,n):this.left.hasEffectsOnInteractionAtPath(e,t,n)||this.right.hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included=!0;const n=this.getUsedBranch();t||!n||n===this.right&&this.left.shouldBeIncluded(e)?(this.left.include(e,t),this.right.include(e,t)):n.include(e,t)}includePath(e,t){this.included=!0;const n=this.getUsedBranch();!n||n===this.right&&this.left.shouldBeIncluded(t)?(this.left.includePath(e,t),this.right.includePath(e,t)):n.includePath(e,t)}removeAnnotations(e){this.left.removeAnnotations(e)}render(e,t,{isCalleeOfRenderedParent:n,preventASI:s,renderedParentType:i,renderedSurroundingElement:r}=ye){if(this.left.included&&this.right.included)this.left.render(e,t,{preventASI:s,renderedSurroundingElement:r}),this.right.render(e,t);else{const o=re(e.original,this.operator,this.left.end);if(this.right.included){const t=ae(e.original,o+2);e.remove(this.start,t),s&&pe(e,t,this.right.start),this.left.removeAnnotations(e)}else e.remove(function(e,t,n){for(;;){if(t>=n)return n;if(!le.test(e[n-1]))return n;n--}}(e.original,this.left.end,o),this.end);this.getUsedBranch().render(e,t,{isCalleeOfRenderedParent:n,preventASI:s,renderedParentType:i||this.parent.type,renderedSurroundingElement:r||this.parent.type})}}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;const e=this.left.getLiteralValueAtPath(Le,Ue,this),t=sl(e);if("symbol"==typeof t||"??"===this.operator&&"symbol"==typeof e)return null;this.usedBranch="||"===this.operator&&t||"&&"===this.operator&&!t||"??"===this.operator&&null!=e?this.left:this.right}return this.usedBranch}}Gl.prototype.includeNode=os,Gl.prototype.applyDeoptimizations=as;class Hl extends is{constructor(){super(...arguments),this.objectEntity=null,this.protoProp=null}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getKnownFunctionAtPath(e,t,n){return this.getObjectEntity().getKnownFunctionAtPath(e,t,n)}getLiteralValueAtPath(e,t,n){return this.getObjectEntity().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,s){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,t,n,s)}hasEffectsOnInteractionAtPath(e,t,n){return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included||this.includeNode(e),this.getObjectEntity().include(e,t),this.protoProp?.include(e,t)}includeNode(e){this.included=!0,this.protoProp?.includePath(Te,e)}includePath(e,t){this.included||this.includeNode(t),this.getObjectEntity().includePath(e,t)}includeCallArgumentsWhenCalledAtPath(e,t,n){this.getObjectEntity().includeCallArgumentsWhenCalledAtPath(e,t,n)}render(e,t,{renderedSurroundingElement:n}=ye){if(n!==Gn&&n!==Fn||(e.appendRight(this.start,"("),e.prependLeft(this.end,")")),this.properties.length>0){const n=he(this.properties,e,this.start+1,this.end-1);let s=null;for(const{node:i,separator:r,start:o,end:a}of n)i.included?(s=r,i.render(e,t)):se(i,e,o,a);s&&e.remove(s,this.end-1)}}getObjectEntity(){if(null!==this.objectEntity)return this.objectEntity;let e=ri;const t=[];for(const n of this.properties){if(n instanceof vi){t.push({key:Pe,kind:"init",property:n});continue}let s;if(n.computed){const e=n.key.getLiteralValueAtPath(Le,Ue,this);if("symbol"==typeof e){t.push({key:De(e)?e:Pe,kind:n.kind,property:n});continue}s=String(e)}else if(s=n.key instanceof Ji?n.key.name:String(n.key.value),"__proto__"===s&&"init"===n.kind){this.protoProp=n,e=n.value instanceof to&&null===n.value.value?null:n.value;continue}t.push({key:s,kind:n.kind,property:n})}return this.objectEntity=new ni(t,e)}}Hl.prototype.applyDeoptimizations=as;class Wl extends is{}Wl.prototype.includeNode=rs;class ql extends is{constructor(){super(...arguments),this.hasCachedEffect=null,this.hasLoggedEffect=!1}hasCachedEffects(){return!!this.included&&(null===this.hasCachedEffect?this.hasCachedEffect=this.hasEffects(ts()):this.hasCachedEffect)}hasEffects(e){for(const t of this.body)if(t.hasEffects(e)){if(this.scope.context.options.experimentalLogSideEffects&&!this.hasLoggedEffect){this.hasLoggedEffect=!0;const{code:e,log:n,module:s}=this.scope.context;n(xt,yn(e,s.id,ft(e,t.start,{offsetLine:1})),t.start)}return this.hasCachedEffect=!0}return!1}include(e,t){this.included=!0;for(const n of this.body)(t||n.shouldBeIncluded(e))&&n.include(e,t)}initialise(){if(super.initialise(),this.invalidAnnotations)for(const{start:e,end:t,type:n}of this.invalidAnnotations)this.scope.context.magicString.remove(e,t),"pure"!==n&&"noSideEffects"!==n||this.scope.context.log(Et,En(this.scope.context.code.slice(e,t),this.scope.context.module.id,n),e)}render(e,t){let n=this.start;if(e.original.startsWith("#!")&&(n=Math.min(e.original.indexOf("\n")+1,this.end),e.remove(0,n)),this.body.length>0){for(;"/"===e.original[n]&&/[*/]/.test(e.original[n+1]);){const t=ue(e.original.slice(n,this.body[0].start));if(-1===t[0])break;n+=t[1]}de(this.body,e,n,this.end,t)}else super.render(e,t)}}ql.prototype.includeNode=os,ql.prototype.applyDeoptimizations=as;class Kl extends Yi{get method(){return Je(this.flags,262144)}set method(e){this.flags=Ye(this.flags,262144,e)}get shorthand(){return Je(this.flags,524288)}set shorthand(e){this.flags=Ye(this.flags,524288,e)}declare(e,t,n){return this.value.declare(e,this.getPathInProperty(t),n)}deoptimizeAssignment(e,t){this.value.deoptimizeAssignment?.(this.getPathInProperty(e),t)}hasEffects(e){return this.key.hasEffects(e)||this.value.hasEffects(e)}hasEffectsWhenDestructuring(e,t,n){return this.value.hasEffectsWhenDestructuring?.(e,this.getPathInProperty(t),n)}includeDestructuredIfNecessary(e,t,n){const s=this.getPathInProperty(t);let i=this.value.includeDestructuredIfNecessary(e,s,n)||this.included;return(i||=this.key.hasEffects(ts()))&&(this.key.include(e,!1),this.value.included||(this.value.includeNode(e),this.value.includeDestructuredIfNecessary(e,s,n))),!this.included&&i&&this.includeNode(e),this.included}include(e,t){this.included=!0,this.key.include(e,t),this.value.include(e,t)}includePath(e,t){this.included=!0,this.value.includePath(e,t)}markDeclarationReached(){this.value.markDeclarationReached()}render(e,t){this.shorthand||this.key.render(e,t),this.value.render(e,t,{isShorthandProperty:this.shorthand})}setAssignedValue(e){this.value.setAssignedValue(e)}getPathInProperty(e){return e.at(-1)===Pe?e:this.computed?[...e,Pe]:this.key instanceof Ji?[...e,this.key.name]:[...e,String(this.key.value)]}}Kl.prototype.includeNode=os,Kl.prototype.applyDeoptimizations=as;class Xl extends is{constructor(){super(...arguments),this.declarationInit=null}addExportedVariables(e,t){this.argument.addExportedVariables(e,t)}declare(e,t,n){return this.declarationInit=n,this.argument.declare(e,Jl(t),n)}deoptimizeAssignment(e,t){this.argument.deoptimizeAssignment(Jl(e),t)}deoptimizePath(e){0===e.length&&this.argument.deoptimizePath(Le)}hasEffectsOnInteractionAtPath(e,t,n){return e.length>0||this.argument.hasEffectsOnInteractionAtPath(Le,t,n)}hasEffectsWhenDestructuring(e,t,n){return this.argument.hasEffectsWhenDestructuring(e,Jl(t),n)}includeDestructuredIfNecessary(e,t,n){const s=this.argument.includeDestructuredIfNecessary(e,Jl(t),n);return!this.included&&s&&this.includeNode(e),this.included}include(e,t){this.included||this.includeNode(e),this.argument.include(e,t)}markDeclarationReached(){this.argument.markDeclarationReached()}setAssignedValue(e){this.argument.setAssignedValue(e)}applyDeoptimizations(){this.deoptimized=!0,null!==this.declarationInit&&(this.declarationInit.deoptimizePath([Pe,Pe]),this.scope.context.requestTreeshakingPass())}}Xl.prototype.includeNode=rs;const Jl=e=>e.at(-1)===Pe?e:[...e,Pe];class Yl extends is{hasEffects(e){return!(e.ignore.returnYield&&!this.argument?.hasEffects(e))||(e.brokenFlow=!0,!1)}include(e,t){this.included||this.includeNode(e),this.argument?.include(e,t),e.brokenFlow=!0}includeNode(e){this.included=!0,this.argument?.includePath(Te,e)}initialise(){super.initialise(),this.scope.addReturnExpression(this.argument||nt)}render(e,t){this.argument&&(this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+6&&e.prependLeft(this.start+6," "))}}Yl.prototype.applyDeoptimizations=as;class Zl extends is{deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.expressions[this.expressions.length-1].deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.expressions[this.expressions.length-1].deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(e,t,n)}hasEffects(e){for(const t of this.expressions)if(t.hasEffects(e))return!0;return!1}hasEffectsOnInteractionAtPath(e,t,n){return this.expressions[this.expressions.length-1].hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included=!0;const n=this.expressions[this.expressions.length-1];for(const s of this.expressions)(t||s===n&&!(this.parent instanceof yr)||s.shouldBeIncluded(e))&&s.include(e,t)}includePath(e,t){this.included=!0,this.expressions[this.expressions.length-1].includePath(e,t)}removeAnnotations(e){this.expressions[0].removeAnnotations(e)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:s,preventASI:i}=ye){let r=0,o=null;const a=this.expressions[this.expressions.length-1];for(const{node:l,separator:c,start:u,end:d}of he(this.expressions,e,this.start,this.end))if(l.included)if(r++,o=c,1===r&&i&&pe(e,u,l.start),1===r){const i=n||this.parent.type;l.render(e,t,{isCalleeOfRenderedParent:s&&l===a,renderedParentType:i,renderedSurroundingElement:i})}else l.render(e,t);else se(l,e,u,d);o&&e.remove(o,this.end)}}Zl.prototype.includeNode=os,Zl.prototype.applyDeoptimizations=as;class Ql extends is{createScope(e){this.scope=new gr(e)}hasEffects(e){for(const t of this.body)if(t.hasEffects(e))return!0;return!1}include(e,t){this.included=!0;for(const n of this.body)(t||n.shouldBeIncluded(e))&&n.include(e,t)}render(e,t){if(this.body.length>0){const n=re(e.original.slice(this.start,this.end),"{")+1;de(this.body,e,this.start+n,this.end-1,t)}else super.render(e,t)}}Ql.prototype.includeNode=os,Ql.prototype.applyDeoptimizations=as;class ec extends is{hasEffects(e){if(this.test?.hasEffects(e))return!0;for(const t of this.consequent){if(e.brokenFlow)break;if(t.hasEffects(e))return!0}return!1}include(e,t){this.included=!0,this.test?.include(e,t);for(const n of this.consequent)(t||n.shouldBeIncluded(e))&&n.include(e,t)}render(e,t,n){if(this.test&&(this.test.render(e,t),this.test.start===this.start+4&&e.prependLeft(this.test.start," ")),this.consequent.length>0){const s=this.test?this.test.end:re(e.original,"default",this.start)+7,i=re(e.original,":",s)+1;de(this.consequent,e,i,n.end,t)}}}ec.prototype.needsBoundaries=!0,ec.prototype.includeNode=os,ec.prototype.applyDeoptimizations=as;class tc extends is{createScope(e){this.parentScope=e,this.scope=new gr(e)}hasEffects(e){if(this.discriminant.hasEffects(e))return!0;const{brokenFlow:t,hasBreak:n,ignore:s}=e,{breaks:i}=s;s.breaks=!0,e.hasBreak=!1;let r=!0;for(const n of this.cases){if(n.hasEffects(e))return!0;r&&=e.brokenFlow&&!e.hasBreak,e.hasBreak=!1,e.brokenFlow=t}return null!==this.defaultCase&&(e.brokenFlow=r),s.breaks=i,e.hasBreak=n,!1}include(e,t){this.included=!0,this.discriminant.include(e,t);const{brokenFlow:n,hasBreak:s}=e;e.hasBreak=!1;let i=!0,r=t||null!==this.defaultCase&&this.defaultCase<this.cases.length-1;for(let s=this.cases.length-1;s>=0;s--){const o=this.cases[s];if(o.included&&(r=!0),!r){const e=ts();e.ignore.breaks=!0,r=o.hasEffects(e)}r?(o.include(e,t),i&&=e.brokenFlow&&!e.hasBreak,e.hasBreak=!1,e.brokenFlow=n):i=n}r&&null!==this.defaultCase&&(e.brokenFlow=i),e.hasBreak=s}initialise(){super.initialise();for(let e=0;e<this.cases.length;e++)if(null===this.cases[e].test)return void(this.defaultCase=e);this.defaultCase=null}render(e,t){this.discriminant.render(e,t),this.cases.length>0&&de(this.cases,e,this.cases[0].start,this.end-1,t)}}tc.prototype.includeNode=os,tc.prototype.applyDeoptimizations=as;class nc extends Ya{get hasCheckedForWarnings(){return Je(this.flags,134217728)}set hasCheckedForWarnings(e){this.flags=Ye(this.flags,134217728,e)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const t of this.quasi.expressions)if(t.hasEffects(e))return!0;return this.tag.hasEffects(e)||this.tag.hasEffectsOnInteractionAtPath(Le,this.interaction,e)}include(e,t){this.included||this.includeNode(e),t?super.include(e,!0):(this.quasi.include(e,!1),this.tag.include(e,!1),this.tag.includeCallArgumentsWhenCalledAtPath(Le,this.interaction,e))}initialise(){super.initialise(),this.args=[nt,...this.quasi.expressions],this.interaction={args:[this.tag instanceof ro&&!this.tag.variable?this.tag.object:null,...this.args],type:2,withNew:!1}}render(e,t){if(this.tag.render(e,t,{isCalleeOfRenderedParent:!0}),this.quasi.render(e,t),!this.hasCheckedForWarnings&&this.tag.type===Wn){this.hasCheckedForWarnings=!0;const{name:e}=this.tag;this.scope.findVariable(e).isNamespace&&this.scope.context.log(Et,un(e),this.start)}}applyDeoptimizations(){this.deoptimized=!0,this.tag.deoptimizeArgumentsOnInteractionAtPath(this.interaction,Le,Ue),this.scope.context.requestTreeshakingPass()}getReturnExpression(e=Ue){return null===this.returnExpression?(this.returnExpression=st,this.returnExpression=this.tag.getReturnExpressionWhenCalledAtPath(Le,this.interaction,e,this)):this.returnExpression}}nc.prototype.includeNode=rs;class sc extends is{get tail(){return Je(this.flags,1048576)}set tail(e){this.flags=Ye(this.flags,1048576,e)}bind(){}hasEffects(){return!1}render(){}}sc.prototype.includeNode=rs;class ic extends ms{constructor(e,t,n){super(e,t),this.importDescriptions=n,this.variables.set("this",new ps("this",null,Ms,Le,t,"other"))}addDeclaration(e,t,n,s,i){return this.importDescriptions.has(e.name)&&t.error(On(e.name),e.start),super.addDeclaration(e,t,n,s,i)}addExportDefaultDeclaration(e,t){const n=new So(e,t);return this.variables.set("default",n),n}addNamespaceMemberAccess(){}deconflict(e,t,n){for(const s of this.children)s.deconflict(e,t,n)}findLexicalBoundary(){return this}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const n=this.context.traceVariable(e)||this.parent.findVariable(e);return n instanceof Hi&&this.accessedOutsideVariables.set(e,n),n}}class rc extends is{constructor(){super(...arguments),this.directlyIncluded=!1,this.includedLabelsAfterBlock=null}hasEffects(e){return(this.scope.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(e))||!!this.finalizer?.hasEffects(e)}include(e,t){const n=this.scope.context.options.treeshake?.tryCatchDeoptimization,{brokenFlow:s,includedLabels:i}=e;if(this.directlyIncluded&&n){if(this.includedLabelsAfterBlock)for(const e of this.includedLabelsAfterBlock)i.add(e)}else this.included=!0,this.directlyIncluded=!0,this.block.include(e,n?ns:t),i.size>0&&(this.includedLabelsAfterBlock=[...i]),e.brokenFlow=s;null!==this.handler&&(this.handler.include(e,t),e.brokenFlow=s),this.finalizer?.include(e,t)}}rc.prototype.includeNode=os,rc.prototype.applyDeoptimizations=as;const oc={"!":e=>!e,"+":e=>+e,"-":e=>-e,delete:()=>Ze,typeof:e=>typeof e,void:()=>{},"~":e=>~e},ac=Symbol("Unassigned");class lc extends is{constructor(){super(...arguments),this.renderedLiteralValue=ac}get prefix(){return Je(this.flags,2097152)}set prefix(e){this.flags=Ye(this.flags,2097152,e)}deoptimizeCache(){this.renderedLiteralValue=Ze}getLiteralValueAtPath(e,t,n){if(e.length>0)return Ze;const s=this.argument.getLiteralValueAtPath(Le,t,n);if("symbol"==typeof s){if("void"===this.operator)return;if("!"===this.operator){if(s===et)return!0;if(s===Qe)return!1}return Ze}return oc[this.operator](s)}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!("typeof"===this.operator&&this.argument instanceof Ji)&&(this.argument.hasEffects(e)||"delete"===this.operator&&this.argument.hasEffectsOnInteractionAtPath(Le,lt,e))}hasEffectsOnInteractionAtPath(e,{type:t}){return 0!==t||e.length>("void"===this.operator?0:1)}applyDeoptimizations(){this.deoptimized=!0,"delete"===this.operator&&(this.argument.deoptimizePath(Le),this.scope.context.requestTreeshakingPass())}getRenderedLiteralValue(e){return this.renderedLiteralValue!==ac?this.renderedLiteralValue:this.renderedLiteralValue=e?Ze:Ha(this.getLiteralValueAtPath(Le,Ue,this))}include(e,t,n){this.deoptimized||this.applyDeoptimizations(),this.included=!0;const s=this.argument instanceof Ji&&this.argument.variable?.included;("symbol"==typeof this.getRenderedLiteralValue(t)||this.argument.shouldBeIncluded(e)||s)&&(this.argument.include(e,t),this.renderedLiteralValue=Ze)}render(e,t){if("symbol"==typeof this.renderedLiteralValue)super.render(e,t);else{let t=this.renderedLiteralValue;cc.test(e.original[this.start-1])||(t=` ${t}`),e.overwrite(this.start,this.end,t)}}}const cc=/[\s([=%&*+-/<>^|,?:;]/;lc.prototype.includeNode=rs;class uc extends is{hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.argument.hasEffectsAsAssignmentTarget(e,!0)}hasEffectsOnInteractionAtPath(e,{type:t}){return e.length>1||0!==t}include(e,t){this.included||this.includeNode(e),this.argument.includeAsAssignmentTarget(e,t,!0)}initialise(){super.initialise(),this.argument.setAssignedValue(nt)}render(e,t){const{exportNamesByVariable:n,format:s,snippets:{_:i}}=t;if(this.argument.render(e,t),"system"===s){const s=this.argument.variable,r=n.get(s);if(r)if(this.prefix)1===r.length?me(s,this.start,this.end,e,t):ge(s,this.start,this.end,this.parent.type!==Gn,e,t);else{const n=this.operator[0];!function(e,t,n,s,i,r,o){const{_:a}=r.snippets;i.prependRight(t,`${fe([e],r,o)},${a}`),s&&(i.prependRight(t,"("),i.appendLeft(n,")"))}(s,this.start,this.end,this.parent.type!==Gn,e,t,`${i}${n}${i}1`)}}}applyDeoptimizations(){if(this.deoptimized=!0,this.argument.deoptimizePath(Le),this.argument instanceof Ji){this.scope.findVariable(this.argument.name).markReassigned()}this.scope.context.requestTreeshakingPass()}}function dc(e,t){return null!==e.renderBaseName&&t.has(e)&&e.isReassigned}uc.prototype.includeNode=rs;class hc extends is{deoptimizePath(){for(const e of this.declarations)e.deoptimizePath(Le)}hasEffectsOnInteractionAtPath(){return!1}include(e,t,{asSingleStatement:n}=ye){this.included=!0;for(const s of this.declarations){(t||s.shouldBeIncluded(e))&&s.include(e,t);const{id:i,init:r}=s;n&&i.include(e,t),r&&i.included&&!r.included&&(i instanceof ja||i instanceof Fa)&&r.include(e,t)}}initialise(){super.initialise(),"await using"===this.kind&&Ua(this);for(const e of this.declarations)e.declareDeclarator(this.kind)}removeAnnotations(e){this.declarations[0].removeAnnotations(e)}render(e,t,n=ye){if(this.areAllDeclarationsIncludedAndNotExported(t.exportNamesByVariable)){for(const n of this.declarations)n.render(e,t);n.isNoStatement||59===e.original.charCodeAt(this.end-1)||e.appendLeft(this.end,";")}else this.renderReplacedDeclarations(e,t)}renderDeclarationEnd(e,t,n,s,i,r,o){59===e.original.charCodeAt(this.end-1)&&e.remove(this.end-1,this.end),t+=";",null===n?e.appendLeft(i,t):(10!==e.original.charCodeAt(s-1)||10!==e.original.charCodeAt(this.end)&&13!==e.original.charCodeAt(this.end)||(s--,13===e.original.charCodeAt(s)&&s--),s===n+1?e.overwrite(n,i,t):(e.overwrite(n,n+1,t),e.remove(s,i))),r.length>0&&e.appendLeft(i,` ${fe(r,o)};`)}renderReplacedDeclarations(e,t){const n=he(this.declarations,e,this.start+this.kind.length,this.end-(59===e.original.charCodeAt(this.end-1)?1:0));let s,i;i=ae(e.original,this.start+this.kind.length);let r=i-1;e.remove(this.start,r);let o,a,l=!1,c=!1,u="";const d=[],h=function(e,t,n){let s=null;if("system"===t.format){for(const{node:i}of e)i.id instanceof Ji&&i.init&&0===n.length&&1===t.exportNamesByVariable.get(i.id.variable)?.length?(s=i.id.variable,n.push(s)):i.id.addExportedVariables(n,t.exportNamesByVariable);n.length>1?s=null:s&&(n.length=0)}return s}(n,t,d);for(const{node:d,start:p,separator:f,contentEnd:m,end:g}of n)if(d.included){if(d.render(e,t),o="",a="",!d.id.included||d.id instanceof Ji&&dc(d.id.variable,t.exportNamesByVariable))c&&(u+=";"),l=!1;else{if(h&&h===d.id.variable){const n=re(e.original,"=",d.id.end);me(h,ae(e.original,n+1),null===f?m:f,e,t)}l?u+=",":(c&&(u+=";"),o+=`${this.kind} `,l=!0)}i===r+1?e.overwrite(r,i,u+o):(e.overwrite(r,r+1,u),e.appendLeft(i,o)),s=m,i=g,c=!0,r=f,u=""}else se(d,e,p,g);this.renderDeclarationEnd(e,u,r,s,i,d,t)}areAllDeclarationsIncludedAndNotExported(e){if("await using"===this.kind||"using"===this.kind)return!0;for(const t of this.declarations){if(!t.id.included)return!1;if(t.id.type===Wn){if(e.has(t.id.variable))return!1}else{const n=[];if(t.id.addExportedVariables(n,e),n.length>0)return!1}}return!0}}hc.prototype.includeNode=os,hc.prototype.applyDeoptimizations=as;class pc extends is{declareDeclarator(e){this.isUsingDeclaration="using"===e,this.isAsyncUsingDeclaration="await using"===e,this.id.declare(e,Le,this.init||Ms)}deoptimizePath(e){this.id.deoptimizePath(e)}deoptimizeCache(){!this.hasDeoptimizedDisposal&&this.init&&(this.hasDeoptimizedDisposal=!0,this.init.deoptimizePath(Te),this.init.includePath(Te,es()),this.scope.context.requestTreeshakingPass())}hasEffects(e){const t=this.init?.hasEffects(e);return this.id.markDeclarationReached(),t||this.isUsingDeclaration||this.isAsyncUsingDeclaration||this.id.hasEffects(e)||this.scope.context.options.treeshake.propertyReadSideEffects&&this.id.hasEffectsWhenDestructuring(e,Le,this.init||Ms)}include(e,t){const{id:n,init:s}=this;this.included||this.includeNode(e);const{disposalCall:i,disposalFunction:r}=this;r&&i&&r.includeCallArgumentsWhenCalledAtPath(Le,i,e),s?.include(e,t),n.markDeclarationReached(),t?n.include(e,t):n.includeDestructuredIfNecessary(e,Le,s||Ms)}removeAnnotations(e){this.init?.removeAnnotations(e)}render(e,t){const{exportNamesByVariable:n,snippets:{_:s,getPropertyAccess:i}}=t,{end:r,id:o,init:a,start:l}=this,c=o.included||this.isUsingDeclaration||this.isAsyncUsingDeclaration;if(c)o.render(e,t);else{const t=re(e.original,"=",o.end);e.remove(l,ae(e.original,t+1))}if(a){if(o instanceof Ji&&a instanceof nl&&!a.id){o.variable.getName(i)!==o.name&&e.appendLeft(a.start+5,` ${o.name}`)}a.render(e,t,c?ye:{renderedSurroundingElement:Gn})}else o instanceof Ji&&dc(o.variable,n)&&e.appendLeft(r,`${s}=${s}void 0`)}includeNode(e){this.included=!0;const{id:t,init:n}=this;if(n){if(this.isUsingDeclaration||this.isAsyncUsingDeclaration){const t={access:{args:[n],type:0},call:{args:[n],type:2,withNew:!1}};!this.isUsingDeclaration&&this.includeDisposalMethodAndCheckIfKnownFunction(n,mc,t,e)||this.includeDisposalMethodAndCheckIfKnownFunction(n,fc,t,e),this.scope.context.requestTreeshakingPass()}if(t instanceof Ji&&n instanceof nl&&!n.id){const{name:e,variable:s}=t;for(const t of n.scope.accessedOutsideVariables.values())t!==s&&t.forbidName(e)}}}includeDisposalMethodAndCheckIfKnownFunction(e,t,{access:n,call:s},i){e.deoptimizeArgumentsOnInteractionAtPath(n,t,Ue);const r=e.getKnownFunctionAtPath(t,Ue,this);if(e.includePath(t,i),!r){const n=e.getLiteralValueAtPath(t,Ue,this);return null!=n&&(e.deoptimizeArgumentsOnInteractionAtPath(s,t,Ue),e.includeCallArgumentsWhenCalledAtPath(t,s,i)),!1}return this.disposalFunction=r,this.disposalCall=s,r.deoptimizeArgumentsOnInteractionAtPath(s,Le,Ue),!0}}pc.prototype.applyDeoptimizations=as;const fc=[ke],mc=[Ne];class gc extends is{hasEffects(e){return!!this.test.hasEffects(e)||cl(e,this.body)}include(e,t){this.included=!0,this.test.include(e,t),ul(e,this.body,t)}}gc.prototype.includeNode=os,gc.prototype.applyDeoptimizations=as;class yc extends gr{constructor(){super(...arguments),this.hoistedDeclarations=[]}addDeclaration(e,t,n,s,i){return this.hoistedDeclarations.push(e),super.addDeclaration(e,t,n,s,i)}}const bc=[class extends is{initialise(){const{id:e}=this.scope.context.module;return Gt(Dn(Ht(Nn(this.message)),e))}},class extends is{initialise(){const e=this.start,{id:t}=this.scope.context.module,n=Dn(Ht(Nn(this.message,e)),t);this.scope.context.error(n,e)}},Ai,Fa,class extends Er{constructor(){super(...arguments),this.objectEntity=null}get expression(){return Je(this.flags,8388608)}set expression(e){this.flags=Ye(this.flags,8388608,e)}createScope(e){this.scope=new fr(e,!1)}hasEffects(){return!1}hasEffectsOnInteractionAtPath(e,t,n){if(this.annotationNoSideEffects&&0===e.length&&2===t.type)return!1;if(super.hasEffectsOnInteractionAtPath(e,t,n))return!0;if(2===t.type){const{ignore:e,brokenFlow:t}=n;if(n.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0,this:!1},this.body.hasEffects(n))return!0;n.ignore=e,n.brokenFlow=t}return!1}onlyFunctionCallUsed(){return this.parent.type===jn&&this.parent.callee===this||super.onlyFunctionCallUsed()}include(e,t){super.include(e,t);for(const n of this.params)n instanceof Ji||n.include(e,t)}includeNode(e){this.included=!0,this.body.includePath(Te,e);for(const t of this.params)t instanceof Ji||t.includePath(Te,e)}getObjectEntity(){return null!==this.objectEntity?this.objectEntity:this.objectEntity=new ni([],ri)}},class extends is{constructor(){super(...arguments),this.isConstReassignment=!1}hasEffects(e){const{deoptimized:t,isConstReassignment:n,left:s,operator:i,right:r}=this;return t||this.applyDeoptimizations(),n||r.hasEffects(e)||s.hasEffectsAsAssignmentTarget(e,"="!==i)||this.left.hasEffectsWhenDestructuring?.(e,Le,r)}hasEffectsOnInteractionAtPath(e,t,n){return 1===t.type&&this.left.included||this.right.hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){const{deoptimized:n,isConstReassignment:s,left:i,right:r,operator:o}=this;n||this.applyDeoptimizations(),this.included||this.includeNode(e);const a=ts();(t||s||"="!==o||i.included||i.hasEffectsAsAssignmentTarget(a,!1)||i.hasEffectsWhenDestructuring?.(a,Le,r))&&i.includeAsAssignmentTarget(e,t,"="!==o),r.include(e,t)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(Te,e)}initialise(){if(super.initialise(),this.left instanceof Ji){const e=this.scope.variables.get(this.left.name);"const"===e?.kind&&(this.isConstReassignment=!0,this.scope.context.log(Et,{code:"CONST_REASSIGN",message:"Cannot reassign a variable declared with `const`"},this.left.start))}this.left.setAssignedValue(this.right)}render(e,t,{preventASI:n,renderedParentType:s,renderedSurroundingElement:i}=ye){const{left:r,right:o,start:a,end:l,parent:c}=this;if(r.included)r.render(e,t),o.render(e,t);else{const l=ae(e.original,re(e.original,"=",r.end)+1);e.remove(a,l),n&&pe(e,l,o.start),o.render(e,t,{renderedParentType:s||c.type,renderedSurroundingElement:i||c.type})}if("system"===t.format)if(r instanceof Ji){const n=r.variable,s=t.exportNamesByVariable.get(n);if(s)return void(1===s.length?me(n,a,l,e,t):ge(n,a,l,c.type!==Gn,e,t))}else{const n=[];if(r.addExportedVariables(n,t.exportNamesByVariable),n.length>0)return void function(e,t,n,s,i,r){const{_:o,getDirectReturnIifeLeft:a}=r.snippets;i.prependRight(t,a(["v"],`${fe(e,r)},${o}v`,{needsArrowReturnParens:!0,needsWrappedFunction:s})),i.appendLeft(n,")")}(n,a,l,i===Gn,e,t)}r.included&&r instanceof ja&&(i===Gn||i===Fn)&&(e.appendRight(a,"("),e.prependLeft(l,")"))}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizeAssignment(Le,this.right),this.scope.context.requestTreeshakingPass()}},class extends is{addExportedVariables(e,t){this.left.addExportedVariables(e,t)}declare(e,t,n){return this.left.declare(e,t,n)}deoptimizeAssignment(e,t){this.left.deoptimizeAssignment(e,t)}deoptimizePath(e){0===e.length&&this.left.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,t,n){return e.length>0||this.left.hasEffectsOnInteractionAtPath(Le,t,n)}hasEffectsWhenDestructuring(e,t,n){return this.left.hasEffectsWhenDestructuring(e,t,n)}includeDestructuredIfNecessary(e,t,n){let s=this.left.includeDestructuredIfNecessary(e,t,n)||this.included;return(s||=this.right.shouldBeIncluded(e))&&(this.right.include(e,!1),this.left.included||(this.left.includeNode(e),this.left.includeDestructuredIfNecessary(e,t,n))),!this.included&&s&&this.includeNode(e),this.included}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(Te,e)}markDeclarationReached(){this.left.markDeclarationReached()}render(e,t,{isShorthandProperty:n}=ye){this.left.render(e,t,{isShorthandProperty:n}),this.right.render(e,t)}setAssignedValue(e){this.left.setAssignedValue(e)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(Le),this.right.deoptimizePath(Te),this.scope.context.requestTreeshakingPass()}},class extends is{deoptimizePath(e){this.argument.deoptimizePath(e)}hasEffects(){return this.deoptimized||this.applyDeoptimizations(),!0}initialise(){super.initialise(),Ua(this)}include(e,t){this.included||this.includeNode(e),this.argument.include(e,t)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument.includePath(Ga,e)}includePath(e,t){this.deoptimized||this.applyDeoptimizations(),this.included||this.includeNode(t),this.argument.includePath(e,t)}},Ka,br,Xa,class extends Ya{get hasCheckedForWarnings(){return Je(this.flags,134217728)}set hasCheckedForWarnings(e){this.flags=Ye(this.flags,134217728,e)}get optional(){return Je(this.flags,128)}set optional(e){this.flags=Ye(this.flags,128,e)}bind(){super.bind(),this.interaction={args:[this.callee instanceof ro&&!this.callee.variable?this.callee.object:null,...this.arguments],type:2,withNew:!1}}getLiteralValueAtPathAsChainElement(e,t,n){return no(this,this.callee,e,t,n)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const t of this.arguments)if(t.hasEffects(e))return!0;return!this.annotationPure&&(this.callee.hasEffects(e)||this.callee.hasEffectsOnInteractionAtPath(Le,this.interaction,e))}hasEffectsAsChainElement(e){const t="hasEffectsAsChainElement"in this.callee?this.callee.hasEffectsAsChainElement(e):this.callee.hasEffects(e);if(t===ss)return ss;if(this.optional&&null==this.callee.getLiteralValueAtPath(Le,Ue,this))return!this.annotationPure&&t||ss;this.deoptimized||this.applyDeoptimizations();for(const t of this.arguments)if(t.hasEffects(e))return!0;return!this.annotationPure&&(t||this.callee.hasEffectsOnInteractionAtPath(Le,this.interaction,e))}include(e,t){this.included||this.includeNode(e),t?(super.include(e,!0),t===ns&&this.callee instanceof Ji&&this.callee.variable&&this.callee.variable.markCalledFromTryStatement()):(this.callee.include(e,!1),this.callee.includeCallArgumentsWhenCalledAtPath(Le,this.interaction,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations()}initialise(){super.initialise(),this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationPure=this.annotations.some(e=>"pure"===e.type))}render(e,t,{renderedSurroundingElement:n}=ye){if(this.callee.render(e,t,{isCalleeOfRenderedParent:!0,renderedSurroundingElement:n}),Ja(e,t,this),this.callee instanceof Ji&&!this.hasCheckedForWarnings){this.hasCheckedForWarnings=!0;this.scope.findVariable(this.callee.name).isNamespace&&this.scope.context.log(Et,un(this.callee.name),this.start),"eval"===this.callee.name&&this.scope.context.log(Et,{code:"EVAL",id:s=this.scope.context.module.id,message:`Use of eval in "${wt(s)}" is strongly discouraged as it poses security risks and may cause issues with minification.`,url:kt("troubleshooting/#avoiding-eval")},this.start)}var s}applyDeoptimizations(){this.deoptimized=!0,this.callee.deoptimizeArgumentsOnInteractionAtPath(this.interaction,Le,Ue),this.scope.context.requestTreeshakingPass()}getReturnExpression(e=Ue){return null===this.returnExpression?(this.returnExpression=st,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(Le,this.interaction,e,this)):this.returnExpression}},Za,Qa,tl,tr,nl,rl,ol,al,ll,yr,dl,hl,pl,Ar,fl,ml,yr,class extends is{createScope(e){this.scope=new gr(e)}hasEffects(e){const{body:t,deoptimized:n,left:s,right:i}=this;return n||this.applyDeoptimizations(),!(!s.hasEffectsAsAssignmentTarget(e,!1)&&!i.hasEffects(e))||cl(e,t)}include(e,t){const{body:n,deoptimized:s,left:i,right:r}=this;s||this.applyDeoptimizations(),this.included||this.includeNode(e),i.includeAsAssignmentTarget(e,t||!0,!1),r.include(e,t),ul(e,n,t)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(Te,e)}initialise(){super.initialise(),this.left.setAssignedValue(nt)}render(e,t){this.left.render(e,t,ie),this.right.render(e,t,ie),110===e.original.charCodeAt(this.right.start-1)&&e.prependLeft(this.right.start," "),this.body.render(e,t)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(Le),this.scope.context.requestTreeshakingPass()}},class extends is{get await(){return Je(this.flags,131072)}set await(e){this.flags=Ye(this.flags,131072,e)}createScope(e){this.scope=new gr(e)}hasEffects(){return this.deoptimized||this.applyDeoptimizations(),!0}include(e,t){const{body:n,deoptimized:s,left:i,right:r}=this;s||this.applyDeoptimizations(),this.included||this.includeNode(e),i.includeAsAssignmentTarget(e,t||!0,!1),r.include(e,t),ul(e,n,t)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(Te,e)}initialise(){super.initialise(),this.await&&Ua(this),this.left.setAssignedValue(nt)}render(e,t){this.left.render(e,t,ie),this.right.render(e,t,ie),102===e.original.charCodeAt(this.right.start-1)&&e.prependLeft(this.right.start," "),this.body.render(e,t)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(Le),this.right.deoptimizePath(Te),this.scope.context.requestTreeshakingPass()}},gl,vr,class extends xr{createScope(e){super.createScope(this.idScope=new ms(e,e.context))}onlyFunctionCallUsed(){return this.parent.type===jn&&this.parent.callee===this&&(null===this.id||this.id.variable.getOnlyFunctionCallUsed())||super.onlyFunctionCallUsed()}render(e,t,{renderedSurroundingElement:n}=ye){super.render(e,t),n===Gn&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}},Ji,bl,class extends is{},El,xl,Pl,Il,Cl,Nl,class extends Ol{},class extends Ol{},class extends Fl{include(e,t){super.include(e,t),this.openingElement.include(e,t),this.closingElement?.include(e,t)}render(e,t){switch(this.jsxMode.mode){case"classic":this.renderClassicMode(e,t);break;case"automatic":this.renderAutomaticMode(e,t);break;default:super.render(e,t)}}getRenderingMode(){const e=this.scope.context.options.jsx,{mode:t,factory:n,importSource:s}=e;if("automatic"===t){let e=!1;for(const t of this.openingElement.attributes)if(t instanceof Rl)e=!0;else if(e&&"key"===t.name.name)return{factory:n,importSource:s,mode:"classic"}}return super.getRenderingMode()}renderClassicMode(e,t){const{snippets:{getPropertyAccess:n},useOriginalName:s}=t,{closingElement:i,end:r,factory:o,factoryVariable:a,openingElement:{end:l,selfClosing:c}}=this,[,...u]=o.split("."),{firstAttribute:d,hasAttributes:h,hasSpread:p,inObject:f,previousEnd:m}=this.renderAttributes(e,t,[a.getName(n,s),...u].join("."),!1);this.wrapAttributes(e,f,h,p,d,"null",m),this.renderChildren(e,t,l),c?e.appendLeft(r,")"):i.render(e,t)}renderAutomaticMode(e,t){const{snippets:{getPropertyAccess:n},useOriginalName:s}=t,{closingElement:i,end:r,factoryVariable:o,openingElement:{end:a,selfClosing:l}}=this;let{firstAttribute:c,hasAttributes:u,hasSpread:d,inObject:h,keyAttribute:p,previousEnd:f}=this.renderAttributes(e,t,o.getName(n,s),!0);const{firstChild:m,hasMultipleChildren:g,childrenEnd:y}=this.renderChildren(e,t,a);m&&(e.prependRight(m.start,"children: "+(g?"[":"")),h||(e.prependRight(m.start,"{ "),h=!0),f=i.start,g&&e.appendLeft(f,"]"));const b=m?y:f;if(this.wrapAttributes(e,h,u||!!m,d,c||m,"{}",b),p){const{value:t}=p;e.appendLeft(b,", "),t?e.move(t.start,t.end,b):e.appendLeft(b,"true")}l?e.appendLeft(p?.value?.end||r,")"):i.render(e,t)}renderAttributes(e,t,n,s){const{jsxMode:{mode:i},openingElement:r}=this,{attributes:o,end:a,start:l,name:{start:c,end:u}}=r;e.update(l,c,`/*#__PURE__*/${n}(`),r.render(e,t,{jsxMode:i});let d=null,h=!1,p=!1,f=u,m=!1,g=null;for(const t of o){if(t instanceof Nl){if(s&&"key"===t.name.name){d=t,e.remove(f,t.value?.start||t.end);continue}e.appendLeft(f,","),p||(e.prependRight(t.start,"{ "),p=!0),m=!0}else p?(m&&e.appendLeft(f," "),e.appendLeft(f,"},"),p=!1):e.appendLeft(f,","),h=!0;f=t.end,g??=t}return e.remove(o.at(-1)?.end||f,a),{firstAttribute:g,hasAttributes:m,hasSpread:h,inObject:p,keyAttribute:d,previousEnd:f}}wrapAttributes(e,t,n,s,i,r,o){if(t&&e.appendLeft(o," }"),s){if(n){const{start:t}=i;i instanceof Rl&&e.prependRight(t,"{}, "),e.prependRight(t,"Object.assign("),e.appendLeft(o,")")}}else n||e.appendLeft(o,`, ${r}`)}},Dl,Ml,class extends Fl{include(e,t){super.include(e,t),this.openingFragment.include(e,t),this.closingFragment.include(e,t)}render(e,t){switch(this.jsxMode.mode){case"classic":this.renderClassicMode(e,t);break;case"automatic":this.renderAutomaticMode(e,t);break;default:super.render(e,t)}}renderClassicMode(e,t){const{snippets:{getPropertyAccess:n},useOriginalName:s}=t,{closingFragment:i,factory:r,factoryVariable:o,openingFragment:a,start:l}=this,[,...c]=r.split(".");a.render(e,t),e.prependRight(l,`/*#__PURE__*/${[o.getName(n,s),...c].join(".")}(`),e.appendLeft(a.end,", null"),this.renderChildren(e,t,a.end),i.render(e,t)}renderAutomaticMode(e,t){const{snippets:{getPropertyAccess:n},useOriginalName:s}=t,{closingFragment:i,factoryVariable:r,openingFragment:o,start:a}=this;o.render(e,t),e.prependRight(a,`/*#__PURE__*/${r.getName(n,s)}(`);const{firstChild:l,hasMultipleChildren:c,childrenEnd:u}=this.renderChildren(e,t,o.end);l?(e.prependRight(l.start,"{ children: "+(c?"[":"")),c&&e.appendLeft(i.start,"]"),e.appendLeft(u," }")):e.appendLeft(o.end,", {}"),i.render(e,t)}},kl,class extends is{includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.object.includePath([this.property.name],e)}includePath(e,t){this.included||this.includeNode(t),this.object.includePath([this.property.name,...e],t)}},Vl,jl,class extends is{constructor(){super(...arguments),this.fragment=null,this.fragmentVariable=null}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();const t=this.scope.context.options.jsx;if("automatic"===t.mode)this.fragment="Fragment",this.fragmentVariable=zl("Fragment",!1,t.jsxImportSource,this,e);else{const{fragment:n,importSource:s,mode:i}=t;null!=n&&(this.fragment=n,this.fragmentVariable=zl(n,"preserve"===i,s,this,e))}}render(e,t){const{mode:n}=this.scope.context.options.jsx;if("preserve"!==n){const{snippets:{getPropertyAccess:n},useOriginalName:s}=t,[,...i]=this.fragment.split("."),r=[this.fragmentVariable.getName(n,s),...i].join(".");e.update(this.start,this.end,r)}}},Rl,class extends is{render(e,t){super.render(e,t);const{mode:n}=this.scope.context.options.jsx;"preserve"!==n&&(e.overwrite(this.start,this.expression.start,"...",{contentOnly:!0}),e.overwrite(this.expression.end,this.end,"",{contentOnly:!0}))}},Tl,Ul,to,to,to,to,to,to,Gl,ro,class extends is{constructor(){super(...arguments),this.metaProperty=null,this.preliminaryChunkId=null,this.referenceId=null}getReferencedFileName(e){const{meta:{name:t},metaProperty:n}=this;if(t===co){if(n?.startsWith(lo))return e.getFileName(n.slice(20));if(n?.startsWith(ao))return e.getFileName(n.slice(16))}return null}hasEffects(){return!1}hasEffectsOnInteractionAtPath(e,{type:t}){return e.length>1||0!==t}include(){this.included||this.includeNode()}includeNode(){if(this.included=!0,this.meta.name===co){this.scope.context.addImportMeta(this);const e=this.parent,t=this.metaProperty=e instanceof ro&&"string"==typeof e.propertyKey?e.propertyKey:null;t?.startsWith(lo)?this.referenceId=t.slice(20):t?.startsWith(ao)&&(this.referenceId=t.slice(16))}}render(e,t){const{format:n,pluginDriver:s,snippets:i}=t,{scope:{context:{module:r}},meta:{name:o},metaProperty:a,parent:l,preliminaryChunkId:c,referenceId:u,start:d,end:h}=this,{id:p,rawId:f,info:{attributes:m}}=r;if(o!==co)return;const g=c;if(u){const t=s.getFileName(u),i=J(te(Z(g),t)),r=!!a?.startsWith(lo),o=s.hookFirstSync("resolveFileUrl",[{chunkId:g,fileName:t,format:n,moduleAttributes:m,moduleId:p,moduleRawId:f,referenceId:u,relativePath:i}])||xo[n](i,r);return void e.overwrite(l.start,l.end,o,{contentOnly:!0})}let y=s.hookFirstSync("resolveImportMeta",[a,{chunkId:g,format:n,moduleAttributes:m,moduleId:p,moduleRawId:f}]);y||(y=vo[n]?.(a,{chunkId:g,snippets:i}),t.accessedDocumentCurrentScript||=uo.includes(n)&&"undefined"!==y),"string"==typeof y&&(l instanceof ro?e.overwrite(l.start,l.end,y,{contentOnly:!0}):e.overwrite(d,h,y,{contentOnly:!0}))}setResolution(e,t,n){this.preliminaryChunkId=n;const s=(this.metaProperty?.startsWith(ao)||this.metaProperty?.startsWith(lo)?po:ho)[e];s.length>0&&this.scope.addAccessedGlobals(s,t)}},Zi,class extends is{hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const t of this.arguments)if(t.hasEffects(e))return!0;return!this.annotationPure&&(this.callee.hasEffects(e)||this.callee.hasEffectsOnInteractionAtPath(Le,this.interaction,e))}hasEffectsOnInteractionAtPath(e,{type:t}){return e.length>0||0!==t}include(e,t){this.included||this.includeNode(e),t?super.include(e,!0):(this.callee.include(e,!1),this.callee.includeCallArgumentsWhenCalledAtPath(Le,this.interaction,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.callee.includePath(Te,e)}initialise(){super.initialise(),this.interaction={args:[null,...this.arguments],type:2,withNew:!0},this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationPure=this.annotations.some(e=>"pure"===e.type))}render(e,t){this.callee.render(e,t),Ja(e,t,this)}applyDeoptimizations(){this.deoptimized=!0,this.callee.deoptimizeArgumentsOnInteractionAtPath(this.interaction,Le,Ue),this.scope.context.requestTreeshakingPass()}},Hl,ja,Wl,ql,Kl,Qi,Xl,Yl,Zl,vi,Ql,class extends is{bind(){this.variable=this.scope.findVariable("this")}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.variable.deoptimizePath(e)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.scope.context.includeVariableInModule(this.variable,Le,e)}},ec,tc,nc,sc,class extends is{deoptimizeArgumentsOnInteractionAtPath(){}getLiteralValueAtPath(e){return e.length>0||1!==this.quasis.length?Ze:this.quasis[0].value.cooked}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?st:Xs(qs,e[0])}hasEffectsOnInteractionAtPath(e,t,n){return 0===t.type?e.length>1:2!==t.type||1!==e.length||Ks(qs,e[0],t,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(const t of this.expressions)t.includePath(Te,e)}render(e,t){this.scope.context.addIndentExclusionRange([this.start,this.end]),super.render(e,t)}},class extends is{bind(){this.variable=this.scope.findVariable("this")}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.variable.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,t,n){return 0===e.length?0!==t.type:this.variable.hasEffectsOnInteractionAtPath(e,t,n)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.scope.context.includeVariableInModule(this.variable,Le,e)}includePath(e,t){this.included?e.length>0&&this.variable.includePath(e,t):(this.included=!0,this.scope.context.includeVariableInModule(this.variable,e,t));const n=function(e,t){for(;!(e instanceof mr&&e.thisVariable===t);){if(!(e instanceof ms))return null;e=e.parent}return e}(this.scope,this.variable);n&&n.functionNode.parent instanceof Kl&&n.functionNode.parent.parent instanceof Hl&&n.functionNode.parent.parent.includePath(e,t)}initialise(){super.initialise(),this.alias=this.scope.findLexicalBoundary()instanceof ic?this.scope.context.moduleContext:null,"undefined"===this.alias&&this.scope.context.log(Et,{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:kt("troubleshooting/#error-this-is-undefined")},this.start)}render(e){null!==this.alias&&e.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}},class extends is{hasEffects(){return!0}include(e,t){this.included||this.includeNode(e),this.argument.include(e,t),e.brokenFlow=!0}includeNode(e){this.included||(this.included=!0,this.argument.includePath(Te,e))}render(e,t){this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," ")}},rc,lc,uc,hc,pc,gc,class extends is{applyDeoptimizations(){this.deoptimized=!0,this.argument?.deoptimizePath(Te)}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!(e.ignore.returnYield&&!this.argument?.hasEffects(e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument?.includePath(Te,e)}render(e,t){this.argument&&(this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," "))}}],Ec=[function(e,t,n){e.message=n.convertString(n[t])},function(e,t,n){e.message=n.convertString(n[t])},function(e,t,n){const{scope:s}=e;e.elements=vc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.elements=vc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.async=!(1&~i),e.expression=!(2&~i),e.generator=!(4&~i);const r=e.annotations=Pa(n[t+1],n);e.annotationNoSideEffects=r.some(e=>"noSideEffects"===e.type);const o=e.params=vc(e,s,n[t+2],n);s.addParameterVariables(o.map(e=>e.declare("parameter",Le,nt)),o[o.length-1]instanceof Xl),e.body=xc(e,s.bodyScope,n[t+3],n)},function(e,t,n){const{scope:s}=e;e.operator=Sa[n[t]],e.left=xc(e,s,n[t+1],n),e.right=xc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e;e.left=xc(e,s,n[t],n),e.right=xc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.argument=xc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.operator=Sa[n[t]],e.left=xc(e,s,n[t+1],n),e.right=xc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e;e.body=vc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.label=0===i?null:xc(e,s,i,n)},function(e,t,n){const{scope:s}=e,i=n[t];e.optional=!(1&~i),e.annotations=Pa(n[t+1],n),e.callee=xc(e,s,n[t+2],n),e.arguments=vc(e,s,n[t+3],n)},function(e,t,n){const{scope:s}=e,i=n[t],r=e.param=0===i?null:xc(e,s,i,n);r?.declare("parameter",Le,nt),e.body=xc(e,s.bodyScope,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.expression=xc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e,i=n[t];if(i){const t=n[i],r=e.body=new Array(t);for(let o=0;o<t;o++){const t=n[i+1+o];r[o]=xc(e,79===n[t]||1&n[t+3]?s:s.instanceScope,t,n)}}else e.body=[]},function(e,t,n){const{scope:s}=e;e.decorators=vc(e,s,n[t],n);const i=n[t+1];e.id=0===i?null:xc(e,s.parent,i,n);const r=n[t+2];e.superClass=0===r?null:xc(e,s,r,n),e.body=xc(e,s,n[t+3],n)},function(e,t,n){const{scope:s}=e;e.decorators=vc(e,s,n[t],n);const i=n[t+1];e.id=0===i?null:xc(e,s,i,n);const r=n[t+2];e.superClass=0===r?null:xc(e,s,r,n),e.body=xc(e,s,n[t+3],n)},function(e,t,n){const{scope:s}=e;e.test=xc(e,s,n[t],n),e.consequent=xc(e,s,n[t+1],n),e.alternate=xc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.label=0===i?null:xc(e,s,i,n)},function(){},function(e,t,n){const{scope:s}=e;e.expression=xc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.directive=n.convertString(n[t]),e.expression=xc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.body=xc(e,s,n[t],n),e.test=xc(e,s,n[t+1],n)},function(){},function(e,t,n){const{scope:s}=e,i=n[t];e.exported=0===i?null:xc(e,s,i,n),e.source=xc(e,s,n[t+1],n),e.attributes=vc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e;e.declaration=xc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.specifiers=vc(e,s,n[t],n);const i=n[t+1];e.source=0===i?null:xc(e,s,i,n),e.attributes=vc(e,s,n[t+2],n);const r=n[t+3];e.declaration=0===r?null:xc(e,s,r,n)},function(e,t,n){const{scope:s}=e;e.local=xc(e,s,n[t],n);const i=n[t+1];e.exported=0===i?e.local:xc(e,s,i,n)},function(e,t,n){const{scope:s}=e;e.expression=xc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.left=xc(e,s,n[t],n),e.right=xc(e,s,n[t+1],n),e.body=xc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.await=!(1&~i),e.left=xc(e,s,n[t+1],n),e.right=xc(e,s,n[t+2],n),e.body=xc(e,s,n[t+3],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.init=0===i?null:xc(e,s,i,n);const r=n[t+1];e.test=0===r?null:xc(e,s,r,n);const o=n[t+2];e.update=0===o?null:xc(e,s,o,n),e.body=xc(e,s,n[t+3],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.async=!(1&~i),e.generator=!(2&~i);const r=e.annotations=Pa(n[t+1],n);e.annotationNoSideEffects=r.some(e=>"noSideEffects"===e.type);const o=n[t+2];e.id=0===o?null:xc(e,s.parent,o,n);const a=e.params=vc(e,s,n[t+3],n);s.addParameterVariables(a.map(e=>e.declare("parameter",Le,nt)),a[a.length-1]instanceof Xl),e.body=xc(e,s.bodyScope,n[t+4],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.async=!(1&~i),e.generator=!(2&~i);const r=e.annotations=Pa(n[t+1],n);e.annotationNoSideEffects=r.some(e=>"noSideEffects"===e.type);const o=n[t+2];e.id=0===o?null:xc(e,e.idScope,o,n);const a=e.params=vc(e,s,n[t+3],n);s.addParameterVariables(a.map(e=>e.declare("parameter",Le,nt)),a[a.length-1]instanceof Xl),e.body=xc(e,s.bodyScope,n[t+4],n)},function(e,t,n){e.name=n.convertString(n[t])},function(e,t,n){const{scope:s}=e;e.test=xc(e,s,n[t],n),e.consequent=xc(e,e.consequentScope=new yc(s),n[t+1],n);const i=n[t+2];e.alternate=0===i?null:xc(e,e.alternateScope=new yc(s),i,n)},function(e,t,n){const{scope:s}=e;e.key=xc(e,s,n[t],n),e.value=xc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.specifiers=vc(e,s,n[t],n),e.source=xc(e,s,n[t+1],n),e.attributes=vc(e,s,n[t+2],n);const i=n[t+3];e.phase=0===i?void 0:Sa[n[t+3]]},function(e,t,n){const{scope:s}=e;e.local=xc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.source=xc(e,s,n[t],n),e.sourceAstNode=Ca(n[t],n);const i=n[t+1];e.options=0===i?null:xc(e,s,i,n);const r=n[t+2];e.phase=0===r?void 0:Sa[n[t+2]]},function(e,t,n){const{scope:s}=e;e.local=xc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.local=xc(e,s,n[t+1],n),e.imported=0===i?e.local:xc(e,s,i,n)},function(e,t,n){const{scope:s}=e;e.name=xc(e,s,n[t],n);const i=n[t+1];e.value=0===i?null:xc(e,s,i,n)},function(e,t,n){const{scope:s}=e;e.name=xc(e,s,n[t],n)},function(){},function(e,t,n){const{scope:s}=e;e.openingElement=xc(e,s,n[t],n),e.children=vc(e,s,n[t+1],n);const i=n[t+2];e.closingElement=0===i?null:xc(e,s,i,n)},function(){},function(e,t,n){const{scope:s}=e;e.expression=xc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.openingFragment=xc(e,s,n[t],n),e.children=vc(e,s,n[t+1],n),e.closingFragment=xc(e,s,n[t+2],n)},function(e,t,n){e.name=n.convertString(n[t])},function(e,t,n){const{scope:s}=e;e.object=xc(e,s,n[t],n),e.property=xc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.namespace=xc(e,s,n[t],n),e.name=xc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.selfClosing=!(1&~i),e.name=xc(e,s,n[t+1],n),e.attributes=vc(e,s,n[t+2],n)},function(e){e.attributes=[],e.selfClosing=!1},function(e,t,n){const{scope:s}=e;e.argument=xc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.expression=xc(e,s,n[t],n)},function(e,t,n){e.value=n.convertString(n[t]),e.raw=n.convertString(n[t+1])},function(e,t,n){const{scope:s}=e;e.label=xc(e,s,n[t],n),e.body=xc(e,s,n[t+1],n)},function(e,t,n){const s=e.bigint=n.convertString(n[t]);e.raw=n.convertString(n[t+1]),e.value=BigInt(s)},function(e,t,n){const s=n[t],i=e.value=!(1&~s);e.raw=i?"true":"false"},function(e){e.value=null},function(e,t,n){const s=n[t];e.raw=0===s?void 0:n.convertString(s),e.value=n.convertFloat64(t+1)},function(e,t,n){const s=n.convertString(n[t]),i=n.convertString(n[t+1]);e.raw=`/${i}/${s}`,e.regex={flags:s,pattern:i},e.value=new RegExp(i,s)},function(e,t,n){e.value=n.convertString(n[t]);const s=n[t+1];e.raw=0===s?void 0:n.convertString(s)},function(e,t,n){const{scope:s}=e;e.operator=Sa[n[t]],e.left=xc(e,s,n[t+1],n),e.right=xc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.computed=!(1&~i),e.optional=!(2&~i),e.object=xc(e,s,n[t+1],n),e.property=xc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e;e.meta=xc(e,s,n[t],n),e.property=xc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.static=!(1&~i),e.computed=!(2&~i),e.decorators=vc(e,s,n[t+1],n),e.key=xc(e,s,n[t+2],n),e.value=xc(e,s,n[t+3],n),e.kind=Sa[n[t+4]]},function(e,t,n){const{scope:s}=e;e.annotations=Pa(n[t],n),e.callee=xc(e,s,n[t+1],n),e.arguments=vc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e;e.properties=vc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.properties=vc(e,s,n[t],n)},function(e,t,n){e.name=n.convertString(n[t])},function(e,t,n){const{scope:s}=e;e.body=vc(e,s,n[t],n),e.invalidAnnotations=Pa(n[t+1],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.method=!(1&~i),e.shorthand=!(2&~i),e.computed=!(4&~i);const r=n[t+1];e.value=xc(e,s,n[t+2],n),e.kind=Sa[n[t+3]],e.key=0===r?e.value:xc(e,s,r,n)},function(e,t,n){const{scope:s}=e,i=n[t];e.static=!(1&~i),e.computed=!(2&~i),e.decorators=vc(e,s,n[t+1],n),e.key=xc(e,s,n[t+2],n);const r=n[t+3];e.value=0===r?null:xc(e,s,r,n)},function(e,t,n){const{scope:s}=e;e.argument=xc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.argument=0===i?null:xc(e,s,i,n)},function(e,t,n){const{scope:s}=e;e.expressions=vc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.argument=xc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.body=vc(e,s,n[t],n)},function(){},function(e,t,n){const{scope:s}=e,i=n[t];e.test=0===i?null:xc(e,s,i,n),e.consequent=vc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.discriminant=xc(e,e.parentScope,n[t],n),e.cases=vc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.tag=xc(e,s,n[t],n),e.quasi=xc(e,s,n[t+1],n)},function(e,t,n){const s=n[t];e.tail=!(1&~s);const i=n[t+1],r=0===i?void 0:n.convertString(i),o=n.convertString(n[t+2]);e.value={cooked:r,raw:o}},function(e,t,n){const{scope:s}=e;e.quasis=vc(e,s,n[t],n),e.expressions=vc(e,s,n[t+1],n)},function(){},function(e,t,n){const{scope:s}=e;e.argument=xc(e,s,n[t],n)},function(e,t,n){const{scope:s}=e;e.block=xc(e,s,n[t],n);const i=n[t+1];e.handler=0===i?null:xc(e,s,i,n);const r=n[t+2];e.finalizer=0===r?null:xc(e,s,r,n)},function(e,t,n){const{scope:s}=e;e.operator=Sa[n[t]],e.argument=xc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.prefix=!(1&~i),e.operator=Sa[n[t+1]],e.argument=xc(e,s,n[t+2],n)},function(e,t,n){const{scope:s}=e;e.kind=Sa[n[t]],e.declarations=vc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e;e.id=xc(e,s,n[t],n);const i=n[t+1];e.init=0===i?null:xc(e,s,i,n)},function(e,t,n){const{scope:s}=e;e.test=xc(e,s,n[t],n),e.body=xc(e,s,n[t+1],n)},function(e,t,n){const{scope:s}=e,i=n[t];e.delegate=!(1&~i);const r=n[t+1];e.argument=0===r?null:xc(e,s,r,n)}];function xc(e,t,n,s){const i=s[n],r=bc[i];if(!r)throw console.trace(),new Error(`Unknown node type: ${i}`);const o=new r(e,t);return o.type=za[i],o.start=s[n+1],o.end=s[n+2],Ec[i](o,n+3,s),o.initialise(),o}function vc(e,t,n,s){if(0===n)return Ee;const i=s[n++],r=new Array(i);for(let o=0;o<i;o++){const i=s[n++];r[o]=i?xc(e,t,i,s):null}return r}class Ac extends hs{constructor(e){super(Ho),this.module=e}includePath(e,t){super.includePath(e,t),this.module.needsExportShim=!0}}var Sc;!function(e){e[e.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",e[e.ANALYSE=1]="ANALYSE",e[e.GENERATE=2]="GENERATE"}(Sc||(Sc={}));const Pc=new WeakMap;function wc(e,t){if(e){const t=Pc.get(e);t&&function(e){void 0===e.encodedMappings&&e.decodedMappings&&(e.encodedMappings=g(e.decodedMappings)),e.decodedMappings=void 0}(t)}if(t)for(const e of t)e.missing||wc(e)}function $c(e){if(!e)return null;if("string"==typeof e&&(e=JSON.parse(e)),"sections"in e&&(e=function({file:e,sections:t}){const n=[],s=[],i=[],r=[],o=new Map;for(const{map:e,offset:a}of t){const t=$c(e),{sourceRoot:l}=t,c=l?l.endsWith("/")?l:`${l}/`:"",u=t.sources.map((e,n)=>{const s=null==e||K(e)?e:c+e,a=t.sourcesContent?.[n]??null;let l=o.get(s);l||o.set(s,l=[]);let u=l.find(e=>null==a||null==r[e]||r[e]===a);return void 0===u?(u=i.push(s)-1,r.push(a),l.push(u)):r[u]??=a,u}),d=s.length;for(const e of t.names??[])s.push(e);for(const[e,s]of t.mappings.entries()){const t=a.line+e;for(;n.length<=t;)n.push([]);const i=0===e?a.column:0;for(const e of s){const s=e.slice();s[0]+=i,1!==s.length&&(s[1]=u[s[1]],5===s.length&&(s[4]+=d)),n[t].push(s)}}}return{file:e,mappings:n,names:s,sources:i,sourcesContent:r,version:3}}(e)),!e.mappings)return{mappings:[],names:[],sources:[],version:3};const t=e.mappings,n=Array.isArray(t),s={decodedMappings:n?t:void 0,encodedMappings:n?void 0:t},i={...e,get mappings(){return s.decodedMappings||(s.decodedMappings=s.encodedMappings?function(e){const{length:t}=e,n=new p(e),s=[];let i=0,r=0,l=0,c=0,d=0;do{const e=n.indexOf(";"),t=[];let h=!0,p=0;for(i=0;n.pos<e;){let s;i+=a(o(n)),i<p&&(h=!1),p=i,u(n,e)?(r+=a(o(n)),l+=a(o(n)),c+=a(o(n)),u(n,e)?(d+=a(o(n)),s=[i,r,l,c,d]):s=[i,r,l,c]):s=[i],t.push(s),n.pos++}h||f(t),s.push(t),n.pos=e+1}while(n.pos<=t);return s}(s.encodedMappings):[],s.encodedMappings=void 0),s.decodedMappings}};return Pc.set(i,s),i}function Ic(e){return e.id}function Cc(e,t){if(!t||0===Object.keys(t).length)return e;const n=Object.fromEntries(Object.entries(t).sort(([e],[t])=>e<t?-1:e>t?1:0));return`${e}${e.includes("?")?"&":"?"}attributes=${encodeURIComponent(JSON.stringify(n))}`}function kc(e){return"object"==typeof e?Cc(e.rawId,e.attributes):e}function Nc(e){if("object"==typeof e)return{...e,id:Cc(e.rawId,e.attributes)};const{rawId:t,attributes:n}=function(e){const t=Math.max(e.lastIndexOf("?attributes="),e.lastIndexOf("&attributes="));if(-1===t)return{rawId:e};try{const n=e.slice(0,t),s=JSON.parse(decodeURIComponent(e.slice(t+12)));if(Cc(n,s)===e)return{attributes:s,rawId:n}}catch{}return{rawId:e}}(e);return{attributes:n,id:e,rawId:t}}function Oc(e,t,n){try{const o=Kc.__wbindgen_add_to_stack_pointer(-16),a=Uc(e,Kc.__wbindgen_export2,Kc.__wbindgen_export3),l=Xc;Kc.parse(o,a,l,t,n);var s=Lc().getInt32(o+0,!0),i=Lc().getInt32(o+4,!0),r=Mc(s,i).slice();return Kc.__wbindgen_export(s,1*i,1),r}finally{Kc.__wbindgen_add_to_stack_pointer(16)}}function Rc(){return{__proto__:null,"./bindings_wasm_bg.js":{__proto__:null,__wbg___wbindgen_throw_41e9ee4f547fc59a:function(e,t){throw new Error(Tc(e,t))},__wbg_error_757e9472f8410341:function(e,t){let n,s;try{n=e,s=t,console.error(Tc(e,t))}finally{Kc.__wbindgen_export(n,s,1)}},__wbg_get_index_511c6dca3ba3bccb:function(e,t){return Fc(e)[t>>>0]},__wbg_length_7f3c00c40364105e:function(e){return Fc(e).length},__wbg_new_227d7c05414eb861:function(){return Dc(new Error)},__wbg_prototypesetcall_bc27214492979395:function(e,t,n){Uint8Array.prototype.set.call(Mc(e,t),Fc(n))},__wbg_stack_3b0d974bbf31e44f:function(e,t){const n=Uc(Fc(t).stack,Kc.__wbindgen_export2,Kc.__wbindgen_export3),s=Xc;Lc().setInt32(e+4,s,!0),Lc().setInt32(e+0,n,!0)},__wbindgen_object_drop_ref:function(e){!function(e){const t=Fc(e);(function(e){if(e<1028)return;Vc[e]=jc,jc=e})(e)}(e)}}}}function Dc(e){jc===Vc.length&&Vc.push(Vc.length+1);const t=jc;return jc=Vc[t],Vc[t]=e,t}function Mc(e,t){return e>>>=0,zc().subarray(e/1,e/1+t)}let _c=null;function Lc(){return(null===_c||!0===_c.buffer.detached||void 0===_c.buffer.detached&&_c.buffer!==Kc.memory.buffer)&&(_c=new DataView(Kc.memory.buffer)),_c}function Tc(e,t){return function(e,t){Wc+=t,Wc>=Hc&&(Gc=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Gc.decode(),Wc=t);return Gc.decode(zc().subarray(e,e+t))}(e>>>0,t)}let Bc=null;function zc(){return null!==Bc&&0!==Bc.byteLength||(Bc=new Uint8Array(Kc.memory.buffer)),Bc}function Fc(e){return Vc[e]}let Vc=new Array(1024).fill(void 0);Vc.push(void 0,null,!0,!1);let jc=Vc.length;function Uc(e,t,n){if(void 0===n){const n=qc.encode(e),s=t(n.length,1)>>>0;return zc().subarray(s,s+n.length).set(n),Xc=n.length,s}let s=e.length,i=t(s,1)>>>0;const r=zc();let o=0;for(;o<s;o++){const t=e.charCodeAt(o);if(t>127)break;r[i+o]=t}if(o!==s){0!==o&&(e=e.slice(o)),i=n(i,s,s=o+3*e.length,1)>>>0;const t=zc().subarray(i+o,i+s);o+=qc.encodeInto(e,t).written,i=n(i,s,o,1)>>>0}return Xc=o,i}let Gc=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Gc.decode();const Hc=2146435072;let Wc=0;const qc=new TextEncoder;"encodeInto"in qc||(qc.encodeInto=function(e,t){const n=qc.encode(e);return t.set(n),{read:e.length,written:n.length}});let Kc,Xc=0;async function Jc(e){if(void 0!==Kc)return Kc;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL("bindings_wasm_bg.wasm",import.meta.url));const t=Rc();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:n}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if(!e.ok)throw new Error(`failed to fetch Wasm: ${e.status} ${e.statusText} fetching '${e.url}'`);if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(!function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)||"application/wasm"===e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(await e,t);return function(e){return Kc=e.exports,_c=null,Bc=null,Kc}(n)}const Yc=0===new Uint8Array(new Uint32Array([1]).buffer)[0],Zc=e=>{if(Yc){const t=new Uint32Array(e.buffer,e.byteOffset,e.byteLength>>2);for(let e=0;e<t.length;e++){const n=t[e];t[e]=(255&n)<<24|(65280&n)<<8|n>>>8&65280|n>>>24}}return e};async function Qc(e,t,n,s,i){return Zc(function(e,t,n,s,i){try{const l=Kc.__wbindgen_add_to_stack_pointer(-16),c=Uc(e,Kc.__wbindgen_export2,Kc.__wbindgen_export3),u=Xc;Kc.parseAndWalkSync(l,c,u,t,n,Dc(s),i);var r=Lc().getInt32(l+0,!0),o=Lc().getInt32(l+4,!0),a=Mc(r,o).slice();return Kc.__wbindgen_export(r,1*o,1),a}finally{Kc.__wbindgen_add_to_stack_pointer(16)}}(e,t,n,s,i))}const eu=[function(e,t){return{type:"PanicError",start:t[e],end:t[e+1],message:t.convertString(t[e+2])}},function(e,t){return{type:"ParseError",start:t[e],end:t[e+1],message:t.convertString(t[e+2])}},function(e,t){return{type:"ArrayExpression",start:t[e],end:t[e+1],elements:nu(t[e+2],t)}},function(e,t){return{type:"ArrayPattern",start:t[e],end:t[e+1],elements:nu(t[e+2],t)}},function(e,t){const n=t[e+2],s=Pa(t[e+3],t);return{type:"ArrowFunctionExpression",start:t[e],end:t[e+1],async:!(1&~n),expression:!(2&~n),generator:!(4&~n),...s.length>0?{annotations:s}:{},params:nu(t[e+4],t),body:tu(t[e+5],t),id:null}},function(e,t){return{type:"AssignmentExpression",start:t[e],end:t[e+1],operator:Sa[t[e+2]],left:tu(t[e+3],t),right:tu(t[e+4],t)}},function(e,t){return{type:"AssignmentPattern",start:t[e],end:t[e+1],left:tu(t[e+2],t),right:tu(t[e+3],t)}},function(e,t){return{type:"AwaitExpression",start:t[e],end:t[e+1],argument:tu(t[e+2],t)}},function(e,t){return{type:"BinaryExpression",start:t[e],end:t[e+1],operator:Sa[t[e+2]],left:tu(t[e+3],t),right:tu(t[e+4],t)}},function(e,t){return{type:"BlockStatement",start:t[e],end:t[e+1],body:nu(t[e+2],t)}},function(e,t){const n=t[e+2];return{type:"BreakStatement",start:t[e],end:t[e+1],label:0===n?null:tu(n,t)}},function(e,t){const n=t[e+2],s=Pa(t[e+3],t);return{type:"CallExpression",start:t[e],end:t[e+1],optional:!(1&~n),...s.length>0?{annotations:s}:{},callee:tu(t[e+4],t),arguments:nu(t[e+5],t)}},function(e,t){const n=t[e+2];return{type:"CatchClause",start:t[e],end:t[e+1],param:0===n?null:tu(n,t),body:tu(t[e+3],t)}},function(e,t){return{type:"ChainExpression",start:t[e],end:t[e+1],expression:tu(t[e+2],t)}},function(e,t){return{type:"ClassBody",start:t[e],end:t[e+1],body:nu(t[e+2],t)}},function(e,t){const n=t[e+3],s=t[e+4];return{type:"ClassDeclaration",start:t[e],end:t[e+1],decorators:nu(t[e+2],t),id:0===n?null:tu(n,t),superClass:0===s?null:tu(s,t),body:tu(t[e+5],t)}},function(e,t){const n=t[e+3],s=t[e+4];return{type:"ClassExpression",start:t[e],end:t[e+1],decorators:nu(t[e+2],t),id:0===n?null:tu(n,t),superClass:0===s?null:tu(s,t),body:tu(t[e+5],t)}},function(e,t){return{type:"ConditionalExpression",start:t[e],end:t[e+1],test:tu(t[e+2],t),consequent:tu(t[e+3],t),alternate:tu(t[e+4],t)}},function(e,t){const n=t[e+2];return{type:"ContinueStatement",start:t[e],end:t[e+1],label:0===n?null:tu(n,t)}},function(e,t){return{type:"DebuggerStatement",start:t[e],end:t[e+1]}},function(e,t){return{type:"Decorator",start:t[e],end:t[e+1],expression:tu(t[e+2],t)}},function(e,t){return{type:"ExpressionStatement",start:t[e],end:t[e+1],directive:t.convertString(t[e+2]),expression:tu(t[e+3],t)}},function(e,t){return{type:"DoWhileStatement",start:t[e],end:t[e+1],body:tu(t[e+2],t),test:tu(t[e+3],t)}},function(e,t){return{type:"EmptyStatement",start:t[e],end:t[e+1]}},function(e,t){const n=t[e+2];return{type:"ExportAllDeclaration",start:t[e],end:t[e+1],exported:0===n?null:tu(n,t),source:tu(t[e+3],t),attributes:nu(t[e+4],t)}},function(e,t){return{type:"ExportDefaultDeclaration",start:t[e],end:t[e+1],declaration:tu(t[e+2],t)}},function(e,t){const n=t[e+3],s=t[e+5];return{type:"ExportNamedDeclaration",start:t[e],end:t[e+1],specifiers:nu(t[e+2],t),source:0===n?null:tu(n,t),attributes:nu(t[e+4],t),declaration:0===s?null:tu(s,t)}},function(e,t){const n=tu(t[e+2],t),s=t[e+3];return{type:"ExportSpecifier",start:t[e],end:t[e+1],local:n,exported:0===s?{...n}:tu(s,t)}},function(e,t){return{type:"ExpressionStatement",start:t[e],end:t[e+1],expression:tu(t[e+2],t)}},function(e,t){return{type:"ForInStatement",start:t[e],end:t[e+1],left:tu(t[e+2],t),right:tu(t[e+3],t),body:tu(t[e+4],t)}},function(e,t){const n=t[e+2];return{type:"ForOfStatement",start:t[e],end:t[e+1],await:!(1&~n),left:tu(t[e+3],t),right:tu(t[e+4],t),body:tu(t[e+5],t)}},function(e,t){const n=t[e+2],s=t[e+3],i=t[e+4];return{type:"ForStatement",start:t[e],end:t[e+1],init:0===n?null:tu(n,t),test:0===s?null:tu(s,t),update:0===i?null:tu(i,t),body:tu(t[e+5],t)}},function(e,t){const n=t[e+2],s=Pa(t[e+3],t),i=t[e+4];return{type:"FunctionDeclaration",start:t[e],end:t[e+1],async:!(1&~n),generator:!(2&~n),...s.length>0?{annotations:s}:{},id:0===i?null:tu(i,t),params:nu(t[e+5],t),body:tu(t[e+6],t),expression:!1}},function(e,t){const n=t[e+2],s=Pa(t[e+3],t),i=t[e+4];return{type:"FunctionExpression",start:t[e],end:t[e+1],async:!(1&~n),generator:!(2&~n),...s.length>0?{annotations:s}:{},id:0===i?null:tu(i,t),params:nu(t[e+5],t),body:tu(t[e+6],t),expression:!1}},function(e,t){return{type:"Identifier",start:t[e],end:t[e+1],name:t.convertString(t[e+2])}},function(e,t){const n=t[e+4];return{type:"IfStatement",start:t[e],end:t[e+1],test:tu(t[e+2],t),consequent:tu(t[e+3],t),alternate:0===n?null:tu(n,t)}},function(e,t){return{type:"ImportAttribute",start:t[e],end:t[e+1],key:tu(t[e+2],t),value:tu(t[e+3],t)}},function(e,t){const n=t[e+5];return{type:"ImportDeclaration",start:t[e],end:t[e+1],specifiers:nu(t[e+2],t),source:tu(t[e+3],t),attributes:nu(t[e+4],t),phase:0===n?void 0:Sa[t[e+5]]}},function(e,t){return{type:"ImportDefaultSpecifier",start:t[e],end:t[e+1],local:tu(t[e+2],t)}},function(e,t){const n=t[e+3],s=t[e+4];return{type:"ImportExpression",start:t[e],end:t[e+1],source:tu(t[e+2],t),options:0===n?null:tu(n,t),phase:0===s?void 0:Sa[t[e+4]]}},function(e,t){return{type:"ImportNamespaceSpecifier",start:t[e],end:t[e+1],local:tu(t[e+2],t)}},function(e,t){const n=t[e+2],s=tu(t[e+3],t);return{type:"ImportSpecifier",start:t[e],end:t[e+1],imported:0===n?{...s}:tu(n,t),local:s}},function(e,t){const n=t[e+3];return{type:"JSXAttribute",start:t[e],end:t[e+1],name:tu(t[e+2],t),value:0===n?null:tu(n,t)}},function(e,t){return{type:"JSXClosingElement",start:t[e],end:t[e+1],name:tu(t[e+2],t)}},function(e,t){return{type:"JSXClosingFragment",start:t[e],end:t[e+1]}},function(e,t){const n=t[e+4];return{type:"JSXElement",start:t[e],end:t[e+1],openingElement:tu(t[e+2],t),children:nu(t[e+3],t),closingElement:0===n?null:tu(n,t)}},function(e,t){return{type:"JSXEmptyExpression",start:t[e],end:t[e+1]}},function(e,t){return{type:"JSXExpressionContainer",start:t[e],end:t[e+1],expression:tu(t[e+2],t)}},function(e,t){return{type:"JSXFragment",start:t[e],end:t[e+1],openingFragment:tu(t[e+2],t),children:nu(t[e+3],t),closingFragment:tu(t[e+4],t)}},function(e,t){return{type:"JSXIdentifier",start:t[e],end:t[e+1],name:t.convertString(t[e+2])}},function(e,t){return{type:"JSXMemberExpression",start:t[e],end:t[e+1],object:tu(t[e+2],t),property:tu(t[e+3],t)}},function(e,t){return{type:"JSXNamespacedName",start:t[e],end:t[e+1],namespace:tu(t[e+2],t),name:tu(t[e+3],t)}},function(e,t){const n=t[e+2];return{type:"JSXOpeningElement",start:t[e],end:t[e+1],selfClosing:!(1&~n),name:tu(t[e+3],t),attributes:nu(t[e+4],t)}},function(e,t){return{type:"JSXOpeningFragment",start:t[e],end:t[e+1],attributes:[],selfClosing:!1}},function(e,t){return{type:"JSXSpreadAttribute",start:t[e],end:t[e+1],argument:tu(t[e+2],t)}},function(e,t){return{type:"JSXSpreadChild",start:t[e],end:t[e+1],expression:tu(t[e+2],t)}},function(e,t){return{type:"JSXText",start:t[e],end:t[e+1],value:t.convertString(t[e+2]),raw:t.convertString(t[e+3])}},function(e,t){return{type:"LabeledStatement",start:t[e],end:t[e+1],label:tu(t[e+2],t),body:tu(t[e+3],t)}},function(e,t){const n=t.convertString(t[e+2]);return{type:"Literal",start:t[e],end:t[e+1],bigint:n,raw:t.convertString(t[e+3]),value:BigInt(n)}},function(e,t){const n=!(1&~t[e+2]);return{type:"Literal",start:t[e],end:t[e+1],value:n,raw:n?"true":"false"}},function(e,t){return{type:"Literal",start:t[e],end:t[e+1],raw:"null",value:null}},function(e,t){const n=t[e+2];return{type:"Literal",start:t[e],end:t[e+1],raw:0===n?void 0:t.convertString(n),value:t.convertFloat64(e+3)}},function(e,t){const n=t.convertString(t[e+2]),s=t.convertString(t[e+3]);return{type:"Literal",start:t[e],end:t[e+1],raw:`/${s}/${n}`,regex:{flags:n,pattern:s},value:new RegExp(s,n)}},function(e,t){const n=t[e+3];return{type:"Literal",start:t[e],end:t[e+1],value:t.convertString(t[e+2]),raw:0===n?void 0:t.convertString(n)}},function(e,t){return{type:"LogicalExpression",start:t[e],end:t[e+1],operator:Sa[t[e+2]],left:tu(t[e+3],t),right:tu(t[e+4],t)}},function(e,t){const n=t[e+2];return{type:"MemberExpression",start:t[e],end:t[e+1],computed:!(1&~n),optional:!(2&~n),object:tu(t[e+3],t),property:tu(t[e+4],t)}},function(e,t){return{type:"MetaProperty",start:t[e],end:t[e+1],meta:tu(t[e+2],t),property:tu(t[e+3],t)}},function(e,t){const n=t[e+2];return{type:"MethodDefinition",start:t[e],end:t[e+1],static:!(1&~n),computed:!(2&~n),decorators:nu(t[e+3],t),key:tu(t[e+4],t),value:tu(t[e+5],t),kind:Sa[t[e+6]]}},function(e,t){const n=Pa(t[e+2],t);return{type:"NewExpression",start:t[e],end:t[e+1],...n.length>0?{annotations:n}:{},callee:tu(t[e+3],t),arguments:nu(t[e+4],t)}},function(e,t){return{type:"ObjectExpression",start:t[e],end:t[e+1],properties:nu(t[e+2],t)}},function(e,t){return{type:"ObjectPattern",start:t[e],end:t[e+1],properties:nu(t[e+2],t)}},function(e,t){return{type:"PrivateIdentifier",start:t[e],end:t[e+1],name:t.convertString(t[e+2])}},function(e,t){const n=Pa(t[e+3],t);return{type:"Program",start:t[e],end:t[e+1],body:nu(t[e+2],t),...n.length>0?{invalidAnnotations:n}:{},sourceType:"module"}},function(e,t){const n=t[e+2],s=t[e+3],i=tu(t[e+4],t);return{type:"Property",start:t[e],end:t[e+1],method:!(1&~n),shorthand:!(2&~n),computed:!(4&~n),key:0===s?{...i}:tu(s,t),value:i,kind:Sa[t[e+5]]}},function(e,t){const n=t[e+2],s=t[e+5];return{type:"PropertyDefinition",start:t[e],end:t[e+1],static:!(1&~n),computed:!(2&~n),decorators:nu(t[e+3],t),key:tu(t[e+4],t),value:0===s?null:tu(s,t)}},function(e,t){return{type:"RestElement",start:t[e],end:t[e+1],argument:tu(t[e+2],t)}},function(e,t){const n=t[e+2];return{type:"ReturnStatement",start:t[e],end:t[e+1],argument:0===n?null:tu(n,t)}},function(e,t){return{type:"SequenceExpression",start:t[e],end:t[e+1],expressions:nu(t[e+2],t)}},function(e,t){return{type:"SpreadElement",start:t[e],end:t[e+1],argument:tu(t[e+2],t)}},function(e,t){return{type:"StaticBlock",start:t[e],end:t[e+1],body:nu(t[e+2],t)}},function(e,t){return{type:"Super",start:t[e],end:t[e+1]}},function(e,t){const n=t[e+2];return{type:"SwitchCase",start:t[e],end:t[e+1],test:0===n?null:tu(n,t),consequent:nu(t[e+3],t)}},function(e,t){return{type:"SwitchStatement",start:t[e],end:t[e+1],discriminant:tu(t[e+2],t),cases:nu(t[e+3],t)}},function(e,t){return{type:"TaggedTemplateExpression",start:t[e],end:t[e+1],tag:tu(t[e+2],t),quasi:tu(t[e+3],t)}},function(e,t){const n=t[e+2],s=t[e+3],i=0===s?void 0:t.convertString(s),r=t.convertString(t[e+4]);return{type:"TemplateElement",start:t[e],end:t[e+1],tail:!(1&~n),value:{cooked:i,raw:r}}},function(e,t){return{type:"TemplateLiteral",start:t[e],end:t[e+1],quasis:nu(t[e+2],t),expressions:nu(t[e+3],t)}},function(e,t){return{type:"ThisExpression",start:t[e],end:t[e+1]}},function(e,t){return{type:"ThrowStatement",start:t[e],end:t[e+1],argument:tu(t[e+2],t)}},function(e,t){const n=t[e+3],s=t[e+4];return{type:"TryStatement",start:t[e],end:t[e+1],block:tu(t[e+2],t),handler:0===n?null:tu(n,t),finalizer:0===s?null:tu(s,t)}},function(e,t){return{type:"UnaryExpression",start:t[e],end:t[e+1],operator:Sa[t[e+2]],argument:tu(t[e+3],t),prefix:!0}},function(e,t){const n=t[e+2];return{type:"UpdateExpression",start:t[e],end:t[e+1],prefix:!(1&~n),operator:Sa[t[e+3]],argument:tu(t[e+4],t)}},function(e,t){return{type:"VariableDeclaration",start:t[e],end:t[e+1],kind:Sa[t[e+2]],declarations:nu(t[e+3],t)}},function(e,t){const n=t[e+3];return{type:"VariableDeclarator",start:t[e],end:t[e+1],id:tu(t[e+2],t),init:0===n?null:tu(n,t)}},function(e,t){return{type:"WhileStatement",start:t[e],end:t[e+1],test:tu(t[e+2],t),body:tu(t[e+3],t)}},function(e,t){const n=t[e+2],s=t[e+3];return{type:"YieldExpression",start:t[e],end:t[e+1],delegate:!(1&~n),argument:0===s?null:tu(s,t)}}];function tu(e,t){const n=t[e],s=eu[n];if(!s)throw console.trace(),new Error(`Unknown node type: ${n}`);return s(e+1,t)}function nu(e,t){if(0===e)return Ee;const n=t[e++],s=new Array(n);for(let i=0;i<n;i++){const n=t[e++];s[i]=n?tu(n,t):null}return s}var su={"!":10,"!=":18,"!==":20,"%":30,"%=":45,"&":33,"&&":35,"&&=":53,"&=":51,"*":28,"**":38,"**=":52,"*=":43,"+":9,"++":15,"+=":41,"-":8,"--":16,"-=":42,"/":29,"/=":44,"<":21,"<<":25,"<<=":46,"<=":22,"=":40,"==":17,"===":19,">":23,">=":24,">>":26,">>=":47,">>>":27,">>>=":48,"??":39,"??=":55,"^":32,"^=":50,"await using":60,const:2,constructor:6,defer:62,delete:14,get:4,in:36,init:3,instanceof:37,let:1,method:7,noSideEffects:57,pure:56,set:5,source:61,sourcemap:58,typeof:12,using:59,var:0,void:13,"|":31,"|=":49,"||":34,"||=":54,"~":11};const iu=e=>{const t=("undefined"==typeof Buffer?Ta:Ba)(65536);return(ru[e.type]||Gt(dn(e.type,null,"")))(e,t).toOutput()},ru={ArrayExpression:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=2,t[n+1]=e.start,t[n+2]=e.end,t=mu("elements",e,t,n+3)},ArrayPattern:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=3,t[n+1]=e.start,t[n+2]=e.end,t=mu("elements",e,t,n+3)},ArrowFunctionExpression:(e,t)=>{const n=t.position;return(t=t.reserve(8))[n]=4,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.async|e.expression<<1|e.generator<<2,t=fu("body",e,t=mu("params",e,t=gu(e.annotations,t,n+4),n+5),n+6)},AssignmentExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=5,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=su[e.operator],t=fu("left",e,t,n+4),t=fu("right",e,t,n+5)},AssignmentPattern:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=6,t[n+1]=e.start,t[n+2]=e.end,t=fu("left",e,t,n+3),t=fu("right",e,t,n+4)},AwaitExpression:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=7,t[n+1]=e.start,t[n+2]=e.end,t=fu("argument",e,t,n+3)},BinaryExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=8,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=su[e.operator],t=fu("left",e,t,n+4),t=fu("right",e,t,n+5)},BlockStatement:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=9,t[n+1]=e.start,t[n+2]=e.end,t=mu("body",e,t,n+3)},BreakStatement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=10,t[n+1]=e.start,t[n+2]=e.end,null!=e.label&&(t=fu("label",e,t,n+3)),t},CallExpression:(e,t)=>{const n=t.position;return(t=t.reserve(7))[n]=11,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.optional|0,t=mu("arguments",e,t=fu("callee",e,t=gu(e.annotations,t,n+4),n+5),n+6)},CatchClause:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=12,t[n+1]=e.start,t[n+2]=e.end,null!=e.param&&(t=fu("param",e,t,n+3)),t=fu("body",e,t,n+4)},ChainExpression:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=13,t[n+1]=e.start,t[n+2]=e.end,t=fu("expression",e,t,n+3)},ClassBody:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=14,t[n+1]=e.start,t[n+2]=e.end,t=mu("body",e,t,n+3)},ClassDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(8))[n]=15,t[n+1]=e.start,t[n+2]=e.end,t=mu("decorators",e,t,n+3),null!=e.id&&(t=fu("id",e,t,n+4)),null!=e.superClass&&(t=fu("superClass",e,t,n+5)),t=fu("body",e,t,n+6)},ClassExpression:(e,t)=>{const n=t.position;return(t=t.reserve(8))[n]=16,t[n+1]=e.start,t[n+2]=e.end,t=mu("decorators",e,t,n+3),null!=e.id&&(t=fu("id",e,t,n+4)),null!=e.superClass&&(t=fu("superClass",e,t,n+5)),t=fu("body",e,t,n+6)},ConditionalExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=17,t[n+1]=e.start,t[n+2]=e.end,t=fu("test",e,t,n+3),t=fu("consequent",e,t,n+4),t=fu("alternate",e,t,n+5)},ContinueStatement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=18,t[n+1]=e.start,t[n+2]=e.end,null!=e.label&&(t=fu("label",e,t,n+3)),t},DebuggerStatement:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=19,t[n+1]=e.start,t[n+2]=e.end,t},Decorator:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=20,t[n+1]=e.start,t[n+2]=e.end,t=fu("expression",e,t,n+3)},DoWhileStatement:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=22,t[n+1]=e.start,t[n+2]=e.end,t=fu("body",e,t,n+3),t=fu("test",e,t,n+4)},EmptyStatement:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=23,t[n+1]=e.start,t[n+2]=e.end,t},ExportAllDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=24,t[n+1]=e.start,t[n+2]=e.end,null!=e.exported&&(t=fu("exported",e,t,n+3)),t=mu("attributes",e,t=fu("source",e,t,n+4),n+5)},ExportDefaultDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=25,t[n+1]=e.start,t[n+2]=e.end,t=fu("declaration",e,t,n+3)},ExportNamedDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(7))[n]=26,t[n+1]=e.start,t[n+2]=e.end,t=mu("specifiers",e,t,n+3),null!=e.source&&(t=fu("source",e,t,n+4)),t=mu("attributes",e,t,n+5),null!=e.declaration&&(t=fu("declaration",e,t,n+6)),t},ExportSpecifier:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=27,t[n+1]=e.start,t[n+2]=e.end,t=fu("local",e,t,n+3),e.exported.end!=e.local.end&&(t=fu("exported",e,t,n+4)),t},ExpressionStatement:(e,t)=>"directive"in e?ou(e,t):au(e,t),ForInStatement:(e,t)=>{const n=t.position;return(t=t.reserve(7))[n]=29,t[n+1]=e.start,t[n+2]=e.end,t=fu("left",e,t,n+3),t=fu("right",e,t,n+4),t=fu("body",e,t,n+5)},ForOfStatement:(e,t)=>{const n=t.position;return(t=t.reserve(8))[n]=30,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.await|0,t=fu("left",e,t,n+4),t=fu("right",e,t,n+5),t=fu("body",e,t,n+6)},ForStatement:(e,t)=>{const n=t.position;return(t=t.reserve(8))[n]=31,t[n+1]=e.start,t[n+2]=e.end,null!=e.init&&(t=fu("init",e,t,n+3)),null!=e.test&&(t=fu("test",e,t,n+4)),null!=e.update&&(t=fu("update",e,t,n+5)),t=fu("body",e,t,n+6)},FunctionDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(9))[n]=32,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.async|e.generator<<1,t=gu(e.annotations,t,n+4),null!=e.id&&(t=fu("id",e,t,n+5)),t=fu("body",e,t=mu("params",e,t,n+6),n+7)},FunctionExpression:(e,t)=>{const n=t.position;return(t=t.reserve(9))[n]=33,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.async|e.generator<<1,t=gu(e.annotations,t,n+4),null!=e.id&&(t=fu("id",e,t,n+5)),t=fu("body",e,t=mu("params",e,t,n+6),n+7)},Identifier:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=34,t[n+1]=e.start,t[n+2]=e.end,t=t.addStringToBuffer(e.name,n+3)},IfStatement:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=35,t[n+1]=e.start,t[n+2]=e.end,t=fu("test",e,t,n+3),t=fu("consequent",e,t,n+4),null!=e.alternate&&(t=fu("alternate",e,t,n+5)),t},ImportAttribute:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=36,t[n+1]=e.start,t[n+2]=e.end,t=fu("key",e,t,n+3),t=fu("value",e,t,n+4)},ImportDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(7))[n]=37,t[n+1]=e.start,t[n+2]=e.end,t=mu("specifiers",e,t,n+3),t=mu("attributes",e,t=fu("source",e,t,n+4),n+5),null!=e.phase&&(t[n+6]=su[e.phase]),t},ImportDefaultSpecifier:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=38,t[n+1]=e.start,t[n+2]=e.end,t=fu("local",e,t,n+3)},ImportExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=39,t[n+1]=e.start,t[n+2]=e.end,t=fu("source",e,t,n+3),null!=e.options&&(t=fu("options",e,t,n+4)),null!=e.phase&&(t[n+5]=su[e.phase]),t},ImportNamespaceSpecifier:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=40,t[n+1]=e.start,t[n+2]=e.end,t=fu("local",e,t,n+3)},ImportSpecifier:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=41,t[n+1]=e.start,t[n+2]=e.end,e.imported.end!=e.local.end&&(t=fu("imported",e,t,n+3)),t=fu("local",e,t,n+4)},JSXAttribute:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=42,t[n+1]=e.start,t[n+2]=e.end,t=fu("name",e,t,n+3),null!=e.value&&(t=fu("value",e,t,n+4)),t},JSXClosingElement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=43,t[n+1]=e.start,t[n+2]=e.end,t=fu("name",e,t,n+3)},JSXClosingFragment:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=44,t[n+1]=e.start,t[n+2]=e.end,t},JSXElement:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=45,t[n+1]=e.start,t[n+2]=e.end,t=mu("children",e,t=fu("openingElement",e,t,n+3),n+4),null!=e.closingElement&&(t=fu("closingElement",e,t,n+5)),t},JSXEmptyExpression:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=46,t[n+1]=e.start,t[n+2]=e.end,t},JSXExpressionContainer:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=47,t[n+1]=e.start,t[n+2]=e.end,t=fu("expression",e,t,n+3)},JSXFragment:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=48,t[n+1]=e.start,t[n+2]=e.end,t=fu("openingFragment",e,t,n+3),t=fu("closingFragment",e,t=mu("children",e,t,n+4),n+5)},JSXIdentifier:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=49,t[n+1]=e.start,t[n+2]=e.end,t=t.addStringToBuffer(e.name,n+3)},JSXMemberExpression:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=50,t[n+1]=e.start,t[n+2]=e.end,t=fu("object",e,t,n+3),t=fu("property",e,t,n+4)},JSXNamespacedName:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=51,t[n+1]=e.start,t[n+2]=e.end,t=fu("namespace",e,t,n+3),t=fu("name",e,t,n+4)},JSXOpeningElement:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=52,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.selfClosing|0,t=mu("attributes",e,t=fu("name",e,t,n+4),n+5)},JSXOpeningFragment:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=53,t[n+1]=e.start,t[n+2]=e.end,t},JSXSpreadAttribute:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=54,t[n+1]=e.start,t[n+2]=e.end,t=fu("argument",e,t,n+3)},JSXSpreadChild:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=55,t[n+1]=e.start,t[n+2]=e.end,t=fu("expression",e,t,n+3)},JSXText:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=56,t[n+1]=e.start,t[n+2]=e.end,t=(t=t.addStringToBuffer(e.value,n+3)).addStringToBuffer(e.raw,n+4)},LabeledStatement:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=57,t[n+1]=e.start,t[n+2]=e.end,t=fu("label",e,t,n+3),t=fu("body",e,t,n+4)},Literal:(e,t)=>{switch(typeof e.value){case"object":return null===e.value?uu(e,t):hu(e,t);case"boolean":return cu(e,t);case"number":return du(e,t);case"string":return pu(e,t);case"bigint":return lu(e,t);default:throw new Error("Unexpected node value type for Literal: "+typeof e.value)}},LogicalExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=64,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=su[e.operator],t=fu("left",e,t,n+4),t=fu("right",e,t,n+5)},MemberExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=65,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.computed|e.optional<<1,t=fu("object",e,t,n+4),t=fu("property",e,t,n+5)},MetaProperty:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=66,t[n+1]=e.start,t[n+2]=e.end,t=fu("meta",e,t,n+3),t=fu("property",e,t,n+4)},MethodDefinition:(e,t)=>{const n=t.position;return(t=t.reserve(8))[n]=67,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.static|e.computed<<1,t=fu("key",e,t=mu("decorators",e,t,n+4),n+5),(t=fu("value",e,t,n+6))[n+7]=su[e.kind],t},NewExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=68,t[n+1]=e.start,t[n+2]=e.end,t=mu("arguments",e,t=fu("callee",e,t=gu(e.annotations,t,n+3),n+4),n+5)},ObjectExpression:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=69,t[n+1]=e.start,t[n+2]=e.end,t=mu("properties",e,t,n+3)},ObjectPattern:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=70,t[n+1]=e.start,t[n+2]=e.end,t=mu("properties",e,t,n+3)},PanicError:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=0,t[n+1]=e.start,t[n+2]=e.end,t=t.addStringToBuffer(e.message,n+3)},ParseError:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=1,t[n+1]=e.start,t[n+2]=e.end,t=t.addStringToBuffer(e.message,n+3)},PrivateIdentifier:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=71,t[n+1]=e.start,t[n+2]=e.end,t=t.addStringToBuffer(e.name,n+3)},Program:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=72,t[n+1]=e.start,t[n+2]=e.end,t=mu("body",e,t,n+3),t=gu(e.invalidAnnotations,t,n+4)},Property:(e,t)=>{const n=t.position;return(t=t.reserve(7))[n]=73,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.method|e.shorthand<<1|e.computed<<2,e.key.end!=e.value.end&&(t=fu("key",e,t,n+4)),(t=fu("value",e,t,n+5))[n+6]=su[e.kind],t},PropertyDefinition:(e,t)=>{const n=t.position;return(t=t.reserve(7))[n]=74,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.static|e.computed<<1,t=fu("key",e,t=mu("decorators",e,t,n+4),n+5),null!=e.value&&(t=fu("value",e,t,n+6)),t},RestElement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=75,t[n+1]=e.start,t[n+2]=e.end,t=fu("argument",e,t,n+3)},ReturnStatement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=76,t[n+1]=e.start,t[n+2]=e.end,null!=e.argument&&(t=fu("argument",e,t,n+3)),t},SequenceExpression:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=77,t[n+1]=e.start,t[n+2]=e.end,t=mu("expressions",e,t,n+3)},SpreadElement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=78,t[n+1]=e.start,t[n+2]=e.end,t=fu("argument",e,t,n+3)},StaticBlock:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=79,t[n+1]=e.start,t[n+2]=e.end,t=mu("body",e,t,n+3)},Super:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=80,t[n+1]=e.start,t[n+2]=e.end,t},SwitchCase:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=81,t[n+1]=e.start,t[n+2]=e.end,null!=e.test&&(t=fu("test",e,t,n+3)),t=mu("consequent",e,t,n+4)},SwitchStatement:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=82,t[n+1]=e.start,t[n+2]=e.end,t=mu("cases",e,t=fu("discriminant",e,t,n+3),n+4)},TaggedTemplateExpression:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=83,t[n+1]=e.start,t[n+2]=e.end,t=fu("tag",e,t,n+3),t=fu("quasi",e,t,n+4)},TemplateElement:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=84,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.tail|0,null!=e.value.cooked&&(t=t.addStringToBuffer(e.value.cooked,n+4)),t=t.addStringToBuffer(e.value.raw,n+5)},TemplateLiteral:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=85,t[n+1]=e.start,t[n+2]=e.end,t=mu("quasis",e,t,n+3),t=mu("expressions",e,t,n+4)},ThisExpression:(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=86,t[n+1]=e.start,t[n+2]=e.end,t},ThrowStatement:(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=87,t[n+1]=e.start,t[n+2]=e.end,t=fu("argument",e,t,n+3)},TryStatement:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=88,t[n+1]=e.start,t[n+2]=e.end,t=fu("block",e,t,n+3),null!=e.handler&&(t=fu("handler",e,t,n+4)),null!=e.finalizer&&(t=fu("finalizer",e,t,n+5)),t},UnaryExpression:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=89,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=su[e.operator],t=fu("argument",e,t,n+4)},UpdateExpression:(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=90,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.prefix|0,t[n+4]=su[e.operator],t=fu("argument",e,t,n+5)},VariableDeclaration:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=91,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=su[e.kind],t=mu("declarations",e,t,n+4)},VariableDeclarator:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=92,t[n+1]=e.start,t[n+2]=e.end,t=fu("id",e,t,n+3),null!=e.init&&(t=fu("init",e,t,n+4)),t},WhileStatement:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=93,t[n+1]=e.start,t[n+2]=e.end,t=fu("test",e,t,n+3),t=fu("body",e,t,n+4)},YieldExpression:(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=94,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.delegate|0,null!=e.argument&&(t=fu("argument",e,t,n+4)),t}},ou=(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=21,t[n+1]=e.start,t[n+2]=e.end,t=fu("expression",e,t=t.addStringToBuffer(e.directive,n+3),n+4)},au=(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=28,t[n+1]=e.start,t[n+2]=e.end,t=fu("expression",e,t,n+3)},lu=(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=58,t[n+1]=e.start,t[n+2]=e.end,t=(t=t.addStringToBuffer(e.bigint,n+3)).addStringToBuffer(e.raw,n+4)},cu=(e,t)=>{const n=t.position;return(t=t.reserve(4))[n]=59,t[n+1]=e.start,t[n+2]=e.end,t[n+3]=e.value|0,t},uu=(e,t)=>{const n=t.position;return(t=t.reserve(3))[n]=60,t[n+1]=e.start,t[n+2]=e.end,t},du=(e,t)=>{const n=t.position;return(t=t.reserve(6))[n]=61,t[n+1]=e.start,t[n+2]=e.end,null!=e.raw&&(t=t.addStringToBuffer(e.raw,n+3)),t.writeFloat64(e.value,n+4),t},hu=(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=62,t[n+1]=e.start,t[n+2]=e.end,t=(t=t.addStringToBuffer(e.regex.flags,n+3)).addStringToBuffer(e.regex.pattern,n+4)},pu=(e,t)=>{const n=t.position;return(t=t.reserve(5))[n]=63,t[n+1]=e.start,t[n+2]=e.end,t=t.addStringToBuffer(e.value,n+3),null!=e.raw&&(t=t.addStringToBuffer(e.raw,n+4)),t};function fu(e,t,n,s){n[s]=n.position;const i=t[e];return(ru[i.type]||Gt(dn(i.type,t.type,e)))(i,n)}function mu(e,t,n,s){const i=t[e];if(null==i)return n;const{length:r}=i;if(0===r)return n;if(null==r)return Gt(function(e,t,n){return{code:Jt,message:`Could not serialize AST: Expected ${e}.${t} to be an array, but it was ${JSON.stringify(n)}.`}}(t.type,e,t[e]));let o=n.position;(n=n.reserve(r+1))[s]=o,n[o]=r,o++;for(let s=0;s<r;s++){const r=i[s];null!=r&&(n[o+s]=n.position,n=(ru[r.type]||Gt(dn(r.type,t.type,e)))(r,n))}return n}function gu(e,t,n){if(!e?.length)return t;const{length:s}=e;let i=t.position;(t=t.reserve(s+1))[n]=i,t[i]=s,i++;for(let n=0;n<s;n++){const s=e[n],r=t.position;(t=t.reserve(3))[i+n]=r,t[r]=s.start,t[r+1]=s.end,t[r+2]=su[s.type]}return t}const yu={ArrayExpression:[2],ArrayPattern:[3],ArrowFunctionExpression:[4],AssignmentExpression:[5],AssignmentPattern:[6],AwaitExpression:[7],BinaryExpression:[8],BlockStatement:[9],BreakStatement:[10],CallExpression:[11],CatchClause:[12],ChainExpression:[13],ClassBody:[14],ClassDeclaration:[15],ClassExpression:[16],ConditionalExpression:[17],ContinueStatement:[18],DebuggerStatement:[19],Decorator:[20],DoWhileStatement:[22],EmptyStatement:[23],ExportAllDeclaration:[24],ExportDefaultDeclaration:[25],ExportNamedDeclaration:[26],ExportSpecifier:[27],ExpressionStatement:[21,28],ForInStatement:[29],ForOfStatement:[30],ForStatement:[31],FunctionDeclaration:[32],FunctionExpression:[33],Identifier:[34],IfStatement:[35],ImportAttribute:[36],ImportDeclaration:[37],ImportDefaultSpecifier:[38],ImportExpression:[39],ImportNamespaceSpecifier:[40],ImportSpecifier:[41],JSXAttribute:[42],JSXClosingElement:[43],JSXClosingFragment:[44],JSXElement:[45],JSXEmptyExpression:[46],JSXExpressionContainer:[47],JSXFragment:[48],JSXIdentifier:[49],JSXMemberExpression:[50],JSXNamespacedName:[51],JSXOpeningElement:[52],JSXOpeningFragment:[53],JSXSpreadAttribute:[54],JSXSpreadChild:[55],JSXText:[56],LabeledStatement:[57],Literal:[58,59,60,61,62,63],LogicalExpression:[64],MemberExpression:[65],MetaProperty:[66],MethodDefinition:[67],NewExpression:[68],ObjectExpression:[69],ObjectPattern:[70],PanicError:[0],ParseError:[1],PrivateIdentifier:[71],Program:[72],Property:[73],PropertyDefinition:[74],RestElement:[75],ReturnStatement:[76],SequenceExpression:[77],SpreadElement:[78],StaticBlock:[79],Super:[80],SwitchCase:[81],SwitchStatement:[82],TaggedTemplateExpression:[83],TemplateElement:[84],TemplateLiteral:[85],ThisExpression:[86],ThrowStatement:[87],TryStatement:[88],UnaryExpression:[89],UpdateExpression:[90],VariableDeclaration:[91],VariableDeclarator:[92],WhileStatement:[93],YieldExpression:[94]};async function bu(e,t,{allowReturnOutsideFunction:n=!1,collectScopes:s=!1,jsx:i=!1}={}){const r=function(e){let t=0n;for(const n of Object.keys(e)){const e=yu[n];if(!e)throw new Error(`Unknown node type "${n}" when calling "parseAndWalk".`);for(const n of e)t|=1n<<BigInt(n)}const n=new BigUint64Array(2);return n[0]=t&(1n<<64n)-1n,n[1]=t>>64n,n}(t);!function(e,t,n){const s=e[0],i=3;if(0===s)return $a(e,1);let r=s;const o=new Map,a={parseChildren(){const t=s+e[r+1]*i;r+=i,l(t),r-=i},skipChildren(){r=s+e[r+1]*i-i}};function l(s){for(;r<s;r+=i){const s=e[r];n&&(a.scope=c(e[r+2]));const i=za[e[s]];t[i]($a(e,s),a)}}function c(t){if(0===t)throw new Error("Internal Error: Missing scope information in parseAndWalk.");let n=o.get(t);return n||(n={contains(n){for(let s=t;s;){const t=e[s+1];for(let i=0;i<t;i++){const t=e[s+2+i];if(e.convertString(e[t+3])===n)return!0}s=e[s+0]}return!1}},o.set(t,n)),n}l(e.length)}(La(await Qc(e,n,i,r,s)),t,s)}const Eu=(e,t=0)=>((e,t)=>{const n=tu(t,e);switch(n.type){case Kn:return Gt(Ht(Nn(n.message)));case Xn:return Gt(Ht(Nn(n.message,n.start)));default:return n}})(La(e),t),xu=(e,t=0)=>$a(La(e),t),vu=(e,{allowReturnOutsideFunction:t=!1,jsx:n=!1}={})=>Eu(function(e,t,n){return Zc(Oc(e,t,n))}(e,t,n)),Au=new Set(["assert","with"]);function Su(e){const{scope:{context:t},options:n,start:s}=e;if(!(n instanceof Hl))return n&&t.module.log(Et,Sn(t.module.id),s),be;const i=n.properties.find(e=>Au.has(Pu(e)))?.value;if(!i)return be;if(!(i instanceof Hl))return t.module.log(Et,(r=t.module.id,{code:Zt,message:`Rollup could not statically analyze the options argument of a dynamic import in "${wt(r)}". Dynamic import options need to be an object with a nested attributes object.`}),s),be;var r;const o=i.properties.map(e=>{const n=Pu(e);return"string"==typeof n&&"string"==typeof e.value.value?[n,e.value.value]:(t.module.log(Et,Sn(t.module.id),e.start),null)}).filter(e=>!!e);return o.length>0?Object.fromEntries(o):be}const Pu=e=>{const t=e.key;return t&&!e.computed&&(t.name||t.value)};function wu(e){return e?.length?Object.fromEntries(e.map(e=>[Pu(e),e.value.value])):be}function $u(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length||n.some(n=>e[n]!==t[n])}var Iu="performance"in("undefined"==typeof globalThis?"undefined"==typeof window?{}:window:globalThis)?performance:{now:()=>0},Cu={memoryUsage:()=>({heapUsed:0})};let ku=new Map;function Nu(e,t){switch(t){case 1:return`# ${e}`;case 2:return`## ${e}`;case 3:return e;default:return`- ${e}`}}function Ou(e,t=3){e=Nu(e,t);const n=Cu.memoryUsage().heapUsed,s=Iu.now(),i=ku.get(e);void 0===i?ku.set(e,{memory:0,startMemory:n,startTime:s,time:0,totalMemory:0}):(i.startMemory=n,i.startTime=s)}function Ru(e,t=3){e=Nu(e,t);const n=ku.get(e);if(void 0!==n){const e=Cu.memoryUsage().heapUsed;n.memory+=e-n.startMemory,n.time+=Iu.now()-n.startTime,n.totalMemory=Math.max(n.totalMemory,e)}}function Du(){const e={};for(const[t,{memory:n,time:s,totalMemory:i}]of ku)e[t]=[s,n,i];return e}let Mu=Rs,_u=Rs;const Lu=["augmentChunkHash","buildEnd","buildStart","generateBundle","load","moduleParsed","options","outputOptions","renderChunk","renderDynamicImport","renderStart","resolveDynamicImport","resolveFileUrl","resolveId","resolveImportMeta","shouldTransformCachedModule","transform","writeBundle"];function Tu(e,t){if(e._hasTimer)return e;e._hasTimer=!0;for(const n of Lu)if(n in e){let s=`plugin ${t}`;e.name&&(s+=` (${e.name})`),s+=` - ${n}`;const i=function(...e){Mu(s,4);const t=r.apply(this,e);return _u(s,4),t};let r;"function"==typeof e[n].handler?(r=e[n].handler,e[n].handler=i):(r=e[n],e[n]=i)}return e}const Bu={identifier:null,localName:Ho};function zu(e,t,n,s,i=new Map,r,o,a){const l=i.get(t);if(l){if(l.has(e))return s?[null]:Gt((c=t,{code:"CIRCULAR_REEXPORT",exporter:u=e.id,message:`"${c}" cannot be exported from "${wt(u)}" as it is a reexport that references itself.`}));l.add(e)}else i.set(t,new Set([e]));var c,u;return e.getVariableForExportName(t,{exportOrReexportModules:a,importChain:r,importerForSideEffects:n,isExportAllSearch:s,searchedNamesAndModules:i,sideEffectModules:o})}function Fu(e,t){const n=ve(t.sideEffectDependenciesByVariable,e,Ae);let s=e;const i=new Set([s]);for(;;){const e=s.module;if(s=s instanceof So?s.getDirectOriginalVariable():s instanceof $o?s.syntheticNamespace:null,!s||i.has(s))break;i.add(s),n.add(e);const t=e.sideEffectDependenciesByVariable.get(s);if(t)for(const e of t)n.add(e)}return n}class Vu{constructor(e,t,n,s,i,r,o,a,l){this.graph=e,this.id=t,this.rawId=n,this.options=s,this.attributes=l,this.alternativeReexportModules=new Map,this.chunkFileNames=new Set,this.chunkNames=[],this.cycles=new Set,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicImporters=[],this.dynamicImports=[],this.execIndex=1/0,this.hasTreeShakingPassStarted=!1,this.implicitlyLoadedAfter=new Set,this.implicitlyLoadedBefore=new Set,this.importDescriptions=new Map,this.importMetas=[],this.importedFromNotTreeshaken=!1,this.importers=[],this.includedDynamicImporters=[],this.includedTopLevelAwaitingDynamicImporters=new Set,this.includedImports=new Set,this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.needsExportShim=!1,this.sideEffectDependenciesByVariable=new Map,this.sourcePhaseSources=new Set,this.sourcesWithAttributesList=new Map,this.allExportsIncluded=!1,this.ast=null,this.exportAllModules=[],this.exportAllSourcesWithAttributesList=new Map,this.exportDescriptions=new Map,this.exportedVariablesByName=null,this.exportNamesByVariable=null,this.exportShimVariable=new Ac(this),this.indentExclusionRanges=[],this.namespaceReexportsByName=new Map,this.reexportDescriptions=new Map,this.relevantDependencies=null,this.syntheticExports=new Map,this.syntheticNamespace=null,this.transformDependencies=[],this.excludeFromSourcemap=/\0/.test(t),this.context=s.moduleContext(t),this.preserveSignature=this.options.preserveEntrySignatures;const c=this,{dynamicImports:u,dynamicImporters:d,exportAllSourcesWithAttributesList:h,exportDescriptions:p,implicitlyLoadedAfter:f,implicitlyLoadedBefore:m,importers:g,reexportDescriptions:y,sourcesWithAttributesList:b}=this;this.info={ast:null,attributes:l,code:null,get dynamicallyImportedIdResolutions(){return u.map(({argument:e})=>"string"==typeof e&&c.resolvedIds[e]).filter(Boolean)},get dynamicallyImportedIds(){return u.map(({id:e})=>e).filter(e=>null!=e)},get dynamicImporters(){return d.sort()},get exportedBindings(){const e={".":[...p.keys()]};for(const[t,{source:n,attributes:s}]of y)(e[Cc(n,s)]??=[]).push(t);for(const[t,n]of h)for(const s of n)(e[Cc(t,s)]??=[]).push("*");return e},get exports(){return[...p.keys(),...y.keys(),...[...h].map(()=>"*")]},get hasDefaultExport(){return c.ast?c.exportDescriptions.has("default")||y.has("default"):null},id:t,get implicitlyLoadedAfterOneOf(){return Array.from(f,Ic).sort()},get implicitlyLoadedBefore(){return Array.from(m,Ic).sort()},get importedIdResolutions(){return Array.from(b.entries(),([e,t])=>t.map(t=>c.resolvedIds[Cc(e,t)])).flat().filter(Boolean)},get importedIds(){return Array.from(b.entries(),([e,t])=>t.map(t=>c.resolvedIds[Cc(e,t)]?.id)).flat().filter(Boolean)},get importers(){return g.sort()},isEntry:i,isExternal:!1,get isIncluded(){return e.phase!==Sc.GENERATE?null:c.isIncluded()},meta:{...a},moduleSideEffects:r,rawId:n,safeVariableNames:null,syntheticNamedExports:o}}basename(){const e=Y(this.id),t=Q(this.id);return ws(t?e.slice(0,-t.length):e)}bindReferences(){this.ast.bind()}cacheInfoGetters(){vs(this.info,["dynamicallyImportedIdResolutions","dynamicallyImportedIds","dynamicImporters","exportedBindings","exports","hasDefaultExport","implicitlyLoadedAfterOneOf","implicitlyLoadedBefore","importedIdResolutions","importedIds","importers"])}error(e,t){return void 0!==t&&this.addLocationToLogProps(e,t),Gt(e)}estimateSize(){let e=0;for(const t of this.ast.body)t.included&&(e+=t.end-t.start);return e}getDependenciesToBeIncluded(){if(this.relevantDependencies)return this.relevantDependencies;this.relevantDependencies=new Set;const e=new Set,t=new Set,n=new Set(this.includedImports);if(this.info.isEntry||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0)for(const e of this.getExportedVariablesByName().values())e.included&&n.add(e);for(let s of n){const n=this.sideEffectDependenciesByVariable.get(s);if(n)for(const e of n)t.add(e);s instanceof $o?s=s.getBaseVariable():s instanceof So&&(s=s.getOriginalVariable()),e.add(s.module)}if(this.options.treeshake&&"no-treeshake"!==this.info.moduleSideEffects)this.addRelevantSideEffectDependencies(this.relevantDependencies,e,t);else for(const e of this.dependencies)this.relevantDependencies.add(e);for(const t of e)this.relevantDependencies.add(t);return this.relevantDependencies}getExportedVariablesByName(){if(this.exportedVariablesByName)return this.exportedVariablesByName;const e=this.exportedVariablesByName=new Map;for(const t of this.exportDescriptions.keys())if(t!==this.info.syntheticNamedExports){const[n]=this.getVariableForExportName(t);if(!n)return Gt(wn(t,this.id));e.set(t,n)}for(const t of this.reexportDescriptions.keys()){const[n]=this.getVariableForExportName(t);n&&e.set(t,n)}for(const t of this.exportAllModules)if(t instanceof Ns)e.set(`*${t.id}`,t.getVariableForExportName("*",{importChain:[this.id]})[0]);else for(const n of t.getExportedVariablesByName().keys())if("default"!==n&&!e.has(n)){const[t]=this.getVariableForExportName(n);t&&e.set(n,t)}return this.exportedVariablesByName=new Map([...e].sort(Gu))}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;const e=new Map;for(const[t,n]of this.getExportedVariablesByName().entries()){const s=n instanceof So?n.getOriginalVariable():n;if(!n||!(n.included||n instanceof xs))continue;const i=e.get(s);i?i.push(t):e.set(s,[t])}return this.exportNamesByVariable=e}getRenderedExports(){const e=[],t=[];for(const n of this.exportDescriptions.keys())(this.getExportedVariablesByName().get(n)?.included?e:t).push(n);return{removedExports:t,renderedExports:e}}getSyntheticNamespace(){return null===this.syntheticNamespace&&(this.syntheticNamespace=void 0,[this.syntheticNamespace]=this.getVariableForExportName("string"==typeof this.info.syntheticNamedExports?this.info.syntheticNamedExports:"default",{onlyExplicit:!0})),this.syntheticNamespace?this.syntheticNamespace:Gt((e=this.id,t=this.info.syntheticNamedExports,{code:"SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT",exporter:e,message:`Module "${wt(e)}" that is marked with \`syntheticNamedExports: ${JSON.stringify(t)}\` needs ${"string"==typeof t&&"default"!==t?`an explicit export named "${t}"`:"a default export"} that does not reexport an unresolved named export of the same module.`}));var e,t}getVariableForExportName(e,{importerForSideEffects:t,importChain:n=[],isExportAllSearch:s,onlyExplicit:i,searchedNamesAndModules:r,sideEffectModules:o,exportOrReexportModules:a}=be){if("*"===e[0]){if(1===e.length)return[this.namespace];return this.graph.modulesById.get(e.slice(1)).getVariableForExportName("*",{importChain:[...n,this.id]})}const l=this.reexportDescriptions.get(e);if(l){const[e,s]=zu(l.module,l.localName,t,!1,r,[...n,this.id],o,a);return e?(t&&(ju(e,t,this),this.info.moduleSideEffects&&ve(t.sideEffectDependenciesByVariable,e,Ae).add(this)),this.info.moduleSideEffects&&o?.add(this),a?.add(this),[e]):this.error($n(l.localName,this.id,l.module.id,!!s?.missingButExportExists),l.start)}const c=this.exportDescriptions.get(e);if(c){if(c===Bu)return[this.exportShimVariable];const e=c.localName,n=this.traceVariable(e,{exportOrReexportModules:a,importerForSideEffects:t,searchedNamesAndModules:r,sideEffectModules:o});return n?(t&&(ju(n,t,this),ve(t.sideEffectDependenciesByVariable,n,Ae).add(this)),o?.add(this),a?.add(this),[n]):[null,{missingButExportExists:!0}]}if(i)return[null];if("default"!==e){const s=this.namespaceReexportsByName.get(e)??this.getVariableFromNamespaceReexports(e,t,r,[...n,this.id]);if(this.namespaceReexportsByName.set(e,s),s[0]){const[e,n]=s;if(t){const{exportOrReexportModules:s,sideEffectModules:i}=n;for(const n of s)t.alternativeReexportModules.has(e)||ju(e,t,n);for(const n of i)ve(t.sideEffectDependenciesByVariable,e,Ae).add(n)}return s}}return this.info.syntheticNamedExports?[ve(this.syntheticExports,e,()=>new $o(this.astContext,e,this.getSyntheticNamespace()))]:!s&&this.options.shimMissingExports?(this.shimMissingExport(e),[this.exportShimVariable]):[null]}hasEffects(){return"no-treeshake"===this.info.moduleSideEffects||this.ast.hasCachedEffects()}hasTopLevelAwait(){return this.astContext.usesTopLevelAwait}include(){const e=es();this.ast.shouldBeIncluded(e)&&this.ast.include(e,!1)}includeAllExports(){if(this.allExportsIncluded)return;this.allExportsIncluded=!0,this.includeModuleInExecution();const e=es();for(const t of this.getExportedVariablesByName().values())this.includeVariable(t,Te,e),t.deoptimizePath(Te),t instanceof xs&&(t.module.reexported=!0)}includeAllInBundle(){this.ast.include(es(),!0),this.includeAllExports()}includeModuleInExecution(){this.isExecuted||(Os(this),this.graph.needsTreeshakingPass=!0)}isIncluded(){return this.ast&&(this.ast.included||this.namespace.included||this.importedFromNotTreeshaken||this.exportShimVariable.included)}isEmitted(){return this.isIncluded()||this.info.isEntry||this.includedDynamicImporters.length>0||this.implicitlyLoadedAfter.size>0}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);const e=[];for(const[t,n]of this.exportAllSourcesWithAttributesList)for(const s of n){const n=this.graph.modulesById.get(this.resolvedIds[Cc(t,s)].id);n instanceof Ns?e.push(n):this.exportAllModules.push(n)}this.exportAllModules.push(...e)}log(e,t,n){this.addLocationToLogProps(t,n),this.options.onLog(e,t)}render(e){this.indentExclusionRanges=[];const t=this.magicString.clone();this.ast.render(t,e),t.trim();const{usesTopLevelAwait:n}=this.astContext;return n&&"es"!==e.format&&"system"!==e.format?Gt((s=this.id,i=e.format,{code:"INVALID_TLA_FORMAT",id:s,message:`Module format "${i}" does not support top-level await. Use the "es" or "system" output formats rather.`})):{indentExclusionRanges:this.indentExclusionRanges,source:t,usesTopLevelAwait:n};var s,i}setSource({astBuffer:e,code:t,customTransformCache:n,originalCode:s,originalSourcemap:i,resolvedIds:r,sourcemapChain:o,transformDependencies:a,transformFiles:l,safeVariableNames:c,...u}){if(Mu("generate ast",3),t.startsWith("#!")){const e=t.indexOf("\n");this.shebang=t.slice(2,e)}this.info.code=t,this.info.safeVariableNames=c,this.originalCode=s,this.originalSourcemap=$c(i),this.sourcemapChain=o.map(e=>e.missing?e:$c(e)),wc(this.originalSourcemap,this.sourcemapChain),l&&(this.transformFiles=l),this.transformDependencies=a,this.customTransformCache=n,this.updateOptions(u),this.resolvedIds=r??Object.create(null);const d=this.id;var h,p,f;this.magicString=new z(t,{filename:this.excludeFromSourcemap?null:d}),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),addImportSource:this.addImportSource.bind(this),addIndentExclusionRange:e=>this.indentExclusionRanges.push(e),code:t,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:d,getImportedJsxFactoryVariable:this.getImportedJsxFactoryVariable.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),importDescriptions:this.importDescriptions,includeDynamicImport:this.includeDynamicImport.bind(this),includeVariableInModule:this.includeVariableInModule.bind(this),log:this.log.bind(this),magicString:this.magicString,manualPureFunctions:this.graph.pureFunctions,module:this,moduleContext:this.context,newlyIncludedVariableInits:this.graph.newlyIncludedVariableInits,options:this.options,requestTreeshakingPass:()=>this.graph.needsTreeshakingPass=!0,traceExport:e=>this.getVariableForExportName(e),traceVariable:this.traceVariable.bind(this),usesTopLevelAwait:!1},this.scope=new ic(this.graph.scope,this.astContext,this.importDescriptions),this.namespace=new Po(this.astContext),this.astBuffer=e,Object.defineProperty(this.info,"ast",{enumerable:!0,get:()=>this.tryParseLazy(this.astBuffer)}),this.ast=(h=this.astBuffer,p=null,f=this.scope,xc(p,f,0,La(h))),_u("generate ast",3)}toJSON(){return{astBuffer:this.astBuffer,attributes:this.info.attributes,code:this.info.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,Ic),id:this.id,meta:this.info.meta,moduleSideEffects:this.info.moduleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,rawId:this.rawId,resolvedIds:this.resolvedIds,safeVariableNames:this.info.safeVariableNames,sourcemapChain:this.sourcemapChain,syntheticNamedExports:this.info.syntheticNamedExports,transformDependencies:this.transformDependencies,transformFiles:this.transformFiles}}traceVariable(e,{importerForSideEffects:t,isExportAllSearch:n,searchedNamesAndModules:s,sideEffectModules:i,exportOrReexportModules:r}=be){const o=this.scope.variables.get(e);if(o)return o;const a=this.importDescriptions.get(e);if(a){const e=a.module;if(e instanceof Vu&&"*"===a.name)return e.namespace;const[o,l]=zu(e,a.name,t||this,n,s,[this.id],i,r);return o||this.error($n(a.name,this.id,e.id,!!l?.missingButExportExists),a.start)}return null}updateOptions({meta:e,moduleSideEffects:t,syntheticNamedExports:n},{replaceExistingMeta:s=!1}=be){if(null!=t&&(this.info.moduleSideEffects=t),null!=n&&(this.info.syntheticNamedExports=n),null!=e){if(s)for(const e of Object.keys(this.info.meta))delete this.info.meta[e];Object.assign(this.info.meta,e)}}addDynamicImport(e){let t=e.sourceAstNode;"TemplateLiteral"===t.type?1===t.quasis.length&&"string"==typeof t.quasis[0].value.cooked&&(t=t.quasis[0].value.cooked):"Literal"===t.type&&"string"==typeof t.value&&(t=t.value),this.dynamicImports.push({argument:t,id:null,node:e})}assertUniqueExportName(e,t){(this.exportDescriptions.has(e)||this.reexportDescriptions.has(e))&&this.error(function(e){return{code:"DUPLICATE_EXPORT",message:`Duplicate export "${e}"`}}(e),t)}addExport(e){if(e instanceof Ar)this.assertUniqueExportName("default",e.start),this.exportDescriptions.set("default",{identifier:e.variable.getAssignedVariableName(),localName:"default"});else if(e instanceof pl){const t=e.source.value;if(this.addSource(t,e),e.exported){const n=e.exported instanceof to?e.exported.value:e.exported.name;this.assertUniqueExportName(n,e.exported.start),this.reexportDescriptions.set(n,{attributes:wu(e.attributes),localName:"*",module:null,source:t,start:e.start})}else{const n=this.exportAllSourcesWithAttributesList.get(t),s=wu(e.attributes);n?n.find(e=>!$u(e,s))||n.push(s):this.exportAllSourcesWithAttributesList.set(t,[s])}}else if(e.source instanceof to){const t=e.source.value;this.addSource(t,e);for(const{exported:n,local:s,start:i}of e.specifiers){const r=n instanceof to?n.value:n.name;this.assertUniqueExportName(r,i),this.reexportDescriptions.set(r,{attributes:wu(e.attributes),localName:s instanceof to?s.value:s.name,module:null,source:t,start:i})}}else if(e.declaration){const t=e.declaration;if(t instanceof hc)for(const e of t.declarations)for(const t of Aa(e.id))this.assertUniqueExportName(t,e.id.start),this.exportDescriptions.set(t,{identifier:null,localName:t});else{const e=t.id.name;this.assertUniqueExportName(e,t.id.start),this.exportDescriptions.set(e,{identifier:null,localName:e})}}else for(const{local:t,exported:n}of e.specifiers){const e=t.name,s=n instanceof Ji?n.name:n.value;this.assertUniqueExportName(s,n.start),this.exportDescriptions.set(s,{identifier:null,localName:e})}}addImport(e){const t=e.source.value;this.addSource(t,e);for(const n of e.specifiers){const s=n.local.name;(this.scope.variables.has(s)||this.importDescriptions.has(s))&&this.error(On(s),n.local.start);const i="source"===e.phase?Es:n instanceof xl?"default":n instanceof Il?"*":n.imported instanceof Ji?n.imported.name:n.imported.value;this.importDescriptions.set(s,{attributes:wu(e.attributes),module:null,name:i,phase:"source"===e.phase?"source":"instance",source:t,start:n.start})}}addImportSource(e){e&&!this.sourcesWithAttributesList.has(e)&&this.sourcesWithAttributesList.set(e,[be])}addImportMeta(e){this.importMetas.push(e)}addLocationToLogProps(e,t){e.id=this.id,e.pos=t;let n=this.info.code;const s=ft(n,t,{offsetLine:1});if(s){let{column:i,line:r}=s;try{({column:i,line:r}=function(e,t){const n=e.filter(e=>!e.missing);e:for(;n.length>0;){const e=n.pop().mappings[t.line-1];if(e){const n=e.filter(e=>e.length>1),s=n[n.length-1];let i=n[0];for(let e of n){if(e[0]>=t.column||e===s){e=e[0]>t.column?i:e,t={column:e[3],line:e[2]+1};continue e}i=e}}throw new Error("Can't resolve original location of error.")}return t}(this.sourcemapChain,{column:i,line:r})),n=this.originalCode}catch(e){this.options.onLog(Et,function(e,t,n,s,i){return{cause:e,code:"SOURCEMAP_ERROR",id:t,loc:{column:n,file:t,line:s},message:`Error when using sourcemap for reporting an error: ${e.message}`,pos:i}}(e,this.id,i,r,t))}qt(e,{column:i,line:r},n,this.id)}}addModulesToImportDescriptions(e){for(const t of e.values()){const{id:e}=this.resolvedIds[Cc(t.source,t.attributes)];t.module=this.graph.modulesById.get(e)}}addRelevantSideEffectDependencies(e,t,n){const s=new Set,i=r=>{for(const o of r)s.has(o)||(s.add(o),t.has(o)?e.add(o):(o.info.moduleSideEffects||n.has(o))&&(o instanceof Ns||o.hasEffects()?e.add(o):i(o.dependencies)))};i(this.dependencies),i(n)}addSource(e,t){const n=wu(t.attributes),s=this.sourcesWithAttributesList.get(e);s?s.some(e=>!$u(e,n))||s.push(n):this.sourcesWithAttributesList.set(e,[n]),"source"===t.phase&&this.sourcePhaseSources.add(e)}getImportedJsxFactoryVariable(e,t,n){const{id:s}=this.resolvedIds[n],i=this.graph.modulesById.get(s),[r]=i.getVariableForExportName(e,{importChain:[this.id]});return r||this.error((o=e,a=s,l=this.id,{code:"MISSING_JSX_EXPORT",exporter:a,id:l,message:`Export "${o}" is not defined in module "${wt(a)}" even though it is needed in "${wt(l)}" to provide JSX syntax. Please check your "jsx" option.`,names:[o],url:kt(Ot)}),t);var o,a,l}getVariableFromNamespaceReexports(e,t,n,s){let i=null;const r=new Map,o=new Set,a=new Set,l=new Set;for(const c of this.exportAllModules){if(c.info.syntheticNamedExports===e)continue;const[u,d]=zu(c,e,t,!0,Uu(n),s,a,l);c instanceof Ns||d?.indirectExternal?o.add(u):u instanceof $o?i||(i=u):u&&r.set(u,c)}if(r.size>0){const t=[...r],n=t[0][0];return 1===t.length?[n,{exportOrReexportModules:l,sideEffectModules:a}]:(this.options.onLog(Et,(c=e,u=this.id,d=t.map(([,e])=>e.id),{binding:c,code:"NAMESPACE_CONFLICT",ids:d,message:`Conflicting namespaces: "${wt(u)}" re-exports "${c}" from one of the modules ${St(d.map(e=>wt(e)))} (will be ignored).`,reexporter:u})),[null])}var c,u,d;if(o.size>0){const t=[...o],n=t[0];return t.length>1&&this.options.onLog(Et,function(e,t,n,s){return{binding:e,code:"AMBIGUOUS_EXTERNAL_NAMESPACES",ids:s,message:`Ambiguous external namespace resolution: "${wt(t)}" re-exports "${e}" from one of the external modules ${St(s.map(e=>wt(e)))}, guessing "${wt(n)}".`,reexporter:t}}(e,this.id,n.module.id,t.map(e=>e.module.id))),[n,{exportOrReexportModules:l,indirectExternal:!0,sideEffectModules:a}]}return i?[i,{exportOrReexportModules:l,sideEffectModules:a}]:[null]}includeAndGetAdditionalMergedNamespaces(){const e=new Set,t=new Set;for(const n of[this,...this.exportAllModules])if(n instanceof Ns){const[t]=n.getVariableForExportName("*",{importChain:[this.id]});t.includePath(Te,es()),this.includedImports.add(t),e.add(t)}else if(n.info.syntheticNamedExports){const e=n.getSyntheticNamespace();e.includePath(Te,es()),this.includedImports.add(e),t.add(e)}return[...t,...e]}includeDynamicImport(e){const{resolution:t}=e;t instanceof Vu&&(t.includedDynamicImporters.includes(this)||(t.includedDynamicImporters.push(this),this.astContext.usesTopLevelAwait&&t.includedTopLevelAwaitingDynamicImporters.add(this)))}includeVariable(e,t,n){const{included:s,module:i}=e;if(e.includePath(t,n),s)i instanceof Vu&&i!==this&&Fu(e,this);else if(this.graph.needsTreeshakingPass=!0,i instanceof Vu&&(i.includeModuleInExecution(),i!==this)){const t=Fu(e,this);for(const e of t)e.includeModuleInExecution()}}includeVariableInModule(e,t,n){this.includeVariable(e,t,n);const s=e.module;s&&s!==this&&this.includedImports.add(e)}shimMissingExport(e){var t,n;this.options.onLog(Et,(t=this.id,{binding:n=e,code:"SHIMMED_EXPORT",exporter:t,message:`Missing export "${n}" has been shimmed in module "${wt(t)}".`})),this.exportDescriptions.set(e,Bu)}tryParseLazy(e){try{return xu(e)}catch(e){return this.error(Dn(e,this.id),e.pos)}}}function ju(e,t,n){if(e.module instanceof Vu&&e.module!==n){const s=e.module.cycles;if(s.size>0){const i=n.cycles;for(const r of i)if(s.has(r)){t.alternativeReexportModules.set(e,n);break}}}}const Uu=e=>e&&new Map(Array.from(e,([e,t])=>[e,new Set(t)])),Gu=([e],[t])=>e<t?-1:e>t?1:0,Hu=(e,t)=>[e,t].filter(Boolean).join("\n"),Wu=(e,t)=>[e,t].filter(Boolean).join("\n\n");const qu={amd:Ju,cjs:Ju,es:Xu,iife:Ju,system:Xu,umd:Ju};function Ku(e,t,n,s,i,r,o,a,l,c,u,d,h,p){const f=[...e].reverse();for(const e of f)e.scope.addUsedOutsideNames(s,i,d,h);!function(e,t,n){for(const s of t){s.info.safeVariableNames||={};for(const t of s.scope.variables.values())if(t.included&&!(t.renderBaseName||t instanceof So&&t.getOriginalVariable()!==t)){const n=Object.getOwnPropertyDescriptor(s.info.safeVariableNames,t.name)?.value;if(n&&!e.has(n)){e.add(n),t.setRenderNames(null,n);continue}t.setRenderNames(null,ht(t.name,e,t.forbiddenNames)),s.info.safeVariableNames[t.name]=t.renderName}if(n.has(s)){const t=s.namespace;t.setRenderNames(null,ht(t.name,e,t.forbiddenNames))}}}(s,f,p),qu[i](s,n,t,r,o,a,l,c,u);for(const e of f)e.scope.deconflict(i,d,h)}function Xu(e,t,n,s,i,r,o,a,l){for(const t of n.dependencies)(i||t instanceof Io)&&(t.variableName=ht(t.suggestedVariableName,e,null));for(const n of t){const t=n.module,s=n.name;n.isNamespace&&(t instanceof Ns||i&&!t.info.syntheticNamedExports)?n.setRenderNames(null,(t instanceof Ns?a.get(t):o.get(t)).variableName):t instanceof Ns&&n.isSourcePhase?n.setRenderNames(null,ht(t.suggestedVariableName+"__source",e,n.forbiddenNames)):t instanceof Ns&&"default"===s?n.setRenderNames(null,ht([...t.exportedVariables].some(([e,t])=>"*"===t&&e.included)?t.suggestedVariableName+"__default":t.suggestedVariableName,e,n.forbiddenNames)):n.setRenderNames(null,ht(ws(s),e,n.forbiddenNames))}for(const t of l)t.setRenderNames(null,ht(t.name,e,t.forbiddenNames))}function Ju(e,t,{deconflictedDefault:n,deconflictedNamespace:s,dependencies:i},r,o,a,l,c){for(const t of i)t.variableName=ht(t.suggestedVariableName,e,null);for(const t of s)t.namespaceVariableName=ht(`${t.suggestedVariableName}__namespace`,e,null);for(const t of n)t.defaultVariableName=s.has(t)&&Br(r(t.id),a)?t.namespaceVariableName:ht(`${t.suggestedVariableName}__default`,e,null);for(const e of t){const t=e.module;if(t instanceof Ns){const n=c.get(t),s=e.name;if("default"===s){const s=r(t.id),i=_r[s]?n.defaultVariableName:n.variableName;Lr(s,a)?e.setRenderNames(i,"default"):e.setRenderNames(null,i)}else"*"===s?e.setRenderNames(null,Tr[r(t.id)]?n.namespaceVariableName:n.variableName):e.setRenderNames(n.variableName,null)}else{const n=l.get(t);o&&e.isNamespace&&!t.info.syntheticNamedExports?e.setRenderNames(null,"default"===n.exportMode?n.namespaceVariableName:n.variableName):"default"===n.exportMode?e.setRenderNames(null,n.variableName):e.setRenderNames(n.variableName,n.getVariableExportName(e))}}}function Yu(e,{exports:t,name:n,format:s},i,r){const o=e.getExportNames();if("default"===t){if(1!==o.length||"default"!==o[0])return Gt(An("default",o,i))}else if("none"===t&&o.length>0)return Gt(An("none",o,i));return"auto"===t&&(0===o.length?t="none":1===o.length&&"default"===o[0]?t="default":("es"!==s&&"system"!==s&&o.includes("default")&&r(Et,function(e,t){return{code:"MIXED_EXPORTS",id:e,message:`Entry module "${wt(e)}" is using named and default exports together. Consumers of your bundle will have to use \`${t||"chunk"}.default\` to access the default export, which may not be what you want. Use \`output.exports: "named"\` to disable this warning.`,url:kt(Mt)}}(i,n)),t="named")),t}function Zu(e){const t=e.split("\n"),n=t.filter(e=>/^\t+/.test(e)),s=t.filter(e=>/^ {2,}/.test(e));if(0===n.length&&0===s.length)return null;if(n.length>=s.length)return"\t";const i=s.reduce((e,t)=>{const n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return" ".repeat(i)}function Qu(e,t,n,s,i,r){const o=e.getDependenciesToBeIncluded();for(const e of o){if(e instanceof Ns){t.push(r.get(e));continue}const o=i.get(e);o===s?n.has(e)||(n.add(e),Qu(e,t,n,s,i,r)):t.push(o)}}const ed="!~{",td="}~",nd=new RegExp(`${ed}[0-9a-zA-Z_$]{1,16}${td}`,"g"),sd=(e,t)=>e.replace(nd,e=>t.get(e)||e),id=(e,t,n)=>e.replace(nd,e=>e===t?n:e),rd=(e,t)=>{const n=new Set,s=e.replace(nd,e=>t.has(e)?(n.add(e),`${ed}${"0".repeat(e.length-5)}${td}`):e);return{containedPlaceholders:n,transformedCode:s}},od=Symbol("bundleKeys"),ad={type:"placeholder"};function ld(e,t,n){return $t(e)?Gt(Bn(`Invalid pattern "${e}" for "${t}", patterns can be neither absolute nor relative paths. If you want your files to be stored in a subdirectory, write its name without a leading slash like this: subdirectory/pattern.`)):e.replace(/\[(\w+)(:\d+)?]/g,(e,s,i)=>{if(!n.hasOwnProperty(s)||i&&"hash"!==s)return Gt(Bn(`"[${s}${i||""}]" is not a valid placeholder in the "${t}" pattern.`));const r=n[s](i&&Number.parseInt(i.slice(1)));return $t(r)?Gt(Bn(`Invalid substitution "${r}" for placeholder "[${s}]" in "${t}" pattern, can be neither absolute nor relative path.`)):r})}function cd(e,{[od]:t}){if(!t.has(e.toLowerCase()))return e;const n=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\")),s=e.slice(0,n+1),i=e.slice(n+1),r=i.indexOf(".",1),o=s+(-1===r?i:i.slice(0,r)),a=-1===r?"":i.slice(r);let l,c=1;for(;t.has((l=o+ ++c+a).toLowerCase()););return l}const ud=["Object","Promise","module","exports","require","__filename","__dirname",...Qr],dd=new Set([".js",".jsx",".ts",".tsx",".mjs",".mts",".cjs",".cts"]);function hd(e,t,n,s,i){const{attributes:r,rawId:o}=e.moduleInfo,a="function"==typeof t?t(o,{attributes:r}):t[o];return a?(n&&"object"==typeof t&&function(e,t,n,s){const i=n.get(e)??0;1===i&&s(Et,function(e,t){return{code:"AMBIGUOUS_GLOBAL_NAME",id:e,message:`The object form of "output.globals" maps several import attribute variants of the external module "${e}" to the same global name "${t}". Use the function form of "output.globals" to give each variant its own global name.`,url:kt(Lt)}}(e,t));n.set(e,i+1)}(o,a,s,i),a):n?(i(Et,(l=e.id,c=e.variableName,{code:"MISSING_GLOBAL_NAME",id:l,message:`No name was provided for external module "${l}" in "output.globals" – guessing "${c}".`,names:[c],url:kt(Lt)})),e.variableName):void 0;var l,c}class pd{constructor(e,t,n,s,i,r,o,a,l,c,u,d,h,p,f){this.orderedModules=e,this.inputOptions=t,this.outputOptions=n,this.unsetOptions=s,this.pluginDriver=i,this.modulesById=r,this.chunkByModule=o,this.externalChunkByModule=a,this.facadeChunkByModule=l,this.includedNamespaces=c,this.manualChunkAlias=u,this.getPlaceholder=d,this.bundle=h,this.inputBase=p,this.snippets=f,this.dependencies=new Set,this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.namespaceVariableName="",this.variableName="",this.isManualChunk=!1,this.accessedGlobalsByScope=new Map,this.dynamicEntryModules=[],this.dynamicName=null,this.exportNamesByVariable=new Map,this.exports=new Set,this.exportsByName=new Map,this.fileName=null,this.implicitEntryModules=[],this.implicitlyLoadedBefore=new Set,this.imports=new Set,this.includedDynamicImports=null,this.includedReexportsByModule=new Map,this.isEmpty=!0,this.name=null,this.needsExportsShim=!1,this.preRenderedChunkInfo=null,this.preliminaryFileName=null,this.preliminarySourcemapFileName=null,this.renderedChunkInfo=null,this.renderedDependencies=null,this.renderedModules=Object.create(null),this.sortedExportNames=null,this.strictFacade=!1,this.allowExtensionModules=new Set,this.execIndex=e.length>0?e[0].execIndex:1/0;const m=new Set(e);for(const t of e){o.set(t,this),!t.namespace.included||n.preserveModules&&!t.info.syntheticNamedExports||c.add(t),this.isEmpty&&t.isIncluded()&&(this.isEmpty=!1),(t.info.isEntry||n.preserveModules)&&this.entryModules.push(t);for(const e of t.includedDynamicImporters)if(!m.has(e)){this.dynamicEntryModules.push(t),t.info.syntheticNamedExports&&(c.add(t),this.exports.add(t.namespace));break}t.implicitlyLoadedAfter.size>0&&this.implicitEntryModules.push(t)}this.suggestedVariableName=ws(this.generateVariableName()),this.isManualChunk=null!==u}static generateFacade(e,t,n,s,i,r,o,a,l,c,u,d,h,p,f){const m=new pd([],e,t,n,s,i,r,o,a,l,null,d,h,p,f);m.assignFacadeName(u,c),a.has(c)||a.set(c,m);for(const e of c.getDependenciesToBeIncluded())m.dependencies.add(e instanceof Vu?r.get(e):o.get(e));return!m.dependencies.has(r.get(c))&&c.info.moduleSideEffects&&c.hasEffects()&&m.dependencies.add(r.get(c)),m.ensureReexportsAreAvailableForModule(c),m.facadeModule=c,m.strictFacade=!0,m}canModuleBeFacade(e,t){const n=e.getExportNamesByVariable();for(const e of this.exports)if(!n.has(e))return!1;for(const s of t)if(!(s.module===e||n.has(s)||s instanceof $o&&n.has(s.getBaseVariable())))return!1;return!0}finalizeChunk(e,t,n,s){const i=this.getRenderedChunkInfo(),r=e=>sd(e,s),o=i.fileName,a=this.fileName=r(o);return{...i,code:e,dynamicImports:i.dynamicImports.map(r),fileName:a,implicitlyLoadedBefore:i.implicitlyLoadedBefore.map(r),importedBindings:Object.fromEntries(Object.entries(i.importedBindings).map(([e,t])=>[r(e),t])),imports:i.imports.map(r),map:t,preliminaryFileName:o,referencedFiles:i.referencedFiles.map(r),sourcemapFileName:n}}generateExports(){this.sortedExportNames=null;const e=new Set(this.exports);if(null!==this.facadeModule&&(!1!==this.facadeModule.preserveSignature||this.strictFacade)){const t=this.facadeModule.getExportNamesByVariable();for(const[n,s]of t){this.exportNamesByVariable.set(n,[...s]);for(const e of s)this.exportsByName.set(e,n);e.delete(n)}}for(const t of this.allowExtensionModules){const n=t.getExportNamesByVariable();for(const[t,s]of n){this.exportNamesByVariable.set(t,[...s]);for(const e of s)this.exportsByName.set(e,t);e.delete(t)}}this.outputOptions.minifyInternalExports?function(e,t,n){let s=0;for(const i of e){let[e]=i.name;if(t.has(e))do{e=dt(++s),49===e.charCodeAt(0)&&(s+=9*64**(e.length-1),e=dt(s))}while(ut.has(e)||t.has(e));t.set(e,i),n.set(i,[e])}}(e,this.exportsByName,this.exportNamesByVariable):function(e,t,n){for(const s of e){let e=0,i=s.name;for(;t.has(i);)i=s.name+"$"+ ++e;t.set(i,s),n.set(s,[i])}}(e,this.exportsByName,this.exportNamesByVariable),(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.info.isEntry)&&(this.exportMode=Yu(this,this.outputOptions,this.facadeModule.id,this.inputOptions.onLog))}generateFacades(){const e=[],t=new Set([...this.entryModules,...this.implicitEntryModules]),n=new Set(this.dynamicEntryModules.map(({namespace:e})=>e));for(const s of t){if("allow-extension"===s.preserveSignature){if(this.canPreserveModuleExports(s)&&!s.chunkFileNames.size&&s.chunkNames.every(({isUserDefined:e})=>!e)){this.allowExtensionModules.add(s),this.facadeModule||(this.facadeModule=s,this.strictFacade=!1,this.assignFacadeName({},s,this.outputOptions.preserveModules)),this.facadeChunkByModule.set(s,this);continue}}const t=Array.from(new Set(s.chunkNames.filter(({isUserDefined:e})=>e).map(({name:e})=>e)),e=>({name:e}));if(0===t.length&&s.isUserDefinedEntryPoint&&t.push({}),t.push(...Array.from(s.chunkFileNames,e=>({fileName:e}))),0===t.length&&t.push({}),!this.facadeModule){const e=!this.outputOptions.preserveModules&&("strict"===s.preserveSignature||"exports-only"===s.preserveSignature&&s.getExportNamesByVariable().size>0);e&&!this.canModuleBeFacade(s,n)||(this.facadeModule=s,this.facadeChunkByModule.set(s,this),s.preserveSignature&&(this.strictFacade=e),this.assignFacadeName(t.shift(),s,this.outputOptions.preserveModules))}for(const n of t)e.push(pd.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.externalChunkByModule,this.facadeChunkByModule,this.includedNamespaces,s,n,this.getPlaceholder,this.bundle,this.inputBase,this.snippets))}for(const e of this.dynamicEntryModules)e.info.syntheticNamedExports||(!this.facadeModule&&this.canModuleBeFacade(e,n)?(this.facadeModule=e,this.facadeChunkByModule.set(e,this),this.strictFacade=!0,this.dynamicName=fd(e)):this.facadeModule===e&&!this.strictFacade&&this.canModuleBeFacade(e,n)?this.strictFacade=!0:this.facadeChunkByModule.get(e)?.strictFacade||(this.includedNamespaces.add(e),this.exports.add(e.namespace)));return this.outputOptions.preserveModules||this.addNecessaryImportsForFacades(),e}canPreserveModuleExports(e){const t=e.getExportNamesByVariable();for(const[e,n]of t)for(const t of n){const n=this.exportsByName.get(t);if(n&&n!==e)return!1}for(const[e,n]of t)for(const t of n)this.exportsByName.set(t,e);return!0}getChunkName(){return this.name??=this.outputOptions.sanitizeFileName(this.getFallbackChunkName())}getExportNames(){return this.sortedExportNames??=[...this.exportsByName.keys()].sort()}getFileName(){return this.fileName||this.getPreliminaryFileName().fileName}getImportPath(e){return $r(Ct(e,this.getFileName(),"amd"===this.outputOptions.format&&!this.outputOptions.amd.forceJsExtensionForImports,!0))}getPreliminaryFileName(){if(this.preliminaryFileName)return this.preliminaryFileName;let e,t=null;const{chunkFileNames:n,entryFileNames:s,file:i,format:r,preserveModules:o}=this.outputOptions;if(i)e=Y(i);else if(null===this.fileName){const[i,a]=o||this.facadeModule?.isUserDefinedEntryPoint?[s,"output.entryFileNames"]:[n,"output.chunkFileNames"];e=ld("function"==typeof i?i(this.getPreRenderedChunkInfo()):i,a,{format:()=>r,hash:e=>t||(t=this.getPlaceholder(a,e||8)),name:()=>this.getChunkName()}),t||(e=cd(e,this.bundle))}else e=this.fileName;return t||(this.bundle[e]=ad),this.preliminaryFileName={fileName:e,hashPlaceholder:t}}getPreliminarySourcemapFileName(){if(this.preliminarySourcemapFileName)return this.preliminarySourcemapFileName;const{sourcemapFileNames:e,format:t}=this.outputOptions;if(!e)return null;let n=null;const[s,i]=[e,"output.sourcemapFileNames"];let r=ld("function"==typeof s?s(this.getPreRenderedChunkInfo()):s,i,{chunkhash:()=>this.getPreliminaryFileName().hashPlaceholder||"",format:()=>t,hash:e=>n||(n=this.getPlaceholder(i,e||8)),name:()=>this.getChunkName()});return n||(r=cd(r,this.bundle)),this.preliminarySourcemapFileName={fileName:r,hashPlaceholder:n}}getRenderedChunkInfo(){if(this.renderedChunkInfo)return this.renderedChunkInfo;const e=this.getRenderedDependencies();return this.renderedChunkInfo={...this.getPreRenderedChunkInfo(),dynamicImports:this.getDynamicDependencies().map(bd),fileName:this.getFileName(),implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,bd),importedBindings:gd(e,bd),imports:Array.from(e.keys(),bd),modules:this.renderedModules,referencedFiles:this.getReferencedFiles()}}getVariableExportName(e){return this.isNativeNamespace(e)?"*":this.exportNamesByVariable.get(e)[0]}isNativeNamespace(e){return this.outputOptions.preserveModules&&e instanceof Po&&!e.module.info.syntheticNamedExports}link(){this.dependencies=function(e,t,n,s){const i=[],r=new Set;for(let o=t.length-1;o>=0;o--){const a=t[o];if(!r.has(a)){const t=[];Qu(a,t,r,e,n,s),i.unshift(t)}}const o=new Set;for(const e of i)for(const t of e)o.add(t);return o}(this,this.orderedModules,this.chunkByModule,this.externalChunkByModule);for(const e of this.orderedModules)this.addImplicitlyLoadedBeforeFromModule(e),this.setUpChunkImportsAndExportsForModule(e)}inlineTransitiveImports(){const{facadeModule:e,dependencies:t,outputOptions:n}=this,{hoistTransitiveImports:s,preserveModules:i}=n;if(s&&!i&&null!==e)for(const e of t)e instanceof pd&&this.inlineChunkDependencies(e)}async render(){const{exportMode:e,facadeModule:t,inputOptions:{onLog:n},outputOptions:s,pluginDriver:i,snippets:r}=this,{format:o,preserveModules:a}=s,l=this.getPreliminaryFileName(),c=this.getPreliminarySourcemapFileName(),{accessedGlobals:u,indent:d,magicString:h,renderedSource:p,usedModules:f,usesTopLevelAwait:m}=this.renderModules(l.fileName),g=[...this.getRenderedDependencies().values()],y="none"===e?[]:this.getChunkExportDeclarations(o),b="es"===o&&new Set(y.map(({exported:e})=>e));let E=y.length>0,x=!1;for(const e of g){const{reexports:t}=e;t?.length&&(E=!0,!x&&t.some(e=>"default"===e.reexported)&&(x=!0),b&&(e.reexports=t.filter(({reexported:e})=>!b.has(e))))}if(!x)for(const{exported:e}of y)if("default"===e){x=!0;break}const{intro:v,outro:A,banner:S,footer:P}=await async function(e,t,n){try{let[s,i,r,o]=await Promise.all([t.hookReduceValue("banner",e.banner(n),[n],Hu),t.hookReduceValue("footer",e.footer(n),[n],Hu),t.hookReduceValue("intro",e.intro(n),[n],Wu),t.hookReduceValue("outro",e.outro(n),[n],Wu)]);return r&&(r+="\n\n"),o&&(o=`\n\n${o}`),s&&(s+="\n"),i&&(i="\n"+i),{banner:s,footer:i,intro:r,outro:o}}catch(e){return Gt((s=e.message,{code:"ADDON_ERROR",message:`Could not retrieve "${e.hook}". Check configuration of plugin "${e.plugin}".\n\tError Message: ${s}`}))}var s}(s,i,this.getRenderedChunkInfo());if(ea[o](p,{accessedGlobals:u,dependencies:g,exports:y,hasDefaultExport:x,hasExports:E,id:l.fileName,indent:d,intro:v,isEntryFacade:a||null!==t&&t.info.isEntry,isModuleFacade:null!==t,log:n,namedExportsMode:"default"!==e,outro:A,snippets:r,usesTopLevelAwait:m},s),S&&h.prepend(S),"es"===o||"cjs"===o){const e=null!==t&&t.info.isEntry&&t.shebang;e&&h.prepend(`#!${e}\n`)}return P&&h.append(P),{chunk:this,magicString:h,preliminaryFileName:l,preliminarySourcemapFileName:c,usedModules:f}}addImplicitlyLoadedBeforeFromModule(e){const{chunkByModule:t,implicitlyLoadedBefore:n}=this;for(const s of e.implicitlyLoadedBefore){const e=t.get(s);e&&e!==this&&n.add(e)}}addNecessaryImportsForFacades(){for(const[e,t]of this.includedReexportsByModule)if(this.includedNamespaces.has(e))for(const e of t)this.imports.add(e)}assignFacadeName({fileName:e,name:t},n,s){e?this.fileName=e:this.name=this.outputOptions.sanitizeFileName(t||(s?this.getPreserveModulesChunkNameFromModule(n):fd(n)))}checkCircularDependencyImport(e,t){const n=e.module;if(n instanceof Vu){const s=this.chunkByModule.get(n);let i;do{if(i=t.alternativeReexportModules.get(e),i){this.chunkByModule.get(i)!==s&&this.inputOptions.onLog(Et,fn(n.getExportNamesByVariable().get(e)?.[0]||"*",n.id,i.id,t.id,this.outputOptions.preserveModules)),t=i}}while(i)}}ensureReexportsAreAvailableForModule(e){const t=[],n=e.getExportNamesByVariable();for(const s of n.keys()){const n=s instanceof $o,i=n?s.getBaseVariable():s;if(this.checkCircularDependencyImport(i,e),!this.isNativeNamespace(i)){const e=i.module;if(e instanceof Vu){const s=this.chunkByModule.get(e);s&&s!==this&&(s.exports.add(i),t.push(i),n&&this.imports.add(i))}else e instanceof Ns&&i.included&&t.push(i)}}t.length>0&&this.includedReexportsByModule.set(e,t)}generateVariableName(){if(this.manualChunkAlias)return this.manualChunkAlias;const e=this.entryModules[0]||this.implicitEntryModules[0]||this.dynamicEntryModules[0]||this.orderedModules[this.orderedModules.length-1];return e?fd(e):"chunk"}getChunkExportDeclarations(e){const t=[];for(const n of this.getExportNames()){if("*"===n[0])continue;const s=this.exportsByName.get(n);if(!(s instanceof $o)){const t=s.module;if(t){const s=this.chunkByModule.get(t);if(s!==this){if(!s||"es"!==e)continue;const t=this.renderedDependencies.get(s);if(!t)continue;const{imports:i,reexports:r}=t,o=r?.find(({reexported:e})=>e===n),a=i?.find(({imported:e})=>e===o?.imported);if(!a)continue}}}let i=null,r=!1,o=s.getName(this.snippets.getPropertyAccess);if(s instanceof ps){for(const e of s.declarations)if(e.parent instanceof vr||e instanceof Ar&&e.declaration instanceof vr){r=!0;break}}else s instanceof $o&&(i=o,"es"===e&&(o=s.renderName));t.push({exported:n,expression:i,hoisted:r,local:o,needsLiveBinding:s.isReassigned&&this.exportNamesByVariable.get(s).length>1})}return t}getDependenciesToBeDeconflicted(e,t,n){const s=new Set,i=new Set,r=new Set;for(const t of[...this.exportNamesByVariable.keys(),...this.imports])if(e||t.isNamespace){const o=t.module;if(o instanceof Ns){const a=this.externalChunkByModule.get(o);s.add(a),e&&("default"===t.name?_r[n(o.id)]&&i.add(a):t.isNamespace&&Tr[n(o.id)]&&(this.imports.has(t)||!this.exportNamesByVariable.get(t)?.every(e=>"*"===e[0]))&&r.add(a))}else{const n=this.chunkByModule.get(o);n!==this&&(s.add(n),e&&"default"===n.exportMode&&t.isNamespace&&r.add(n))}}if(t)for(const e of this.dependencies)s.add(e);return{deconflictedDefault:i,deconflictedNamespace:r,dependencies:s}}getDynamicDependencies(){return this.getIncludedDynamicImports().map(e=>e.facadeChunk||e.chunk||e.externalChunk||e.resolution).filter(e=>e!==this&&(e instanceof pd||e instanceof Io))}getDynamicImportStringAndAttributes(e,t,n){const{externalImportAttributes:s}=this.outputOptions,i=["es","cjs"].includes(this.outputOptions.format)&&s;if(e instanceof Ns){const n=this.externalChunkByModule.get(e),s=n.getImportAttributes(this.snippets);return[`'${n.getImportPath(t)}'`,s||!!i||null]}let r=null;if(i){const e=Su(n);r=e===be||Co(e,this.snippets)}return[e||"",r]}getFallbackChunkName(){return this.manualChunkAlias?this.manualChunkAlias:this.dynamicName?this.dynamicName:this.fileName?Pt(this.fileName):Pt(this.orderedModules[this.orderedModules.length-1].id)}getImportSpecifiers(){const{interop:e}=this.outputOptions,t=new Map;for(const n of this.imports){const s=n.module;let i,r;const o=s instanceof Ns&&n.isSourcePhase;if(s instanceof Ns){if(i=this.externalChunkByModule.get(s),r=n.name,!o&&"default"!==r&&"*"!==r&&"defaultOnly"===e(s.id))return Gt(Ln(s.id,r,!1))}else i=this.chunkByModule.get(s),r=i.getVariableExportName(n);ve(t,i,Se).push({imported:r,local:n.getName(this.snippets.getPropertyAccess),phase:o?"source":"instance"})}return t}getIncludedDynamicImports(){if(this.includedDynamicImports)return this.includedDynamicImports;const e=[];for(const t of this.orderedModules)for(const{node:n}of t.dynamicImports){if(!n.included)continue;const{resolution:t}=n;e.push(t instanceof Vu?{chunk:this.chunkByModule.get(t),externalChunk:null,facadeChunk:this.facadeChunkByModule.get(t),node:n,resolution:t}:t instanceof Ns?{chunk:null,externalChunk:this.externalChunkByModule.get(t),facadeChunk:null,node:n,resolution:t}:{chunk:null,externalChunk:null,facadeChunk:null,node:n,resolution:t})}return this.includedDynamicImports=e}getPreRenderedChunkInfo(){if(this.preRenderedChunkInfo)return this.preRenderedChunkInfo;const{dynamicEntryModules:e,facadeModule:t,implicitEntryModules:n,orderedModules:s}=this;return this.preRenderedChunkInfo={exports:this.getExportNames(),facadeModuleAttributes:t?t.info.attributes:{},facadeModuleId:t&&t.id,facadeModuleRawId:t?t.info.rawId:null,isDynamicEntry:e.length>0,isEntry:!!t?.info.isEntry,isImplicitEntry:n.length>0,moduleIds:s.map(({id:e})=>e),name:this.getChunkName(),type:"chunk"}}getPreserveModulesChunkNameFromModule(e){const t=md(e);if(t)return t;const{preserveModulesRoot:n,sanitizeFileName:s}=this.outputOptions,i=s(J(e.id.split(yd,1)[0])),r=s(this.inputBase),o=Q(i),a=dd.has(o)?i.slice(0,-o.length):i;return K(a)?n&&ne(a).startsWith(n)?a.slice(n.length).replace(/^[/\\]/,""):"/"===r&&"/"!==a[0]?te(r,a.replace(/^[a-zA-Z]:[/\\]/,"/")):te(r,a):this.outputOptions.virtualDirname.replace(/\/$/,"")+"/"+Y(a)}getReexportSpecifiers(){const{externalLiveBindings:e,interop:t}=this.outputOptions,n=new Map;for(let s of this.getExportNames()){let i,r,o;if("*"===s[0]){const n=s.slice(1);"defaultOnly"===t(n)&&this.inputOptions.onLog(Et,Tn(n)),o=e,i=this.externalChunkByModule.get(this.modulesById.get(n)),r=s="*"}else{const n=this.exportsByName.get(s);if(n instanceof $o)continue;const a=n.module;if(a instanceof Vu){if(i=this.chunkByModule.get(a),i===this)continue;r=i.getVariableExportName(n),o=n.isReassigned}else{if(i=this.externalChunkByModule.get(a),r=n.name,"default"!==r&&"*"!==r&&"defaultOnly"===t(a.id))return Gt(Ln(a.id,r,!0));o=e&&("default"!==r||Lr(t(a.id),!0))}}ve(n,i,Se).push({imported:r,needsLiveBinding:o,reexported:s})}return n}getReferencedFiles(){const e=new Set;for(const t of this.orderedModules)for(const n of t.importMetas){const t=n.getReferencedFileName(this.pluginDriver);t&&e.add(t)}return[...e]}getRenderedDependencies(){if(this.renderedDependencies)return this.renderedDependencies;const e=this.getImportSpecifiers(),t=this.getReexportSpecifiers(),n=new Map,s=this.getFileName(),i="iife"===this.outputOptions.format||"umd"===this.outputOptions.format?new Map:void 0;for(const r of this.dependencies){const o=e.get(r)||null,a=t.get(r)||null;null===o&&null===a&&r instanceof Io&&!r.moduleSideEffects&&!this.outputOptions.hoistTransitiveImports||n.set(r,this.getRenderedDependency(r,o,a,s,i))}return this.renderedDependencies=n}getRenderedDependency(e,t,n,s,i){const r=e instanceof Io||"default"!==e.exportMode,o=e.getImportPath(s),a=t?.find(e=>"source"===e.phase),l=t?.filter(e=>"source"!==e.phase)??null;return{attributes:e instanceof Io?e.getImportAttributes(this.snippets):null,defaultVariableName:e.defaultVariableName,globalName:i&&e instanceof Io&&hd(e,this.outputOptions.globals,null!==(t||n),i,this.inputOptions.onLog),importPath:o,imports:l&&l.length>0?l:null,isChunk:e instanceof pd,name:e.variableName,namedExportsMode:r,namespaceVariableName:e.namespaceVariableName,reexports:n,sourcePhaseImport:a?.local}}inlineChunkDependencies(e){for(const t of e.dependencies)this.dependencies.has(t)||(this.dependencies.add(t),t instanceof pd&&this.inlineChunkDependencies(t))}renderModules(e){const{accessedGlobalsByScope:t,dependencies:n,exportNamesByVariable:s,includedNamespaces:i,inputOptions:{onLog:r},isEmpty:o,orderedModules:a,outputOptions:l,pluginDriver:c,renderedModules:u,snippets:d}=this,{compact:h,format:p,freeze:f,generatedCode:{symbols:m},importAttributesKey:g}=l,{_:y,cnst:b,n:E}=d;this.setDynamicImportResolutions(e),this.setImportMetaResolutions(e),this.setIdentifierRenderResolutions();const x=new V({separator:`${E}${E}`}),v=function(e,t){if(!0!==t.indent)return t.indent;for(const t of e){const e=Zu(t.originalCode);if(null!==e)return e}return"\t"}(a,l),A=[];let S="";const P=new Set,w={accessedDocumentCurrentScript:!1,exportNamesByVariable:s,format:p,freeze:f,importAttributesKey:g,indent:v,pluginDriver:c,snippets:d,symbols:m,useOriginalName:null};let $=!1;for(const e of a){let n,s=0;if(e.isIncluded()||i.has(e)){const r=e.render(w);!w.accessedDocumentCurrentScript&&uo.includes(p)&&this.accessedGlobalsByScope.get(e.scope)?.delete(Mr),w.accessedDocumentCurrentScript=!1,({source:n}=r),$||=r.usesTopLevelAwait,s=n.length(),s&&(h&&n.lastLine().includes("//")&&n.append("\n"),x.addSource({content:n,indentExclusionRanges:r.indentExclusionRanges}),A.push(e));const o=e.namespace;if(i.has(e)){const e=o.renderBlock(w);o.renderFirst()?S+=E+e:x.addSource(new z(e))}const a=t.get(e.scope);if(a)for(const e of a)P.add(e)}const{renderedExports:r,removedExports:o}=e.getRenderedExports();u[e.id]={attributes:e.info.attributes,get code(){return n?.toString()??null},originalLength:e.originalCode.length,rawId:e.info.rawId,removedExports:o,renderedExports:r,renderedLength:s}}S&&x.prepend(S+E+E),this.needsExportsShim&&x.prepend(`${E}${b} ${Ho}${y}=${y}void 0;${E}${E}`);const I=h?x:x.trim();var C;return o&&0===this.getExportNames().length&&0===n.size&&r(Et,{code:"EMPTY_BUNDLE",message:`Generated an empty chunk: "${C=this.getChunkName()}".`,names:[C]}),{accessedGlobals:P,indent:v,magicString:x,renderedSource:I,usedModules:A,usesTopLevelAwait:$}}setDynamicImportResolutions(e){const{accessedGlobalsByScope:t,outputOptions:n,pluginDriver:s,snippets:i}=this;for(const r of this.getIncludedDynamicImports())if(r.chunk){const{chunk:o,facadeChunk:a,node:l,resolution:c}=r;o===this?l.setInternalResolution(c.namespace):l.setExternalResolution((a||o).exportMode,n,i,s,t,`'${(a||o).getImportPath(e)}'`,!a?.strictFacade&&o.exportNamesByVariable.get(c.namespace)[0],null,this,a||o)}else{const{node:o,resolution:a}=r,[l,c]=this.getDynamicImportStringAndAttributes(a,e,o);o.setExternalResolution("external",n,i,s,t,l,!1,c,this,null)}}setIdentifierRenderResolutions(){const{format:e,generatedCode:{symbols:t},interop:n,preserveModules:s,externalLiveBindings:i}=this.outputOptions;for(const e of this.orderedModules)for(const t of e.scope.variables.values())t.setRenderNames(null,null);const r=new Set;for(const t of this.getExportNames()){const n=this.exportsByName.get(t);"es"!==e&&"system"!==e&&n.isReassigned&&!n.isId?n.setRenderNames("exports",t):n instanceof $o?r.add(n):n.setRenderNames(null,null)}for(const e of this.orderedModules)if(e.needsExportShim){this.needsExportsShim=!0;break}const o=new Set(ud);this.needsExportsShim&&o.add(Ho),t&&o.add("Symbol"),Ku(this.orderedModules,this.getDependenciesToBeDeconflicted("es"!==e&&"system"!==e,"amd"===e||"umd"===e||"iife"===e,n),this.imports,o,e,n,s,i,this.chunkByModule,this.externalChunkByModule,r,this.exportNamesByVariable,this.accessedGlobalsByScope,this.includedNamespaces)}setImportMetaResolutions(e){const{accessedGlobalsByScope:t,includedNamespaces:n,orderedModules:s,outputOptions:{format:i}}=this;for(const r of s){for(const n of r.importMetas)n.setResolution(i,t,e);n.has(r)&&r.namespace.prepare(t)}}setUpChunkImportsAndExportsForModule(e){const t=new Set(e.includedImports);if(this.includedNamespaces.has(e))for(const n of e.getExportedVariablesByName().values())n.included&&t.add(n);for(let n of t){n instanceof So&&(n=n.getOriginalVariable()),n instanceof $o&&(n=n.getBaseVariable());const t=this.chunkByModule.get(n.module);t!==this&&(this.imports.add(n),n.module instanceof Vu&&(this.checkCircularDependencyImport(n,e),this.isNativeNamespace(n)||t.exports.add(n)))}(this.includedNamespaces.has(e)||e.info.isEntry&&!1!==e.preserveSignature||e.includedDynamicImporters.some(e=>this.chunkByModule.get(e)!==this))&&this.ensureReexportsAreAvailableForModule(e);for(const{node:{included:t,resolution:n}}of e.dynamicImports)t&&n instanceof Vu&&this.chunkByModule.get(n)===this&&!this.includedNamespaces.has(n)&&(this.includedNamespaces.add(n),this.ensureReexportsAreAvailableForModule(n))}}function fd(e){return md(e)??Pt(e.id)}function md(e){return e.chunkNames.find(({isUserDefined:e})=>e)?.name??e.chunkNames[0]?.name}function gd(e,t){const n={};for(const[s,i]of e){const e=new Set;if(i.imports)for(const{imported:t}of i.imports)e.add(t);if(i.reexports)for(const{imported:t}of i.reexports)e.add(t);n[t(s)]=[...e]}return n}const yd=/[#?]/,bd=e=>e.getFileName();function*Ed(e){for(const t of e)yield*t}function xd(e,t,n,s,i){const{manualChunkByModule:r,manualChunks:o}=function(e,t){const n=Object.create(null),s=[...e].sort(([e],[t])=>e.execIndex-t.execIndex);for(const[e,t]of s)(n[t]||=[]).push(e);const i=[],r=new Map;for(const[e,s]of Object.entries(n)){const n=s.filter(e=>e.isEmitted());if(0===n.length){t(Et,mn(e));continue}const o={alias:e,modules:n};i.push(o);for(const e of n)r.set(e,o)}return{manualChunkByModule:r,manualChunks:i}}(t,s),a=new Map;o.forEach((t,n)=>{a.set(t,e.length+n)});const{entriesAndManualChunksCount:l,dependentEntriesByModule:c,dynamicallyDependentEntriesByDynamicEntry:u,dynamicImportsByEntry:d,dynamicallyDependentEntriesByAwaitedDynamicEntry:h,awaitedDynamicImportsByEntry:p}=function(e,t,n,s){const i=new Set,r=new Set,o=new Map,a=t.map(e=>e.modules),l=new Set(e);for(const e of a)for(const t of e)l.add(t);const c=e.map(e=>[e]).concat(a),u=new Array(c.length),d=new Array(c.length),h=new Array(c.length),p=new Array(c.length);let f=0;for(const e of c){const t=new Set,s=new Set,a=new Set,m=new Set;u[f]=t,d[f]=s,h[f]=a,p[f]=m;const g=new Set(e);let y=!1;const b=new Set;for(const e of g){y||=e.hasTopLevelAwait(),ve(o,e,Ae).add(f);const s=n.get(e);if(s&&!b.has(s)){b.add(s);for(const e of s.modules)g.add(e)}for(const t of e.getDependenciesToBeIncluded())t instanceof Ns||g.add(t);for(const{node:{resolution:s}}of e.dynamicImports)if(s instanceof Vu&&s.includedDynamicImporters.length>0){if(l.has(s)){if(!i.has(s)){const e=n.get(s);if(!e)continue;a.add(e)}}else i.add(s),l.add(s),c.push([s]);t.add(s)}for(const s of e.implicitlyLoadedBefore)if(l.has(s)){const e=n.get(s);e&&(a.add(e),t.add(s))}else i.add(s),l.add(s),c.push([s])}if(y)for(const e of t){const t=n.get(e);t?m.add(t):r.add(e),s.add(e)}f++}const{awaitedDynamicEntries:m,awaitedDynamicImportsByEntry:g,dynamicEntries:y,dynamicImportsByEntry:b}=function(e,t,n,s,i,r,o,a){const l=new Map,c=new Set,u=new Set;for(const[n,i]of e.entries())for(const e of i)l.set(e,n),t.has(e)&&c.add(n),s.has(e)&&u.add(n);for(const e of r)for(const t of e)c.add(a.get(t));for(const e of o)for(const t of e)u.add(a.get(t));const d=Ad(n,l),h=Ad(i,l);return{awaitedDynamicEntries:u,awaitedDynamicImportsByEntry:h,dynamicEntries:c,dynamicImportsByEntry:d}}(c,i,u,r,d,h,p,s);return{awaitedDynamicImportsByEntry:g,dependentEntriesByModule:o,dynamicallyDependentEntriesByAwaitedDynamicEntry:Sd(Pd(o,m,c,e=>e.includedTopLevelAwaitingDynamicImporters),g),dynamicallyDependentEntriesByDynamicEntry:Pd(o,y,c,e=>e.includedDynamicImporters),dynamicImportsByEntry:b,entriesAndManualChunksCount:c.length}}(e,o,r,a),{modulesWithDependentEntries:f,topLevelAwaitingCycleSingletons:m}=function(e,t){const n=[],s=[];for(const[i,r]of e){const e=t.get(i)?.alias??null;null===e&&i.cycles.size>0&&i.includedTopLevelAwaitingDynamicImporters.size>0?s.push({alias:null,modules:[i]}):n.push({alias:e,dependentEntries:r,module:i})}return{modulesWithDependentEntries:n,topLevelAwaitingCycleSingletons:s}}(c,r),g=function(e,t){const n=vd(e,t),s=Object.create(null);for(const[t,{dependentEntries:i,module:r}]of e.entries()){const{alias:e,key:o}=n[t];(s[o]||={alias:e,dependentEntries:new Set(i),modules:[]}).modules.push(r)}return Object.values(s)}(f,i),y=function(e,t){const n=new Array(e).fill(0n);let s=1n;for(const{dependentEntries:e}of t){for(const t of e)n[t]|=s;s<<=1n}return n}(l,g),b=function(e,t,n,s){const i=Array.from({length:s},(e,n)=>t.has(n)?-1n:0n);for(const[s,r]of t){t.delete(s);const o=i[s];let a=o;for(const t of r)a&=e[t]|i[t];if(a!==o){i[s]=a;for(const e of n[s])ve(t,e,Ae).add(s)}}return i}(y,u,d,l),E=function(e,t,n,s){const i=new Array(s).fill(0n);for(const[s,r]of t){t.delete(s);const o=i[s];let a=o;for(const t of r)a|=e[t]|i[t];if(a!==o){i[s]=a;for(const e of n[s])ve(t,e,Ae).add(s)}}return i}(y,h,p,l);!function(e,t,n){const s=new Map;for(const[e,{alias:n}]of t.entries())null!==n&&s.set(n,1n<<BigInt(e));for(const[t,i]of e){const e=s.get(t.alias),r=n[i];void 0!==e&&(r&e)===e&&(n[i]=0n)}}(a,g,b),function(e,t,n){let s=1n;for(const{dependentEntries:i}of e){for(const e of i)(t[e]&s)===s&&0n===(n[e]&s)&&i.delete(e);s<<=1n}}(g,b,E);const{chunks:x,sideEffectAtoms:v,sizeByAtom:A}=function(e,t,n,s,i){const r=vd(e,i),o=Object.create(null),a=new Map,l=new Array(e.length);let c=0n,u=1n;for(const[i,{dependentEntries:d,modules:h}]of e.entries()){let e=-1n;for(const s of d)e&=t[s]|n[s];const{alias:p,key:f}=r[i],m=o[f]||={alias:p,containedAtoms:0n,correlatedAtoms:e,dependencies:new Set,dependentChunks:new Set,dependentEntries:new Set(d),modules:[],pure:!0,size:0};let g=0,y=!0;for(const e of h)a.set(e,m),e.isIncluded()&&(y&&=!e.hasEffects(),g+=s>1?e.estimateSize():1);y||(c|=u),l[i]=g,m.containedAtoms|=u,m.modules.push(...h),m.pure&&=y,m.size+=g,u<<=1n}const d=Object.values(o);return c|=function(e,t,n){const s=new Map;let i=0n;for(const r of e){const{dependencies:e,modules:o}=r;for(const a of o)for(const o of a.getDependenciesToBeIncluded())if(o instanceof Ns){if(o.info.moduleSideEffects){const e=ve(s,o,()=>{const e=n;return n<<=1n,i|=e,e});r.containedAtoms|=e,r.correlatedAtoms|=e}}else{const n=t.get(o);n&&n!==r&&(e.add(n),n.dependentChunks.add(r))}}return i}(d,a,u),{chunks:d,sideEffectAtoms:c,sizeByAtom:l}}(g,y,b,n,i);return[...m,...wd(x,n,v,A,s).map(({alias:e,modules:t})=>({alias:e,modules:t}))]}function vd(e,t){const n=new Array(e.length),s=t?null:new Map;for(const[t,{dependentEntries:i,alias:r}]of e.entries()){let e=0n;for(const t of i)e|=1n<<BigInt(t);const o=String(e);if(n[t]=o,s&&null!==r){const e=s.get(o);s.set(o,void 0===e||e===r?r:null)}}return e.map(({alias:e},t)=>{const i=e??s?.get(n[t])??null;return{alias:i,key:null===i?n[t]:`manual:${i}`}})}function Ad(e,t){const n=new Array(e.length);let s=0;for(const i of e){const e=new Set;for(const n of i)e.add(t.get(n));n[s++]=e}return n}function Sd(e,t){for(const[n,s]of t.entries())for(const t of s)ve(e,t,Ae).add(n);return e}function Pd(e,t,n,s){const i=new Map;for(const r of t){const t=ve(i,r,Ae),o=n[r];for(const n of o)for(const i of Ed([s(n),n.implicitlyLoadedAfter])){const n=e.get(i);if(n)for(const e of n)t.add(e)}}return i}function wd(e,t,n,s,i){Mu("optimize chunks",3);const r=function(e,t){const n=[],s=[],i=[];for(const r of e)null!==r.alias?i.push(r):(r.size<t?n:s).push(r);if(0===n.length)return null;return n.sort($d),s.sort($d),{big:new Set(s),fixed:new Set(i),small:new Set(n)}}(e,t);return r?(t>1&&i("info",kn(e.length,r.small.size,"Initially")),function(e,t,n,s){const{small:i}=e;for(const r of i){const o=Id(r,e,n,s,t<=1?1:1/0);if(o){const{containedAtoms:n,correlatedAtoms:s,modules:a,pure:l,size:c}=r;i.delete(r),Nd(o,t,e).delete(o),o.modules.push(...a),o.size+=c,o.pure&&=l;const{dependencies:u,dependentChunks:d,dependentEntries:h}=o;o.correlatedAtoms&=s,o.containedAtoms|=n;for(const e of r.dependentEntries)h.add(e);for(const e of r.dependencies)u.add(e),e.dependentChunks.delete(r),e.dependentChunks.add(o);for(const e of r.dependentChunks)d.add(e),e.dependencies.delete(r),e.dependencies.add(o);u.delete(o),d.delete(o),Nd(o,t,e).add(o)}}}(r,t,n,s),t>1&&i("info",kn(r.small.size+r.big.size+r.fixed.size,r.small.size,"After merging chunks")),_u("optimize chunks",3),[...r.small,...r.big,...r.fixed]):(_u("optimize chunks",3),e)}function $d({size:e},{size:t}){return e-t}function Id(e,{big:t,small:n},s,i,r){let o=null;for(const a of Ed([n,t])){if(e===a)continue;const t=Cd(e,a,r,s,i);if(t<r){if(o=a,0===t)break;r=t}}return o}function Cd(e,t,n,s,i){const r=kd(e,t,n,s,i);return r<n?r+kd(t,e,n-r,s,i):1/0}function kd(e,t,n,s,i){const{correlatedAtoms:r}=t;let o=e.containedAtoms;const a=o&s;if((r&a)!==a)return 1/0;const l=new Set(e.dependencies);for(const{dependencies:e,containedAtoms:n}of l){o|=n;const i=n&s;if((r&i)!==i)return 1/0;for(const n of e){if(n===t)return 1/0;l.add(n)}}return function(e,t,n){let s=0,i=0,r=1n;const{length:o}=n;for(;i<o;i++)if((e&r)===r&&(s+=n[i]),r<<=1n,s>=t)return 1/0;return s}(o&~r,n,i)}function Nd(e,t,n){return e.size<t?n.small:n.big}const Od=(e,t)=>e.execIndex>t.execIndex?1:-1;function Rd(e){e.sort(Od)}function Dd(e){let t=0;const n=[],s=new Set,i=new Set,r=new Map,o=[],a=(e,t)=>{r.has(e)?s.has(e)||n.push(function(e,t,n){const s=Symbol(e.id),i=[e.id];let r=t;e.cycles.add(s);for(;r!==e;)r.cycles.add(s),i.push(r.id),r=n.get(r);return i.push(i[0]),i.reverse(),i}(e,t,r)):(r.set(e,t),l(e))},l=e=>{if(e instanceof Vu){for(const t of e.dependencies)a(t,e);for(const t of e.implicitlyLoadedBefore)i.add(t);for(const{node:{resolution:t,scope:n}}of e.dynamicImports)t instanceof Vu&&(n.context.usesTopLevelAwait?a(t,e):i.add(t));o.push(e)}e.execIndex=t++,s.add(e)};for(const t of e)r.has(t)||(r.set(t,null),l(t));for(const e of i)r.has(e)||(r.set(e,null),l(e));return{cyclePaths:n,orderedModules:o}}const Md=(e,t)=>t?`(${e})`:e;class _d{constructor(e,t){this.isOriginal=!0,this.filename=e,this.content=t}traceSegment(e,t,n){return{column:t,line:e,name:n,source:this}}}class Ld{constructor(e,t){this.sources=t,this.names=e.names,this.mappings=e.mappings}traceMappings(){const e=[],t=new Map,n=[],s=[],i=new Map,r=[];for(const o of this.mappings){const a=[];for(const r of o){if(1===r.length)continue;const o=this.sources[r[1]];if(!o)continue;const l=o.traceSegment(r[2],r[3],5===r.length?this.names[r[4]]:"");if(l){const{column:o,line:c,name:u,source:{content:d,filename:h}}=l;let p=t.get(h);if(void 0===p)p=e.length,e.push(h),t.set(h,p),n[p]=d;else if(null==n[p])n[p]=d;else if(null!=d&&n[p]!==d)return Gt(_n(h));const f=[r[0],p,c,o];if(u){let e=i.get(u);void 0===e&&(e=s.length,s.push(u),i.set(u,e)),f[4]=e}a.push(f)}}r.push(a)}return{mappings:r,names:s,sources:e,sourcesContent:n}}traceSegment(e,t,n){const s=this.mappings[e];if(!s)return null;let i=0;let r=s.length-1;for(;i<=r;){const e=i+r>>1;let o=s[e];if(o[0]!==t&&i===r){o=s[s[i][0]>t?Math.max(0,i-1):i]}if(o[0]===t||i===r){if(1==o.length)return null;const e=this.sources[o[1]];return e?e.traceSegment(o[2],o[3],5===o.length?this.names[o[4]]:n):null}o[0]>t?r=e-1:i=e+1}return null}}function Td(e){return function(t,n){return n.missing?(e(Et,(s=n.plugin,{code:rn,message:`Sourcemap is likely to be incorrect: a plugin (${s}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:s,url:kt("troubleshooting/#warning-sourcemap-is-likely-to-be-incorrect")})),new Ld({mappings:[],names:[]},[t])):new Ld(n,[t]);var s}}function Bd(e,t,n,s,i){let r;if(n){const t=n.sources,s=n.sourcesContent||[],i=Z(e)||".",o=n.sourceRoot||".",a=t.map((e,t)=>null==e?null:new _d(ne(i,o,e),s[t]));r=new Ld(n,a)}else r=new _d(e,t);return s.reduce(i,r)}let zd;const Fd=e=>function(e){let t,n;try{const r=Kc.__wbindgen_add_to_stack_pointer(-16);Kc.xxhashBase64Url(r,Dc(e));var s=Lc().getInt32(r+0,!0),i=Lc().getInt32(r+4,!0);return t=s,n=i,Tc(s,i)}finally{Kc.__wbindgen_add_to_stack_pointer(16),Kc.__wbindgen_export(t,n,1)}}(jd(e)),Vd={base36:e=>function(e){let t,n;try{const r=Kc.__wbindgen_add_to_stack_pointer(-16);Kc.xxhashBase36(r,Dc(e));var s=Lc().getInt32(r+0,!0),i=Lc().getInt32(r+4,!0);return t=s,n=i,Tc(s,i)}finally{Kc.__wbindgen_add_to_stack_pointer(16),Kc.__wbindgen_export(t,n,1)}}(jd(e)),base64:Fd,hex:e=>function(e){let t,n;try{const r=Kc.__wbindgen_add_to_stack_pointer(-16);Kc.xxhashBase16(r,Dc(e));var s=Lc().getInt32(r+0,!0),i=Lc().getInt32(r+4,!0);return t=s,n=i,Tc(s,i)}finally{Kc.__wbindgen_add_to_stack_pointer(16),Kc.__wbindgen_export(t,n,1)}}(jd(e))};function jd(e){return"string"==typeof e?"undefined"==typeof Buffer?(zd??=new TextEncoder,zd.encode(e)):Buffer.from(e):e}let Ud="sourceMa";async function Gd(e,t,n,s,i){Mu("render chunks",2),function(e){for(const t of e)t.facadeModule&&t.facadeModule.isUserDefinedEntryPoint&&t.getPreliminaryFileName()}(e);const r=await Promise.all(e.map(e=>e.render()));_u("render chunks",2),Mu("transform chunks",2);const o=Vd[s.hashCharacters],a=function(e){return Object.fromEntries(e.map(e=>{const t=e.getRenderedChunkInfo();return[t.fileName,t]}))}(e),{hashDependenciesByPlaceholder:l,initialHashesByPlaceholder:c,nonHashedChunksWithPlaceholders:u,placeholders:d,renderedChunksByPlaceholder:h,usedFileNames:p}=await async function(e,t,n,s,i,r,o){const a=[],l=new Map,c=new Map,u=new Map,d=new Set;for(const{preliminaryFileName:{hashPlaceholder:t}}of e)t&&d.add(t);const h=await Promise.all(e.map(async({chunk:e,preliminaryFileName:{fileName:i,hashPlaceholder:o},preliminarySourcemapFileName:a,magicString:l,usedModules:c})=>{const u={chunk:e,fileName:i,sourcemapFileName:a?.fileName??null,...await Hd(l,i,c,t,n,s,r)};return{hashAugmentation:o?s.hookReduceValueSync("augmentChunkHash","",[e.getRenderedChunkInfo()],(e,t)=>e+(t||"")):"",hashPlaceholder:o,preliminarySourcemapFileName:a,transformedChunk:u}})),p=new Set(o[od]);for(const{transformedChunk:e,hashPlaceholder:t,preliminarySourcemapFileName:s,hashAugmentation:r}of h){const{map:o}=e,h=s?.hashPlaceholder;if(o&&h){const{transformedCode:e}=rd(o.toString(),d);u.set(h,"inline"===n.sourcemap?i(e).slice(0,h.length):qd(e,s.fileName,h,p,i))}t?(l.set(t,e),c.set(t,Wd(e,n,i,d,u,r))):a.push(e)}return{hashDependenciesByPlaceholder:c,initialHashesByPlaceholder:u,nonHashedChunksWithPlaceholders:a,placeholders:d,renderedChunksByPlaceholder:l,usedFileNames:p}}(r,a,s,n,o,i,t),f=function(e,t,n,s,i,r,o){const a=new Map(n);for(const n of s){const{fileName:s}=e.get(n);let l="";const c=new Set([n]);for(const e of c){const{containedPlaceholders:n,contentHash:s}=t.get(e);l+=s;for(const e of n)c.add(e)}const u=qd(l,s,n,r,o);i[id(s,n,u)]=ad,a.set(n,u)}return a}(h,l,c,d,t,p,o);!function(e,t,n,s,i,r){for(const{chunk:s,code:o,fileName:a,sourcemapFileName:l,map:c}of e.values()){let e=sd(o,t);const u=sd(a,t);let d=null;c&&(r.sourcemapDebugIds&&(e+=Jd(e,c)),d=l?sd(l,t):`${u}.map`,c.file=sd(c.file??"",t),e+=Kd(d,c,i,r)),n[u]=s.finalizeChunk(e,c,d,t)}for(const{chunk:e,code:o,fileName:a,sourcemapFileName:l,map:c}of s){let s=t.size>0?sd(o,t):o,u=null;c&&(r.sourcemapDebugIds&&(s+=Jd(s,c)),u=l?sd(l,t):`${a}.map`,s+=Kd(u,c,i,r)),n[a]=e.finalizeChunk(s,c,u,t)}}(h,f,t,u,n,s),_u("transform chunks",2)}async function Hd(e,t,n,s,i,r,o){let a=null;const l=[];let c=await r.hookReduceArg0("renderChunk",[e.toString(),s[t],i,{chunks:s}],(e,t,n)=>{if(null==t)return e;if("string"==typeof t&&(t={code:t,map:void 0}),null!==t.map){const e=$c(t.map);l.push(e||{missing:!0,plugin:n.name})}return t.code});const{compact:u,dir:d,file:h,sourcemap:p,sourcemapExcludeSources:f,sourcemapFile:m,sourcemapPathTransform:g,sourcemapIgnoreList:y}=i;if(u||"\n"===c[c.length-1]||(c+="\n"),p){let s;Mu("sourcemaps",3),s=h?ne(m||h):d?ne(d,t):ne(t);a=function(e,t,n,s,i,r){const o=Td(r),a=n.filter(e=>!e.excludeFromSourcemap).map(e=>Bd(e.id,e.originalCode,e.originalSourcemap,e.sourcemapChain,o)),l=new Ld(t,a),c=s.reduce(o,l);let{sources:u,sourcesContent:d,names:h,mappings:p}=c.traceMappings();if(e){const t=Z(e);u=u.map(e=>te(t,e)),e=Y(e)}for(const e of n)wc(e.originalSourcemap,e.sourcemapChain);return new A({file:e,mappings:p,names:h,sources:u,sourcesContent:i?void 0:d})}(s,e.generateDecodedMap({}),n,l,f,o);for(let e=0;e<a.sources.length;++e){let t=a.sources[e];const n=`${s}.map`,i=y(t,n);"boolean"!=typeof i&&Gt(Bn("sourcemapIgnoreList function must return a boolean.")),i&&(void 0===a.x_google_ignoreList&&(a.x_google_ignoreList=[]),a.x_google_ignoreList.includes(e)||a.x_google_ignoreList.push(e)),g&&(t=g(t,n),"string"!=typeof t&&Gt(Bn("sourcemapPathTransform function must return a string."))),a.sources[e]=J(t)}_u("sourcemaps",3)}return{code:c,map:a}}function Wd({code:e,map:t,fileName:n,sourcemapFileName:s},i,r,o,a,l){const{containedPlaceholders:c,transformedCode:u}=rd(e,o);let d=u;if(t&&"hidden"!==i.sourcemap){let e;if("inline"===i.sourcemap){const{containedPlaceholders:n,transformedCode:s}=rd(t.toString(),o);e=n,d+=`//# ${Ud}=data:application/json,${s}\n`}else{const{containedPlaceholders:r,transformedCode:l}=rd(sd(s??`${n}.map`,a),o);e=r,d+=Xd(l,t,i.sourcemap,i.sourcemapBaseUrl)}for(const t of e)c.add(t)}return l&&(d+=l),{containedPlaceholders:c,contentHash:r(d)}}function qd(e,t,n,s,i){let r,o;do{o&&(e=o),o=i(e).slice(0,n.length),r=id(t,n,o).toLowerCase()}while(s.has(r));return s.add(r),o}function Kd(e,t,n,{sourcemap:s,sourcemapBaseUrl:i}){return"inline"!==s&&n.emitFile({fileName:e,originalFileName:null,source:t.toString(),type:"asset"}),Xd(e,t,s,i)}function Xd(e,t,n,s){const i="inline"===n?t.toUrl():s?new URL(Y(e),s).toString():Y(e);return"hidden"===n?"":`//# ${Ud}=${i}\n`}function Jd(e,t){const n=Vd.hex(e),s=[n.slice(0,8),n.slice(8,12),"4"+n.slice(12,15),(3&parseInt(n.slice(15,16),16)|8).toString(16)+n.slice(17,20),n.slice(20,32)].join("-");return t.debugId=s,"//# debugId="+s+"\n"}Ud+="ppingURL";class Yd{constructor(e,t,n,s,i){this.outputOptions=e,this.unsetOptions=t,this.inputOptions=n,this.pluginDriver=s,this.graph=i,this.facadeChunkByModule=new Map,this.includedNamespaces=new Set}async generate(e){Mu("GENERATE",1);const t=Object.create(null),n=(e=>{const t=new Set;return new Proxy(e,{deleteProperty:(e,n)=>("string"==typeof n&&t.delete(n.toLowerCase()),Reflect.deleteProperty(e,n)),get:(e,n)=>n===od?t:Reflect.get(e,n),set:(e,n,s)=>("string"==typeof n&&t.add(n.toLowerCase()),Reflect.set(e,n,s))})})(t);this.pluginDriver.setOutputBundle(n,this.outputOptions);try{Mu("initialize render",2),await this.pluginDriver.hookParallel("renderStart",[this.outputOptions,this.inputOptions]),_u("initialize render",2),Mu("generate chunks",2);const e=(()=>{let e=0;return(t,n)=>{if(n>21)return Gt(Bn(`Hashes cannot be longer than 21 characters, received ${n}. Check the "${t}" option.`));const s=`${ed}${dt(++e).padStart(n-5,"0")}${td}`;return s.length>n?Gt(Bn(`To generate hashes for this number of chunks (currently ${e}), you need a minimum hash size of ${s.length}, received ${n}. Check the "${t}" option.`)):s}})(),t=await this.generateChunks(n,e);t.length>1&&function(e,t){if("umd"===e.format||"iife"===e.format)return Gt(Pn("output.format",_t,"UMD and IIFE output formats are not supported for code-splitting builds",e.format));if("string"==typeof e.file)return Gt(Pn("output.file",Dt,'when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option'));if(e.sourcemapFile)return Gt(Pn("output.sourcemapFile",Vt,'"output.sourcemapFile" is only supported for single-file builds'));!e.amd.autoId&&e.amd.id&&t(Et,Pn("output.amd.id",Rt,'this option is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath" instead'))}(this.outputOptions,this.inputOptions.onLog),this.pluginDriver.setChunkInformation(this.facadeChunkByModule);for(const e of t)e.generateExports(),e.inlineTransitiveImports();_u("generate chunks",2),await Gd(t,n,this.pluginDriver,this.outputOptions,this.inputOptions.onLog)}catch(e){try{await this.pluginDriver.hookParallel("renderError",[e])}catch(t){Gt(Wt(e,t,"renderError"))}throw e}return(e=>{const t=new Set,n=Object.values(e);for(const e of n)"asset"===e.type&&e.needsCodeReference&&t.add(e.fileName);for(const e of n)if("chunk"===e.type)for(const n of e.referencedFiles)t.has(n)&&t.delete(n);for(const n of t)delete e[n]})(n),Mu("generate bundle",2),await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,n,e]),this.finaliseAssets(n),function(e){for(const[t,n]of Object.entries(e)){if(Qd(t))return Gt(gn(t));if("placeholder"!==n.type){const{fileName:e}=n;if(e!==t&&Qd(e))return Gt(gn(e))}}}(n),_u("generate bundle",2),_u("GENERATE",1),t}async addManualChunks(e){const t=new Map,n=await Promise.all(Object.entries(e).map(async([e,t])=>({alias:e,entries:await this.graph.moduleLoader.addAdditionalModules(t,!0)})));for(const{alias:e,entries:s}of n)for(const n of s)Zd(e,n,t);return t}assignManualChunks(e){const t=new Map,n={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(const s of this.graph.modulesById.values())if(s instanceof Vu){const i=e(s.id,n);"string"==typeof i&&Zd(i,s,t)}return t}finaliseAssets(e){if(this.outputOptions.validate)for(const t of Object.values(e))if("code"in t)try{vu(t.code,{jsx:!1!==this.inputOptions.jsx})}catch(e){this.inputOptions.onLog(Et,hn(t,e))}this.pluginDriver.finaliseAssets()}async generateChunks(e,t){const{experimentalMinChunkSize:n,inlineDynamicImports:s,manualChunks:i,preserveModules:r,onlyExplicitManualChunks:o}=this.outputOptions,a="object"==typeof i?await this.addManualChunks(i):this.assignManualChunks(i),l=function({compact:e,generatedCode:{arrowFunctions:t,constBindings:n,objectShorthand:s,reservedNamesAsProps:i}}){const{_:r,n:o,s:a}=e?{_:"",n:"",s:""}:{_:" ",n:"\n",s:";"},l=n?"const":"var",c=(e,{isAsync:t,name:n})=>`${t?"async ":""}function${n?` ${n}`:""}${r}(${e.join(`,${r}`)})${r}`,u=t?(e,{isAsync:t,name:n})=>{const s=1===e.length;return`${n?`${l} ${n}${r}=${r}`:""}${t?`async${s?" ":r}`:""}${s?e[0]:`(${e.join(`,${r}`)})`}${r}=>${r}`}:c,d=(e,{functionReturn:n,lineBreakIndent:s,name:i})=>[`${u(e,{isAsync:!1,name:i})}${t?s?`${o}${s.base}${s.t}`:"":`{${s?`${o}${s.base}${s.t}`:r}${n?"return ":""}`}`,t?`${i?";":""}${s?`${o}${s.base}`:""}`:`${a}${s?`${o}${s.base}`:r}}`],h=i?e=>$s.test(e):e=>!ut.has(e)&&$s.test(e);return{_:r,cnst:l,getDirectReturnFunction:d,getDirectReturnIifeLeft:(e,n,{needsArrowReturnParens:s,needsWrappedFunction:i})=>{const[r,o]=d(e,{functionReturn:!0,lineBreakIndent:null,name:null});return`${Md(`${r}${Md(n,t&&s)}${o}`,t||i)}(`},getFunctionIntro:u,getNonArrowFunctionIntro:c,getObject(e,{lineBreakIndent:t}){const n=t?`${o}${t.base}${t.t}`:r;return`{${e.map(([e,t])=>{if(null===e)return`${n}${t}`;const i=Cs(e);return e===t&&s&&e===i?n+e:`${n}${i}:${r}${t}`}).join(",")}${0===e.length?"":t?`${o}${t.base}`:r}}`},getPropertyAccess:e=>h(e)?`.${e}`:`[${JSON.stringify(e)}]`,n:o,s:a}}(this.outputOptions),c=function(e){const t=[];for(const n of e.values())n instanceof Vu&&n.isEmitted()&&t.push(n);return t}(this.graph.modulesById),u=function(e){if(0===e.length)return"/";if(1===e.length)return Z(e[0]);const t=e.slice(1).reduce((e,t)=>{const n=t.split(/\/+|\\+/);let s;for(s=0;e[s]===n[s]&&s<Math.min(e.length,n.length);s++);return e.slice(0,s)},e[0].split(/\/+|\\+/));return t.length>1?t.join("/"):"/"}(function(e,t){const n=[];for(const s of e)(s.info.isEntry||t)&&K(s.id)&&n.push(s.id);return n}(c,r)),d=function(e,t,n){const s=new Map;for(const i of e.values())i instanceof Ns&&s.set(i,new Io(i,t,n));return s}(this.graph.modulesById,this.outputOptions,u),h=s?[{alias:null,modules:c}]:r?c.map(e=>({alias:null,modules:[e]})):xd(this.graph.entryModules,a,n,this.inputOptions.onLog,o),p=new Array(h.length),f=new Map;let m=0;for(const{alias:n,modules:s}of h){Rd(s);const i=new pd(s,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,f,d,this.facadeChunkByModule,this.includedNamespaces,n,t,e,u,l);p[m++]=i}for(const e of p)e.link();s||r||this.checkCircularChunks(p,o);const g=[];for(const e of p)g.push(...e.generateFacades());return[...p,...g]}checkCircularChunks(e,t){const n=new Set,s=new Map,i=(e,i)=>{if(s.has(e)){if(!n.has(e)){const n=[e.getChunkName()],r=[e];let o=i;for(;o!==e&&o;)n.push(o.getChunkName()),r.push(o),o=s.get(o);const a=r.filter(e=>e.isManualChunk).map(e=>e.getChunkName()),l=r.find(e=>!e.isManualChunk)?.getChunkName();n.push(n[0]),n.reverse(),this.inputOptions.onLog(Et,function(e,t,n,s){return{code:"CIRCULAR_CHUNK",ids:e,message:0===t.length?`Circular chunk: ${e.join(" -> ")}.`:`Circular chunk: ${e.join(" -> ")}. ${void 0===n?"Please adjust the manual chunk logic for these chunks.":s?`Please consider disabling the "output.onlyExplicitManualChunks" option, as enabling it causes modules located between the modules included in the manual chunk "${t[0]}" to be extracted into the separate chunk "${n}".`:"Please adjust the manual chunks or the module structure."}`}}(n,a,l,t))}}else s.set(e,i),r(e)},r=e=>{for(const t of e.dependencies)t instanceof pd&&i(t,e);n.add(e)};for(const t of e)s.has(t)||r(t)}}function Zd(e,t,n){const s=n.get(t);if("string"==typeof s&&s!==e)return Gt((i=t.id,r=e,o=s,{code:"INVALID_CHUNK",message:`Cannot assign "${wt(i)}" to the "${r}" chunk as it is already in the "${o}" chunk.`}));var i,r,o;n.set(t,e)}function Qd(e){const t=function(...e){const t=e.filter(Boolean).join("/");if(""===t)return".";const n=H.test(t[0]),s=(n?"/":"")+(ee(t.split(H),n).join("/")||(n?"":"."));return q.test(t)&&!s.endsWith("/")?s+"/":s}(e).replaceAll("\\","/");return".."===t||t.startsWith("../")||"."===t||K(t)}class eh extends fs{constructor(){super(),this.parent=null,this.variables.set("undefined",new Ao)}findVariable(e){let t=this.variables.get(e);return t||(t=new Hi(e),this.variables.set(e,t)),t}}const th=(e,t,n=rh)=>{const{onwarn:s,onLog:i}=e,r=nh(n,s);if(i){const e=At[t];return(t,n)=>i(t,sh(n),(t,n)=>{if("error"===t)return Gt(ih(n));At[t]>=e&&r(t,ih(n))})}return r},nh=(e,t)=>t?(n,s)=>{n===Et?t(sh(s),t=>e(Et,ih(t))):e(n,s)}:e,sh=e=>(Object.defineProperty(e,"toString",{value:()=>e.message,writable:!0}),e),ih=e=>"string"==typeof e?{message:e}:"function"==typeof e?ih(e()):e,rh=(e,{message:t})=>{switch(e){case Et:return console.warn(t);case vt:return console.debug(t);default:return console.info(t)}};function oh(e,t,n,s,i=/$./){const r=new Set(t),o=Object.keys(e).filter(e=>!(r.has(e)||i.test(e)));o.length>0&&s(Et,function(e,t,n){return{code:"UNKNOWN_OPTION",message:`Unknown ${e}: ${t.join(", ")}. Allowed options: ${n.join(", ")}`}}(n,o,[...r].sort()))}const ah={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:Ee,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,manualPureFunctions:Ee,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:Ee,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},lh={preserve:{factory:null,fragment:null,importSource:null,mode:"preserve"},"preserve-react":{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"preserve"},react:{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"classic"},"react-jsx":{factory:"React.createElement",importSource:"react",jsxImportSource:"react/jsx-runtime",mode:"automatic"}},ch={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}},uh=(e,t,n,s,i)=>{const r=e?.preset;if(r){const i=t[r];if(i)return{...i,...e};Gt(Pn(`${n}.preset`,s,`valid values are ${St(Object.keys(t))}`,r))}return((e,t,n,s)=>i=>{if("string"==typeof i){const r=e[i];if(r)return r;Gt(Pn(t,n,`valid values are ${s}${St(Object.keys(e))}. You can also supply an object for more fine-grained control`,i))}return(e=>e&&"object"==typeof e?e:{})(i)})(t,n,s,i)(e)},dh=async e=>(await async function(e){do{e=(await Promise.all(e)).flat(1/0)}while(e.some(e=>e?.then));return e}([e])).filter(Boolean);function hh(e,t,n,s,i){return At[e]<At[i]?Rs:(i,r)=>{null!=r&&n(Et,{code:"INVALID_LOG_POSITION",message:`Plugin "${s}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}),(i=ih(i)).code&&!i.pluginCode&&(i.pluginCode=i.code),i.code=t,i.plugin=s,n(e,i)}}const ph="at position ",fh="at output position ";const mh={delete:()=>!1,get(){},has:()=>!1,set(){}};function gh(e){return e.startsWith(ph)||e.startsWith(fh)?Gt({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):Gt({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${e} 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).`})}const yh=e;function bh(e,t,n,s){const i=Nc(e),r=!!t&&Object.keys(t).length>0;return"string"==typeof e&&!i.attributes&&r?(zn('The "importerAttributes" option is deprecated. Provide a UniqueModuleId for "importer" instead.',"plugin-development/#this-resolve",!0,s,n),Nc({attributes:t,rawId:e})):i}function Eh(e,t,n,s,i,r){const{logLevel:o,onLog:a}=s;let l,c=!0;if("string"!=typeof e.cacheKey&&(e.name.startsWith(ph)||e.name.startsWith(fh)||r.has(e.name)?c=!1:r.add(e.name)),t)if(c){const n=e.cacheKey||e.name;d=t[n]||(t[n]=Object.create(null)),l={delete:e=>delete d[e],get(e){const t=d[e];if(t)return t[0]=0,t[1]},has(e){const t=d[e];return!!t&&(t[0]=0,!0)},set(e,t){d[e]=[0,t]}}}else u=e.name,l={delete:()=>gh(u),get:()=>gh(u),has:()=>gh(u),set:()=>gh(u)};else l=mh;var u,d;return{addWatchFile(e){n.watchFiles[e]=!0},cache:l,debug:hh(vt,"PLUGIN_LOG",a,e.name,o),emitFile:i.emitFile.bind(i),error:t=>Gt(Mn(ih(t),e.name)),fs:s.fs,getFileName:i.getFileName,getModuleIds:()=>n.modulesById.keys(),getModuleInfo:n.getModuleInfo,getWatchFiles:()=>Object.keys(n.watchFiles),info:hh(xt,"PLUGIN_LOG",a,e.name,o),load:e=>n.moduleLoader.preloadModule({...e,...Nc(e.id)}),meta:{rollupVersion:yh,watchMode:n.watchMode},parse:vu,parseAndWalk:bu,resolve(t,i,{attributes:r,custom:o,importerAttributes:a,isEntry:l,skipSelf:c}=ye){c??=!0;const{id:u,attributes:d,rawId:h}=i?bh(i,a,e.name,s):ye;return n.moduleLoader.resolveId(t,u,o,l,r||be,d||be,h,c?[{importer:u,plugin:e,source:t}]:null)},setAssetSource:i.setAssetSource,warn:hh(Et,"PLUGIN_WARNING",a,e.name,o)}}async function xh(e,t,n,s,i,r,o,a,l,c,u){const d=await function(e,t,n,s,i,r,o,a,l,c,u){let d=null,h=null;if(i){d=new Set;for(const n of i)e===n.source&&t===n.importer&&d.add(n.plugin);h=(e,t)=>({...e,resolve:(e,n,{attributes:r,custom:o,importerAttributes:a,isEntry:l,skipSelf:c}=ye)=>{c??=!0;const{id:d,attributes:h,rawId:p}=n?bh(n,a,t.name,u):ye;return c&&-1!==i.findIndex(n=>n.plugin===t&&n.source===e&&n.importer===d)?Promise.resolve(null):s(e,d,o,l,r||be,h||be,p,c?[...i,{importer:d,plugin:t,source:e}]:i)}})}return n.hookFirstAndGetPlugin("resolveId",[e,t,{attributes:a,custom:r,importerAttributes:l||be,importerRawId:c,isEntry:o}],h,d)}(e,t,n,s,i,r,o,a,l,c,u);if(null!=d){const[e,t]=d;return"string"==typeof e?{id:e,resolvedBy:t.name}:"object"==typeof e?{...e,resolvedBy:e.resolvedBy||t.name}:e}return void 0===t||K(e)||"."===e[0]?async function(e,t,n){return await vh(e,t,n)??await vh(e+".mjs",t,n)??await vh(e+".js",t,n)}(t?ne(Z(t),e):ne(e),u.preserveSymlinks,u.fs):null}async function vh(e,t,n){try{const s=await n.lstat(e);if(!t&&s.isSymbolicLink())return await vh(await n.realpath(e),t,n);if(t&&s.isSymbolicLink()||s.isFile()){const t=Y(e);if((await n.readdir(Z(e))).includes(t))return e}}catch{}}function Ah(e){return 65279===e.charCodeAt(0)?Ah(e.slice(1)):e}async function Sh(e,t,n,s){const i=t.id,r=[];let o=null===e.map?null:$c(e.map);const a=e.code;let l=e.ast;const c=[],u=[];let d=!1;const h=()=>d=!0;let p="",f=e.code;const m=e=>(t,n)=>{t=ih(t),null!=n&&qt(t,n,f,i),t.id=i,t.hook="transform",e(t)};let g;try{g=await n.hookReduceArg0("transform",[f,i,{attributes:t.info.attributes,rawId:t.info.rawId}],function(e,n,i){let o,a;if("string"==typeof n)o=n;else{if(!n||"object"!=typeof n)return e;if(t.updateOptions(n),null==n.code)return(n.map||n.ast)&&s.onLog(Et,function(e){return{code:"NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",message:`The plugin "${e}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}(i.name)),e;n.attributes&&zn('Returning attributes from the "transform" hook is deprecated.',"plugin-development/#transform",!0,s),({code:o,map:a,ast:l}=n)}return null!==a&&r.push($c("string"==typeof a?JSON.parse(a):a)||{missing:!0,plugin:i.name}),f=o,o},(e,t)=>{return p=t.name,{...e,addWatchFile(t){c.push(t),e.addWatchFile(t)},cache:d?e.cache:(l=e.cache,g=h,{delete:e=>(g(),l.delete(e)),get:e=>(g(),l.get(e)),has:e=>(g(),l.has(e)),set:(e,t)=>(g(),l.set(e,t))}),debug:m(e.debug),emitFile:e=>(u.push(e),n.emitFile(e)),error:(t,n)=>("string"==typeof t&&(t={message:t}),null!=n&&qt(t,n,f,i),t.id=i,t.hook="transform",e.error(t)),getCombinedSourcemap(){const e=function(e,t,n,s,i){return 0!==s.length||n&&!function(e){return e.sources.every(e=>null!=e)}(n)?$c({version:3,...Bd(e,t,n,s,Td(i)).traceMappings()}):n}(i,a,o,r,s.onLog);if(!e){return new z(a).generateMap({hires:!0,includeContent:!0,source:i})}return o!==e&&(o=e,r.length=0),new A({...e,sourcesContent:e.sourcesContent})},info:m(e.info),setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn:m(e.warn)};var l,g})}catch(e){return Gt(Mn(e,p,{hook:"transform",id:i}))}!d&&u.length>0&&(t.transformFiles=u);const y=l?iu(l):await async function(e,t,n){return Zc(Oc(e,t,n))}(g,!1,!1!==s.jsx);return{astBuffer:y,code:g,customTransformCache:d,originalCode:a,originalSourcemap:o,safeVariableNames:null,sourcemapChain:r,transformDependencies:c}}const Ph="resolveDependencies";class wh{constructor(e,t,n,s){this.graph=e,this.modulesById=t,this.options=n,this.pluginDriver=s,this.implicitEntryModules=new Set,this.sortedEntryModules=[],this.entryModules=new Set,this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.resolveId=async(e,t,n,s,i,r,o,a=null)=>this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(e,t,!1,{attributes:i,importerAttributes:r,importerRawId:o})&&await xh(e,t,this.pluginDriver,this.resolveId,a,n,"boolean"==typeof s?s:!t,i,r,o,this.options),t,e,i,r,o),i),this.hasModuleSideEffects=n.treeshake?n.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(e,t){const n=this.extendLoadModulesPromise(Promise.all(e.map(e=>this.loadEntryModule(e,!1,void 0,null,t))));return await this.awaitLoadModulesPromise(),n}async addEntryModules(e,t){const n=await this.extendLoadModulesPromise(Promise.all(e.map(({id:e,importer:t,attributes:n})=>this.loadEntryModule(e,!0,t,null,void 0,n))).then(n=>{let s=!1;for(const[i,r]of n.entries())r.isUserDefinedEntryPoint=r.isUserDefinedEntryPoint||t,Ih(r,e[i],t),this.entryModules.has(r)||(this.sortedEntryModules.push(r),this.entryModules.add(r),s=!0);return s&&this.sortedEntryModules.sort((e,t)=>e.id>t.id?1:-1),n}));return await this.awaitLoadModulesPromise(),{entryModules:this.sortedEntryModules,implicitEntryModules:[...this.implicitEntryModules],newEntryModules:n}}async emitChunk({fileName:e,id:t,importer:n,name:s,implicitlyLoadedAfterOneOf:i,preserveSignature:r,attributes:o}){const a={attributes:o,fileName:e||null,id:t,importer:n&&kc(n),name:s||null},l=i?await this.addEntryWithImplicitDependants(a,i):(await this.addEntryModules([a],!1)).newEntryModules[0];return null!=r&&(l.preserveSignature=r),l}async preloadModule(e){return(await this.fetchModule({...this.getResolvedIdWithDefaults(e,be),rawId:e.rawId},void 0,!1,!e.resolveDependencies||Ph)).info}addEntryWithImplicitDependants(e,t){return this.extendLoadModulesPromise(this.loadEntryModule(e.id,!1,e.importer,null).then(async n=>{if(Ih(n,e,!1),!n.info.isEntry){const s=await Promise.all(t.map(t=>{const s=Nc(t);return this.loadEntryModule(s.id,!1,e.importer,n.id,void 0,s.attributes)}));if(!n.info.isEntry){this.implicitEntryModules.add(n);for(const e of s)n.implicitlyLoadedAfter.add(e);for(const e of n.implicitlyLoadedAfter)e.implicitlyLoadedBefore.add(n)}}return n}))}async addModuleSource(e,t,n){const s=await this.loadSourceDescription(e,t,n),i=this.graph.cachedModules.get(e);if(i&&!i.customTransformCache&&i.originalCode===s.code){const e={meta:{...n.info.meta},moduleSideEffects:n.info.moduleSideEffects,syntheticNamedExports:n.info.syntheticNamedExports};if(n.updateOptions(i),!await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:xu(i.astBuffer),attributes:i.attributes,code:i.code,id:i.id,meta:i.meta,moduleSideEffects:i.moduleSideEffects,rawId:i.rawId,resolvedSources:i.resolvedIds,syntheticNamedExports:i.syntheticNamedExports}])){if(i.transformFiles)for(const e of i.transformFiles)this.pluginDriver.emitFile(e);return void await n.setSource(i)}n.updateOptions(e,{replaceExistingMeta:!0})}n.updateOptions(s),await n.setSource(await Sh(s,n,this.pluginDriver,this.options))}async awaitLoadModulesPromise(){let e;do{e=this.latestLoadModulesPromise,await e}while(e!==this.latestLoadModulesPromise)}extendLoadModulesPromise(e){return this.latestLoadModulesPromise=Promise.all([e,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),e}async fetchDynamicDependencies(e,t){const n=await Promise.all(t.map(t=>t.then(async([{argument:t,node:n},s])=>null===s?null:"string"==typeof s?(n.resolution=s,null):"source"!==n.phase||s.external?n.resolution=await this.fetchResolvedDependency(wt(s.id),e.id,s):Gt(Cn("string"==typeof t?t:wt(s.id),e.id)))));for(const t of n)t&&(e.dynamicDependencies.add(t),t.dynamicImporters.push(e.id))}async fetchModule({attributes:e,id:t,rawId:n,meta:s,moduleSideEffects:i,syntheticNamedExports:r},o,a,l){const c=this.modulesById.get(t);if(c instanceof Vu)return await this.handleExistingModule(c,a,l),c;if(c instanceof Ns)return Gt({code:"EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES",message:`${c.id} is resolved as a module now, but it was an external module before. Please check whether there are conflicts in your Rollup options "external" and "manualChunks", manualChunks cannot include external modules.`});const u=new Vu(this.graph,t,n,this.options,a,i,r,s,e);this.modulesById.set(t,u);const d=this.addModuleSource(t,o,u).then(()=>[this.getResolveStaticDependencyPromises(u),this.getResolveDynamicImportPromises(u),h]),h=kh(d).then(()=>this.pluginDriver.hookParallel("moduleParsed",[u.info]));h.catch(()=>{}),this.moduleLoadPromises.set(u,d);const p=await d;return l?l===Ph&&await h:await this.fetchModuleDependencies(u,...p),u}async fetchModuleDependencies(e,t,n,s){this.modulesWithLoadedDependencies.has(e)||(this.modulesWithLoadedDependencies.add(e),await Promise.all([this.fetchStaticDependencies(e,t),this.fetchDynamicDependencies(e,n)]),e.linkImports(),await s)}fetchResolvedDependency(e,t,n){if(n.external){const{attributes:s,external:i,id:r,rawId:o,moduleSideEffects:a,meta:l}=n;let c=this.modulesById.get(r);if(c){if(!(c instanceof Ns))return Gt(function(e,t){return{code:"INVALID_EXTERNAL_ID",message:`"${e}" is imported as an external by "${wt(t)}", but is already an existing non-external module id.`}}(e,t))}else c=new Ns(this.options,r,o,a,l,"absolute"!==i&&K(r),s),this.modulesById.set(r,c);return Promise.resolve(c)}return this.fetchModule(n,t,!1,!1)}async fetchStaticDependencies(e,t){for(const n of await Promise.all(t.map(t=>t.then(([t,n])=>e.sourcePhaseSources.has(t)&&!n.external?Gt(Cn(t,e.id)):this.fetchResolvedDependency(t,e.id,n)))))e.dependencies.add(n),n.importers.push(e.id);if(!this.options.treeshake||"no-treeshake"===e.info.moduleSideEffects)for(const t of e.dependencies)t instanceof Vu&&(t.importedFromNotTreeshaken=!0)}getNormalizedResolvedIdWithoutDefaults(e,t,n,s,i,r){const{makeAbsoluteExternalsRelative:o}=this.options;if(e){if("object"==typeof e){const a=e.external||this.options.external(e.id,t,!0,{attributes:e.attributes||s,importerAttributes:i,importerRawId:r});return{...e,external:a&&("relative"===a||!K(e.id)||!0===a&&Ch(e.id,n,o)||"absolute")}}const a=this.options.external(e,t,!0,{attributes:s,importerAttributes:i,importerRawId:r});return{external:a&&(Ch(e,n,o)||"absolute"),id:a&&o?$h(e,t):e}}const a=o?$h(n,t):n;return!1===e||this.options.external(a,t,!0,{attributes:s,importerAttributes:i,importerRawId:r})?{external:Ch(a,n,o)||"absolute",id:a}:null}getResolveDynamicImportPromises(e){return e.dynamicImports.map(async t=>{const n=await this.resolveDynamicImport(e,t.argument,e.id,Su(t.node));return n&&"string"!=typeof n?(t.node.shouldIncludeDynamicAttributes=!!n.external,t.id=n.id,[t,n]):(t.node.shouldIncludeDynamicAttributes=!0,[t,n])})}getResolveStaticDependencyPromises(e){return Array.from(e.sourcesWithAttributesList).map(([e,t])=>t.map(t=>[e,t])).flat().map(async([t,n])=>{const s=Cc(t,n),i=e.resolvedIds[s];if(i)return[t,i];const r=this.toModuleResolvedId(this.handleInvalidResolvedId(await this.resolveId(t,e.id,be,!1,n,e.info.attributes,e.info.rawId),t,e.id,n));return e.resolvedIds[s]=r,[t,r]})}getResolvedIdWithDefaults(e,t){if(!e)return null;const n=e.external||!1;return{attributes:e.attributes||t,external:n,id:e.id,meta:e.meta||{},moduleSideEffects:e.moduleSideEffects??this.hasModuleSideEffects(e.id,!!n),resolvedBy:e.resolvedBy??"rollup",syntheticNamedExports:e.syntheticNamedExports??!1}}async handleExistingModule(e,t,n){const s=this.moduleLoadPromises.get(e);if(n)return n===Ph?kh(s):s;if(t){e.info.isEntry=!0,this.implicitEntryModules.delete(e);for(const t of e.implicitlyLoadedAfter)t.implicitlyLoadedBefore.delete(e);e.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(e,...await s)}handleInvalidResolvedId(e,t,n,s){return null===e?X(t)?Gt(function(e,t){return{code:ln,exporter:e,id:t,message:`Could not resolve "${e}" from "${wt(t)}"`}}(t,n)):(this.options.onLog(Et,function(e,t){return{code:ln,exporter:e,id:t,message:`"${e}" is imported by "${wt(t)}", but could not be resolved – treating it as an external dependency.`,url:kt("troubleshooting/#warning-treating-module-as-external-dependency")}}(t,n)),{attributes:s,external:!0,id:t,meta:{},moduleSideEffects:this.hasModuleSideEffects(t,!0),resolvedBy:"rollup",syntheticNamedExports:!1}):(e.external&&e.syntheticNamedExports&&this.options.onLog(Et,function(e,t){return{code:"EXTERNAL_SYNTHETIC_EXPORTS",exporter:e,message:`External "${e}" cannot have "syntheticNamedExports" enabled (imported by "${wt(t)}").`}}(t,n)),e)}async loadEntryModule(e,t,n,s,i=!1,r=be){const o=s?kc(s):null,{attributes:a,rawId:l,id:c}=n?Nc(n):ye,u=await xh(e,c,this.pluginDriver,this.resolveId,null,be,!0,r,a,l,this.options);if(null==u)return Gt(null===o?function(e){return{code:an,message:`Could not resolve entry module "${wt(e)}".`}}(e):function(e,t){return{code:tn,message:`Module "${wt(e)}" that should be implicitly loaded before "${wt(t)}" could not be resolved.`}}(e,o));const d="object"==typeof u&&u.external;return!1===u||d?Gt(null===o?d&&i?{code:"EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS",message:`"${e}" cannot be included in manualChunks because it is resolved as an external module by the "external" option or plugins.`}:function(e){return{code:an,message:`Entry module "${wt(e)}" cannot be external.`}}(e):function(e,t){return{code:tn,message:`Module "${wt(e)}" that should be implicitly loaded before "${wt(t)}" cannot be external.`}}(e,o)):this.fetchModule(this.toModuleResolvedId(this.getResolvedIdWithDefaults("object"==typeof u?u:{id:u},r)),void 0,t,!1)}async loadSourceDescription(e,t,n){let s;try{s=await this.pluginDriver.hookFirst("load",[e,{attributes:n.info.attributes,rawId:n.info.rawId}]),null===s?(this.graph.watchFiles[n.info.rawId]=!0,s=await this.options.fs.readFile(n.info.rawId,{encoding:"utf8"})):"object"==typeof s&&s.attributes&&zn('Returning attributes from the "load" hook is deprecated.',"plugin-development/#load",!0,this.options)}catch(n){let s=`Could not load ${e}`;throw t&&(s+=` (imported by ${wt(t)})`),s+=`: ${n.message}`,n.message=s,n}const i="string"==typeof s?{code:s}:null!=s&&"object"==typeof s&&"string"==typeof s.code?s:Gt(function(e){return{code:"BAD_LOADER",message:`Error loading "${wt(e)}": plugin load hook should return a string, a { code, map } object, or nothing/null.`}}(e));return i.code=Ah(i.code),i}toModuleResolvedId(e){const{id:t,attributes:n}=e;return{...e,id:Cc(t,n),rawId:t}}async resolveDynamicImport(e,t,n,s){const i=await this.pluginDriver.hookFirst("resolveDynamicImport",[t,n,{attributes:s,importerAttributes:e.info.attributes,importerRawId:e.info.rawId}]);if("string"!=typeof t)return"string"==typeof i?i:i?this.toModuleResolvedId(this.getResolvedIdWithDefaults(i,s)):null;if(null==i){const n=Cc(t,s),i=e.resolvedIds[n];if(i)return i;const r=this.handleInvalidResolvedId(await this.resolveId(t,e.id,be,!1,s,e.info.attributes,e.info.rawId),t,e.id,s);return e.resolvedIds[n]=this.toModuleResolvedId(r),e.resolvedIds[n]}return this.toModuleResolvedId(this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(i,n,t,s,e.info.attributes,e.info.rawId),s),t,n,s))}}function $h(e,t){return X(e)?t?ne(t,"..",e):ne(e):e}function Ih(e,{fileName:t,name:n},s){null!==t?e.chunkFileNames.add(t):null!==n&&(e.chunkNames.push({isUserDefined:s,name:n}),e.chunkNames.sort((e,t)=>e.name>t.name?1:-1))}function Ch(e,t,n){return!0===n||"ifRelativeSource"===n&&X(t)||!K(e)}async function kh(e){const[t,n]=await e;return Promise.all([...t,...n])}function Nh(e,t,n,s,i,r,o,a,l){const c=o.sanitizeFileName(e||"asset");return cd(ld("function"==typeof o.assetFileNames?o.assetFileNames(_h({get name(){return zn('Accessing the "name" property of emitted assets when generating the file name is deprecated. Use the "names" property instead.',Ut,!0,l),e},names:t,get originalFileName(){return zn('Accessing the "originalFileName" property of emitted assets when generating the file name is deprecated. Use the "originalFileNames" property instead.',Ut,!0,l),s},originalFileNames:i,source:n,type:"asset"})):o.assetFileNames,"output.assetFileNames",{ext:()=>Q(c).slice(1),extname:()=>Q(c),hash:e=>r.slice(0,Math.min(Math.max(0,e||8),21)),name:()=>c.slice(0,Math.max(0,c.length-Q(c).length))}),a)}function Oh(e,{bundle:t},n){t[od].has(e.toLowerCase())?n(Et,function(e){return{code:"FILE_NAME_CONFLICT",message:`The emitted file "${e}" overwrites a previously emitted file of the same name.`}}(e)):t[e]=ad}const Rh=new Set(["chunk","asset","prebuilt-chunk"]);function Dh(e,t,n){if(!("string"==typeof e||e instanceof Uint8Array)){const e=t.fileName||t.name||n;return Gt(Bn(`Could not set source for ${"string"==typeof e?`asset "${e}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return e}class Mh{constructor(e,t,n){this.graph=e,this.options=t,this.facadeChunkByModule=null,this.nextIdBase=1,this.output=null,this.outputFileEmitters=[],this.emitFile=e=>function(e){return Boolean(e&&Rh.has(e.type))}(e)?"prebuilt-chunk"===e.type?this.emitPrebuiltChunk(e):function(e){const t=e.fileName||e.name;return!t||"string"==typeof t&&!$t(t)}(e)?"chunk"===e.type?this.emitChunk(e):this.emitAsset(e):Gt(Bn(`The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "${e.fileName||e.name}".`)):Gt(Bn(`Emitted files must be of type "asset", "chunk" or "prebuilt-chunk", received "${e&&e.type}".`)),this.finaliseAssets=()=>{for(const[e,t]of this.filesByReferenceId)if("asset"===t.type&&"string"!=typeof t.fileName)return Gt(cn(t.name||e))},this.getFileName=e=>{const t=this.filesByReferenceId.get(e);return t?"chunk"===t.type?(n=t,s=this.facadeChunkByModule,n.fileName?n.fileName:s?s.get(n.module).getFileName():Gt({code:"CHUNK_NOT_GENERATED",message:`Plugin error - Unable to get file name for emitted chunk "${n.fileName||n.name}". You can only get file names once chunks have been generated after the "renderStart" hook.`})):"prebuilt-chunk"===t.type?t.fileName:function(e,t){return"string"!=typeof e.fileName?Gt({code:"ASSET_NOT_FINALISED",message:`Plugin error - Unable to get file name for asset "${e.name||t}". Ensure that the source is set and that generate is called first. If you reference assets via import.meta.ROLLUP_FILE_URL_<referenceId>, you need to either have set their source after "renderStart" or need to provide an explicit "fileName" when emitting them.`}):e.fileName}(t,e):Gt({code:"FILE_NOT_FOUND",message:`Plugin error - Unable to get file name for unknown file "${e}".`});var n,s},this.setAssetSource=(e,t)=>{const n=this.filesByReferenceId.get(e);if(!n)return Gt({code:"ASSET_NOT_FOUND",message:`Plugin error - Unable to set the source for unknown asset "${e}".`});if("asset"!==n.type)return Gt(Bn(`Asset sources can only be set for emitted assets but "${e}" is an emitted chunk.`));if(void 0!==n.source)return Gt({code:"ASSET_SOURCE_ALREADY_SET",message:`Unable to set the source for asset "${n.name||e}", source already set.`});const s=Dh(t,n,e);if(this.output)this.finalizeAdditionalAsset(n,s,this.output);else{n.source=s;for(const e of this.outputFileEmitters)e.finalizeAdditionalAsset(n,s,e.output)}},this.setChunkInformation=e=>{this.facadeChunkByModule=e},this.setOutputBundle=(e,t)=>{const n=Vd[t.hashCharacters],s=this.output={bundle:e,fileNamesBySourceHash:new Map,getHash:n,outputOptions:t};for(const e of this.filesByReferenceId.values())e.fileName&&Oh(e.fileName,s,this.options.onLog);const i=new Map;for(const e of this.filesByReferenceId.values())if("asset"===e.type&&void 0!==e.source)if(e.fileName)this.finalizeAdditionalAsset(e,e.source,s);else{ve(i,n(e.source),Se).push(e)}else"prebuilt-chunk"===e.type&&(this.output.bundle[e.fileName]=this.createPrebuiltChunk(e));for(const[e,t]of i)this.finalizeAssetsWithSameSource(t,e,s)},this.filesByReferenceId=n?new Map(n.filesByReferenceId):new Map,n?.addOutputFileEmitter(this)}addOutputFileEmitter(e){this.outputFileEmitters.push(e)}assignReferenceId(e,t){let n=t;do{n=Fd(n).slice(0,8).replaceAll("-","$")}while(this.filesByReferenceId.has(n)||this.outputFileEmitters.some(({filesByReferenceId:e})=>e.has(n)));e.referenceId=n,this.filesByReferenceId.set(n,e);for(const{filesByReferenceId:t}of this.outputFileEmitters)t.set(n,e);return n}createPrebuiltChunk(e){return{code:e.code,dynamicImports:[],exports:e.exports||[],facadeModuleAttributes:{},facadeModuleId:null,facadeModuleRawId:null,fileName:e.fileName,implicitlyLoadedBefore:[],importedBindings:{},imports:[],isDynamicEntry:!1,isEntry:!1,isImplicitEntry:!1,map:e.map||null,moduleIds:[],modules:{},name:e.fileName,preliminaryFileName:e.fileName,referencedFiles:[],sourcemapFileName:e.sourcemapFileName||null,type:"chunk"}}emitAsset(e){const t=void 0===e.source?void 0:Dh(e.source,e,null),n=e.originalFileName||null;"string"==typeof n&&(this.graph.watchFiles[n]=!0);const s={fileName:e.fileName,name:e.name,needsCodeReference:!!e.needsCodeReference,originalFileName:n,referenceId:"",source:t,type:"asset"},i=this.assignReferenceId(s,e.fileName||e.name||String(this.nextIdBase++));if(this.output)this.emitAssetWithReferenceId(s,this.output);else for(const e of this.outputFileEmitters)e.emitAssetWithReferenceId(s,e.output);return i}emitAssetWithReferenceId(e,t){const{fileName:n,source:s}=e;n&&Oh(n,t,this.options.onLog),void 0!==s&&this.finalizeAdditionalAsset(e,s,t)}emitChunk(e){if(this.graph.phase>Sc.LOAD_AND_PARSE)return Gt({code:"INVALID_ROLLUP_PHASE",message:"Cannot emit chunks after module loading has finished."});if("string"!=typeof e.id)return Gt(Bn(`Emitted chunks need to have a valid string id, received "${e.id}"`));const t={fileName:e.fileName,module:null,name:e.name||e.id,referenceId:"",type:"chunk"};return this.graph.moduleLoader.emitChunk(e).then(e=>t.module=e).catch(()=>{}),this.assignReferenceId(t,e.id)}emitPrebuiltChunk(e){if("string"!=typeof e.code)return Gt(Bn(`Emitted prebuilt chunks need to have a valid string code, received "${e.code}".`));if("string"!=typeof e.fileName||$t(e.fileName))return Gt(Bn(`The "fileName" property of emitted prebuilt chunks must be strings that are neither absolute nor relative paths, received "${e.fileName}".`));const t={code:e.code,exports:e.exports,fileName:e.fileName,map:e.map,referenceId:"",type:"prebuilt-chunk"},n=this.assignReferenceId(t,t.fileName);return this.output&&(this.output.bundle[t.fileName]=this.createPrebuiltChunk(t)),n}finalizeAdditionalAsset(e,t,{bundle:n,fileNamesBySourceHash:s,getHash:i,outputOptions:r}){let{fileName:o,name:a,needsCodeReference:l,originalFileName:c,referenceId:u}=e;if(!o){const e=i(t);o=s.get(e),o||(o=Nh(a,a?[a]:[],t,c,c?[c]:[],e,r,n,this.options),s.set(e,o))}const d={...e,fileName:o,source:t};this.filesByReferenceId.set(u,d);const h=n[o];if("asset"===h?.type)h.needsCodeReference&&=l,a&&!h.names.includes(a)&&h.names.push(a),c&&!h.originalFileNames.includes(c)&&h.originalFileNames.push(c);else{const{options:e}=this;n[o]=_h({fileName:o,get name(){return zn('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',Ut,!0,e),a},names:a?[a]:[],needsCodeReference:l,get originalFileName(){return zn('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',Ut,!0,e),c},originalFileNames:c?[c]:[],source:t,type:"asset"})}}finalizeAssetsWithSameSource(e,t,{bundle:n,fileNamesBySourceHash:s,outputOptions:i}){const{names:r,originalFileNames:o}=function(e){const t=new Set,n=new Set;for(const{name:s,originalFileName:i}of e)"string"==typeof s&&t.add(s),i&&n.add(i);return{names:[...t].sort(Lh),originalFileNames:[...n].sort()}}(e);let a=e[0],l=!0;for(const t of e)l&&=t.needsCodeReference,Bh(t,a)<0&&(a=t);const c=Nh(a.name,r,a.source,a.originalFileName,o,t,i,n,this.options);s.set(t,c);for(const t of e){const e={...t,fileName:c};this.filesByReferenceId.set(t.referenceId,e)}const{options:u}=this;n[c]=_h({fileName:c,get name(){return zn('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',Ut,!0,u),a.name},names:r,needsCodeReference:l,get originalFileName(){return zn('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',Ut,!0,u),a.originalFileName},originalFileNames:o,source:a.source,type:"asset"})}}function _h(e){for(const t of["name","originalFileName"]){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(e,t,{...n,enumerable:!1})}return e}const Lh=(e,t)=>e.length-t.length||(e<t?-1:e>t?1:0),Th=(e,t)=>e===t?0:null==e?1:null==t||e<t?-1:1,Bh=(e,t)=>Lh(e.name||"asset",t.name||"asset")||Th(e.originalFileName,t.originalFileName)||Th(e.name,t.name)||((e,t)=>"string"==typeof e?"string"==typeof t?0:-1:"string"==typeof t?1:0)(e.source,t.source);function zh(e){return Array.isArray(e)?e.filter(Boolean):e?[e]:[]}function Fh(e){if(e instanceof RegExp)return t=>{const n=J(t),s=e.test(n);return e.lastIndex=0,s};const t=process.cwd(),n=function(e,t){return e.startsWith("**")||K(e)?J(e):J(ne(t,e))}(e,t),s=xa(n,{dot:!0});return e=>{const t=J(e);return s(t)}}function Vh(e){return e instanceof RegExp?t=>{const n=e.test(t);return e.lastIndex=0,n}:t=>t.includes(e)}function jh(e,t){if(e||t)return n=>!e?.some(e=>e(n))&&(!!t?.some(e=>e(n))||!(t&&t.length>0))}function Uh(e){return"string"==typeof e||e instanceof RegExp?{include:[e]}:Array.isArray(e)?{include:e}:{exclude:e.exclude?zh(e.exclude):void 0,include:e.include?zh(e.include):void 0}}function Gh(e){if(!e)return;const{exclude:t,include:n}=Uh(e),s=t?.map(Fh),i=n?.map(Fh);return jh(s,i)}function Hh(e,t){if(!e&&!t)return;const n=Gh(e),s=function(e){if(!e)return;const{exclude:t,include:n}=Uh(e),s=t?.map(Vh),i=n?.map(Vh);return jh(s,i)}(t);return(e,t)=>{let i=!0;return n&&(i&&=n(e)),!!i&&(s&&(i&&=s(t)),i)}}const Wh=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,onLog:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1});class qh{constructor(e,t,n,s,i){this.graph=e,this.options=t,this.pluginCache=s,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,this.compiledPluginFilters={idOnlyFilter:new WeakMap,transformFilter:new WeakMap},this.fileEmitter=new Mh(e,t,i&&i.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.finaliseAssets.bind(this.fileEmitter),this.setChunkInformation=this.fileEmitter.setChunkInformation.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=[...i?i.plugins:[],...n];const r=new Set;if(this.pluginContexts=new Map(this.plugins.map(n=>[n,Eh(n,s,e,t,this.fileEmitter,r)])),i)for(const e of n)for(const n of Wh)n in e&&t.onLog(Et,xn(e.name,n))}createOutputPluginDriver(e){return new qh(this.graph,this.options,e,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(e,t,n,s){return this.hookFirstAndGetPlugin(e,t,n,s).then(e=>e&&e[0])}async hookFirstAndGetPlugin(e,t,n,s){for(const i of this.getSortedPlugins(e)){if(s?.has(i))continue;const r=await this.runHook(e,t,i,n);if(null!=r)return[r,i]}return null}hookFirstSync(e,t,n){for(const s of this.getSortedPlugins(e)){const i=this.runHookSync(e,t,s,n);if(null!=i)return i}return null}async hookParallel(e,t,n){const s=[];for(const i of this.getSortedPlugins(e))i[e].sequential?(await Promise.all(s),s.length=0,await this.runHook(e,t,i,n)):s.push(this.runHook(e,t,i,n));await Promise.all(s)}hookReduceArg0(e,[t,...n],s,i){let r=Promise.resolve(t);for(const t of this.getSortedPlugins(e))r=r.then(r=>this.runHook(e,[r,...n],t,i).then(e=>s.call(this.pluginContexts.get(t),r,e,t)));return r}hookReduceArg0Sync(e,[t,...n],s,i){for(const r of this.getSortedPlugins(e)){const o=[t,...n],a=this.runHookSync(e,o,r,i);t=s.call(this.pluginContexts.get(r),t,a,r)}return t}async hookReduceValue(e,t,n,s){const i=[],r=[];for(const t of this.getSortedPlugins(e,Jh))t[e].sequential?(i.push(...await Promise.all(r)),r.length=0,i.push(await this.runHook(e,n,t))):r.push(this.runHook(e,n,t));return i.push(...await Promise.all(r)),i.reduce(s,await t)}hookReduceValueSync(e,t,n,s,i){let r=t;for(const t of this.getSortedPlugins(e)){const o=this.runHookSync(e,n,t,i);r=s.call(this.pluginContexts.get(t),r,o,t)}return r}hookSeq(e,t,n){let s=Promise.resolve();for(const i of this.getSortedPlugins(e))s=s.then(()=>this.runHook(e,t,i,n));return s.then(Yh)}getSortedPlugins(e,t){return ve(this.sortedPlugins,e,()=>Kh(e,this.plugins,t))}runHook(e,t,n,s){const i=n[e],r="object"==typeof i?i.handler:i;if("object"==typeof i&&"filter"in i&&i.filter)if("transform"===e){const e=i.filter,n=t,s=ve(this.compiledPluginFilters.transformFilter,e,()=>Hh(e.id,e.code));if(s&&!s(n[1],n[0]))return Promise.resolve()}else if("resolveId"===e||"load"===e){const e=i.filter,n=t,s=ve(this.compiledPluginFilters.idOnlyFilter,e,()=>function(e){const t=Gh(e);return t?e=>!!t(e):void 0}(e.id));if(s&&!s(n[0]))return Promise.resolve()}let o=this.pluginContexts.get(n);s&&(o=s(o,n));let a=null;return Promise.resolve().then(()=>{if("function"!=typeof r)return r;const s=r.apply(o,t);return s?.then?(a=[n.name,e,t],this.unfulfilledActions.add(a),Promise.resolve(s).then(e=>(this.unfulfilledActions.delete(a),e))):s}).catch(t=>(null!==a&&this.unfulfilledActions.delete(a),Gt(Mn(t,n.name,{hook:e}))))}runHookSync(e,t,n,s){const i=n[e],r="object"==typeof i?i.handler:i;let o=this.pluginContexts.get(n);s&&(o=s(o,n));try{return r.apply(o,t)}catch(t){return Gt(Mn(t,n.name,{hook:e}))}}}function Kh(e,t,n=Xh){const s=[],i=[],r=[];for(const o of t){const t=o[e];if(t){if("object"==typeof t){if(n(t.handler,e,o),"pre"===t.order){s.push(o);continue}if("post"===t.order){r.push(o);continue}}else n(t,e,o);i.push(o)}}return[...s,...i,...r]}function Xh(e,t,n){"function"!=typeof e&&Gt(function(e,t){return{code:Qt,hook:e,message:`Error running plugin hook "${e}" for plugin "${t}", expected a function hook or an object with a "handler" function.`,plugin:t}}(t,n.name))}function Jh(e,t,n){if("string"!=typeof e&&"function"!=typeof e)return Gt(function(e,t){return{code:Qt,hook:e,message:`Error running plugin hook "${e}" for plugin "${t}", expected a string, a function hook or an object with a "handler" string or function.`,plugin:t}}(t,n.name))}function Yh(){}class Zh{constructor(e,t){if(this.options=e,this.cachedModules=new Map,this.deoptimizationTracker=new je,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.newlyIncludedVariableInits=new Set,this.phase=Sc.LOAD_AND_PARSE,this.scope=new eh,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=e=>{const t=kc(e),n=this.modulesById.get(t);return n?n.info:null},!1!==e.cache){if(e.cache?.modules)for(const t of e.cache.modules)this.cachedModules.set(t.id,t);this.pluginCache=e.cache?.plugins||Object.create(null);for(const e in this.pluginCache){const t=this.pluginCache[e];for(const e of Object.values(t))e[0]++}}t&&(this.watchMode=!0,t({closeWatcher:()=>this.pluginDriver.hookParallel("closeWatcher",[]),watchChange:(...e)=>this.pluginDriver.hookParallel("watchChange",e)})),this.pluginDriver=new qh(this,e,e.plugins,this.pluginCache),this.moduleLoader=new wh(this,this.modulesById,this.options,this.pluginDriver),this.pureFunctions=(({treeshake:e})=>{const t=Object.create(null);for(const n of e?e.manualPureFunctions:[]){let e=t;for(const t of n.split("."))e=e[t]||=Object.create(null);e[bs]=!0}return t})(e)}async build(){Mu("generate module graph",2),await this.generateModuleGraph(),_u("generate module graph",2),Mu("sort and bind modules",2),this.phase=Sc.ANALYSE,this.sortAndBindModules(),_u("sort and bind modules",2),Mu("mark included statements",2),this.includeStatements(),_u("mark included statements",2),this.phase=Sc.GENERATE}getCache(){for(const e in this.pluginCache){const t=this.pluginCache[e];let n=!0;for(const[e,s]of Object.entries(t))s[0]>=this.options.experimentalCacheExpiry?delete t[e]:n=!1;n&&delete this.pluginCache[e]}return{modules:this.modules.map(e=>e.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){var e;if(({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((e=this.options.input,Array.isArray(e)?e.map(e=>({fileName:null,id:e,implicitlyLoadedAfter:[],importer:void 0,name:null})):Object.entries(e).map(([e,t])=>({fileName:null,id:t,implicitlyLoadedAfter:[],importer:void 0,name:e}))),!0)),0===this.entryModules.length)throw new Error("You must supply options.input to rollup");for(const e of this.modulesById.values())e.cacheInfoGetters(),e instanceof Vu?this.modules.push(e):this.externalModules.push(e)}includeStatements(){const e=[...this.entryModules,...this.implicitEntryModules];for(const t of e)Os(t);if(this.options.treeshake){let t=1;this.newlyIncludedVariableInits.clear();do{Mu(`treeshaking pass ${t}`,3),this.needsTreeshakingPass=!1;for(const e of this.modules)if(e.isExecuted){e.hasTreeShakingPassStarted=!0,"no-treeshake"===e.info.moduleSideEffects?e.includeAllInBundle():e.include();for(const e of this.newlyIncludedVariableInits)this.newlyIncludedVariableInits.delete(e),e.include(es(),!1)}if(1===t)for(const t of e)!1!==t.preserveSignature&&(t.includeAllExports(),this.needsTreeshakingPass=!0);_u("treeshaking pass "+t++,3)}while(this.needsTreeshakingPass)}else for(const e of this.modules)e.includeAllInBundle();for(const e of this.externalModules)e.warnUnusedImports();for(const e of this.implicitEntryModules)for(const t of e.implicitlyLoadedAfter)t.info.isEntry||t.isIncluded()||Gt(In(t))}sortAndBindModules(){const{orderedModules:e,cyclePaths:t}=Dd(this.entryModules);for(const e of t)this.options.onLog(Et,pn(e));this.modules=e;for(const e of this.modules)e.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const e of this.modules)for(const t of e.importDescriptions.values())if("*"!==t.name&&"source"!==t.phase){const[n,s]=t.module.getVariableForExportName(t.name,{importChain:[e.id]});n||e.log(Et,$n(t.name,e.id,t.module.id,!!s?.missingButExportExists),t.start)}}}function Qh(e,t){return t()}const ep=e;function tp(e,t,n,s){e=Kh("onLog",e);const i=At[s],r=(s,o,a=xe)=>{Xt(o);if(!(At[s]<i)){for(const t of e){if(a.has(t))continue;const{onLog:e}=t,l=e=>At[e]<i?Rs:n=>r(e,ih(n),new Set(a).add(t));if(!1===("handler"in e?e.handler:e).call({debug:l(vt),error:e=>Gt(ih(e)),info:l(xt),meta:{rollupVersion:ep,watchMode:n},warn:l(Et)},s,o))return}t(s,o)}};return r}class np{constructor(e){this.maxParallel=e,this.queue=[],this.workerCount=0}run(e){return new Promise((t,n)=>{this.queue.push({reject:n,resolve:t,task:e}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;let e;for(this.workerCount++;e=this.queue.shift();){const{reject:t,resolve:n,task:s}=e;try{n(await s())}catch(e){t(e)}}this.workerCount--}}function sp(e,t){const n=new np(t),s=t=>(...s)=>n.run(()=>Reflect.apply(e[t],e,s));return{appendFile:s("appendFile"),copyFile:s("copyFile"),lstat:s("lstat"),mkdir:s("mkdir"),mkdtemp:s("mkdtemp"),readdir:s("readdir"),readFile:s("readFile"),realpath:s("realpath"),rename:s("rename"),rmdir:s("rmdir"),stat:s("stat"),unlink:s("unlink"),writeFile:s("writeFile")}}const ip=e=>()=>Gt(function(e){return{code:"NO_FS_IN_BROWSER",message:`Cannot access the file system (via "${e}") when using the browser build of Rollup. Make sure you supply a plugin with custom resolveId and load hooks to Rollup.`,url:kt("plugin-development/#a-simple-example")}}(e)),rp=ip("fs.appendFile"),op=ip("fs.copyFile"),ap=ip("fs.mkdir"),lp=ip("fs.mkdtemp"),cp=ip("fs.readdir"),up=ip("fs.readFile"),dp=ip("fs.realpath"),hp=ip("fs.rename"),pp=ip("fs.rmdir"),fp=ip("fs.stat"),mp=ip("fs.lstat"),gp=ip("fs.unlink"),yp=ip("fs.writeFile");var bp=Object.freeze({__proto__:null,appendFile:rp,copyFile:op,lstat:mp,mkdir:ap,mkdtemp:lp,readFile:up,readdir:cp,realpath:dp,rename:hp,rmdir:pp,stat:fp,unlink:gp,writeFile:yp});const Ep=e=>!0===e.cache?void 0:e.cache?.cache||e.cache,xp=e=>{if(!0===e)return()=>!0;if("function"==typeof e)return(t,...n)=>"\0"!==t[0]&&e(t,...n)||!1;if(e){const t=new Set,n=[];for(const s of zh(e))s instanceof RegExp?n.push(s):t.add(s);return(e,...s)=>t.has(e)||n.some(t=>t.global||t.sticky?-1!==e.search(t):t.test(e))}return()=>!1},vp=e=>{const t=e.input;return null==t?[]:"string"==typeof t?[t]:t},Ap=e=>{const t=e.jsx;if(!t)return!1;const n=uh(t,lh,"jsx",Ot,"false, "),{factory:s,importSource:i,mode:r}=n;switch(r){case"automatic":return{factory:s||"React.createElement",importSource:i||"react",jsxImportSource:n.jsxImportSource||"react/jsx-runtime",mode:"automatic"};case"preserve":return!i||s||n.fragment||Gt(Pn("jsx",Ot,"when preserving JSX and specifying an importSource, you also need to specify a factory or fragment")),{factory:s||null,fragment:n.fragment||null,importSource:i||null,mode:"preserve"};default:return r&&"classic"!==r&&Gt(Pn("jsx.mode",Ot,'mode must be "automatic", "classic" or "preserve"',r)),{factory:s||"React.createElement",fragment:n.fragment||"React.Fragment",importSource:i||null,mode:"classic"}}},Sp=e=>{const t=e.maxParallelFileOps;return"number"==typeof t?t<=0?1/0:t:1e3},Pp=(e,t)=>{const n=e.moduleContext;if("function"==typeof n)return e=>n(e)??t;if(n){const e=Object.create(null);for(const[t,s]of Object.entries(n))e[ne(t)]=s;return n=>e[n]??t}return()=>t},wp=e=>{if(!1===e.treeshake)return!1;const t=uh(e.treeshake,ah,"treeshake","configuration-options/#treeshake","false, true, ");return{annotations:!1!==t.annotations,correctVarValueBeforeDeclaration:!0===t.correctVarValueBeforeDeclaration,manualPureFunctions:t.manualPureFunctions??Ee,moduleSideEffects:$p(t.moduleSideEffects),propertyReadSideEffects:"always"===t.propertyReadSideEffects?"always":!1!==t.propertyReadSideEffects,tryCatchDeoptimization:!1!==t.tryCatchDeoptimization,unknownGlobalSideEffects:!1!==t.unknownGlobalSideEffects}},$p=e=>{if("boolean"==typeof e)return()=>e;if("no-external"===e)return(e,t)=>!t;if("function"==typeof e)return(t,n)=>"\0"===t[0]||!1!==e(t,n);if(Array.isArray(e)){const t=new Set(e);return e=>t.has(e)}return e&&Gt(Pn("treeshake.moduleSideEffects","configuration-options/#treeshake-modulesideeffects",'please use one of false, "no-external", a function or an array')),()=>!0},Ip=/[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g,Cp=/^[a-z]:/i;function kp(e){const t=Cp.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(Ip,"_")}const Np=(e,t,n)=>{const{file:s}=e;if("string"==typeof s){if(t)return Gt(Pn("output.file",Dt,'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(n.input))return Gt(Pn("output.file",Dt,'you must set "output.dir" instead of "output.file" when providing named inputs'))}return s},Op=e=>{const t=e.format;switch(t){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return t;default:return Gt(Pn("output.format",_t,'Valid values are "amd", "cjs", "system", "es", "iife" or "umd"',t))}},Rp=(e,t)=>{const n=e.inlineDynamicImports||!1,{input:s}=t;return n&&(Array.isArray(s)?s:Object.keys(s)).length>1?Gt(Pn("output.inlineDynamicImports",Tt,'multiple inputs are not supported when "output.inlineDynamicImports" is true')):n},Dp=(e,t,n)=>{const s=e.preserveModules||!1;if(s){if(t)return Gt(Pn("output.inlineDynamicImports",Tt,'this option is not supported for "output.preserveModules"'));if(!1===n.preserveEntrySignatures)return Gt(Pn("preserveEntrySignatures","configuration-options/#preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return s},Mp=e=>{const{preserveModulesRoot:t}=e;if(null!=t)return ne(t)},_p=e=>{const t={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...e.amd};return(t.autoId||t.basePath)&&t.id?Gt(Pn("output.amd.id",Rt,'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"')):t.basePath&&!t.autoId?Gt(Pn("output.amd.basePath","configuration-options/#output-amd-basepath",'this option only works with "output.amd.autoId"')):t.autoId?{autoId:!0,basePath:t.basePath,define:t.define,forceJsExtensionForImports:t.forceJsExtensionForImports}:{autoId:!1,define:t.define,forceJsExtensionForImports:t.forceJsExtensionForImports,id:t.id}},Lp=(e,t)=>{const n=e[t];return"function"==typeof n?n:()=>n||""},Tp=(e,t)=>{const{dir:n}=e;return"string"==typeof n&&"string"==typeof t?Gt(Pn("output.dir",Dt,'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks')):n},Bp=(e,t)=>{const n=e.entryFileNames;return null==n&&t.add("entryFileNames"),n??"[name].js"};function zp(e,t){const n=e.exports;if(null==n)t.add("exports");else if(!["default","named","none","auto"].includes(n))return Gt({code:Yt,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${n}".`,url:kt(Mt)});return n||"auto"}const Fp=e=>{const t=uh(e.generatedCode,ch,"output.generatedCode","configuration-options/#output-generatedcode","");return{arrowFunctions:!0===t.arrowFunctions,constBindings:!0===t.constBindings,objectShorthand:!0===t.objectShorthand,reservedNamesAsProps:!1!==t.reservedNamesAsProps,symbols:!0===t.symbols}},Vp=(e,t)=>(null!=e.importAttributesKey&&zn('The "output.importAttributesKey" option is deprecated and will be removed in a future version of Rollup. Only use it if you need to support environments that do not understand the "with" keyword.',"configuration-options/#output-importattributeskey",!1,t),e.importAttributesKey??"with"),jp=(e,t)=>{if(t)return"";const n=e.indent;return!1===n?"":n??!0},Up=new Set(["compat","auto","esModule","default","defaultOnly"]),Gp=e=>{const t=e.interop;if("function"==typeof t){const e=Object.create(null);let n=null;return s=>null===s?n||Hp(n=t(s)):s in e?e[s]:Hp(e[s]=t(s))}return void 0===t?()=>"default":()=>Hp(t)},Hp=e=>Up.has(e)?e:Gt(Pn("output.interop",Bt,`use one of ${Array.from(Up,e=>JSON.stringify(e)).join(", ")}`,e)),Wp=(e,t,n)=>{const s=e.manualChunks;if(s){if(t)return Gt(Pn("output.manualChunks",zt,'this option is not supported for "output.inlineDynamicImports"'));if(n)return Gt(Pn("output.manualChunks",zt,'this option is not supported for "output.preserveModules"'))}return s||{}},qp=(e,t,n)=>e.minifyInternalExports??(n||"es"===t||"system"===t),Kp=(e,t)=>{const n=e.sourcemapFileNames;return null==n&&t.add("sourcemapFileNames"),n},Xp=e=>{const{sourcemapBaseUrl:t}=e;if(t)return function(e){try{new URL(e)}catch{return!1}return!0}(t)?(n=t).endsWith("/")?n:n+"/":Gt(Pn("output.sourcemapBaseUrl","configuration-options/#output-sourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(t)}`));var n},Jp=e;function Yp(e){return async function(e,t){const{options:n,unsetOptions:s}=await async function(e,t){if(!e)throw new Error("You must supply an options object to rollup");const n=await async function(e,t){const n=Kh("options",await dh(e.plugins)),s=e.logLevel||xt,i=tp(n,th(e,s),t,s);for(const r of n){const{name:n,options:o}=r,a="handler"in o?o.handler:o,l=await a.call({debug:hh(vt,"PLUGIN_LOG",i,n,s),error:e=>Gt(Mn(ih(e),n,{hook:"onLog"})),info:hh(xt,"PLUGIN_LOG",i,n,s),meta:{rollupVersion:Jp,watchMode:t},warn:hh(Et,"PLUGIN_WARNING",i,n,s)},e);l&&(e=l)}return e}(e,t),{options:s,unsetOptions:i}=await async function(e,t){const n=new Set,s=e.context??"undefined",i=await dh(e.plugins),r=e.logLevel||xt,o=tp(i,th(e,r),t,r),a=e.strictDeprecations||!1,l=Sp(e),c={cache:Ep(e),context:s,experimentalCacheExpiry:e.experimentalCacheExpiry??10,experimentalLogSideEffects:e.experimentalLogSideEffects||!1,external:xp(e.external),fs:sp(e.fs??bp,l),input:vp(e),jsx:Ap(e),logLevel:r,makeAbsoluteExternalsRelative:e.makeAbsoluteExternalsRelative??"ifRelativeSource",maxParallelFileOps:l,moduleContext:Pp(e,s),onLog:o,perf:e.perf||!1,plugins:i,preserveEntrySignatures:e.preserveEntrySignatures??"exports-only",preserveSymlinks:e.preserveSymlinks||!1,shimMissingExports:e.shimMissingExports||!1,strictDeprecations:a,treeshake:wp(e)};return oh(e,[...Object.keys(c),"onwarn","watch"],"input options",o,/^(output)$/),{options:c,unsetOptions:n}}(n,t);return Zp(s.plugins,ph),{options:s,unsetOptions:i}}(e,null!==t);(function(e){e.perf?(ku=new Map,Mu=Ou,_u=Ru,e.plugins=e.plugins.map(Tu)):(Mu=Rs,_u=Rs)})(n),await async function(){await Jc()}();const i=new Zh(n,t),r=!1!==e.cache;e.cache&&(n.cache=void 0,e.cache=void 0);Mu("BUILD",1),await Qh(i.pluginDriver,async()=>{try{Mu("initialize",2),await i.pluginDriver.hookParallel("buildStart",[n]),_u("initialize",2),await i.build()}catch(e){const t=Object.keys(i.watchFiles);t.length>0&&(e.watchFiles=t);try{await i.pluginDriver.hookParallel("buildEnd",[e])}catch(t){const n=Ht(Wt(e,t,"buildEnd"));throw await i.pluginDriver.hookParallel("closeBundle",[n]).catch(()=>{}),n}throw await i.pluginDriver.hookParallel("closeBundle",[e]).catch(()=>{}),e}try{await i.pluginDriver.hookParallel("buildEnd",[])}catch(e){throw await i.pluginDriver.hookParallel("closeBundle",[e]).catch(()=>{}),e}}),_u("BUILD",1);const o={get cache(){return r?i.getCache():void 0},async close(){o.closed||(o.closed=!0,await i.pluginDriver.hookParallel("closeBundle",[]))},closed:!1,async[Symbol.asyncDispose](){await this.close()},generate:async e=>o.closed?Gt({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Qp(!1,n,s,e,i),get watchFiles(){return Object.keys(i.watchFiles)},write:async e=>o.closed?Gt({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Qp(!0,n,s,e,i)};n.perf&&(o.getTimings=Du);return o}(e,null)}function Zp(e,t){for(const[n,s]of e.entries())s.name||(s.name=`${t}${n+1}`)}async function Qp(e,t,n,s,i){const{options:r,outputPluginDriver:o,unsetOptions:a}=await async function(e,t,n,s){if(!e)throw new Error("You must supply an options object");const i=await dh(e.plugins);Zp(i,fh);const r=t.createOutputPluginDriver(i);return{...await ef(n,s,e,r),outputPluginDriver:r}}(s,i.pluginDriver,t,n);return Qh(0,async()=>{const n=new Yd(r,a,t,o,i),s=await n.generate(e);if(e){if(Mu("WRITE",1),!r.dir&&!r.file)return Gt({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.',url:kt(Dt)});await Promise.all(Object.values(s).map(e=>async function(e,t,{fs:{mkdir:n,writeFile:s}}){const i=ne(t.dir||Z(t.file),e.fileName);return await n(Z(i),{recursive:!0}),s(i,"asset"===e.type?e.source:e.code)}(e,r,t))),await o.hookParallel("writeBundle",[r,s]),_u("WRITE",1)}return l=s,{output:Object.values(l).filter(e=>Object.keys(e).length>0).sort((e,t)=>nf(e)-nf(t))};var l})}function ef(e,t,n,s){return async function(e,t,n){const s=new Set(n),i=e.compact||!1,r=Op(e),o=Rp(e,t),a=Dp(e,o,t),l=Np(e,a,t),c=Fp(e),u={amd:_p(e),assetFileNames:e.assetFileNames??"assets/[name]-[hash][extname]",banner:Lp(e,"banner"),chunkFileNames:e.chunkFileNames??"[name]-[hash].js",compact:i,dir:Tp(e,l),dynamicImportInCjs:e.dynamicImportInCjs??!0,entryFileNames:Bp(e,s),esModule:e.esModule??"if-default-prop",experimentalMinChunkSize:e.experimentalMinChunkSize??1,exports:zp(e,s),extend:e.extend||!1,externalImportAttributes:e.externalImportAttributes??!0,externalLiveBindings:e.externalLiveBindings??!0,file:l,footer:Lp(e,"footer"),format:r,freeze:e.freeze??!0,generatedCode:c,globals:e.globals||{},hashCharacters:e.hashCharacters??"base64",hoistTransitiveImports:e.hoistTransitiveImports??!0,importAttributesKey:Vp(e,t),indent:jp(e,i),inlineDynamicImports:o,interop:Gp(e),intro:Lp(e,"intro"),manualChunks:Wp(e,o,a),minifyInternalExports:qp(e,r,i),name:e.name,noConflict:e.noConflict||!1,onlyExplicitManualChunks:e.onlyExplicitManualChunks??"function"==typeof e.manualChunks,outro:Lp(e,"outro"),paths:e.paths||{},plugins:await dh(e.plugins),preserveModules:a,preserveModulesRoot:Mp(e),reexportProtoFromExternal:e.reexportProtoFromExternal??!0,sanitizeFileName:"function"==typeof e.sanitizeFileName?e.sanitizeFileName:!1===e.sanitizeFileName?e=>e:kp,sourcemap:e.sourcemap||!1,sourcemapBaseUrl:Xp(e),sourcemapDebugIds:e.sourcemapDebugIds||!1,sourcemapExcludeSources:e.sourcemapExcludeSources||!1,sourcemapFile:e.sourcemapFile,sourcemapFileNames:Kp(e,s),sourcemapIgnoreList:"function"==typeof e.sourcemapIgnoreList?e.sourcemapIgnoreList:!1===e.sourcemapIgnoreList?()=>!1:e=>e.includes("node_modules"),sourcemapPathTransform:e.sourcemapPathTransform,strict:e.strict??!0,systemNullSetters:e.systemNullSetters??!0,validate:e.validate||!1,virtualDirname:e.virtualDirname||"_virtual"};return oh(e,Object.keys(u),"output options",t.onLog),{options:u,unsetOptions:s}}(s.hookReduceArg0Sync("outputOptions",[n],(e,t)=>t||e,e=>{const t=()=>e.error({code:"CANNOT_EMIT_FROM_OPTIONS_HOOK",message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...e,emitFile:t,setAssetSource:t}}),e,t)}var tf;function nf(e){return"asset"===e.type?tf.ASSET:e.isEntry?tf.ENTRY_CHUNK:tf.SECONDARY_CHUNK}function sf(e){return e}Symbol.asyncDispose??=Symbol("Symbol.asyncDispose"),function(e){e[e.ENTRY_CHUNK=0]="ENTRY_CHUNK",e[e.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",e[e.ASSET=2]="ASSET"}(tf||(tf={}));const rf=e;export{rf as VERSION,sf as defineConfig,Yp as rollup};