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dG9yKCdidXR0b24nKTsKCQlsZXQgYnV0dG9udGV4dCA9IGJ1dHRvbi5pbm5lclRleHQudHJpbSgpLnRvTG93ZXJDYXNlKCk7CgkJaWYgKGJ1dHRvbnRleHQuaW5kZXhPZignY29ubmVjdCcpICE9IC0xKQoJCXsKCQkJY29uc29sZS5sb2coYCR7dXNlcm5hbWV9IC0+ICR7am9ifSBDTElDSyFgKTsKCQkJYnV0dG9uLmNsaWNrKCk7CgkJfQoJfQp9CgpzZXRUaW1lb3V0KCgpPT57CmNvbnNvbGUubG9nKCdDaGFuZ2UgcGFnZScpOwpkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCdkaXYuZW1iZXItdmlldyBidXR0b25bYXJpYS1sYWJlbD0iTmV4dCJdJykuY2xpY2soKTsKfSwgMjAwMCk7Cgpjb25zb2xlLmxvZygnQUxMRUVFJyk7IH0sIDUwMDApOw==
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top