Converts forward pagination arguments to offset/limit.
- getFirst determines the page size (defaults to
defaultPageSize). - getAfter cursor encodes the index of the last-seen item; this decodes it and adds 1 so the returned offset points to the first item after that cursor.
- If
after is absent, pagination starts from offset 0.