import{__exports as t}from"../../../_virtual/index58.mjs";var n;function e(){return n||(n=1,function(t){t.__esModule=!0,t.LinesAndColumns=void 0;var n="\n",e=function(){function t(t){this.string=t;for(var e=[0],s=0;s<t.length;)switch(t[s]){case n:s+=1,e.push(s);break;case"\r":t[s+=1]===n&&(s+=1),e.push(s);break;default:s++}this.offsets=e}return t.prototype.locationForIndex=function(t){if(t<0||t>this.string.length)return null;for(var n=0,e=this.offsets;e[n+1]<=t;)n++;return{line:n,column:t-e[n]}},t.prototype.indexForLocation=function(t){var n=t.line,e=t.column;return n<0||n>=this.offsets.length||e<0||e>this.lengthOfLine(n)?null:this.offsets[n]+e},t.prototype.lengthOfLine=function(t){var n=this.offsets[t];return(t===this.offsets.length-1?this.string.length:this.offsets[t+1])-n},t}();t.LinesAndColumns=e,t.default=e}(t)),t}export{e as __require};