的 => about (change noun into na-adjective or adverb) N3
~ひょうしに(~拍子に)   => the moment [A], unintentionally / inadvertently caused something to happen N1
~はめになる(~羽目になる)     => to get stuck with (some job); to end up with (something unpleasant) N1