adj + indeclinable particle
Analysis. antaṃ + api; the accusative antaṃ ('end, limit') is joined with the indeclinable particle api ('also, even, moreover'), creating the sense 'even to the end' or 'up to the very limit'. The sandhi contracts -aṃ api to -ampi.
Etymology. anta comes from PIE *h₂ent- 'front, face' (Latin ante 'before', Greek ánthos 'flower', English end). The concrete sense is 'that which faces you' or 'boundary'; the abstract senses (goal, inside, extreme) develop from the idea of a limit or terminal point.
Meanings from the Digital Pāḷi Dictionary; morphology and etymology by Claude.
Lite mode — plain HTML for e-readers and old browsers. Full version