Through diplomatic ties with Hungary it managed to retain its independence past the mid-12th century.
通过与匈牙利的外交关系，它在12世纪中期保持了独立。