import"./@babel-145f18f6.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="fe22bcea-04a5-4e76-b4dc-71ef1c324508",o._sentryDebugIdIdentifier="sentry-dbid-fe22bcea-04a5-4e76-b4dc-71ef1c324508")}catch{}})();var Z={},K={},V={},X={},te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");X.encode=function(o){if(0<=o&&o<te.length)return te[o];throw new TypeError("Must be between 0 and 63: "+o)};X.decode=function(o){var e=65,r=90,n=97,t=122,i=48,u=57,f=43,l=47,c=26,h=52;return e<=o&&o<=r?o-e:n<=o&&o<=t?o-n+c:i<=o&&o<=u?o-i+h:o==f?62:o==l?63:-1};var oe=X,Y=5,ie=1<<Y,se=ie-1,ue=ie;function de(o){return o<0?(-o<<1)+1:(o<<1)+0}function ve(o){var e=(o&1)===1,r=o>>1;return e?-r:r}V.encode=function(e){var r="",n,t=de(e);do n=t&se,t>>>=Y,t>0&&(n|=ue),r+=oe.encode(n);while(t>0);return r};V.decode=function(e,r,n){var t=e.length,i=0,u=0,f,l;do{if(r>=t)throw new Error("Expected more digits in base 64 VLQ value.");if(l=oe.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));f=!!(l&ue),l&=se,i=i+(l<<u),u+=Y}while(f);n.value=ve(i),n.rest=r};var $={};(function(o){function e(s,a,_){if(a in s)return s[a];if(arguments.length===3)return _;throw new Error('"'+a+'" is a required argument.')}o.getArg=e;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function t(s){var a=s.match(r);return a?{scheme:a[1],auth:a[2],host:a[3],port:a[4],path:a[5]}:null}o.urlParse=t;function i(s){var a="";return s.scheme&&(a+=s.scheme+":"),a+="//",s.auth&&(a+=s.auth+"@"),s.host&&(a+=s.host),s.port&&(a+=":"+s.port),s.path&&(a+=s.path),a}o.urlGenerate=i;function u(s){var a=s,_=t(s);if(_){if(!_.path)return s;a=_.path}for(var d=o.isAbsolute(a),O=a.split(/\/+/),x,P=0,D=O.length-1;D>=0;D--)x=O[D],x==="."?O.splice(D,1):x===".."?P++:P>0&&(x===""?(O.splice(D+1,P),P=0):(O.splice(D,2),P--));return a=O.join("/"),a===""&&(a=d?"/":"."),_?(_.path=a,i(_)):a}o.normalize=u;function f(s,a){s===""&&(s="."),a===""&&(a=".");var _=t(a),d=t(s);if(d&&(s=d.path||"/"),_&&!_.scheme)return d&&(_.scheme=d.scheme),i(_);if(_||a.match(n))return a;if(d&&!d.host&&!d.path)return d.host=a,i(d);var O=a.charAt(0)==="/"?a:u(s.replace(/\/+$/,"")+"/"+a);return d?(d.path=O,i(d)):O}o.join=f,o.isAbsolute=function(s){return s.charAt(0)==="/"||r.test(s)};function l(s,a){s===""&&(s="."),s=s.replace(/\/$/,"");for(var _=0;a.indexOf(s+"/")!==0;){var d=s.lastIndexOf("/");if(d<0||(s=s.slice(0,d),s.match(/^([^\/]+:\/)?\/*$/)))return a;++_}return Array(_+1).join("../")+a.substr(s.length+1)}o.relative=l;var c=function(){var s=Object.create(null);return!("__proto__"in s)}();function h(s){return s}function p(s){return m(s)?"$"+s:s}o.toSetString=c?h:p;function v(s){return m(s)?s.slice(1):s}o.fromSetString=c?h:v;function m(s){if(!s)return!1;var a=s.length;if(a<9||s.charCodeAt(a-1)!==95||s.charCodeAt(a-2)!==95||s.charCodeAt(a-3)!==111||s.charCodeAt(a-4)!==116||s.charCodeAt(a-5)!==111||s.charCodeAt(a-6)!==114||s.charCodeAt(a-7)!==112||s.charCodeAt(a-8)!==95||s.charCodeAt(a-9)!==95)return!1;for(var _=a-10;_>=0;_--)if(s.charCodeAt(_)!==36)return!1;return!0}function w(s,a,_){var d=b(s.source,a.source);return d!==0||(d=s.originalLine-a.originalLine,d!==0)||(d=s.originalColumn-a.originalColumn,d!==0||_)||(d=s.generatedColumn-a.generatedColumn,d!==0)||(d=s.generatedLine-a.generatedLine,d!==0)?d:b(s.name,a.name)}o.compareByOriginalPositions=w;function M(s,a,_){var d=s.generatedLine-a.generatedLine;return d!==0||(d=s.generatedColumn-a.generatedColumn,d!==0||_)||(d=b(s.source,a.source),d!==0)||(d=s.originalLine-a.originalLine,d!==0)||(d=s.originalColumn-a.originalColumn,d!==0)?d:b(s.name,a.name)}o.compareByGeneratedPositionsDeflated=M;function b(s,a){return s===a?0:s===null?1:a===null?-1:s>a?1:-1}function C(s,a){var _=s.generatedLine-a.generatedLine;return _!==0||(_=s.generatedColumn-a.generatedColumn,_!==0)||(_=b(s.source,a.source),_!==0)||(_=s.originalLine-a.originalLine,_!==0)||(_=s.originalColumn-a.originalColumn,_!==0)?_:b(s.name,a.name)}o.compareByGeneratedPositionsInflated=C;function I(s){return JSON.parse(s.replace(/^\)]}'[^\n]*\n/,""))}o.parseSourceMapInput=I;function F(s,a,_){if(a=a||"",s&&(s[s.length-1]!=="/"&&a[0]!=="/"&&(s+="/"),a=s+a),_){var d=t(_);if(!d)throw new Error("sourceMapURL could not be parsed");if(d.path){var O=d.path.lastIndexOf("/");O>=0&&(d.path=d.path.substring(0,O+1))}a=f(i(d),a)}return u(a)}o.computeSourceURL=F})($);var H={},ee=$,re=Object.prototype.hasOwnProperty,G=typeof Map<"u";function N(){this._array=[],this._set=G?new Map:Object.create(null)}N.fromArray=function(e,r){for(var n=new N,t=0,i=e.length;t<i;t++)n.add(e[t],r);return n};N.prototype.size=function(){return G?this._set.size:Object.getOwnPropertyNames(this._set).length};N.prototype.add=function(e,r){var n=G?e:ee.toSetString(e),t=G?this.has(e):re.call(this._set,n),i=this._array.length;(!t||r)&&this._array.push(e),t||(G?this._set.set(e,i):this._set[n]=i)};N.prototype.has=function(e){if(G)return this._set.has(e);var r=ee.toSetString(e);return re.call(this._set,r)};N.prototype.indexOf=function(e){if(G){var r=this._set.get(e);if(r>=0)return r}else{var n=ee.toSetString(e);if(re.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};N.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};N.prototype.toArray=function(){return this._array.slice()};H.ArraySet=N;var le={},ae=$;function _e(o,e){var r=o.generatedLine,n=e.generatedLine,t=o.generatedColumn,i=e.generatedColumn;return n>r||n==r&&i>=t||ae.compareByGeneratedPositionsInflated(o,e)<=0}function W(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}W.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};W.prototype.add=function(e){_e(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};W.prototype.toArray=function(){return this._sorted||(this._array.sort(ae.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};le.MappingList=W;var B=V,S=$,z=H.ArraySet,pe=le.MappingList;function E(o){o||(o={}),this._file=S.getArg(o,"file",null),this._sourceRoot=S.getArg(o,"sourceRoot",null),this._skipValidation=S.getArg(o,"skipValidation",!1),this._sources=new z,this._names=new z,this._mappings=new pe,this._sourcesContents=null}E.prototype._version=3;E.fromSourceMap=function(e){var r=e.sourceRoot,n=new E({file:e.file,sourceRoot:r});return e.eachMapping(function(t){var i={generated:{line:t.generatedLine,column:t.generatedColumn}};t.source!=null&&(i.source=t.source,r!=null&&(i.source=S.relative(r,i.source)),i.original={line:t.originalLine,column:t.originalColumn},t.name!=null&&(i.name=t.name)),n.addMapping(i)}),e.sources.forEach(function(t){var i=t;r!==null&&(i=S.relative(r,t)),n._sources.has(i)||n._sources.add(i);var u=e.sourceContentFor(t);u!=null&&n.setSourceContent(t,u)}),n};E.prototype.addMapping=function(e){var r=S.getArg(e,"generated"),n=S.getArg(e,"original",null),t=S.getArg(e,"source",null),i=S.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,t,i),t!=null&&(t=String(t),this._sources.has(t)||this._sources.add(t)),i!=null&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:t,name:i})};E.prototype.setSourceContent=function(e,r){var n=e;this._sourceRoot!=null&&(n=S.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[S.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[S.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};E.prototype.applySourceMap=function(e,r,n){var t=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);t=e.file}var i=this._sourceRoot;i!=null&&(t=S.relative(i,t));var u=new z,f=new z;this._mappings.unsortedForEach(function(l){if(l.source===t&&l.originalLine!=null){var c=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});c.source!=null&&(l.source=c.source,n!=null&&(l.source=S.join(n,l.source)),i!=null&&(l.source=S.relative(i,l.source)),l.originalLine=c.line,l.originalColumn=c.column,c.name!=null&&(l.name=c.name))}var h=l.source;h!=null&&!u.has(h)&&u.add(h);var p=l.name;p!=null&&!f.has(p)&&f.add(p)},this),this._sources=u,this._names=f,e.sources.forEach(function(l){var c=e.sourceContentFor(l);c!=null&&(n!=null&&(l=S.join(n,l)),i!=null&&(l=S.relative(i,l)),this.setSourceContent(l,c))},this)};E.prototype._validateMapping=function(e,r,n,t){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!t)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:t}))}};E.prototype._serializeMappings=function(){for(var e=0,r=1,n=0,t=0,i=0,u=0,f="",l,c,h,p,v=this._mappings.toArray(),m=0,w=v.length;m<w;m++){if(c=v[m],l="",c.generatedLine!==r)for(e=0;c.generatedLine!==r;)l+=";",r++;else if(m>0){if(!S.compareByGeneratedPositionsInflated(c,v[m-1]))continue;l+=","}l+=B.encode(c.generatedColumn-e),e=c.generatedColumn,c.source!=null&&(p=this._sources.indexOf(c.source),l+=B.encode(p-u),u=p,l+=B.encode(c.originalLine-1-t),t=c.originalLine-1,l+=B.encode(c.originalColumn-n),n=c.originalColumn,c.name!=null&&(h=this._names.indexOf(c.name),l+=B.encode(h-i),i=h)),f+=l}return f};E.prototype._generateSourcesContent=function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=S.relative(r,n));var t=S.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)};E.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};E.prototype.toString=function(){return JSON.stringify(this.toJSON())};K.SourceMapGenerator=E;var q={},ce={};(function(o){o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2;function e(r,n,t,i,u,f){var l=Math.floor((n-r)/2)+r,c=u(t,i[l],!0);return c===0?l:c>0?n-l>1?e(l,n,t,i,u,f):f==o.LEAST_UPPER_BOUND?n<i.length?n:-1:l:l-r>1?e(r,l,t,i,u,f):f==o.LEAST_UPPER_BOUND?l:r<0?-1:r}o.search=function(n,t,i,u){if(t.length===0)return-1;var f=e(-1,t.length,n,t,i,u||o.GREATEST_LOWER_BOUND);if(f<0)return-1;for(;f-1>=0&&i(t[f],t[f-1],!0)===0;)--f;return f}})(ce);var fe={};function J(o,e,r){var n=o[e];o[e]=o[r],o[r]=n}function me(o,e){return Math.round(o+Math.random()*(e-o))}function k(o,e,r,n){if(r<n){var t=me(r,n),i=r-1;J(o,t,n);for(var u=o[n],f=r;f<n;f++)e(o[f],u)<=0&&(i+=1,J(o,i,f));J(o,i+1,f);var l=i+1;k(o,e,r,l-1),k(o,e,l+1,n)}}fe.quickSort=function(o,e){k(o,e,0,o.length-1)};var g=$,ne=ce,T=H.ArraySet,ye=V,U=fe.quickSort;function y(o,e){var r=o;return typeof o=="string"&&(r=g.parseSourceMapInput(o)),r.sections!=null?new R(r,e):new L(r,e)}y.fromSourceMap=function(o,e){return L.fromSourceMap(o,e)};y.prototype._version=3;y.prototype.__generatedMappings=null;Object.defineProperty(y.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});y.prototype.__originalMappings=null;Object.defineProperty(y.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});y.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return n===";"||n===","};y.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};y.GENERATED_ORDER=1;y.ORIGINAL_ORDER=2;y.GREATEST_LOWER_BOUND=1;y.LEAST_UPPER_BOUND=2;y.prototype.eachMapping=function(e,r,n){var t=r||null,i=n||y.GENERATED_ORDER,u;switch(i){case y.GENERATED_ORDER:u=this._generatedMappings;break;case y.ORIGINAL_ORDER:u=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var f=this.sourceRoot;u.map(function(l){var c=l.source===null?null:this._sources.at(l.source);return c=g.computeSourceURL(f,c,this._sourceMapURL),{source:c,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(e,t)};y.prototype.allGeneratedPositionsFor=function(e){var r=g.getArg(e,"line"),n={source:g.getArg(e,"source"),originalLine:r,originalColumn:g.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var t=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",g.compareByOriginalPositions,ne.LEAST_UPPER_BOUND);if(i>=0){var u=this._originalMappings[i];if(e.column===void 0)for(var f=u.originalLine;u&&u.originalLine===f;)t.push({line:g.getArg(u,"generatedLine",null),column:g.getArg(u,"generatedColumn",null),lastColumn:g.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++i];else for(var l=u.originalColumn;u&&u.originalLine===r&&u.originalColumn==l;)t.push({line:g.getArg(u,"generatedLine",null),column:g.getArg(u,"generatedColumn",null),lastColumn:g.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++i]}return t};q.SourceMapConsumer=y;function L(o,e){var r=o;typeof o=="string"&&(r=g.parseSourceMapInput(o));var n=g.getArg(r,"version"),t=g.getArg(r,"sources"),i=g.getArg(r,"names",[]),u=g.getArg(r,"sourceRoot",null),f=g.getArg(r,"sourcesContent",null),l=g.getArg(r,"mappings"),c=g.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);u&&(u=g.normalize(u)),t=t.map(String).map(g.normalize).map(function(h){return u&&g.isAbsolute(u)&&g.isAbsolute(h)?g.relative(u,h):h}),this._names=T.fromArray(i.map(String),!0),this._sources=T.fromArray(t,!0),this._absoluteSources=this._sources.toArray().map(function(h){return g.computeSourceURL(u,h,e)}),this.sourceRoot=u,this.sourcesContent=f,this._mappings=l,this._sourceMapURL=e,this.file=c}L.prototype=Object.create(y.prototype);L.prototype.consumer=y;L.prototype._findSourceIndex=function(o){var e=o;if(this.sourceRoot!=null&&(e=g.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==o)return r;return-1};L.fromSourceMap=function(e,r){var n=Object.create(L.prototype),t=n._names=T.fromArray(e._names.toArray(),!0),i=n._sources=T.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(m){return g.computeSourceURL(n.sourceRoot,m,r)});for(var u=e._mappings.toArray().slice(),f=n.__generatedMappings=[],l=n.__originalMappings=[],c=0,h=u.length;c<h;c++){var p=u[c],v=new he;v.generatedLine=p.generatedLine,v.generatedColumn=p.generatedColumn,p.source&&(v.source=i.indexOf(p.source),v.originalLine=p.originalLine,v.originalColumn=p.originalColumn,p.name&&(v.name=t.indexOf(p.name)),l.push(v)),f.push(v)}return U(n.__originalMappings,g.compareByOriginalPositions),n};L.prototype._version=3;Object.defineProperty(L.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function he(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}L.prototype._parseMappings=function(e,r){for(var n=1,t=0,i=0,u=0,f=0,l=0,c=e.length,h=0,p={},v={},m=[],w=[],M,b,C,I,F;h<c;)if(e.charAt(h)===";")n++,h++,t=0;else if(e.charAt(h)===",")h++;else{for(M=new he,M.generatedLine=n,I=h;I<c&&!this._charIsMappingSeparator(e,I);I++);if(b=e.slice(h,I),C=p[b],C)h+=b.length;else{for(C=[];h<I;)ye.decode(e,h,v),F=v.value,h=v.rest,C.push(F);if(C.length===2)throw new Error("Found a source, but no line and column");if(C.length===3)throw new Error("Found a source and line, but no column");p[b]=C}M.generatedColumn=t+C[0],t=M.generatedColumn,C.length>1&&(M.source=f+C[1],f+=C[1],M.originalLine=i+C[2],i=M.originalLine,M.originalLine+=1,M.originalColumn=u+C[3],u=M.originalColumn,C.length>4&&(M.name=l+C[4],l+=C[4])),w.push(M),typeof M.originalLine=="number"&&m.push(M)}U(w,g.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,U(m,g.compareByOriginalPositions),this.__originalMappings=m};L.prototype._findMapping=function(e,r,n,t,i,u){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[t]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[t]);return ne.search(e,r,i,u)};L.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};L.prototype.originalPositionFor=function(e){var r={generatedLine:g.getArg(e,"line"),generatedColumn:g.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",g.compareByGeneratedPositionsDeflated,g.getArg(e,"bias",y.GREATEST_LOWER_BOUND));if(n>=0){var t=this._generatedMappings[n];if(t.generatedLine===r.generatedLine){var i=g.getArg(t,"source",null);i!==null&&(i=this._sources.at(i),i=g.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var u=g.getArg(t,"name",null);return u!==null&&(u=this._names.at(u)),{source:i,line:g.getArg(t,"originalLine",null),column:g.getArg(t,"originalColumn",null),name:u}}}return{source:null,line:null,column:null,name:null}};L.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};L.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var t=e;this.sourceRoot!=null&&(t=g.relative(this.sourceRoot,t));var i;if(this.sourceRoot!=null&&(i=g.urlParse(this.sourceRoot))){var u=t.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(u))return this.sourcesContent[this._sources.indexOf(u)];if((!i.path||i.path=="/")&&this._sources.has("/"+t))return this.sourcesContent[this._sources.indexOf("/"+t)]}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};L.prototype.generatedPositionFor=function(e){var r=g.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:g.getArg(e,"line"),originalColumn:g.getArg(e,"column")},t=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",g.compareByOriginalPositions,g.getArg(e,"bias",y.GREATEST_LOWER_BOUND));if(t>=0){var i=this._originalMappings[t];if(i.source===n.source)return{line:g.getArg(i,"generatedLine",null),column:g.getArg(i,"generatedColumn",null),lastColumn:g.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};q.BasicSourceMapConsumer=L;function R(o,e){var r=o;typeof o=="string"&&(r=g.parseSourceMapInput(o));var n=g.getArg(r,"version"),t=g.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new T,this._names=new T;var i={line:-1,column:0};this._sections=t.map(function(u){if(u.url)throw new Error("Support for url field in sections not implemented.");var f=g.getArg(u,"offset"),l=g.getArg(f,"line"),c=g.getArg(f,"column");if(l<i.line||l===i.line&&c<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=f,{generatedOffset:{generatedLine:l+1,generatedColumn:c+1},consumer:new y(g.getArg(u,"map"),e)}})}R.prototype=Object.create(y.prototype);R.prototype.constructor=y;R.prototype._version=3;Object.defineProperty(R.prototype,"sources",{get:function(){for(var o=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)o.push(this._sections[e].consumer.sources[r]);return o}});R.prototype.originalPositionFor=function(e){var r={generatedLine:g.getArg(e,"line"),generatedColumn:g.getArg(e,"column")},n=ne.search(r,this._sections,function(i,u){var f=i.generatedLine-u.generatedOffset.generatedLine;return f||i.generatedColumn-u.generatedOffset.generatedColumn}),t=this._sections[n];return t?t.consumer.originalPositionFor({line:r.generatedLine-(t.generatedOffset.generatedLine-1),column:r.generatedColumn-(t.generatedOffset.generatedLine===r.generatedLine?t.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};R.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};R.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var t=this._sections[n],i=t.consumer.sourceContentFor(e,!0);if(i)return i}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};R.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(g.getArg(e,"source"))!==-1){var t=n.consumer.generatedPositionFor(e);if(t){var i={line:t.line+(n.generatedOffset.generatedLine-1),column:t.column+(n.generatedOffset.generatedLine===t.line?n.generatedOffset.generatedColumn-1:0)};return i}}}return{line:null,column:null}};R.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var t=this._sections[n],i=t.consumer._generatedMappings,u=0;u<i.length;u++){var f=i[u],l=t.consumer._sources.at(f.source);l=g.computeSourceURL(t.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var c=null;f.name&&(c=t.consumer._names.at(f.name),this._names.add(c),c=this._names.indexOf(c));var h={source:l,generatedLine:f.generatedLine+(t.generatedOffset.generatedLine-1),generatedColumn:f.generatedColumn+(t.generatedOffset.generatedLine===f.generatedLine?t.generatedOffset.generatedColumn-1:0),originalLine:f.originalLine,originalColumn:f.originalColumn,name:c};this.__generatedMappings.push(h),typeof h.originalLine=="number"&&this.__originalMappings.push(h)}U(this.__generatedMappings,g.compareByGeneratedPositionsDeflated),U(this.__originalMappings,g.compareByOriginalPositions)};q.IndexedSourceMapConsumer=R;var ge={},Se=K.SourceMapGenerator,Q=$,Ce=/(\r?\n)/,Le=10,j="$$$isSourceNode$$$";function A(o,e,r,n,t){this.children=[],this.sourceContents={},this.line=o??null,this.column=e??null,this.source=r??null,this.name=t??null,this[j]=!0,n!=null&&this.add(n)}A.fromStringWithSourceMap=function(e,r,n){var t=new A,i=e.split(Ce),u=0,f=function(){var v=w(),m=w()||"";return v+m;function w(){return u<i.length?i[u++]:void 0}},l=1,c=0,h=null;return r.eachMapping(function(v){if(h!==null)if(l<v.generatedLine)p(h,f()),l++,c=0;else{var m=i[u]||"",w=m.substr(0,v.generatedColumn-c);i[u]=m.substr(v.generatedColumn-c),c=v.generatedColumn,p(h,w),h=v;return}for(;l<v.generatedLine;)t.add(f()),l++;if(c<v.generatedColumn){var m=i[u]||"";t.add(m.substr(0,v.generatedColumn)),i[u]=m.substr(v.generatedColumn),c=v.generatedColumn}h=v},this),u<i.length&&(h&&p(h,f()),t.add(i.splice(u).join(""))),r.sources.forEach(function(v){var m=r.sourceContentFor(v);m!=null&&(n!=null&&(v=Q.join(n,v)),t.setSourceContent(v,m))}),t;function p(v,m){if(v===null||v.source===void 0)t.add(m);else{var w=n?Q.join(n,v.source):v.source;t.add(new A(v.originalLine,v.originalColumn,w,m,v.name))}}};A.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[j]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};A.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[j]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};A.prototype.walk=function(e){for(var r,n=0,t=this.children.length;n<t;n++)r=this.children[n],r[j]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};A.prototype.join=function(e){var r,n,t=this.children.length;if(t>0){for(r=[],n=0;n<t-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this};A.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[j]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this};A.prototype.setSourceContent=function(e,r){this.sourceContents[Q.toSetString(e)]=r};A.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][j]&&this.children[r].walkSourceContents(e);for(var t=Object.keys(this.sourceContents),r=0,n=t.length;r<n;r++)e(Q.fromSetString(t[r]),this.sourceContents[t[r]])};A.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};A.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new Se(e),t=!1,i=null,u=null,f=null,l=null;return this.walk(function(c,h){r.code+=c,h.source!==null&&h.line!==null&&h.column!==null?((i!==h.source||u!==h.line||f!==h.column||l!==h.name)&&n.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:r.line,column:r.column},name:h.name}),i=h.source,u=h.line,f=h.column,l=h.name,t=!0):t&&(n.addMapping({generated:{line:r.line,column:r.column}}),i=null,t=!1);for(var p=0,v=c.length;p<v;p++)c.charCodeAt(p)===Le?(r.line++,r.column=0,p+1===v?(i=null,t=!1):t&&n.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:r.line,column:r.column},name:h.name})):r.column++}),this.walkSourceContents(function(c,h){n.setSourceContent(c,h)}),{code:r.code,map:n}};ge.SourceNode=A;Z.SourceMapGenerator=K.SourceMapGenerator;Z.SourceMapConsumer=q.SourceMapConsumer;Z.SourceNode=ge.SourceNode;export{Z as s};
