{"file":"E:\\np-dms\\lcbp3\\node_modules\\.pnpm\\iterare@1.2.1\\node_modules\\iterare\\lib\\slice.js","mappings":"AAAA,YAAY,CAAC;AACb,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,aAAa;IACf;;;;OAIG;IACH,YAAY,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,QAAQ;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACf,CAAC;IACD,IAAI;QACA,6BAA6B;QAC7B,OAAO,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;YACzB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YAClC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;gBACd,OAAO,MAAM,CAAC;YAClB,CAAC;YACD,IAAI,CAAC,CAAC,EAAE,CAAC;QACb,CAAC;QACD,6BAA6B;QAC7B,IAAI,CAAC,CAAC,EAAE,CAAC;QACT,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YACrB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC1B,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;IAC9B,CAAC;CACJ;AACD,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC","names":[],"sources":["E:\\np-dms\\lcbp3\\node_modules\\.pnpm\\iterare@1.2.1\\node_modules\\iterare\\lib\\slice.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nclass SliceIterator {\n /**\n * @param {Iterator} source Source Iterator\n * @param {number} start Zero-based positive start index, inclusive\n * @param {number} end Zero-based positive end index, exclusive, defaults to end of iterator\n */\n constructor(source, start, end = Infinity) {\n this.source = source;\n this.start = start;\n this.end = end;\n this.i = 0;\n }\n next() {\n // Skip elements before start\n while (this.i < this.start) {\n const result = this.source.next();\n if (result.done) {\n return result;\n }\n this.i++;\n }\n // Finish when end is reached\n this.i++;\n if (this.i >= this.end) {\n return { done: true };\n }\n return this.source.next();\n }\n}\nexports.SliceIterator = SliceIterator;\n//# sourceMappingURL=slice.js.map"],"version":3}