encodedScript:PHNjcmlwdD4KKGZ1bmN0aW9uICgpIHsKICAvLyBXZWIgRm9udCBMb2FkZXIgY29tcGF0aWJpbGl0eSAoaHR0cHM6Ly9naXRodWIuY29tL3R5cGVraXQvd2ViZm9udGxvYWRlcikKICB2YXIgbW9kdWxlcyA9IHsKICAgIHR5cGVraXQ6ICJodHRwczovL3VzZS50eXBla2l0Lm5ldCIsCiAgICBnb29nbGU6ICJodHRwczovL2ZvbnRzLmdvb2dsZWFwaXMuY29tLyIKICB9OwoKICB2YXIgbG9hZCA9IGZ1bmN0aW9uIChjb25maWcpIHsKICAgIHNldFRpbWVvdXQoZnVuY3Rpb24gKCkgewogICAgICB2YXIgYSA9IHdpbmRvdy5jb25zZW50QXBpOwoKICAgICAgLy8gT25seSB3aGVuIGJsb2NrZXIgaXMgYWN0aXZlCiAgICAgIGlmIChhKSB7CiAgICAgICAgLy8gSXRlcmF0ZSBhbGwgbW9kdWxlcyBhbmQgaGFuZGxlIGluIGEgc2luZ2xlIGBXZWJGb250LmxvYWRgCiAgICAgICAgT2JqZWN0LmtleXMobW9kdWxlcykuZm9yRWFjaChmdW5jdGlvbiAobW9kdWxlKSB7CiAgICAgICAgICB2YXIgbmV3Q29uZmlnV2l0aG91dE90aGVyTW9kdWxlcyA9IEpTT04ucGFyc2UoCiAgICAgICAgICAgIEpTT04uc3RyaW5naWZ5KGNvbmZpZykKICAgICAgICAgICk7CiAgICAgICAgICBPYmplY3Qua2V5cyhtb2R1bGVzKS5mb3JFYWNoKGZ1bmN0aW9uICh0b1JlbW92ZSkgewogICAgICAgICAgICBpZiAodG9SZW1vdmUgIT09IG1vZHVsZSkgewogICAgICAgICAgICAgIGRlbGV0ZSBuZXdDb25maWdXaXRob3V0T3RoZXJNb2R1bGVzW3RvUmVtb3ZlXTsKICAgICAgICAgICAgfQogICAgICAgICAgfSk7CgogICAgICAgICAgaWYgKG5ld0NvbmZpZ1dpdGhvdXRPdGhlck1vZHVsZXNbbW9kdWxlXSkgewogICAgICAgICAgICBhLnVuYmxvY2sobW9kdWxlc1ttb2R1bGVdKS50aGVuKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICB2YXIgb3JpZ2luYWxMb2FkID0gd2luZG93LldlYkZvbnQubG9hZDsKICAgICAgICAgICAgICBpZiAob3JpZ2luYWxMb2FkICE9PSBsb2FkKSB7CiAgICAgICAgICAgICAgICBvcmlnaW5hbExvYWQobmV3Q29uZmlnV2l0aG91dE90aGVyTW9kdWxlcyk7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgfQogICAgfSwgMCk7CiAgfTsKCiAgaWYgKCF3aW5kb3cuV2ViRm9udCkgewogICAgd2luZG93LldlYkZvbnQgPSB7CiAgICAgIGxvYWQ6IGxvYWQKICAgIH07CiAgfQp9KSgpOwo8L3NjcmlwdD4=encodedScript:ZW5jb2RlZFNjcmlwdDpQSE5qY21sd2RENEtLR1oxYm1OMGFXOXVLSGNzWkNsN2QxdGtYVDEzVzJSZGZIeGJYVHQzTG1kMFlXYzlablZ1WTNScGIyNG9LWHQzVzJSZExuQjFjMmdvWVhKbmRXMWxiblJ6S1gxOUtTaDNhVzVrYjNjc0ltUmhkR0ZNWVhsbGNpSXBPd284TDNOamNtbHdkRDQ9
loader image

Kontakt

Kontakt zu uns

Alte Schmelze 16, 65201 Wiesbaden