regulations and the provisions of this section that such regulations are implementing. (D) Penalties A person that violates, attempts to violate, or causes a violation of any sanction authorized by this section, or any regulation, license, or order issued to carry out such sanctions, shall be subject to the penalties set forth in subsections (b) and (c) of section 206 of the International Emergency Economic Powers Act ( 50 U.S.C. 1705 ) to the same extent as a person that commits an unlawful act described in subsection (a) of that section. (E) Exceptions The following activities shall not be subject to the imposition of sanctions under this section: (i) Any authorized intelligence, law enforcement, or national security activities of the United States. (ii) Any transaction necessary to comply with United States obligations under the Agreement between the United Nations and the United States of America regarding the Headquarters of the United States, signed at Lake Success June 26, 1947, and entered into force November 21, 1947, or the Convention on Consular Relations, done at Vienna April 24, 1963, and entered into force March 19, 1967, or any other United States international agreement. (F) Waiver The President may, on a case-by-case basis and for periods not to exceed 180 days each, waive the application of sanctions imposed with respect to a foreign person under this section if the President certifies to the appropriate congressional committees, not later than 15 days before such waiver is to take effect, that the waiver is vital to the national security interests of the United States. (3) Sunset This section, and the authorities provided by this section, shall terminate on the date that is 5 years after the date of the enactment of this Act. (h) Specific determinations with respect to the imposition of sanctions (1) Determination relating to bytedance, ltd., tiktok, and related entities (A) In general Not later than 90 days after the date of the enactment of this Act, and every 180 days thereafter for 3