{"version":3,"file":"getCountOfSymbolsInSelection.mjs","sources":["../../../../src/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.ts"],"sourcesContent":["import getSymbolsInPatternWithPosition from '../getSymbolsInPatternWithPosition';\n\nconst getCountOfSymbolsInSelection = (\n  selectionStart: number,\n  selectionEnd: number,\n  pattern: string,\n) =>\n  getSymbolsInPatternWithPosition(pattern).filter(\n    (symbol) => symbol.index >= selectionStart && symbol.index < selectionEnd,\n  ).length;\n\nexport default getCountOfSymbolsInSelection;\n"],"names":["getCountOfSymbolsInSelection","selectionStart","selectionEnd","pattern","getSymbolsInPatternWithPosition","filter","symbol","index","length"],"mappings":";;AAEA,MAAMA,4BAA4B,GAAGA,CACnCC,cAAsB,EACtBC,YAAoB,EACpBC,OAAe,KAEfC,+BAA+B,CAACD,OAAO,CAAC,CAACE,MAAM,CAC5CC,MAAM,IAAKA,MAAM,CAACC,KAAK,IAAIN,cAAc,IAAIK,MAAM,CAACC,KAAK,GAAGL,YAAY,CAC1E,CAACM;;;;"}