UNPKG

vue-simple-range-slider

Version:

Change Your numeric value or numeric range value with dragging handles

10 lines (8 loc) 395 kB
/* @license Rollup.js v2.77.0 Fri, 15 Jul 2022 10:23:18 GMT - commit 87da8ef24f61d6601dc550026fc59f8066bbb95d https://github.com/rollup/rollup Released under the MIT License. */ var e,t;e=this,t=function(e){for(var t="2.77.0",i={},s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n=0;n<s.length;n++)i[s.charCodeAt(n)]=n;function r(e,t,i){4===i?e.push([t[0],t[1],t[2],t[3]]):5===i?e.push([t[0],t[1],t[2],t[3],t[4]]):1===i&&e.push([t[0]])}function a(e){var t="";e=e<0?-e<<1|1:e<<1;do{var i=31&e;(e>>>=5)>0&&(i|=32),t+=s[i]}while(e>0);return t}class o{constructor(e){this.bits=e instanceof o?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}}class l{constructor(e,t,i){this.start=e,this.end=t,this.original=i,this.intro="",this.outro="",this.content=i,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new l(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,i){return this.content=e,i||(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}split(e){const t=e-this.start,i=this.original.slice(0,t),s=this.original.slice(t);this.original=i;const n=new l(e,this.end,s);return n.outro=this.outro,this.outro="",this.end=e,this.edited?(n.edit("",!1),this.content=""):this.content=i,n.next=this.next,n.next&&(n.next.previous=n),n.previous=this,this.next=n,n}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.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.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)}}let h=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?h=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof Buffer&&(h=e=>Buffer.from(e,"utf-8").toString("base64"));class c{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=function(e){for(var t=0,i=0,s=0,n=0,r="",o=0;o<e.length;o++){var l=e[o];if(o>0&&(r+=";"),0!==l.length){for(var h=0,c=[],u=0,d=l;u<d.length;u++){var p=d[u],f=a(p[0]-h);h=p[0],p.length>1&&(f+=a(p[1]-t)+a(p[2]-i)+a(p[3]-s),t=p[1],i=p[2],s=p[3]),5===p.length&&(f+=a(p[4]-n),n=p[4]),c.push(f)}r+=c.join(",")}}return r}(e.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+h(this.toString())}}function u(e){const t=e.split("\n"),i=t.filter((e=>/^\t+/.test(e))),s=t.filter((e=>/^ {2,}/.test(e)));if(0===i.length&&0===s.length)return null;if(i.length>=s.length)return"\t";const n=s.reduce(((e,t)=>{const i=/^ +/.exec(t)[0].length;return Math.min(i,e)}),1/0);return new Array(n+1).join(" ")}function d(e,t){const i=e.split(/[/\\]/),s=t.split(/[/\\]/);for(i.pop();i[0]===s[0];)i.shift(),s.shift();if(i.length){let e=i.length;for(;e--;)i[e]=".."}return i.concat(s).join("/")}const p=Object.prototype.toString;function f(e){return"[object Object]"===p.call(e)}function m(e){const t=e.split("\n"),i=[];for(let e=0,s=0;e<t.length;e++)i.push(s),s+=t[e].length+1;return function(e){let t=0,s=i.length;for(;t<s;){const n=t+s>>1;e<i[n]?s=n:t=n+1}const n=t-1;return{line:n,column:e-i[n]}}}class g{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,t,i,s){if(t.length){const t=[this.generatedCodeColumn,e,i.line,i.column];s>=0&&t.push(s),this.rawSegments.push(t)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null}addUneditedChunk(e,t,i,s,n){let r=t.start,a=!0;for(;r<t.end;)(this.hires||a||n.has(r))&&this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column]),"\n"===i[r]?(s.line+=1,s.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=!0):(s.column+=1,this.generatedCodeColumn+=1,a=!1),r+=1;this.pending=null}advance(e){if(!e)return;const t=e.split("\n");if(t.length>1){for(let e=0;e<t.length-1;e++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}}const y="\n",x={insertLeft:!1,insertRight:!1,storeName:!1};class E{constructor(e,t={}){const i=new l(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:i},lastChunk:{writable:!0,value:i},lastSearchedChunk:{writable:!0,value:i},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new o},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:u(e)}}),this.byStart[0]=i,this.byEnd[e.length]=i}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.appendLeft(t):this.intro+=t,this}appendRight(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.appendRight(t):this.outro+=t,this}clone(){const e=new E(this.original,{filename:this.filename});let t=this.firstChunk,i=e.firstChunk=e.lastSearchedChunk=t.clone();for(;t;){e.byStart[i.start]=i,e.byEnd[i.end]=i;const s=t.next,n=s&&s.clone();n&&(i.next=n,n.previous=i,i=n),t=s}return e.lastChunk=i,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new o(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const t=Object.keys(this.storedNames),i=new g(e.hires),s=m(this.original);return this.intro&&i.advance(this.intro),this.firstChunk.eachNext((e=>{const n=s(e.start);e.intro.length&&i.advance(e.intro),e.edited?i.addEdit(0,e.content,n,e.storeName?t.indexOf(e.original):-1):i.addUneditedChunk(0,e,this.original,n,this.sourcemapLocations),e.outro.length&&i.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?d(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:t,mappings:i.raw}}generateMap(e){return new c(this.generateDecodedMap(e))}getIndentString(){return null===this.indentStr?"\t":this.indentStr}indent(e,t){const i=/^[^\r\n]/gm;if(f(e)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;const s={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(let t=e[0];t<e[1];t+=1)s[t]=!0}));let n=!1!==t.indentStart;const r=t=>n?`${e}${t}`:(n=!0,t);this.intro=this.intro.replace(i,r);let a=0,o=this.firstChunk;for(;o;){const t=o.end;if(o.edited)s[a]||(o.content=o.content.replace(i,r),o.content.length&&(n="\n"===o.content[o.content.length-1]));else for(a=o.start;a<t;){if(!s[a]){const t=this.original[a];"\n"===t?n=!0:"\r"!==t&&n&&(n=!1,a===o.start||(this._splitChunk(o,a),o=o.next),o.prependRight(e))}a+=1}a=o.end,o=o.next}return this.outro=this.outro.replace(i,r),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,t){return x.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),x.insertLeft=!0),this.appendLeft(e,t)}insertRight(e,t){return x.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),x.insertRight=!0),this.prependRight(e,t)}move(e,t,i){if(i>=e&&i<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(i);const s=this.byStart[e],n=this.byEnd[t],r=s.previous,a=n.next,o=this.byStart[i];if(!o&&n===this.lastChunk)return this;const l=o?o.previous:this.lastChunk;return r&&(r.next=a),a&&(a.previous=r),l&&(l.next=s),o&&(o.previous=n),s.previous||(this.firstChunk=n.next),n.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=l,n.next=o||null,l||(this.firstChunk=s),o||(this.lastChunk=n),this}overwrite(e,t,i,s){if("string"!=typeof i)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===s&&(x.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),x.storeName=!0),s={storeName:!0});const n=void 0!==s&&s.storeName,r=void 0!==s&&s.contentOnly;if(n){const i=this.original.slice(e,t);Object.defineProperty(this.storedNames,i,{writable:!0,value:!0,enumerable:!0})}const a=this.byStart[e],o=this.byEnd[t];if(a){let e=a;for(;e!==o;){if(e.next!==this.byStart[e.end])throw new Error("Cannot overwrite across a split point");e=e.next,e.edit("",!1)}a.edit(i,n,r)}else{const s=new l(e,t,"").edit(i,n);o.next=s,s.previous=o}return this}prepend(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.prependLeft(t):this.intro=t+this.intro,this}prependRight(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.prependRight(t):this.outro=t+this.outro,this}remove(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);let i=this.byStart[e];for(;i;)i.intro="",i.outro="",i.edit(""),i=t>i.end?this.byStart[i.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{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]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(y);if(-1!==e)return this.outro.substr(e+1);let t=this.outro,i=this.lastChunk;do{if(i.outro.length>0){if(e=i.outro.lastIndexOf(y),-1!==e)return i.outro.substr(e+1)+t;t=i.outro+t}if(i.content.length>0){if(e=i.content.lastIndexOf(y),-1!==e)return i.content.substr(e+1)+t;t=i.content+t}if(i.intro.length>0){if(e=i.intro.lastIndexOf(y),-1!==e)return i.intro.substr(e+1)+t;t=i.intro+t}}while(i=i.previous);return e=this.intro.lastIndexOf(y),-1!==e?this.intro.substr(e+1)+t:this.intro+t}slice(e=0,t=this.original.length){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;let i="",s=this.firstChunk;for(;s&&(s.start>e||s.end<=e);){if(s.start<t&&s.end>=t)return i;s=s.next}if(s&&s.edited&&s.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const n=s;for(;s;){!s.intro||n===s&&s.start!==e||(i+=s.intro);const r=s.start<t&&s.end>=t;if(r&&s.edited&&s.end!==t)throw new Error(`Cannot use replaced character ${t} as slice end anchor.`);const a=n===s?e-s.start:0,o=r?s.content.length+t-s.end:s.content.length;if(i+=s.content.slice(a,o),!s.outro||r&&s.end!==t||(i+=s.outro),r)break;s=s.next}return i}snip(e,t){const i=this.clone();return i.remove(0,e),i.remove(t,i.original.length),i}_split(e){if(this.byStart[e]||this.byEnd[e])return;let t=this.lastSearchedChunk;const i=e>t.end;for(;t;){if(t.contains(e))return this._splitChunk(t,e);t=i?this.byStart[t.end]:this.byEnd[t.start]}}_splitChunk(e,t){if(e.edited&&e.content.length){const i=m(this.original)(t);throw new Error(`Cannot split a chunk that has already been edited (${i.line}:${i.column} – "${e.original}")`)}const i=e.split(t);return this.byEnd[t]=e,this.byStart[t]=i,this.byEnd[i.end]=i,e===this.lastChunk&&(this.lastChunk=i),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(){let e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0}length(){let e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(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 i=this.lastChunk;do{const e=i.end,s=i.trimEnd(t);if(i.end!==e&&(this.lastChunk===i&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),s)return!0;i=i.previous}while(i);return!1}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 i=this.firstChunk;do{const e=i.end,s=i.trimStart(t);if(i.end!==e&&(i===this.lastChunk&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),s)return!0;i=i.next}while(i);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}replace(e,t){function i(e,i){return"string"==typeof t?t.replace(/\$(\$|&|\d+)/g,((t,i)=>"$"===i?"$":"&"===i?e[0]:+i<e.length?e[+i]:`$${i}`)):t(...e,e.index,i,e.groups)}if("string"!=typeof e&&e.global)(function(e,t){let i;const s=[];for(;i=e.exec(t);)s.push(i);return s})(e,this.original).forEach((e=>{null!=e.index&&this.overwrite(e.index,e.index+e[0].length,i(e,this.original))}));else{const t=this.original.match(e);t&&null!=t.index&&this.overwrite(t.index,t.index+t[0].length,i(t,this.original))}return this}}const b=Object.prototype.hasOwnProperty;class v{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 E)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!f(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach((t=>{b.call(e,t)||(e[t]=e.content[t])})),void 0===e.separator&&(e.separator=this.separator),e.filename)if(b.call(this.uniqueSourceIndexByFilename,e.filename)){const t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content)throw new Error(`Illegal source: same filename (${e.filename}), different contents`)}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 E(e),separator:t&&t.separator||""}),this}clone(){const e=new v({intro:this.intro,separator:this.separator});return this.sources.forEach((t=>{e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})})),e}generateDecodedMap(e={}){const t=[];this.sources.forEach((e=>{Object.keys(e.content.storedNames).forEach((e=>{~t.indexOf(e)||t.push(e)}))}));const i=new g(e.hires);return this.intro&&i.advance(this.intro),this.sources.forEach(((e,s)=>{s>0&&i.advance(this.separator);const n=e.filename?this.uniqueSourceIndexByFilename[e.filename]:-1,r=e.content,a=m(r.original);r.intro&&i.advance(r.intro),r.firstChunk.eachNext((s=>{const o=a(s.start);s.intro.length&&i.advance(s.intro),e.filename?s.edited?i.addEdit(n,s.content,o,s.storeName?t.indexOf(s.original):-1):i.addUneditedChunk(n,s,r.original,o,r.sourcemapLocations):i.advance(s.content),s.outro.length&&i.advance(s.outro)})),r.outro&&i.advance(r.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((t=>e.file?d(e.file,t.filename):t.filename)),sourcesContent:this.uniqueSources.map((t=>e.includeContent?t.content:null)),names:t,mappings:i.raw}}generateMap(e){return new c(this.generateDecodedMap(e))}getIndentString(){const e={};return this.sources.forEach((t=>{const i=t.content.indentStr;null!==i&&(e[i]||(e[i]=0),e[i]+=1)})),Object.keys(e).sort(((t,i)=>e[t]-e[i]))[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(((i,s)=>{const n=void 0!==i.separator?i.separator:this.separator,r=t||s>0&&/\r?\n$/.test(n);i.content.indent(e,{exclude:i.indentExclusionRanges,indentStart:r}),t="\n"===i.content.lastChar()})),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,((t,i)=>i>0?e+t:t))),this}prepend(e){return this.intro=e+this.intro,this}toString(){const e=this.sources.map(((e,t)=>{const i=void 0!==e.separator?e.separator:this.separator;return(t>0?i:"")+e.content.toString()})).join("");return this.intro+e}isEmpty(){return!(this.intro.length&&this.intro.trim()||this.sources.some((e=>!e.content.isEmpty())))}length(){return this.sources.reduce(((e,t)=>e+t.content.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){let t,i=0;do{if(t=this.sources[i++],!t)break}while(!t.content.trimStartAborted(e))}return this}trimEnd(e){const t=new RegExp((e||"\\s")+"+$");let i,s=this.sources.length-1;do{if(i=this.sources[s--],!i){this.intro=this.intro.replace(t,"");break}}while(!i.content.trimEndAborted(e));return this}}const S=/^(?:\/|(?:[A-Za-z]:)?[\\|/])/,A=/^\.?\.\//,I=/\\/g,k=/[/\\]/,P=/\.[^.]+$/;function w(e){return S.test(e)}function C(e){return A.test(e)}function N(e){return e.replace(I,"/")}function _(e){return e.split(k).pop()||""}function $(e){const t=/[/\\][^/\\]*$/.exec(e);if(!t)return".";const i=e.slice(0,-t[0].length);return i||"/"}function T(e){const t=P.exec(_(e));return t?t[0]:""}function O(e,t){const i=e.split(k).filter(Boolean),s=t.split(k).filter(Boolean);for("."===i[0]&&i.shift(),"."===s[0]&&s.shift();i[0]&&s[0]&&i[0]===s[0];)i.shift(),s.shift();for(;".."===s[0]&&i.length>0;)s.shift(),i.pop();for(;i.pop();)s.unshift("..");return s.join("/")}function M(...e){const t=e.shift();if(!t)return"/";let i=t.split(k);for(const t of e)if(w(t))i=t.split(k);else{const e=t.split(k);for(;"."===e[0]||".."===e[0];)".."===e.shift()&&i.pop();i.push(...e)}return i.join("/")}function R(e,t,i){const s=e.get(t);if(s)return s;const n=i();return e.set(t,n),n}const D=Symbol("Unknown Key"),L=Symbol("Unknown Non-Accessor Key"),V=Symbol("Unknown Integer"),B=[],F=[D],z=[L],j=[V],U=Symbol("Entities");class G{constructor(){this.entityPaths=Object.create(null,{[U]:{value:new Set}})}trackEntityAtPathAndGetIfTracked(e,t){const i=this.getEntities(e);return!!i.has(t)||(i.add(t),!1)}withTrackedEntityAtPath(e,t,i,s){const n=this.getEntities(e);if(n.has(t))return s;n.add(t);const r=i();return n.delete(t),r}getEntities(e){let t=this.entityPaths;for(const i of e)t=t[i]=t[i]||Object.create(null,{[U]:{value:new Set}});return t[U]}}const H=new G;class W{constructor(){this.entityPaths=Object.create(null,{[U]:{value:new Map}})}trackEntityAtPathAndGetIfTracked(e,t,i){let s=this.entityPaths;for(const t of e)s=s[t]=s[t]||Object.create(null,{[U]:{value:new Map}});const n=R(s[U],t,(()=>new Set));return!!n.has(i)||(n.add(i),!1)}}const q=Symbol("Unknown Value"),K=Symbol("Unknown Truthy Value");class X{constructor(){this.included=!1}deoptimizePath(e){}deoptimizeThisOnInteractionAtPath({thisArg:e},t,i){e.deoptimizePath(F)}getLiteralValueAtPath(e,t,i){return q}getReturnExpressionWhenCalledAtPath(e,t,i,s){return Y}hasEffectsOnInteractionAtPath(e,t,i){return!0}include(e,t,i){this.included=!0}includeCallArguments(e,t){for(const i of t)i.include(e,!1)}shouldBeIncluded(e){return!0}}const Y=new class extends X{},Q={thisArg:null,type:0},Z={args:[Y],thisArg:null,type:1},J=[],ee={args:J,thisArg:null,type:2,withNew:!1};class te extends X{constructor(e){super(),this.name=e,this.alwaysRendered=!1,this.initReached=!1,this.isId=!1,this.isReassigned=!1,this.kind=null,this.renderBaseName=null,this.renderName=null}addReference(e){}getBaseVariableName(){return this.renderBaseName||this.renderName||this.name}getName(e){const t=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${e(t)}`:t}hasEffectsOnInteractionAtPath(e,{type:t},i){return 0!==t||e.length>0}include(){this.included=!0}markCalledFromTryStatement(){}setRenderNames(e,t){this.renderBaseName=e,this.renderName=t}}class ie extends te{constructor(e,t){super(t),this.referenced=!1,this.module=e,this.isNamespace="*"===t}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)}include(){this.included||(this.included=!0,this.module.used=!0)}}const se=Object.freeze(Object.create(null)),ne=Object.freeze({}),re=Object.freeze([]);function ae(e,t,i){if("number"==typeof i)throw new Error("locate takes a { startIndex, offsetLine, offsetColumn } object as the third argument");return function(e,t){void 0===t&&(t={});var i=t.offsetLine||0,s=t.offsetColumn||0,n=e.split("\n"),r=0,a=n.map((function(e,t){var i=r+e.length+1,s={start:r,end:i,line:t};return r=i,s})),o=0;function l(e,t){return e.start<=t&&t<e.end}function h(e,t){return{line:i+e.line,column:s+t-e.start,character:t}}return function(t,i){"string"==typeof t&&(t=e.indexOf(t,i||0));for(var s=a[o],n=t>=s.end?1:-1;s;){if(l(s,t))return h(s,t);s=a[o+=n]}}}(e,i)(t,i&&i.startIndex)}function oe(e){return e.replace(/^\t+/,(e=>e.split("\t").join(" ")))}function le(e,t){const i=e.length<=1,s=e.map((e=>`"${e}"`));let n=i?s[0]:`${s.slice(0,-1).join(", ")} and ${s.slice(-1)[0]}`;return t&&(n+=` ${i?t[0]:t[1]}`),n}function he(e){const t=_(e);return t.substring(0,t.length-T(e).length)}function ce(e){return w(e)?O(M(),e):e}function ue(e){return"/"===e[0]||"."===e[0]&&("/"===e[1]||"."===e[1])||w(e)}const de=/^(\.\.\/)*\.\.$/;function pe(e,t,i,s){let n=N(O($(e),t));if(i&&n.endsWith(".js")&&(n=n.slice(0,-3)),s){if(""===n)return"../"+_(t);if(de.test(n))return n.split("/").concat(["..",_(t)]).join("/")}return n?n.startsWith("..")?n:"./"+n:"."}function fe(e){throw e instanceof Error||(e=Object.assign(new Error(e.message),e)),e}function me(e,t,i,s){if("object"==typeof t){const{line:i,column:n}=t;e.loc={column:n,file:s,line:i}}else{e.pos=t;const{line:n,column:r}=ae(i,t,{offsetLine:1});e.loc={column:r,file:s,line:n}}if(void 0===e.frame){const{line:t,column:s}=e.loc;e.frame=function(e,t,i){let s=e.split("\n");const n=Math.max(0,t-3);let r=Math.min(t+2,s.length);for(s=s.slice(n,r);!/\S/.test(s[s.length-1]);)s.pop(),r-=1;const a=String(r).length;return s.map(((e,s)=>{const r=n+s+1===t;let o=String(s+n+1);for(;o.length<a;)o=` ${o}`;if(r){const t=function(e){let t="";for(;e--;)t+=" ";return t}(a+2+oe(e.slice(0,i)).length)+"^";return`${o}: ${oe(e)}\n${t}`}return`${o}: ${oe(e)}`})).join("\n")}(i,t,s)}}var ge;function ye({fileName:e,code:t},i){const s={code:ge.CHUNK_INVALID,message:`Chunk "${e}" is not valid JavaScript: ${i.message}.`};return me(s,i.loc,t,e),s}function xe(e,t,i){return{code:"INVALID_EXPORT_OPTION",message:`"${e}" was specified for "output.exports", but entry module "${ce(i)}" has the following exports: ${t.join(", ")}`}}function Ee(e,t,i,s){return{code:ge.INVALID_OPTION,message:`Invalid value ${void 0!==s?`${JSON.stringify(s)} `:""}for option "${e}" - ${i}.`,url:`https://rollupjs.org/guide/en/#${t}`}}function be(e,t,i){return{code:ge.MISSING_EXPORT,message:`'${e}' is not exported by ${ce(i)}, imported by ${ce(t)}`,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"}}function ve(e){const t=Array.from(e.implicitlyLoadedBefore,(e=>ce(e.id))).sort();return{code:ge.MISSING_IMPLICIT_DEPENDANT,message:`Module "${ce(e.id)}" that should be implicitly loaded before ${le(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 Se(e,t,i){const s=i?"reexport":"import";return{code:ge.UNEXPECTED_NAMED_IMPORT,id:e,message:`The named export "${t}" was ${s}ed from the external module ${ce(e)} even though its interop type is "defaultOnly". Either remove or change this ${s} or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function Ae(e){return{code:ge.UNEXPECTED_NAMED_IMPORT,id:e,message:`There was a namespace "*" reexport from the external module ${ce(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:"https://rollupjs.org/guide/en/#outputinterop"}}function Ie(e){return{code:ge.VALIDATION_ERROR,message:e}}function ke(){return{code:ge.ALREADY_CLOSED,message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}}function Pe(e,t,i){we(e,t,i.onwarn,i.strictDeprecations)}function we(e,t,i,s){if(t||s){const t=function(e){return{code:ge.DEPRECATED_FEATURE,..."string"==typeof e?{message:e}:e}}(e);if(s)return fe(t);i(t)}}!function(e){e.ALREADY_CLOSED="ALREADY_CLOSED",e.ASSET_NOT_FINALISED="ASSET_NOT_FINALISED",e.ASSET_NOT_FOUND="ASSET_NOT_FOUND",e.ASSET_SOURCE_ALREADY_SET="ASSET_SOURCE_ALREADY_SET",e.ASSET_SOURCE_MISSING="ASSET_SOURCE_MISSING",e.BAD_LOADER="BAD_LOADER",e.CANNOT_EMIT_FROM_OPTIONS_HOOK="CANNOT_EMIT_FROM_OPTIONS_HOOK",e.CHUNK_NOT_GENERATED="CHUNK_NOT_GENERATED",e.CHUNK_INVALID="CHUNK_INVALID",e.CIRCULAR_REEXPORT="CIRCULAR_REEXPORT",e.CYCLIC_CROSS_CHUNK_REEXPORT="CYCLIC_CROSS_CHUNK_REEXPORT",e.DEPRECATED_FEATURE="DEPRECATED_FEATURE",e.EXTERNAL_SYNTHETIC_EXPORTS="EXTERNAL_SYNTHETIC_EXPORTS",e.FILE_NAME_CONFLICT="FILE_NAME_CONFLICT",e.FILE_NOT_FOUND="FILE_NOT_FOUND",e.INPUT_HOOK_IN_OUTPUT_PLUGIN="INPUT_HOOK_IN_OUTPUT_PLUGIN",e.INVALID_CHUNK="INVALID_CHUNK",e.INVALID_EXPORT_OPTION="INVALID_EXPORT_OPTION",e.INVALID_EXTERNAL_ID="INVALID_EXTERNAL_ID",e.INVALID_OPTION="INVALID_OPTION",e.INVALID_PLUGIN_HOOK="INVALID_PLUGIN_HOOK",e.INVALID_ROLLUP_PHASE="INVALID_ROLLUP_PHASE",e.MISSING_EXPORT="MISSING_EXPORT",e.MISSING_IMPLICIT_DEPENDANT="MISSING_IMPLICIT_DEPENDANT",e.MIXED_EXPORTS="MIXED_EXPORTS",e.NAMESPACE_CONFLICT="NAMESPACE_CONFLICT",e.AMBIGUOUS_EXTERNAL_NAMESPACES="AMBIGUOUS_EXTERNAL_NAMESPACES",e.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE="NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",e.PLUGIN_ERROR="PLUGIN_ERROR",e.PREFER_NAMED_EXPORTS="PREFER_NAMED_EXPORTS",e.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT="SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT",e.UNEXPECTED_NAMED_IMPORT="UNEXPECTED_NAMED_IMPORT",e.UNRESOLVED_ENTRY="UNRESOLVED_ENTRY",e.UNRESOLVED_IMPORT="UNRESOLVED_IMPORT",e.VALIDATION_ERROR="VALIDATION_ERROR"}(ge||(ge={}));var Ce=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"]);const Ne=/[^$_a-zA-Z0-9]/g,_e=e=>/\d/.test(e[0]);function $e(e){return e=e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())).replace(Ne,"_"),(_e(e)||Ce.has(e))&&(e=`_${e}`),e||"_"}class Te{constructor(e,t,i,s,n){this.options=e,this.id=t,this.renormalizeRenderPath=n,this.declarations=new Map,this.defaultVariableName="",this.dynamicImporters=[],this.execIndex=1/0,this.exportedVariables=new Map,this.importers=[],this.mostCommonSuggestion=0,this.nameSuggestions=new Map,this.namespaceVariableName="",this.reexported=!1,this.renderPath=void 0,this.used=!1,this.variableName="",this.suggestedVariableName=$e(t.split(/[\\/]/).pop());const{importers:r,dynamicImporters:a}=this,o=this.info={ast:null,code:null,dynamicallyImportedIdResolutions:re,dynamicallyImportedIds:re,get dynamicImporters(){return a.sort()},hasDefaultExport:null,get hasModuleSideEffects(){return Pe("Accessing ModuleInfo.hasModuleSideEffects from plugins is deprecated. Please use ModuleInfo.moduleSideEffects instead.",!1,e),o.moduleSideEffects},id:t,implicitlyLoadedAfterOneOf:re,implicitlyLoadedBefore:re,importedIdResolutions:re,importedIds:re,get importers(){return r.sort()},isEntry:!1,isExternal:!0,isIncluded:null,meta:s,moduleSideEffects:i,syntheticNamedExports:!1};Object.defineProperty(this.info,"hasModuleSideEffects",{enumerable:!1})}getVariableForExportName(e){const t=this.declarations.get(e);if(t)return[t];const i=new ie(this,e);return this.declarations.set(e,i),this.exportedVariables.set(i,e),[i]}setRenderPath(e,t){this.renderPath="function"==typeof e.paths?e.paths(this.id):e.paths[this.id],this.renderPath||(this.renderPath=this.renormalizeRenderPath?N(O(t,this.id)):this.id)}suggestName(e){var t;const i=(null!==(t=this.nameSuggestions.get(e))&&void 0!==t?t:0)+1;this.nameSuggestions.set(e,i),i>this.mostCommonSuggestion&&(this.mostCommonSuggestion=i,this.suggestedVariableName=e)}warnUnusedImports(){const e=Array.from(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 i of e)for(const e of this.declarations.get(i).module.importers)t.add(e);const i=[...t];this.options.onwarn({code:"UNUSED_EXTERNAL_IMPORT",message:`${le(e,["is","are"])} imported from external module "${this.id}" but never used in ${le(i.map((e=>ce(e))))}.`,names:e,source:this.id,sources:i})}}const Oe={ArrayPattern(e,t){for(const i of t.elements)i&&Oe[i.type](e,i)},AssignmentPattern(e,t){Oe[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const i of t.properties)"RestElement"===i.type?Oe.RestElement(e,i):Oe[i.value.type](e,i.value)},RestElement(e,t){Oe[t.argument.type](e,t.argument)}},Me=function(e){const t=[];return Oe[e.type](t,e),t};function Re(){return{brokenFlow:0,includedCallArguments:new Set,includedLabels:new Set}}function De(){return{accessed:new G,assigned:new G,brokenFlow:0,called:new W,ignore:{breaks:!1,continues:!1,labels:new Set,returnYield:!1},includedLabels:new Set,instantiated:new W,replacedVariableInits:new Map}}function Le(e,t=null){return Object.create(t,e)}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("");const Ve=new class extends X{getLiteralValueAtPath(){}},Be={value:{hasEffectsWhenCalled:null,returns:Y}},Fe=new class extends X{getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Ze(Ke,e[0]):Y}hasEffectsOnInteractionAtPath(e,t,i){return 0===t.type?e.length>1:2!==t.type||1!==e.length||Qe(Ke,e[0],t,i)}},ze={value:{hasEffectsWhenCalled:null,returns:Fe}},je=new class extends X{getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Ze(Xe,e[0]):Y}hasEffectsOnInteractionAtPath(e,t,i){return 0===t.type?e.length>1:2!==t.type||1!==e.length||Qe(Xe,e[0],t,i)}},Ue={value:{hasEffectsWhenCalled:null,returns:je}},Ge=new class extends X{getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Ze(Ye,e[0]):Y}hasEffectsOnInteractionAtPath(e,t,i){return 0===t.type?e.length>1:2!==t.type||1!==e.length||Qe(Ye,e[0],t,i)}},He={value:{hasEffectsWhenCalled:null,returns:Ge}},We={value:{hasEffectsWhenCalled({args:e},t){const i=e[1];return e.length<2||"symbol"==typeof i.getLiteralValueAtPath(B,H,{deoptimizeCache(){}})&&i.hasEffectsOnInteractionAtPath(B,ee,t)},returns:Ge}},qe=Le({hasOwnProperty:ze,isPrototypeOf:ze,propertyIsEnumerable:ze,toLocaleString:He,toString:He,valueOf:Be}),Ke=Le({valueOf:ze},qe),Xe=Le({toExponential:He,toFixed:He,toLocaleString:He,toPrecision:He,valueOf:Ue},qe),Ye=Le({anchor:He,at:Be,big:He,blink:He,bold:He,charAt:He,charCodeAt:Ue,codePointAt:Be,concat:He,endsWith:ze,fixed:He,fontcolor:He,fontsize:He,includes:ze,indexOf:Ue,italics:He,lastIndexOf:Ue,link:He,localeCompare:Ue,match:Be,matchAll:Be,normalize:He,padEnd:He,padStart:He,repeat:He,replace:We,replaceAll:We,search:Ue,slice:He,small:He,split:Be,startsWith:ze,strike:He,sub:He,substr:He,substring:He,sup:He,toLocaleLowerCase:He,toLocaleUpperCase:He,toLowerCase:He,toString:He,toUpperCase:He,trim:He,trimEnd:He,trimLeft:He,trimRight:He,trimStart:He,valueOf:He},qe);function Qe(e,t,i,s){var n,r;return"string"!=typeof t||!e[t]||(null===(r=(n=e[t]).hasEffectsWhenCalled)||void 0===r?void 0:r.call(n,i,s))||!1}function Ze(e,t){return"string"==typeof t&&e[t]?e[t].returns:Y}function Je(e,t,i){i(e,t)}function et(e,t,i){}var tt={};tt.Program=tt.BlockStatement=tt.StaticBlock=function(e,t,i){for(var s=0,n=e.body;s<n.length;s+=1)i(n[s],t,"Statement")},tt.Statement=Je,tt.EmptyStatement=et,tt.ExpressionStatement=tt.ParenthesizedExpression=tt.ChainExpression=function(e,t,i){return i(e.expression,t,"Expression")},tt.IfStatement=function(e,t,i){i(e.test,t,"Expression"),i(e.consequent,t,"Statement"),e.alternate&&i(e.alternate,t,"Statement")},tt.LabeledStatement=function(e,t,i){return i(e.body,t,"Statement")},tt.BreakStatement=tt.ContinueStatement=et,tt.WithStatement=function(e,t,i){i(e.object,t,"Expression"),i(e.body,t,"Statement")},tt.SwitchStatement=function(e,t,i){i(e.discriminant,t,"Expression");for(var s=0,n=e.cases;s<n.length;s+=1){var r=n[s];r.test&&i(r.test,t,"Expression");for(var a=0,o=r.consequent;a<o.length;a+=1)i(o[a],t,"Statement")}},tt.SwitchCase=function(e,t,i){e.test&&i(e.test,t,"Expression");for(var s=0,n=e.consequent;s<n.length;s+=1)i(n[s],t,"Statement")},tt.ReturnStatement=tt.YieldExpression=tt.AwaitExpression=function(e,t,i){e.argument&&i(e.argument,t,"Expression")},tt.ThrowStatement=tt.SpreadElement=function(e,t,i){return i(e.argument,t,"Expression")},tt.TryStatement=function(e,t,i){i(e.block,t,"Statement"),e.handler&&i(e.handler,t),e.finalizer&&i(e.finalizer,t,"Statement")},tt.CatchClause=function(e,t,i){e.param&&i(e.param,t,"Pattern"),i(e.body,t,"Statement")},tt.WhileStatement=tt.DoWhileStatement=function(e,t,i){i(e.test,t,"Expression"),i(e.body,t,"Statement")},tt.ForStatement=function(e,t,i){e.init&&i(e.init,t,"ForInit"),e.test&&i(e.test,t,"Expression"),e.update&&i(e.update,t,"Expression"),i(e.body,t,"Statement")},tt.ForInStatement=tt.ForOfStatement=function(e,t,i){i(e.left,t,"ForInit"),i(e.right,t,"Expression"),i(e.body,t,"Statement")},tt.ForInit=function(e,t,i){"VariableDeclaration"===e.type?i(e,t):i(e,t,"Expression")},tt.DebuggerStatement=et,tt.FunctionDeclaration=function(e,t,i){return i(e,t,"Function")},tt.VariableDeclaration=function(e,t,i){for(var s=0,n=e.declarations;s<n.length;s+=1)i(n[s],t)},tt.VariableDeclarator=function(e,t,i){i(e.id,t,"Pattern"),e.init&&i(e.init,t,"Expression")},tt.Function=function(e,t,i){e.id&&i(e.id,t,"Pattern");for(var s=0,n=e.params;s<n.length;s+=1)i(n[s],t,"Pattern");i(e.body,t,e.expression?"Expression":"Statement")},tt.Pattern=function(e,t,i){"Identifier"===e.type?i(e,t,"VariablePattern"):"MemberExpression"===e.type?i(e,t,"MemberPattern"):i(e,t)},tt.VariablePattern=et,tt.MemberPattern=Je,tt.RestElement=function(e,t,i){return i(e.argument,t,"Pattern")},tt.ArrayPattern=function(e,t,i){for(var s=0,n=e.elements;s<n.length;s+=1){var r=n[s];r&&i(r,t,"Pattern")}},tt.ObjectPattern=function(e,t,i){for(var s=0,n=e.properties;s<n.length;s+=1){var r=n[s];"Property"===r.type?(r.computed&&i(r.key,t,"Expression"),i(r.value,t,"Pattern")):"RestElement"===r.type&&i(r.argument,t,"Pattern")}},tt.Expression=Je,tt.ThisExpression=tt.Super=tt.MetaProperty=et,tt.ArrayExpression=function(e,t,i){for(var s=0,n=e.elements;s<n.length;s+=1){var r=n[s];r&&i(r,t,"Expression")}},tt.ObjectExpression=function(e,t,i){for(var s=0,n=e.properties;s<n.length;s+=1)i(n[s],t)},tt.FunctionExpression=tt.ArrowFunctionExpression=tt.FunctionDeclaration,tt.SequenceExpression=function(e,t,i){for(var s=0,n=e.expressions;s<n.length;s+=1)i(n[s],t,"Expression")},tt.TemplateLiteral=function(e,t,i){for(var s=0,n=e.quasis;s<n.length;s+=1)i(n[s],t);for(var r=0,a=e.expressions;r<a.length;r+=1)i(a[r],t,"Expression")},tt.TemplateElement=et,tt.UnaryExpression=tt.UpdateExpression=function(e,t,i){i(e.argument,t,"Expression")},tt.BinaryExpression=tt.LogicalExpression=function(e,t,i){i(e.left,t,"Expression"),i(e.right,t,"Expression")},tt.AssignmentExpression=tt.AssignmentPattern=function(e,t,i){i(e.left,t,"Pattern"),i(e.right,t,"Expression")},tt.ConditionalExpression=function(e,t,i){i(e.test,t,"Expression"),i(e.consequent,t,"Expression"),i(e.alternate,t,"Expression")},tt.NewExpression=tt.CallExpression=function(e,t,i){if(i(e.callee,t,"Expression"),e.arguments)for(var s=0,n=e.arguments;s<n.length;s+=1)i(n[s],t,"Expression")},tt.MemberExpression=function(e,t,i){i(e.object,t,"Expression"),e.computed&&i(e.property,t,"Expression")},tt.ExportNamedDeclaration=tt.ExportDefaultDeclaration=function(e,t,i){e.declaration&&i(e.declaration,t,"ExportNamedDeclaration"===e.type||e.declaration.id?"Statement":"Expression"),e.source&&i(e.source,t,"Expression")},tt.ExportAllDeclaration=function(e,t,i){e.exported&&i(e.exported,t),i(e.source,t,"Expression")},tt.ImportDeclaration=function(e,t,i){for(var s=0,n=e.specifiers;s<n.length;s+=1)i(n[s],t);i(e.source,t,"Expression")},tt.ImportExpression=function(e,t,i){i(e.source,t,"Expression")},tt.ImportSpecifier=tt.ImportDefaultSpecifier=tt.ImportNamespaceSpecifier=tt.Identifier=tt.PrivateIdentifier=tt.Literal=et,tt.TaggedTemplateExpression=function(e,t,i){i(e.tag,t,"Expression"),i(e.quasi,t,"Expression")},tt.ClassDeclaration=tt.ClassExpression=function(e,t,i){return i(e,t,"Class")},tt.Class=function(e,t,i){e.id&&i(e.id,t,"Pattern"),e.superClass&&i(e.superClass,t,"Expression"),i(e.body,t)},tt.ClassBody=function(e,t,i){for(var s=0,n=e.body;s<n.length;s+=1)i(n[s],t)},tt.MethodDefinition=tt.PropertyDefinition=tt.Property=function(e,t,i){e.computed&&i(e.key,t,"Expression"),e.value&&i(e.value,t,"Expression")};const it="ArrowFunctionExpression",st="BlockStatement",nt="CallExpression",rt="ExpressionStatement",at="Identifier",ot="Program";let lt="sourceMa";lt+="ppingURL";const ht=new RegExp("^#[ \\f\\r\\t\\v\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]+sourceMappingURL=.+"),ct="_rollupAnnotations",ut="_rollupRemoved";function dt(e,t,i=e.type){const{annotations:s}=t;let n=s[t.annotationIndex];for(;n&&e.start>=n.end;)mt(e,n,t.code),n=s[++t.annotationIndex];if(n&&n.end<=e.end)for(tt[i](e,t,dt);(n=s[t.annotationIndex])&&n.end<=e.end;)++t.annotationIndex,xt(e,n,!1)}const pt=/[^\s(]/g,ft=/\S/g;function mt(e,t,i){const s=[];let n;if(gt(i.slice(t.end,e.start),pt)){const t=e.start;for(;;){switch(s.push(e),e.type){case rt:case"ChainExpression":e=e.expression;continue;case"SequenceExpression":if(gt(i.slice(t,e.start),ft)){e=e.expressions[0];continue}n=!0;break;case"ConditionalExpression":if(gt(i.slice(t,e.start),ft)){e=e.test;continue}n=!0;break;case"LogicalExpression":case"BinaryExpression":if(gt(i.slice(t,e.start),ft)){e=e.left;continue}n=!0;break;case nt:case"NewExpression":break;default:n=!0}break}}else n=!0;if(n)xt(e,t,!1);else for(const e of s)xt(e,t,!0)}function gt(e,t){let i;for(;null!==(i=t.exec(e));){if("/"===i[0]){const i=e.charCodeAt(t.lastIndex);if(42===i){t.lastIndex=e.indexOf("*/",t.lastIndex+1)+2;continue}if(47===i){t.lastIndex=e.indexOf("\n",t.lastIndex+1)+1;continue}}return t.lastIndex=0,!1}return!0}const yt=/[@#]__PURE__/;function xt(e,t,i){const s=i?ct:ut,n=e[s];n?n.push(t):e[s]=[t]}const Et={Literal:[],Program:["body"]},bt="variables";class vt extends X{constructor(e,t,i){super(),this.deoptimized=!1,this.esTreeNode=e,this.keys=Et[e.type]||function(e){return Et[e.type]=Object.keys(e).filter((t=>"object"==typeof e[t]&&95!==t.charCodeAt(0))),Et[e.type]}(e),this.parent=t,this.context=t.context,this.createScope(i),this.parseNode(e),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}addExportedVariables(e,t){}bind(){for(const e of this.keys){const t=this[e];if(null!==t)if(Array.isArray(t))for(const e of t)null==e||e.bind();else t.bind()}}createScope(e){this.scope=e}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const t of this.keys){const i=this[t];if(null!==i)if(Array.isArray(i)){for(const t of i)if(null==t?void 0:t.hasEffects(e))return!0}else if(i.hasEffects(e))return!0}return!1}hasEffectsAsAssignmentTarget(e,t){return this.hasEffects(e)||this.hasEffectsOnInteractionAtPath(B,this.assignmentInteraction,e)}include(e,t,i){this.deoptimized||this.applyDeoptimizations(),this.included=!0;for(const i of this.keys){const s=this[i];if(null!==s)if(Array.isArray(s))for(const i of s)null==i||i.include(e,t);else s.include(e,t)}}includeAsAssignmentTarget(e,t,i){this.include(e,t)}initialise(){}insertSemicolon(e){";"!==e.original[this.end-1]&&e.appendLeft(this.end,";")}parseNode(e){for(const[t,i]of Object.entries(e))if(!this.hasOwnProperty(t))if(95===t.charCodeAt(0)){if(t===ct)this.annotations=i;else if(t===ut)for(const{start:e,end:t}of i)this.context.magicString.remove(e,t)}else if("object"!=typeof i||null===i)this[t]=i;else if(Array.isArray(i)){this[t]=[];for(const e of i)this[t].push(null===e?null:new(this.context.getNodeConstructor(e.type))(e,this,this.scope))}else this[t]=new(this.context.getNodeConstructor(i.type))(i,this,this.scope)}render(e,t){for(const i of this.keys){const s=this[i];if(null!==s)if(Array.isArray(s))for(const i of s)null==i||i.render(e,t);else s.render(e,t)}}setAssignedValue(e){this.assignmentInteraction={args:[e],thisArg:null,type:1}}shouldBeIncluded(e){return this.included||!e.brokenFlow&&this.hasEffects(De())}applyDeoptimizations(){this.deoptimized=!0;for(const e of this.keys){const t=this[e];if(null!==t)if(Array.isArray(t))for(const e of t)null==e||e.deoptimizePath(F);else t.deoptimizePath(F)}this.context.requestTreeshakingPass()}}class St extends vt{deoptimizeThisOnInteractionAtPath(e,t,i){t.length>0&&this.argument.deoptimizeThisOnInteractionAtPath(e,[D,...t],i)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();const{propertyReadSideEffects:t}=this.context.options.treeshake;return this.argument.hasEffects(e)||t&&("always"===t||this.argument.hasEffectsOnInteractionAtPath(F,Q,e))}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath([D,D]),this.context.requestTreeshakingPass()}}class At extends X{constructor(e){super(),this.description=e}deoptimizeThisOnInteractionAtPath({type:e,thisArg:t},i){2===e&&0===i.length&&this.description.mutatesSelfAsArray&&t.deoptimizePath(j)}getReturnExpressionWhenCalledAtPath(e,{thisArg:t}){return e.length>0?Y:this.description.returnsPrimitive||("self"===this.description.returns?t||Y:this.description.returns())}hasEffectsOnInteractionAtPath(e,t,i){var s,n;const{type:r}=t;if(e.length>(0===r?1:0))return!0;if(2===r){if(!0===this.description.mutatesSelfAsArray&&(null===(s=t.thisArg)||void 0===s?void 0:s.hasEffectsOnInteractionAtPath(j,Z,i)))return!0;if(this.description.callsArgs)for(const e of this.description.callsArgs)if(null===(n=t.args[e])||void 0===n?void 0:n.hasEffectsOnInteractionAtPath(B,ee,i))return!0}return!1}}const It=[new At({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Fe})],kt=[new At({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Ge})],Pt=[new At({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:je})],wt=[new At({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Y})],Ct=/^\d+$/;class Nt extends X{constructor(e,t,i=!1){if(super(),this.prototypeExpression=t,this.immutable=i,this.allProperties=[],this.deoptimizedPaths=Object.create(null),this.expressionsToBeDeoptimizedByKey=Object.create(null),this.gettersByKey=Object.create(null),this.hasLostTrack=!1,this.hasUnknownDeoptimizedInteger=!1,this.hasUnknownDeoptimizedProperty=!1,this.propertiesAndGettersByKey=Object.create(null),this.propertiesAndSettersByKey=Object.create(null),this.settersByKey=Object.create(null),this.thisParametersToBeDeoptimized=new Set,this.unknownIntegerProps=[],this.unmatchableGetters=[],this.unmatchablePropertiesAndGetters=[],this.unmatchableSetters=[],Array.isArray(e))this.buildPropertyMaps(e);else{this.propertiesAndGettersByKey=this.propertiesAndSettersByKey=e;for(const t of Object.values(e))this.allProperties.push(...t)}}deoptimizeAllProperties(e){var t;const i=this.hasLostTrack||this.hasUnknownDeoptimizedProperty;if(e?this.hasUnknownDeoptimizedProperty=!0:this.hasLostTrack=!0,!i){for(const e of Object.values(this.propertiesAndGettersByKey).concat(Object.values(this.settersByKey)))for(const t of e)t.deoptimizePath(F);null===(t=this.prototypeExpression)||void 0===t||t.deoptimizePath([D,D]),this.deoptimizeCachedEntities()}}deoptimizeIntegerProperties(){if(!(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||this.hasUnknownDeoptimizedInteger)){this.hasUnknownDeoptimizedInteger=!0;for(const[e,t]of Object.entries(this.propertiesAndGettersByKey))if(Ct.test(e))for(const e of t)e.deoptimizePath(F);this.deoptimizeCachedIntegerEntities()}}deoptimizePath(e){var t;if(this.hasLostTrack||this.immutable)return;const i=e[0];if(1===e.length){if("string"!=typeof i)return i===V?this.deoptimizeIntegerProperties():this.deoptimizeAllProperties(i===L);if(!this.deoptimizedPaths[i]){this.deoptimizedPaths[i]=!0;const e=this.expressionsToBeDeoptimizedByKey[i];if(e)for(const t of e)t.deoptimizeCache()}}const s=1===e.length?F:e.slice(1);for(const e of"string"==typeof i?(this.propertiesAndGettersByKey[i]||this.unmatchablePropertiesAndGetters).concat(this.settersByKey[i]||this.unmatchableSetters):this.allProperties)e.deoptimizePath(s);null===(t=this.prototypeExpression)||void 0===t||t.deoptimizePath(1===e.length?[...e,D]:e)}deoptimizeThisOnInteractionAtPath(e,t,i){var s;const[n,...r]=t;if(this.hasLostTrack||(2===e.type||t.length>1)&&(this.hasUnknownDeoptimizedProperty||"string"==typeof n&&this.deoptimizedPaths[n]))return void e.thisArg.deoptimizePath(F);const[a,o,l]=2===e.type||t.length>1?[this.propertiesAndGettersByKey,this.propertiesAndGettersByKey,this.unmatchablePropertiesAndGetters]:0===e.type?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if("string"==typeof n){if(a[n]){const t=o[n];if(t)for(const s of t)s.deoptimizeThisOnInteractionAtPath(e,r,i);return void(this.immutable||this.thisParametersToBeDeoptimized.add(e.thisArg))}for(const t of l)t.deoptimizeThisOnInteractionAtPath(e,r,i);if(Ct.test(n))for(const t of this.unknownIntegerProps)t.deoptimizeThisOnInteractionAtPath(e,r,i)}else{for(const t of Object.values(o).concat([l]))for(const s of t)s.deoptimizeThisOnInteractionAtPath(e,r,i);for(const t of this.unknownIntegerProps)t.deoptimizeThisOnInteractionAtPath(e,r,i)}this.immutable||this.thisParametersToBeDeoptimized.add(e.thisArg),null===(s=this.prototypeExpression)||void 0===s||s.deoptimizeThisOnInteractionAtPath(e,t,i)}getLiteralValueAtPath(e,t,i){if(0===e.length)return K;const s=e[0],n=this.getMemberExpressionAndTrackDeopt(s,i);return n?n.getLiteralValueAtPath(e.slice(1),t,i):this.prototypeExpression?this.prototypeExpression.getLiteralValueAtPath(e,t,i):1!==e.length?q:void 0}getReturnExpressionWhenCalledAtPath(e,t,i,s){if(0===e.length)return Y;const[n,...r]=e,a=this.getMemberExpressionAndTrackDeopt(n,s);return a?a.getReturnExpressionWhenCalledAtPath(r,t,i,s):this.prototypeExpression?this.prototypeExpression.getReturnExpressionWhenCalledAtPath(e,t,i,s):Y}hasEffectsOnInteractionAtPath(e,t,i){const[s,...n]=e;if(n.length||2===t.type){const r=this.getMemberExpression(s);return r?r.hasEffectsOnInteractionAtPath(n,t,i):!this.prototypeExpression||this.prototypeExpression.hasEffectsOnInteractionAtPath(e,t,i)}if(s===L)return!1;if(this.hasLostTrack)return!0;const[r,a,o]=0===t.type?[this.propertiesAndGettersByKey,this.