Why Iran’s Islamic Republic is more prepared than Washington expected.