diff --git a/маджонг_2.0.0.html b/маджонг_2.0.0.html index ba71fcb..e3fe2d4 100644 --- a/маджонг_2.0.0.html +++ b/маджонг_2.0.0.html @@ -12,49 +12,77 @@ var murom = муром; [ "муром.загрузка_1.0.1", -"LyoKICogTk9URSBPbmx5IEFTQ0lJIGlzIGFsbG93ZWQgaW4gdGhpcyBsb2FkaW5nIG1vZHVsZQogKiBOT1RFIGJlY2F1c2UgaXQncyBkZWNpcGhlcmVkIHdpdGggYnRvYSgpIGNhbGwsCiAqIE5PVEUgd2hpY2ggY2FuJ3QgaGFuZGxlIFVuaWNvZGUuCiAqIE5PVEUgSG93ZXZlciwgbXVyb20uYXRvYi9idG9hIGZ1bmN0aW9ucyAoZGVmaW5lZCBoZXJlKQogKiBOT1RFIHdvcmsgZmluZSB3aXRoIFVuaWNvZGUsIHNvIHlvdSBhcmUgZnJlZQogKiBOT1RFIHRvIHVzZSBVbmljb2RlIGluIG90aGVyIG1vZHVsZXMKICovCgptdXJvbS5pbnN0YWxsTG9jYWxGb3JhZ2UgPSBmdW5jdGlvbigpCnsKLyoKICAgIGxvY2FsRm9yYWdlIC0tIE9mZmxpbmUgU3RvcmFnZSwgSW1wcm92ZWQKICAgIFZlcnNpb24gMS43LjMKICAgIGh0dHBzOi8vbG9jYWxmb3JhZ2UuZ2l0aHViLmlvL2xvY2FsRm9yYWdlCiAgICAoYykgMjAxMy0yMDE3IE1vemlsbGEsIEFwYWNoZSBMaWNlbnNlIDIuMAoqLwohZnVuY3Rpb24oYSl7aWYoIm9iamVjdCI9PXR5cGVvZiBleHBvcnRzJiYidW5kZWZpbmVkIiE9dHlwZW9mIG1vZHVsZSltb2R1bGUuZXhwb3J0cz1hKCk7ZWxzZSBpZigiZnVuY3Rpb24iPT10eXBlb2YgZGVmaW5lJiZkZWZpbmUuYW1kKWRlZmluZShbXSxhKTtlbHNle3ZhciBiO2I9InVuZGVmaW5lZCIhPXR5cGVvZiB3aW5kb3c/d2luZG93OiJ1bmRlZmluZWQi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InIG1vZHVsZSBiZWNhdXNlIGl0J3MgdHVybmVkIG9mZiIpOwogICAgICAgIH0KICAgICAgICBlbHNlCiAgICAgICAgewogICAgICAgICAgICB0cnkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgZXZhbChjb2RlKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBjYXRjaCAoZSkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgY29uc29sZS5lcnJvcigiQ291bGQgbm90IGxvYWQgJyIgKyBuYW1lICsgIicgbW9kdWxlOiAnIiArIGUgKyAiJyIpOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgfQogICAgCiAgICBtdXJvbS5zdGFydCgpOwp9OwoKbXVyb20ubG9hZEluZGV4ZWREQk1vZHVsZXMgPSBmdW5jdGlvbihjb21wbGV0aW9uSGFuZGxlcikKewogICAgLy8gU2VlIGlmIEluZGV4ZWREQiBoYXMgbW9kdWxlcy4KICAgIC8vIEluZGV4ZWREQiBtb2R1bGVzIG92ZXJyaWRlIHRob3NlIGNvbWluZyBmcm9tIEhUTUwuCiAgICBsb2NhbGZvcmFnZS5jb25maWcoeyBuYW1lOiAibXVyb20iIH0pOwogICAgbG9jYWxmb3JhZ2UuZ2V0SXRlbSgibW9kdWxlcyIsIGZ1bmN0aW9uKGVycm9yLCBtb2R1bGVzKSB7CiAgICAgICAgaWYgKG1vZHVsZXMpCiAgICAgICAgewogICAgICAgICAgICBtdXJvbS5tb2R1bGVzID0gbW9kdWxlczsKICAgICAgICAgICAgY29uc29sZS5kZWJ1ZygiTW9kdWxlcyBoYXZlIGJlZW4gbG9hZGVkIGZyb20gSW5kZXhlZERCIik7CiAgICAgICAgfQogICAgICAgIGlmIChlcnJvcikKICAgICAgICB7CiAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoIkNvdWxkIG5vdCBnZXQgbW9kdWxlcyBmcm9tIEluZGV4ZWREQjogJyIgKyBlcnJvciArICInIik7CiAgICAgICAgfQogICAgICAgIC8vIENvbnRpbnVl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lmIChtdXJvbS5tb2R1bGVTdGF0dXMoaSkgPT0gZmFsc2UpCiAgICAgICAgewogICAgICAgICAgICAvL2NvbnNvbGUud2FybigiU2tpcCBsb2FkaW5nICciICsgbmFtZSArICInIG1vZHVsZSBiZWNhdXNlIGl0J3MgdHVybmVkIG9mZiIpOwogICAgICAgIH0KICAgICAgICBlbHNlCiAgICAgICAgewogICAgICAgICAgICAvLyBOT1RFIERvIG5vdCBjYXRjaCBlcnJvciB0byBzZWUgZXJyb3IgbGluZSBudW1iZXJzIGluIGRlYnVnZ2VyIGNvbnNvbGUuCiAgICAgICAgICAgIGV2YWwoY29kZSk7CiAgICAgICAgICAgIC8qCiAgICAgICAgICAgIHRyeQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBldmFsKGNvZGUpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGNhdGNoIChlKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBjb25zb2xlLmVycm9yKCJDb3VsZCBub3QgbG9hZCAnIiArIG5hbWUgKyAiJyBtb2R1bGU6ICciICsgZSArICInIik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgKi8KICAgICAgICB9CiAgICB9CiAgICAKICAgIG11cm9tLnN0YXJ0KCk7Cn07CgptdXJvbS5sb2FkSW5kZXhlZERCTW9kdWxlcyA9IGZ1bmN0aW9uKGNvbXBsZXRpb25IYW5kbGVyKQp7CiAgICAvLyBTZWUgaWYgSW5kZXhlZERCIGhhcyBtb2R1bGVzLgogICAgLy8gSW5kZXhlZERCIG1vZHVsZXMgb3ZlcnJpZGUgdGhvc2UgY29taW5nIGZyb20gSFRNTC4KICAgIGxvY2FsZm9yYWdlLmNvbmZpZyh7IG5hbWU6ICJtdXJvbSIgfSk7CiAgICBsb2NhbGZvcmFnZS5nZXRJdGVtKCJtb2R1bGVzIiwgZnVuY3Rpb24oZXJyb3IsIG1vZHVsZXMpIHsKICAgICAgICBpZiAobW9kdWxlcykKICAgICAgICB7CiAgICAgICAgICAgIG11cm9tLm1vZHVsZXMgPSBtb2R1bGVzOwogICAgICAgICAgICBjb25zb2xlLmRlYnVnKCJNb2R1bGVzIGhhdmUgYmVlbiBsb2FkZWQgZnJvbSBJbmRleGVkREIiKTsKICAgICAgICB9CiAgICAgICAgaWYgKGVycm9yKQogICAgICAgIHsKICAgICAgICAgICAgY29uc29sZS5lcnJvcigiQ291bGQgbm90IGdldCBtb2R1bGVzIGZyb20gSW5kZXhlZERCOiAnIiArIGVycm9yICsgIiciKTsKICAgICAgICB9CiAgICAgICAgLy8gQ29udGludWUuCiAgICAgICAgY29tcGxldGlvbkhhbmRsZXIoKTsKICAgIH0pOwp9OwoKbXVyb20uaW5zdGFsbExvY2FsRm9yYWdlKCk7Cm11cm9tLmluc3RhbGxVbmljb2RlQmFzZTY0KCk7Ci8vIEluZGV4ZWREQiBtb2R1bGVzIG92ZXJyaWRlIEhUTUwgb25lcy4KbXVyb20ubG9hZEluZGV4ZWREQk1vZHVsZXMobXVyb20ubG9hZE1vZHVsZXMpOwo=", +{"status":true} ], [ -"муром.база_1.1.0", -"LyoKICoKICog0KHQutCw0YfQuNCy0LDQtdC80YvQuSDRhNCw0LnQuyAvIERvd25sb2FkZWQgZmlsZQogKgogKi8KCtC80YPRgNC+0Lwu0YTQsNC50LsgPSB7fTsK0LzRg9GA0L7QvC7RhNCw0LnQuy7QvdCw0YfQsNC70L4gPQpgCjwhRE9DVFlQRSBodG1sPgo8aHRtbD4KICAgIDxtZXRhIGNoYXJzZXQ9InV0Zi04Ij4KICAgIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsIGluaXRpYWwtc2NhbGU9MSI+CiAgICA8Ym9keT4KICAgICAgICA8c2NyaXB0Pgp2YXIg0LzRg9GA0L7QvCA9IHt9Owp2YXIgbXVyb20gPSDQvNGD0YDQvtC8OwrQvNGD0YDQvtC8LtC80L7QtNGD0LvQuCA9IFsKYDsK0LzRg9GA0L7QvC7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0ci5yZXBsYWNlKC97KFxkKyl9L2csIGZ1bmN0aW9uKG1hdGNoLCBudW1iZXIpIHsKICAgICAgICAgICAgICAgIHJldHVybiB0eXBlb2YgYXJnc1tudW1iZXJdICE9ICd1bmRlZmluZWQnCiAgICAgICAgICAgICAgICAgICAgPyBhcmdzW251bWJlcl0KICAgICAgICAgICAgICAgICAgICA6IG1hdGNoCiAgICAgICAgICAgICAgICA7CiAgICB9KTsKfQoKLy8gSmF2YVNjcmlwdCBlcXVpdmFsZW50IHRvIHByaW50Zi9TdHJpbmcuRm9ybWF0Ci8vIGh0dHBzOi8vc3RhY2tvdmVyZmxvdy5jb20vYS80NjczNDM2CmZ1bmN0aW9uIGZvcm1hdFN0cmluZygpCnsKICAgIC8vIEhvdyB0byBzaGlmdCDigJxhcmd1bWVudHPigJ0/CiAgICAvLyBodHRwczovL3N0YWNrb3ZlcmZsb3cuY29tL3F1ZXN0aW9ucy80Nzc1ODk1L2hvdy10by1zaGlmdC1hcmd1bWVudHMKICAgIHZhciBhcmdzID0gQXJyYXkucHJvdG90eXBlLnNsaWNlLmNhbGwoYXJndW1lbnRzKTsKICAgIHZhciBzdHIgPSBhcmdzLnNoaWZ0KCk7CiAgICByZXR1cm4gc3RyLnJlcGxhY2UoL3soXGQrKX0vZywgZnVuY3Rpb24obWF0Y2gsIG51bWJlcikgewogICAgICAgICAgICAgICAgcmV0dXJuIHR5cGVvZiBhcmdzW251bWJlcl0gIT0gJ3VuZGVmaW5lZCcKICAgICAgICAgICAgICAgICAgICA/IGFyZ3NbbnVtYmVyXQogICAgICAgICAgICAgICAgICAgIDogbWF0Y2gKICAgICAgICAgICAgICAgIDsKICAgIH0pOwp9CiAgICA=", +{"status":true} ], [ -"муром.редактор_1.0.0", -"0LzRg9GA0L7QvC7Qt9Cw0LPRgNGD0LfQuNGC0YxBQ0UgPSBmdW5jdGlvbigpCnsKICAgIC8vINCg0LXQtNCw0LrRgtC+0YAg0LrQvtC00LAgQUNFLgogICAgLy8gaH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0KXt2YXIgbj1uZXcgdShlLHQpO3JldHVybiBuLnNldFVuZG9NYW5hZ2VyKG5ldyBhKSxufSx0LlJhbmdlPXMsdC5FZGl0b3I9byx0LkVkaXRTZXNzaW9uPXUsdC5VbmRvTWFuYWdlcj1hLHQuVmlydHVhbFJlbmRlcmVyPWYsdC52ZXJzaW9uPXQuY29uZmlnLnZlcnNpb259KTsgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICBhY2UucmVxdWlyZShbImFjZS9hY2UiXSwgZnVuY3Rpb24oYSkgewogICAgICAgICAgICAgICAgICAgIGlmIChhKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGEuY29uZmlnLmluaXQodHJ1ZSk7CiAgICAgICAgICAgICAgICAgICAgICAgIGEuZGVmaW5lID0gYWNlLmRlZmluZTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgaWYgKCF3aW5kb3cuYWNlKQogICAgICAgICAgICAgICAgICAgICAgICB3aW5kb3cuYWNlID0gYTsKICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gYSkgaWYgKGEuaGFzT3duUHJvcGVydHkoa2V5KSkKICAgICAgICAgICAgICAgICAgICAgICAgd2luZG93LmFjZVtrZXldID0gYVtrZXldOwogICAgICAgICAgICAgICAgICAgIHdpbmRvdy5hY2VbImRlZmF1bHQiXSA9IHdpbmRvdy5hY2U7CiAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBtb2R1bGUgPT0gIm9iamVjdCIgJiYgdHlwZW9mIGV4cG9ydHMgPT0gIm9iamVjdCIgJiYgbW9kdWxlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG1vZHVsZS5leHBvcnRzID0gd2luZG93LmFjZTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSkoKTsKfTsKCtC80YPRgNC+0Lwu0LfQsNCz0YDRg9C30LjRgtGM0KDQ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bHNlOwogICAgICAgICAgICBpZiAo0L7RiNC40LHQutCwKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBjb25zb2xlLmVycm9yKCLQndC1INGD0LTQsNC70L7RgdGMINGB0L7RhdGA0LDQvdC40YLRjCDQvNC+0LTRg9C70Lg6ICciICsg0L7RiNC40LHQutCwICsgIiciKTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgfQogICAg0L/Rgy7RgdC+0YXRgNCw0L3QuNGC0Ywu0L/QvtC00L/QuNGB0LDRgtGM0JzQvdC+0LPQvihbCiAgICAgICAg0YHQvtGF0YDQsNC90LjRgtGM0JLRi9Cx0YDQsNC90L3Ri9C50JzQvtC00YPQu9GMLAogICAgICAgINGB0L7RhdGA0LDQvdC40YLRjCwKICAgIF0pOwoKICAgIC8vIEhvdyB0byBjcmVhdGUgYSBmaWxlIGluIG1lbW9yeSBmb3IgdXNlciB0byBkb3dubG9hZCwgYnV0IG5vdCB0aHJvdWdoIHNlcnZlcj8KICAgIC8vIGh0dHBzOi8vc3RhY2tvdmVyZmxvdy5jb20vYS8xODE5NzM0MQogICAgZnVuY3Rpb24g0YHQutCw0YfQsNGC0YwoKQogICAgewogICAgICAgIHZhciDRgdC+0LTQtdGA0LbQuNC80L7QtSA9INC80YPRgNC+0Lwu0YTQsNC50Lsu0L3QsNGH0LDQu9C+OwogICAgICAgIGZvciAodmFyINC90L7QvNC10YAgaW4g0LzRg9GA0L7QvC7QvNC+0LTRg9C70LgpCiAgICAgICAgewogICAgICAgICAgICB2YXIg0LzQvtC00YPQu9GMID0g0LzRg9GA0L7QvC7QvNC+0LTRg9C70Lhb0L3QvtC80LXRgF07CiAgICAgICAgICAgIHZhciDQuNC80Y8gPSDQvNC+0LTRg9C70YxbMF07CiAgICAgICAgICAgIHZhciDQutC+0LQ2NCA9INC80L7QtNGD0LvRjFsxXTsKICAgICAgICAgICAgdmFyINGB0LLQvtC50YHRgtCy0LAgPSDQvNC+0LTRg9C70Lgu0YHQstC+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AgZm9yICh2YXIgaSBpbiBpdGVtcykKICAgIHsKICAgICAgICB2YXIgaXRlbSA9IGl0ZW1zW2ldOwogICAgICAgIHZhciBuYW1lID0gaXRlbVswXTsKICAgICAgICB2YXIgY29kZTY0ID0gaXRlbVsxXTsKICAgICAgICB2YXIgcHJvcGVydGllcyA9ICh0eXBlb2YgaXRlbVsyXSAhPSAidW5kZWZpbmVkIikgPyBpdGVtWzJdIDoge307CiAgICAgICAgCiAgICAgICAgLy8gU3RhdHVzLgogICAgICAgIHZhciBzdGF0dXMgPSB0cnVlOwogICAgICAgIGlmICgic3RhdHVzIiBpbiBwcm9wZXJ0aWVzKQogICAgICAgIHsKICAgICAgICAgICAgc3RhdHVzID0gcHJvcGVydGllc1sic3RhdHVzIl07CiAgICAgICAgfQogICAgICAgIHZhciBtb2R1bGUgPSB7CiAgICAgICAgICAgICJuYW1lIjogbmFtZSwKICAgICAgICAgICAgImNvZGU2NCI6IGNvZGU2NCwKICAgICAgICAgICAgInN0YXR1cyI6IHN0YXR1cywKICAgICAgICB9OwogICAgICAgIHRoaXMubW9kdWxlcy5wdXNoKG1vZHVsZSk7CiAgICB9Cn07CgovKgogKgogKiDQodC10YDQuNCw0LvQuNC30L7QstCw0L3Ri9C1INC80L7QtNGD0LvQuAogKiBTZXJpYWxpemVkIG1vZHVsZXMKICoKICovCk9iamVjdC5kZWZpbmVQcm9wZXJ0eShNb2R1bGVzLnByb3RvdHlwZSwgInNlcmlhbGl6ZWRNb2R1bGVzIiwgewogICAgZ2V0OiBmdW5jdGlvbigpCiAgICB7CiAgICAgICAgdmFyIGl0ZW1zID0gW107CiAgICAgICAgZm9yICh2YXIgaSBpbiB0aGlzLm1vZHVsZXMpCiAgICAgICAgewogICAgICAgICAgICB2YXIgaXRlbSA9IFtdOwogICAgICAgICAgICB2YXIgbSA9IHRoaXMubW9kdWxlc1tpXTsKICAgICAgICAgICAgaXRlbS5wdXNoKG0ubmFtZSk7CiAgICAgICAgICAgIGl0ZW0ucHVzaChtLmNvZGU2NCk7CiAgICAgICAgICAgIHZhciBwcm9wZXJ0aWVzID0ge307CiAgICAgICAgICAgIHByb3BlcnRpZXNbInN0YXR1cyJdID0gbS5zdGF0dXM7CiAgICAgICAgICAgIGl0ZW0ucHVzaChwcm9wZXJ0aWVzKTsKICAgICAgICAgICAgCiAgICAgICAgICAgIGl0ZW1zLnB1c2goaXRlbSk7CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gaXRlbXM7CiAgICB9Cn0pOwpPYmplY3QuZGVmaW5lUHJvcGVydHkoTW9kdWxlcy5wcm90b3R5cGUsICLRgdC10YDQuNCw0LvQuNC30L7QstCw0L3QvdGL0LXQnNC+0LTRg9C70LgiLCB7CiAgICBnZXQ6IGZ1bmN0aW9uKCkKICAgIHsKICAgICAgICByZXR1cm4gdGhpcy5zZXJpYWxpemVkTW9kdWxlczsKICAgIH0KfSk7CgovKgogKgogKiDQndCw0LnRgtC4INC80L7QtNGD0LvRjCDQv9C+INC40LzQtdC90LgKICogRmluZCBtb2R1bGUgYnkgbmFtZQogKgogKi8KTW9kdWxlcy5wcm90b3R5cGUubW9kdWxlID0gZnVuY3Rpb24obmFtZSkKewogICAgZm9yICh2YXIgaSBpbiB0aGlzLm1vZHVsZXMpCiAgICB7CiAgICAgICAgdmFyIG0gPSB0aGlzLm1vZHVsZXNbaV07CiAgICAgICAgaWYgKG0ubmFtZSA9PSBuYW1lKQogICAgICAgIHsKICAgICAgICAgICAgcmV0dXJuIG07CiAgICAgICAgfQogICAgfQogICAgCiAgICByZXR1cm4gbnVsbDsKfTsKTW9kdWxlcy5wcm90b3R5cGUu0LzQvtC00YPQu9GMID0gZnVuY3Rpb24o0LjQvNGPKQp7CiAgICByZXR1cm4gdGhpcy5tb2R1bGUo0LjQvNGPKTsKfQoKLyoKICoKICog0J3QsNC50YLQuCDQvdC+0LzQtdGAINC80L7QtNGD0LvRjyDQv9C+INC40LzQtdC90LgKICogRmluZCBtb2R1bGUncyBvcmRlciBieSBuYW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Gluc3RhbmNlCiAqCiAqLwp2YXIgTU9EID0gbmV3IE1vZHVsZXMobXVyb20ubW9kdWxlcyk7CnZhciDQnNCe0JQgPSBNT0Q7", {"status":true} ], [ -"функции_1.0.1", -"LyoKICoKICog0J/QvtC70YPRh9C40YLRjCDQvNC+0LTRg9C70Ywg0L/QviDQuNC80LXQvdC4CiAqCiAqLwpmdW5jdGlvbiDQvNC+0LTRg9C70Ywo0LjQvNGPKQp7CiAgICBmb3IgKHZhciDQvdC+0LzQtdGAIGluINC80YPRgNC+0Lwu0LzQvtC00YPQu9C4KQogICAgewogICAgICAgIHZhciDQvCA9INC80YPRgNC+0Lwu0LzQvtC00YPQu9C4W9C90L7QvNC10YBdOwogICAgICAgIGlmICjQvFswXSA9PSDQuNC80Y8pCiAgICAgICAgewogICAgICAgICAgICByZXR1cm4g0Lw7CiAgICAgICAgfQogICAgfQogICAgCiAgICByZXR1cm4gbnVsbDsKfQoKLyoKICoKICog0JfQsNCz0YDRg9C30LjRgtGMINGB0YLQvtGA0L7QvdC90LjQuSDRgdC60YDQuNC/0YIg0LIg0YLRjdCzIHNjcmlwdAogKgogKi8KZnVuY3Rpb24g0LfQsNCz0YDRg9C30LjRgtGM0KHQutGA0LjQv9GCKNC60L7QtCkKewogICAgdmFyINGB0LrRgNC40L/RgiA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoInNjcmlwdCIpOwogICAg0YHQutGA0LjQv9GCLmlubmVySFRNTCA9INC60L7QtDsKICAgIGRvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQo0YHQutGA0LjQv9GCKTsKfQoKLyoKICoKICog0KPQstC10LTQvtC80LjRgtGMINC+0LEg0L7QsdGL0YfQvdC+0Lwg0L/Rg9GB0LrQtQogKgogKi8K0LzRg9GA0L7QvC7QvtCx0YvRh9C90YvQudCf0YPRgdC6ID0gbmV3INCj0LLQtdC00L7QvNC40YLQtdC70YwoKTsK0LzRg9GA0L7QvC7Qv9GD0YHQui7Qv9C+0LTQ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KTsKICAgIGZvciAodmFyINC90L7QvNC10YAgaW4g0LDRgNCz0LgpCiAgICB7CiAgICAgICAgdmFyINCw0YDQsyA9INCw0YDQs9C4W9C90L7QvNC10YBdOwogICAgICAgIHZhciDQv9C+0LfQuNGG0LjRj9CX0L3QsNC60LAgPSDQsNGA0LMuaW5kZXhPZigiPSIpOwogICAgICAgIC8vINCb0LjRiNGMINC60LvRjtGHLgogICAgICAgIGlmICjQv9C+0LfQuNGG0LjRj9CX0L3QsNC60LAgPT0gLTEpCiAgICAgICAgewogICAgICAgICAgICB2YXIg0LrQu9GO0YcgPSBkZWNvZGVVUklDb21wb25lbnQo0LDRgNCzKTsKICAgICAgICAgICAg0LzRg9GA0L7QvC7QsNGA0LPRg9C80LXQvdGC0Ytb0LrQu9GO0YddID0gbnVsbDsKICAgICAgICB9CiAgICAgICAgLy8g0JrQu9GO0Ycg0YHQviDQt9C90LDRh9C10L3QuNC10LwuCiAgICAgICAgZWxzZQogICAgICAgIHsKICAgICAgICAgICAgdmFyINGB0YvRgNC+0LnQmtC70Y7RhyA9INCw0YDQsy5zbGljZSgwLCDQv9C+0LfQuNGG0LjRj9CX0L3QsNC60LApOwogICAgICAgICAgICB2YXIg0YHRi9GA0L7QtdCX0L3QsNGH0LXQvdC40LUgPSDQsNGA0LMuc2xpY2Uo0L/QvtC30LjRhtC40Y/Ql9C90LDQutCwICsgMSk7CiAgICAgICAgICAgIHZhciDQutC70Y7RhyA9IGRlY29kZVVSSUNvbXBvbmVudCjRgdGL0YDQvtC50JrQu9GO0YcpOwogICAgICAgICAgICB2YXIg0LfQvdCw0YfQtdC90LjQtSA9IGRlY29kZVVSSUNvbXBvbmVudCjRgdGL0YDQvtC10JfQvdCw0YfQtdC90LjQtSk7CiAgICAgICAgICAgINC80YPRgNC+0Lwu0LDRgNCz0YPQvNC10L3RgtGLW9C60LvRjtGHXSA9INC30L3QsNGH0LXQvdC40LU7CiAgICAgICAgfQogICAgfQogICAg0LzRg9GA0L7QvC7QsN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KGUsdCxuKXt0aGlzLiRvdXRkZW50LmF1dG9PdXRkZW50KHQsbil9LHRoaXMuY3JlYXRlV29ya2VyPWZ1bmN0aW9uKGUpe3ZhciB0PW5ldyB1KFsiYWNlIl0sImFjZS9tb2RlL2phdmFzY3JpcHRfd29ya2VyIiwiSmF2YVNjcmlwdFdvcmtlciIpO3JldHVybiB0LmF0dGFjaFRvRG9jdW1lbnQoZS5nZXREb2N1bWVudCgpKSx0Lm9uKCJhbm5vdGF0ZSIsZnVuY3Rpb24odCl7ZS5zZXRBbm5vdGF0aW9ucyh0LmRhdGEpfSksdC5vbigidGVybWluYXRlIixmdW5jdGlvbigpe2UuY2xlYXJBbm5vdGF0aW9ucygpfSksdH0sdGhpcy4kaWQ9ImFjZS9tb2RlL2phdmFzY3JpcHQifS5jYWxsKGwucHJvdG90eXBlKSx0Lk1vZGU9bH0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvbW9kZS9qYXZhc2NyaXB0Il0sIGZ1bmN0aW9uKG0pIHsKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBtb2R1bGUgPT0gIm9iamVjdCIgJiYgdHlwZW9mIGV4cG9ydHMgPT0gIm9iamVjdCIgJiYgbW9kdWxlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IG07CiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIH0pKCk7ICAgIAp9Ow==", {"status":true} ], [ -"pako.min.js_1.0.10", -"LyohIHBha28gMS4wLjEwIHwgaHR0cHM6Ly9naXRodWIuY29tL25vZGVjYS9wYWtvIHwgTUlULCBaTGliICovCiFmdW5jdGlvbih0KXtpZigib2JqZWN0Ij09dHlwZW9mIGV4cG9ydHMmJiJ1bmRlZmluZWQiIT10eXBlb2YgbW9kdWx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rLm5vZGVOYW1lPUEsay5pc0Z1bmN0aW9uPW0say5pc1dpbmRvdz14LGsuY2FtZWxDYXNlPVYsay50eXBlPXcsay5ub3c9RGF0ZS5ub3csay5pc051bWVyaWM9ZnVuY3Rpb24oZSl7dmFyIHQ9ay50eXBlKGUpO3JldHVybigibnVtYmVyIj09PXR8fCJzdHJpbmciPT09dCkmJiFpc05hTihlLXBhcnNlRmxvYXQoZSkpfSwiZnVuY3Rpb24iPT10eXBlb2YgZGVmaW5lJiZkZWZpbmUuYW1kJiZkZWZpbmUoImpxdWVyeSIsW10sZnVuY3Rpb24oKXtyZXR1cm4ga30pO3ZhciBRdD1DLmpRdWVyeSxKdD1DLiQ7cmV0dXJuIGsubm9Db25mbGljdD1mdW5jdGlvbihlKXtyZXR1cm4gQy4kPT09ayYmKEMuJD1KdCksZSYmQy5qUXVlcnk9PT1rJiYoQy5qUXVlcnk9UXQpLGt9LGV8fChDLmpRdWVyeT1DLiQ9ayksa30pOwo=", {"status":false} ], [ -"pako_1.0.10", -"ZnVuY3Rpb24g0YPRgdGC0LDQvdC+0LLQuNGC0YxQYWtvKCkKewogICAgdmFyIHBha29KUyA9INC80L7QtNGD0LvRjCgicGFrby5taW4uanNfMS4wLjEwIilbMV07CiAgICBldmFsKNC80YPRgNC+0LwuYXRvYihwYWtvSlMpKTsKfQoK0YPRgdGC0LDQvdC+0LLQuNGC0YxQYWtvKCk7", +"jquery_3.4.1", +"ZnVuY3Rpb24gaW5zdGFsbEpRdWVyeSgpCnsKICAgIHZhciBqcyA9IE1PRC5tb2R1bGUoImpxdWVyeS5taW4uanNfMy40LjEiKS5jb2RlNjQ7CiAgICBldmFsKG11cm9tLmF0b2IoanMpKTsKfQoKaW5zdGFsbEpRdWVyeSgpOw==", +{"status":true} +], + + +[ +"w2ui.min.js_1.5", +"LyogdzJ1aSAxLjUueCAobmlnaHRseSkgKGMpIGh0dHA6Ly93MnVpLmNvbSwgdml0bWFsaW5hQGdtYWlsLmNvbSAqLwoKd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94OwogIC1tcy1ib3gtc2l6aW5nOiBib3JkZXItYm94OwogIC1vLWJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgYm94LXNpemluZzogYm9yZGVyLWJveDsKfQoudzJ1aS1saXN0LncydWktZmlsZS1kcmFnb3ZlciB7CiAgYmFja2dyb3VuZC1jb2xvcjogI0U0RkZEQTsKICBib3JkZXI6IDFweCBzb2xpZCAjOTNFMDdEOwp9Ci8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiogLS0tLSBMYXlvdXQgLS0tLQoqLwoudzJ1aS1sYXlvdXQgewogIG92ZXJmbG93OiBoaWRkZW4gIWltcG9ydGFudDsKICAtd2Via2l0LWJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgLW1vei1ib3gtc2l6aW5nOiBib3JkZXItYm94OwogIC1tcy1ib3gtc2l6aW5nOiBib3JkZXItYm94OwogIC1vLWJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgYm94LXNpemluZzogYm9yZGVyLWJveDsKfQoudzJ1aS1sYXlvdXQgKiB7CiAgLXdlYmtpdC1ib3gtc2l6aW5nOiBib3JkZXItYm94OwogIC1tb3otYm94LXNpemluZzogYm9yZGVyLWJveDsKICAtbXMtYm94LXNpemluZzogYm9yZGVyLWJveDsKICAtby1ib3gtc2l6aW5nOiBib3JkZXItYm94OwogIGJveC1zaXppbmc6IGJvcmRlci1ib3g7Cn0KLncydWktbGF5b3V0ID4gZGl2IHsKICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgb3ZlcmZsb3c6IGhpZGRlbjsKICBib3JkZXI6IDBweDsKICBtYXJnaW46IDBweDsKICBwYWRkaW5nOiAwcHg7CiAgb3V0bGluZTogMHB4OwogIC13ZWJraXQtYm94LXNpemluZzogYm9yZGVyLWJveDsKICAtbW96LWJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgLW1zLWJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgLW8tYm94LXNpemluZzog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KioqKioqKioqKioqKioqKioqCiogLS0tLSBQb3B1cCAtLS0tCiovCi53MnVpLXBvcHVwIHsKICBwb3NpdGlvbjogZml4ZWQ7CiAgei1pbmRleDogMTYwMDsKICBvdmVyZmxvdzogaGlkZGVuOwogIGZvbnQtZmFtaWx5OiBWZXJkYW5hLCBBcmlhbCwgc2Fucy1zZXJpZjsKICBib3JkZXItcmFkaXVzOiA2cHg7CiAgcGFkZGluZzogMHB4OwogIG1hcmdpbjogMHB4OwogIGJvcmRlcjogMXB4IHNvbGlkICM3Nzc7CiAgYmFja2dyb3VuZC1jb2xvcjogI2VlZTsKICBib3gtc2hhZG93OiAwcHggMHB4IDI1cHggIzU1NTsKfQoudzJ1aS1wb3B1cCwKLncydWktcG9wdXAgKiB7CiAgLXdlYmtpdC1ib3gtc2l6aW5nOiBib3JkZXItYm94OwogIC1tb3otYm94LXNpemluZzogYm9yZGVyLWJveDsKICAtbXMtYm94LXNpemluZzogYm9yZGVyLWJveDsKICAtby1ib3gtc2l6aW5nOiBib3JkZXItYm94OwogIGJveC1zaXppbmc6IGJvcmRlci1ib3g7Cn0KLncydWktcG9wdXAgLncydWktcG9wdXAtdGl0bGUgewogIHBhZGRpbmc6IDZweDsKICBib3JkZXItcmFkaXVzOiA2cHggNnB4IDBweCAwcHg7CiAgYmFja2dyb3VuZC1pbWFnZTogLXdlYmtpdC1saW5lYXItZ3JhZGllbnQoI0VDRUNFQywgI0RGREZERik7CiAgYmFja2dyb3VuZC1pbWFnZTogLW1vei1saW5lYXItZ3JhZGllbnQoI0VDRUNFQywgI0RGREZERik7CiAgYmFja2dyb3VuZC1pbWFnZTogLW1zLWxpbmVhci1ncmFkaWVudCgjRUNFQ0VDLCAjREZERkRGKTsKICBiYWNrZ3JvdW5kLWltYWdlOiAtby1saW5lYXItZ3JhZGllbnQoI0VDRUNFQywgI0RGREZERik7CiAgYmFja2dyb3VuZC1pbWFnZTogbGluZWFyLWdyYWRpZW50KCNFQ0VDRUMsICNERkRGREYpO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ICB0b3A6IDBweCAhaW1wb3J0YW50Owp9Ci53MnVpLXBvcHVwIC53MnVpLXBvcHVwLW5vLWJ1dHRvbnMgewogIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDZweDsKICBib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czogNnB4OwogIGJvdHRvbTogMHB4ICFpbXBvcnRhbnQ7Cn0KLncydWktcG9wdXAgLncydWktYWxlcnQtbXNnLAoudzJ1aS1wb3B1cCAudzJ1aS1jb25maXJtLW1zZyB7CiAgZm9udC1zaXplOiAxM3B4OwogIGxpbmUtaGVpZ2h0OiAxLjU7Cn0KLncydWktcG9wdXAgLncydWktcHJvbXB0IHRleHRhcmVhIHsKICB3aWR0aDogMTAwJTsKICBoZWlnaHQ6IDUwcHg7CiAgcmVzaXplOiBub25lOwp9Ci8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiogLS0tLSBTaWRlYmFyIC0tLS0KKi8KLncydWktc2lkZWJhciB7CiAgcG9zaXRpb246IHJlbGF0aXZlOwogIGN1cnNvcjogZGVmYXVsdDsKICBvdmVyZmxvdzogaGlkZGVuICFpbXBvcnRhbnQ7CiAgYmFja2dyb3VuZC1jb2xvcjogI2ZhZmFmYSAhaW1wb3J0YW50OwogIC13ZWJraXQtYm94LXNpemluZzogYm9yZGVyLWJveDsKICAtbW96LWJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgLW1zLWJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgLW8tYm94LXNpemluZzogYm9yZGVyLWJveDsKICBib3gtc2l6aW5nOiBib3JkZXItYm94Owp9Ci53MnVpLXNpZGViYXIgKiB7CiAgLXdlYmtpdC1ib3gtc2l6aW5nOiBib3JkZXItYm94OwogIC1tb3otYm94LXNpemluZzogYm9yZGVyLWJveDsKICAtbXMtYm94LXNpemluZzogYm9yZGVyLWJveDsKICAtby1ib3gtc2l6aW5nOiBib3JkZXItYm94OwogIGJveC1zaXpp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hpcywgItC40LfQvNC10L3QuNC70LjQktGL0LHQvtGAIiwgewogICAgICAgIGdldDogZnVuY3Rpb24oKQogICAgICAgIHsKICAgICAgICAgICAgcmV0dXJuIHRoaXMuc2VsZWN0aW9uQ2hhbmdlZDsKICAgICAgICB9CiAgICB9KTsKICAgIAogICAgdmFyIHNlbGYgPSB0aGlzOwogICAgZnVuY3Rpb24gcmVwb3J0KGV2ZW50KQogICAgewogICAgICAgIGV2ZW50Lm9uQ29tcGxldGUgPSBmdW5jdGlvbigpIHsKICAgICAgICAgICAgc2VsZi5zZWxlY3Rpb25DaGFuZ2VkLnJlcG9ydCgpOwogICAgICAgIH07CiAgICB9CiAgICB0aGlzLmdyaWQub24oInNlbGVjdCIsIHJlcG9ydCk7CiAgICB0aGlzLmdyaWQub24oInVuc2VsZWN0IiwgcmVwb3J0KTsKfTs=", {"status":true} ], @@ -67,22 +95,29 @@ var murom = муром; [ -"uikit.js_3.2.0", -"LyohIFVJa2l0IDMuMi4wIHwgaHR0cDovL3d3dy5nZXR1aWtpdC5jb20gfCAoYykgMjAxNCAtIDIwMTkgWU9PdGhlbWUgfCBNSVQgTGljZW5zZSAqLwoKKGZ1bmN0aW9uIChnbG9iYWwsIGZhY3RvcnkpIHsKICAgIHR5cGVvZiBleHBvcnRzID09PSAnb2JqZWN0JyAmJiB0eXBlb2YgbW9kdWxlICE9PSAndW5kZWZpbmVkJyA/IG1vZHVsZS5leHBvcnRzID0gZmFjdG9yeSgpIDoKICAgIHR5cGVvZiBkZWZpbmUgPT09ICdmdW5jdGlvbicgJiYgZGVmaW5lLmFtZCA/IGRlZmluZSgndWlraXQnLCBmYWN0b3J5KSA6CiAgICAoZ2xvYmFsID0gZ2xvYmFsIHx8IHNlbGYsIGdsb2JhbC5VSWtpdCA9IGZhY3RvcnkoKSk7Cn0odGhpcywgZnVuY3Rpb24gKCkgeyAndXNlIHN0cmljdCc7CgogICAgdmFyIG9ialByb3RvdHlwZSA9IE9iamVjdC5wcm90b3R5cG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YXRlKSB7CiAgICAgICAgdmFyIGFyZ3VtZW50cyQxID0gYXJndW1lbnRzOwoKICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IHRoaXMubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgaWYgKHByZWRpY2F0ZS5jYWxsKGFyZ3VtZW50cyQxWzFdLCB0aGlzW2ldLCBpLCB0aGlzKSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIC0xOwogICAgfTsKCiAgICBmdW5jdGlvbiBmaW5kSW5kZXgoYXJyYXksIHByZWRpY2F0ZSkgewogICAgICAgIHJldHVybiBmaW5kSW5kZXhGbi5jYWxsKGFycmF5LCBwcmVkaWNhdGUpOwogICAgfQoKICAgIHZhciBpc0FycmF5ID0gQXJyYXkuaXNBcnJheTsKCiAgICBmdW5jdGlvbiBpc0Z1bmN0aW9uKG9iaikgewogICAgICAgIHJldHVybiB0eXBlb2Ygb2JqID09PSAnZnVuY3Rpb24nOwogICAgfQoKICAgIGZ1bmN0aW9uIGlzT2JqZWN0KG9iaikgewogICAgICAgIHJldHVybiBvYmogIT09IG51bGwgJiYgdHlwZW9mIG9iaiA9PT0gJ29iamVjdCc7CiAgICB9CgogICAgZnVuY3Rpb24gaXNQbGFpbk9iamVjdChvYmopIHsKICAgICAgICByZXR1cm4gaXNPYmplY3Qob2JqKSAmJiBPYmplY3QuZ2V0UHJvdG90eXBlT2Yob2JqKSA9PT0gb2JqUHJvdG90eXBlOwogICAgfQoKICAgIGZ1bmN0aW9uIGlzV2luZG93KG9iaikgewogICAgICAgIHJldHVybiBpc09iamVjdChvYmopICYmIG9iaiA9PT0gb2JqLndpbmRvdzsKICAgIH0KCiAgICBmdW5jdGlvbiBpc0RvY3VtZW50KG9iaikgewogICAgICAgIHJldHVybiBpc09iamVjdChvYmopICYmIG9iai5ub2RlVHlwZSA9PT0gOTsKICAgIH0KCiAgICBmdW5jdGlvbiB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AgICAgID8gT2JqZWN0LmtleXMob2JqKS5sZW5ndGgKICAgICAgICAgICAgICAgIDogZmFsc2UKICAgICAgICApOwogICAgfQoKICAgIGZ1bmN0aW9uIGlzVW5kZWZpbmVkKHZhbHVlKSB7CiAgICAgICAgcmV0dXJuIHZhbHVlID09PSB2b2lkIDA7CiAgICB9CgogICAgZnVuY3Rpb24gdG9Cb29sZWFuKHZhbHVlKSB7CiAgICAgICAgcmV0dXJuIGlzQm9vbGVhbih2YWx1ZSkKICAgICAgICAgICAgPyB2YWx1ZQogICAgICAgICAgICA6IHZhbHVlID09PSAndHJ1ZScgfHwgdmFsdWUgPT09ICcxJyB8fCB2YWx1ZSA9PT0gJycKICAgICAgICAgICAgICAgID8gdHJ1ZQogICAgICAgICAgICAgICAgOiB2YWx1ZSA9PT0gJ2ZhbHNlJyB8fCB2YWx1ZSA9PT0gJzAnCiAgICAgICAgICAgICAgICAgICAgPyBmYWxzZQogICAgICAgICAgICAgICAgICAgIDogdmFsdWU7CiAgICB9CgogICAgZnVuY3Rpb24gdG9OdW1iZXIodmFsdWUpIHsKICAgICAgICB2YXIgbnVtYmVyID0gTnVtYmVyKHZhbHVlKTsKICAgICAgICByZXR1cm4gIWlzTmFOKG51bWJlcikgPyBudW1iZXIgOiBmYWxzZTsKICAgIH0KCiAgICBmdW5jdGlvbiB0b0Zsb2F0KHZhbHVlKSB7CiAgICAgICAgcmV0dXJuIHBhcnNlRmxvYXQodmFsdWUpIHx8IDA7CiAgICB9CgogICAgZnVuY3Rpb24gdG9Ob2RlKGVsZW1lbnQpIHsKICAgICAgICByZXR1cm4gaXNOb2RlKGVsZW1lbnQpIHx8IGlzV2luZG93KGVsZW1lbnQpIHx8IGlzRG9jdW1lbnQoZWxlbWVudCkKICAgICAgICAgICAgPyBlbGVtZW50CiAgICAgICAgICAgIDogaXNOb2RlQ29sbGVjdGlvbihlbGVtZW50KSB8fCBpc0pRdWVyeShlbGVtZW50KQogICAgICAgICAgICAgICAgPyBlbGVtZW50WzBdCiAgICAgICAgICAgICAgICA6IGlzQXJyYXkoZWxlbWVudCkKICAgICAgICAgICAgICAgICAgICA/IHRvTm9kZShlbGVtZW50WzBdKQogICAgICAgICAgICAgICAgICAgIDogbnVsbDsKICAgIH0KCiAgICBmdW5jdGlvbiB0b05vZGVzKGVsZW1lbnQpIHsKICAgICAgICByZXR1cm4gaXNOb2RlKGVsZW1lbnQpCiAgICAgICAgICAgID8gW2VsZW1lbnRdCiAgICAgICAgICAgIDogaXNOb2RlQ29sbGVjdGlvbihlbGVtZW50KQogICAgICAgICAgICAgICAgPyBhcnJQcm90b3R5cGUuc2xpY2UuY2FsbChlbGVtZW50KQogICAgICAgICAgICAgICAgOiBpc0FycmF5KGVsZW1lbnQpCiAgICAgICAgICAgICAgICAgICAgPyBlbGVtZW50Lm1hcCh0b05vZGUpLmZpbHRlcihCb29sZWFuKQogICAgICAgICAgICAgICAgICAgIDogaXNKUXVlcnkoZWxlbWVudCkKICAgICAgICAgICAgICAgICAgICAgICAgPyBlbGVtZW50LnRvQXJyYXkoKQogICAgICAgICAgICAgICAgICAgICAgICA6IFtdOwogICAgfQoKICAgIGZ1bmN0aW9uIHRvTGlzdCh2YWx1ZSkgewogICAgICAgIHJldHVybiBpc0FycmF5KHZhbHVlKQogICAgICAgICAgICA/IHZhbHVlCiAgICAgICAgICAgIDogaXNTdHJpbmcodmFsdWUpCiAgICAgICAgICAgICAgICA/IHZhbHVlLnNwbGl0KC8sKD8hW14oXSpcKSkvKS5tYXAoZnVuY3Rpb24gKHZhbHVlKSB7IHJldHVybiBpc051bWVyaWModmFsdWUpCiAgICAgICAgICAgICAgICAgICAgPyB0b051bWJlcih2YWx1ZSkKICAgICAgICAgICAgICAgICAgICA6IHRvQm9vbGVhbih2YWx1ZS50cmltKCkpOyB9KQogICAgICAgICAgICAgICAgOiBbdmFsdWVdOwogICAgfQoKICAgIGZ1bmN0aW9uIHRvTXModGltZSkgewogICAgICAgIHJldHVybiAhdGltZQogICAgICAgICAgICA/IDAKICAgICAgICAgICAgOiBlbmRzV2l0aCh0aW1lLCAnbXMnKQogICAgICAgICAgICAgICAgPyB0b0Zsb2F0KHRpbWUpCiAgICAgICAgICAgICAgICA6IHRvRmxvYXQodGltZSkgKiAxMDAwOwogICAgfQoKICAgIGZ1bmN0aW9uIGlzRXF1YWwodmFsdWUsIG90aGVyKSB7CiAgICAgICAgcmV0dXJuIHZhbHVlID09PSBvdGhlcgogICAgICAgICAgICB8fCBpc09iamVjdCh2YWx1ZSkKICAgICAgICAgICAgJiYgaXNPYmplY3Qob3RoZXIpCiAgICAgICAgICAgICYmIE9iamVjdC5rZXlzKHZhbHVlKS5sZW5ndGggPT09IE9iamVjdC5rZXlzKG90aGVyKS5sZW5ndGgKICAgICAgICAgICAgJiYgZWFjaCh2YWx1ZSwgZnVuY3Rpb24gKHZhbCwga2V5KSB7IHJldHVybiB2YWwgPT09IG90aGVyW2tleV07IH0pOwogICAgfQoKICAgIGZ1bmN0aW9uIHN3YXAodmFsdWUsIGEsIGIpIHsKICAgICAgICByZXR1cm4gdmFsdWUucmVwbGFjZShuZXcgUmVnRXhwKChhICsgInwiICsgYiksICdtZycpLCBmdW5jdGlvbiAobWF0Y2gpIHsKICAgICAgICAgICAgcmV0dXJuIG1hdGNoID09PSBhID8gYiA6IGE7CiAgICAgICAgfSk7CiAgICB9CgogICAgdmFyIGFzc2lnbiA9IE9iamVjdC5hc3NpZ24gfHwgZnVuY3Rpb24gKHRhcmdldCkgewogICAgICAgIHZhciBhcmdzID0gW10sIGxlbiA9IGFyZ3VtZW50cy5sZW5ndGggLSAxOwogICAgICAgIHdoaWxlICggbGVuLS0gPiAwICkgYXJnc1sgbGVuIF0gPSBhcmd1bWVudHNbIGxlbiArIDEgXTsKCiAgICAgICAgdGFyZ2V0ID0gT2JqZWN0KHRhcmdldCk7CiAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBhcmdzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIHZhciBzb3VyY2UgPSBhcmdzW2ldOwogICAgICAgICAgICBpZiAoc291cmNlICE9PSBudWxsKSB7CiAgICAgICAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gc291cmNlKSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKGhhc093bihzb3VyY2UsIGtleSkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgdGFyZ2V0W2tleV0gPSBzb3VyY2Vba2V5XTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIHRhcmdldDsKICAgIH07CgogICAgZnVuY3Rpb24gbGFzdChhcnJheSkgewogICAgICAgIHJldHVybiBhcnJheVthcnJheS5sZW5ndGggLSAxXTsKICAgIH0KCiAgICBmdW5jdGlvbiBlYWNoKG9iaiwgY2IpIHsKICAgICAgICBmb3IgKHZhciBrZXkgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChmYWxzZSA9PT0gY2Iob2JqW2tleV0sIGtleSkpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gdHJ1ZTsKICAgIH0KCiAgICBmdW5jdGlvbiBzb3J0QnkoYXJyYXksIHByb3ApIHsKICAgICAgICByZXR1cm4gYXJyYXkuc29ydChmdW5jdGlvbiAocmVmLCByZWYkMSkgewogICAgICAgICAgICAgICAgdmFyIHByb3BBID0gcmVmW3Byb3BdOyBpZiAoIHByb3BBID09PSB2b2lkIDAgKSBwcm9wQSA9IDA7CiAgICAgICAgICAgICAgICB2YXIgcHJvcEIgPSByZWYkMVtwcm9wXTsgaWYgKCBwcm9wQiA9PT0gdm9pZCAwICkgcHJvcEIgPSAwOwoKICAgICAgICAgICAgICAgIHJldHVybiBwcm9wQSA+IHByb3BCCiAgICAgICAgICAgICAgICA/IDEKICAgICAgICAgICAgICAgIDogcHJvcEIgPiBwcm9wQQogICAgICAgICAgICAgICAgICAgID8gLTEKICAgICAgICAgICAgICAgICAgICA6IDA7CiAgICAgICAgfQogICAgICAgICk7CiAgICB9CgogICAgZnVuY3Rpb24gdW5pcXVlQnkoYXJyYXksIHByb3ApIHsKICAgICAgICB2YXIgc2VlbiA9IG5ldyBTZXQoKTsKICAgICAgICByZXR1cm4gYXJyYXkuZmlsdGVyKGZ1bmN0aW9uIChyZWYpIHsKICAgICAgICAgICAgdmFyIGNoZWNrID0gcmVmW3Byb3BdOwoKICAgICAgICAgICAgcmV0dXJuIHNlZW4uaGFzKGNoZWNrKQogICAgICAgICAgICA/IGZhbHNlCiAgICAgICAgICAgIDogc2Vlbi5hZGQoY2hlY2spIHx8IHRydWU7CiAgICAgICAgfSAvLyBJRSAxMSBkb2VzIG5vdCByZXR1cm4gdGhlIFNldCBvYmplY3QKICAgICAgICApOwogICAgfQoKICAgIGZ1bmN0aW9uIGNsYW1wKG51bWJlciwgbWluLCBtYXgpIHsKICAgICAgICBpZiAoIG1pbiA9PT0gdm9pZCAwICkgbWluID0gMDsKICAgICAgICBpZiAoIG1heCA9PT0gdm9pZCAwICkgbWF4ID0gMTsKCiAgICAgICAgcmV0dXJuIE1hdGgubWluKE1hdGgubWF4KHRvTnVtYmVyKG51bWJlcikgfHwgMCwgbWluKSwgbWF4KTsKICAgIH0KCiAgICBmdW5jdGlvbiBub29wKCkge30KCiAgICBmdW5jdGlvbiBpbnRlcnNlY3RSZWN0KHIxLCByMikgewogICAgICAgIHJldHVybiByMS5sZWZ0IDwgcjIucmlnaHQgJiYKICAgICAgICAgICAgcjEucmlnaHQgPiByMi5sZWZ0ICYmCiAgICAgICAgICAgIHIxLnRvcCA8IHIyLmJvdHRvbSAmJgogICAgICAgICAgICByMS5ib3R0b20gPiByMi50b3A7CiAgICB9CgogICAgZnVuY3Rpb24gcG9pbnRJblJlY3QocG9pbnQsIHJlY3QpIHsKICAgICAgICByZXR1cm4gcG9pbnQueCA8PSByZWN0LnJpZ2h0ICYmCiAgICAgICAgICAgIHBvaW50LnggPj0gcmVjdC5sZWZ0ICYmCiAgICAgICAgICAgIHBvaW50LnkgPD0gcmVjdC5ib3R0b20gJiYKICAgICAgICAgICAgcG9pbnQueSA+PSByZWN0LnRvcDsKICAgIH0KCiAgICB2YXIgRGltZW5zaW9ucyA9IHsKCiAgICAgICAgcmF0aW86IGZ1bmN0aW9uKGRpbWVuc2lvbnMsIHByb3AsIHZhbHVlKSB7CiAgICAgICAgICAgIHZhciBvYmo7CgoKICAgICAgICAgICAgdmFyIGFQcm9wID0gcHJvcCA9PT0gJ3dpZHRoJyA/ICdoZWlnaHQnIDogJ3dpZHRoJzsKCiAgICAgICAgICAgIHJldHVybiAoIG9iaiA9IHt9LCBvYmpbYVByb3BdID0gZGltZW5zaW9uc1twcm9wXSA/IE1hdGgucm91bmQodmFsdWUgKiBkaW1lbnNpb25zW2FQcm9wXSAvIGRpbWVuc2lvbnNbcHJvcF0pIDogZGltZW5zaW9uc1thUHJvcF0sIG9ialtwcm9wXSA9IHZhbHVlLCBvYmogKTsKICAgICAgICB9LAoKICAgICAgICBjb250YWluOiBmdW5jdGlvbihkaW1lbnNpb25zLCBtYXhEaW1lbnNpb25zKSB7CiAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKICAgICAgICAgICAgZGltZW5zaW9ucyA9IGFzc2lnbih7fSwgZGltZW5zaW9ucyk7CgogICAgICAgICAgICBlYWNoKGRpbWVuc2lvbnMsIGZ1bmN0aW9uIChfLCBwcm9wKSB7IHJldHVybiBkaW1lbnNpb25zID0gZGltZW5zaW9uc1twcm9wXSA+IG1heERpbWVuc2lvbnNbcHJvcF0KICAgICAgICAgICAgICAgID8gdGhpcyQxLnJhdGlvKGRpbWVuc2lvbnMsIHByb3AsIG1heERpbWVuc2lvbnNbcHJvcF0pCiAgICAgICAgICAgICAgICA6IGRpbWVuc2lvbnM7IH0KICAgICAgICAgICAgKTsKCiAgICAgICAgICAgIHJldHVybiBkaW1lbnNpb25zOwogICAgICAgIH0sCgogICAgICAgIGNvdmVyOiBmdW5jdGlvbihkaW1lbnNpb25zLCBtYXhEaW1lbnNpb25zKSB7CiAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKICAgICAgICAgICAgZGltZW5zaW9ucyA9IHRoaXMuY29udGFpbihkaW1lbnNpb25zLCBtYXhEaW1lbnNpb25zKTsKCiAgICAgICAgICAgIGVhY2goZGltZW5zaW9ucywgZnVuY3Rpb24gKF8sIHByb3ApIHsgcmV0dXJuIGRpbWVuc2lvbnMgPSBkaW1lbnNpb25zW3Byb3BdIDwgbWF4RGltZW5zaW9uc1twcm9wXQogICAgICAgICAgICAgICAgPyB0aGlzJDEucmF0aW8oZGltZW5zaW9ucywgcHJvcCwgbWF4RGltZW5zaW9uc1twcm9wXSkKICAgICAgICAgICAgICAgIDogZGltZW5zaW9uczsgfQogICAgICAgICAgICApOwoKICAgICAgICAgICAgcmV0dXJuIGRpbWVuc2lvbnM7CiAgICAgICAgfQoKICAgIH07CgogICAgZnVuY3Rpb24gYXR0cihlbGVtZW50LCBuYW1lLCB2YWx1ZSkgewoKICAgICAgICBpZiAoaXNPYmplY3QobmFtZSkpIHsKICAgICAgICAgICAgZm9yICh2YXIga2V5IGluIG5hbWUpIHsKICAgICAgICAgICAgICAgIGF0dHIoZWxlbWVudCwga2V5LCBuYW1lW2tleV0pOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB9CgogICAgICAgIGlmIChpc1VuZGVmaW5lZCh2YWx1ZSkpIHsKICAgICAgICAgICAgZWxlbWVudCA9IHRvTm9kZShlbGVtZW50KTsKICAgICAgICAgICAgcmV0dXJuIGVsZW1lbnQgJiYgZWxlbWVudC5nZXRBdHRyaWJ1dGUobmFtZSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgdG9Ob2RlcyhlbGVtZW50KS5mb3JFYWNoKGZ1bmN0aW9uIChlbGVtZW50KSB7CgogICAgICAgICAgICAgICAgaWYgK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m93bmVyRG9jdW1lbnQ7CiAgICB9CgogICAgZnVuY3Rpb24gZmluZChzZWxlY3RvciwgY29udGV4dCkgewogICAgICAgIHJldHVybiB0b05vZGUoX3F1ZXJ5KHNlbGVjdG9yLCBjb250ZXh0LCAncXVlcnlTZWxlY3RvcicpKTsKICAgIH0KCiAgICBmdW5jdGlvbiBmaW5kQWxsKHNlbGVjdG9yLCBjb250ZXh0KSB7CiAgICAgICAgcmV0dXJuIHRvTm9kZXMoX3F1ZXJ5KHNlbGVjdG9yLCBjb250ZXh0LCAncXVlcnlTZWxlY3RvckFsbCcpKTsKICAgIH0KCiAgICBmdW5jdGlvbiBfcXVlcnkoc2VsZWN0b3IsIGNvbnRleHQsIHF1ZXJ5Rm4pIHsKICAgICAgICBpZiAoIGNvbnRleHQgPT09IHZvaWQgMCApIGNvbnRleHQgPSBkb2N1bWVudDsKCgogICAgICAgIGlmICghc2VsZWN0b3IgfHwgIWlzU3RyaW5nKHNlbGVjdG9yKSkgewogICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgICB9CgogICAgICAgIHNlbGVjdG9yID0gc2VsZWN0b3IucmVwbGFjZShjb250ZXh0U2FuaXRpemVSZSwgJyQxIConKTsKCiAgICAgICAgdmFyIHJlbW92ZXM7CgogICAgICAgIGlmIChpc0NvbnRleHRTZWxlY3RvcihzZWxlY3RvcikpIHsKCiAgICAgICAgICAgIHJlbW92ZXMgPSBbXTsKCiAgICAgICAgICAgIHNlbGVjdG9yID0gc3BsaXRTZWxlY3RvcihzZWxlY3RvcikubWFwKGZ1bmN0aW9uIChzZWxlY3RvciwgaSkgewoKICAgICAgICAgICAgICAgIHZhciBjdHggPSBjb250ZXh0OwoKICAgICAgICAgICAgICAgIGlmIChzZWxlY3RvclswXSA9PT0gJyEnKSB7CgogICAgICAgICAgICAgICAgICAgIHZhciBzZWxlY3RvcnMgPSBzZWxlY3Rvci5zdWJzdHIoMSkudHJpbSgpLnNwbGl0KCcgJyk7CiAgICAgICAgICAgICAgICAgICAgY3R4ID0gY2xvc2VzdChjb250ZXh0LnBhcmVudE5vZGUsIHNlbGVjdG9yc1swXSk7CiAgICAgICAgICAgICAgICAgICAgc2VsZWN0b3IgPSBzZWxlY3RvcnMuc2xpY2UoMSkuam9pbignICcpLnRyaW0oKTsKCiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgaWYgKHNlbGVjdG9yWzBdID09PSAnLScpIHsKCiAgICAgICAgICAgICAgICAgICAgdmFyIHNlbGVjdG9ycyQxID0gc2VsZWN0b3Iuc3Vic3RyKDEpLnRyaW0oKS5zcGxpdCgnICcpOwogICAgICAgICAgICAgICAgICAgIHZhciBwcmV2ID0gKGN0eCB8fCBjb250ZXh0KS5wcmV2aW91c0VsZW1lbnRTaWJsaW5nOwogICAgICAgICAgICAgICAgICAgIGN0eCA9IG1hdGNoZXMocHJldiwgc2VsZWN0b3Iuc3Vic3RyKDEpKSA/IHByZXYgOiBudWxsOwogICAgICAgICAgICAgICAgICAgIHNlbGVjdG9yID0gc2VsZWN0b3JzJDEuc2xpY2UoMSkuam9pbignICcpOwoKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBpZiAoIWN0eCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBudWxsOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIGlmICghY3R4LmlkKSB7CiAgICAgICAgICAgICAgICAgICAgY3R4LmlkID0gInVrLSIgKyAoRGF0ZS5ub3coKSkgKyBpOwogICAgICAgICAgICAgICAgICAgIHJlbW92ZXMucHVzaChmdW5jdGlvbiAoKSB7IHJldHVybiByZW1vdmVBdHRyKGN0eCwgJ2lkJyk7IH0pOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHJldHVybiAoIiMiICsgKGVzY2FwZShjdHguaWQpKSArICIgIiArIHNlbGVjdG9yKTsKCiAgICAgICAgICAgIH0pLmZpbHRlcihCb29sZWFuKS5qb2luKCcsJyk7CgogICAgICAgICAgIC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GlvbiAoZWxlbWVudCkgeyByZXR1cm4gd2l0aGluKGUudGFyZ2V0LCBlbGVtZW50KTsgfSlbMF0KICAgICAgICAgICAgICAgICAgICA6IGNsb3Nlc3QoZS50YXJnZXQsIHNlbGVjdG9yKTsKCiAgICAgICAgICAgICAgICBpZiAoY3VycmVudCkgewogICAgICAgICAgICAgICAgICAgIGUuZGVsZWdhdGUgPSBkZWxlZ2F0ZTsKICAgICAgICAgICAgICAgICAgICBlLmN1cnJlbnQgPSBjdXJyZW50OwoKICAgICAgICAgICAgICAgICAgICBsaXN0ZW5lci5jYWxsKHRoaXMkMSwgZSk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9KTsKCiAgICAgICAgfTsKICAgIH0KCiAgICBmdW5jdGlvbiBkZXRhaWwobGlzdGVuZXIpIHsKICAgICAgICByZXR1cm4gZnVuY3Rpb24gKGUpIHsgcmV0dXJuIGlzQXJyYXkoZS5kZXRhaWwpID8gbGlzdGVuZXIuYXBwbHkodm9pZCAwLCBbZV0uY29uY2F0KGUuZGV0YWlsKSkgOiBsaXN0ZW5lcihlKTsgfTsKICAgIH0KCiAgICBmdW5jdGlvbiBzZWxmRmlsdGVyKGxpc3RlbmVyKSB7CiAgICAgICAgcmV0dXJuIGZ1bmN0aW9uIChlKSB7CiAgICAgICAgICAgIGlmIChlLnRhcmdldCA9PT0gZS5jdXJyZW50VGFyZ2V0IHx8IGUudGFyZ2V0ID09PSBlLmN1cnJlbnQpIHsKICAgICAgICAgICAgICAgIHJldHVybiBsaXN0ZW5lci5jYWxsKG51bGwsIGUpOwogICAgICAgICAgICB9CiAgICAgICAgfTsKICAgIH0KCiAgICBmdW5jdGlvbiB1c2VDYXB0dXJlRmlsdGVyKG9wdGlvbnMpIHsKICAgICAgICByZXR1cm4gb3B0aW9ucyAmJiBpc0lFICYmICFpc0Jvb2xlYW4ob3B0aW9ucykKICAgICAgICAgICAgPyAhIW9wdGlvbnMuY2FwdHVyZQogICAgICAgICAgICA6IG9wdGlvbnM7CiAgICB9CgogICAgZnVuY3Rpb24gaXNFdmVudFRhcmdldCh0YXJnZXQpIHsKICAgICAgICByZXR1cm4gdGFyZ2V0ICYmICdhZGRFdmVudExpc3RlbmVyJyBpbiB0YXJnZXQ7CiAgICB9CgogICAgZnVuY3Rpb24gdG9FdmVudFRhcmdldCh0YXJnZXQpIHsKICAgICAgICByZXR1cm4gaXNFdmVudFRhcmdldCh0YXJnZXQpID8gdGFyZ2V0IDogdG9Ob2RlKHRhcmdldCk7CiAgICB9CgogICAgZnVuY3Rpb24gdG9FdmVudFRhcmdldHModGFyZ2V0KSB7CiAgICAgICAgcmV0dXJuIGlzQXJyYXkodGFyZ2V0KQogICAgICAgICAgICAgICAgPyB0YXJnZXQubWFwKHRvRXZlbnRUYXJnZXQpLmZpbHRlcihCb29sZWFuKQogICAgICAgICAgICAgICAgOiBpc1N0cmluZyh0YXJnZXQpCiAgICAgICAgICAgICAgICAgICAgPyBmaW5kQWxsKHRhcmdldCkKICAgICAgICAgICAgICAgICAgICA6IGlzRXZlbnRUYXJnZXQodGFyZ2V0KQogICAgICAgICAgICAgICAgICAgICAgICA/IFt0YXJnZXRdCiAgICAgICAgICAgICAgICAgICAgICAgIDogdG9Ob2Rlcyh0YXJnZXQpOwogICAgfQoKICAgIGZ1bmN0aW9uIGlzVG91Y2goZSkgewogICAgICAgIHJldHVybiBlLnBvaW50ZXJUeXBlID09PSAndG91Y2gnIHx8ICEhZS50b3VjaGVzOwogICAgfQoKICAgIGZ1bmN0aW9uIGdldEV2ZW50UG9zKGUsIHByb3ApIHsKICAgICAgICBpZiAoIHByb3AgPT09IHZvaWQgMCApIHByb3AgPSAnY2xpZW50JzsKCiAgICAgICAgdmFyIHRvdWNoZXMgPSBlLnRvdWNoZXM7CiAgICAgICAgdmFyIGNoYW5nZWRUb3VjaGVzID0gZS5jaGFuZ2VkVG91Y2hlczsKICAgICAgICB2YXIgcmVmID0gdG91Y2hlcyAmJiB0b3VjaGVzWzBdIHx8I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ZSA9IHRoaXM7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGV4ZWN1dG9yKAogICAgICAgICAgICAgICAgZnVuY3Rpb24gKHgpIHsKICAgICAgICAgICAgICAgICAgICBwcm9taXNlLnJlc29sdmUoeCk7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgZnVuY3Rpb24gKHIpIHsKICAgICAgICAgICAgICAgICAgICBwcm9taXNlLnJlamVjdChyKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgKTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHByb21pc2UucmVqZWN0KGUpOwogICAgICAgIH0KICAgIH0KCiAgICBQcm9taXNlRm4ucmVqZWN0ID0gZnVuY3Rpb24gKHIpIHsKICAgICAgICByZXR1cm4gbmV3IFByb21pc2VGbihmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7CiAgICAgICAgICAgIHJlamVjdChyKTsKICAgICAgICB9KTsKICAgIH07CgogICAgUHJvbWlzZUZuLnJlc29sdmUgPSBmdW5jdGlvbiAoeCkgewogICAgICAgIHJldHVybiBuZXcgUHJvbWlzZUZuKGZ1bmN0aW9uIChyZXNvbHZlLCByZWplY3QpIHsKICAgICAgICAgICAgcmVzb2x2ZSh4KTsKICAgICAgICB9KTsKICAgIH07CgogICAgUHJvbWlzZUZuLmFsbCA9IGZ1bmN0aW9uIGFsbChpdGVyYWJsZSkgewogICAgICAgIHJldHVybiBuZXcgUHJvbWlzZUZuKGZ1bmN0aW9uIChyZXNvbHZlLCByZWplY3QpIHsKICAgICAgICAgICAgdmFyIHJlc3VsdCA9IFtdOwogICAgICAgICAgICB2YXIgY291bnQgPSAwOwoKICAgICAgICAgICAgaWYgKGl0ZXJhYmxlLmxlbmd0aCA9PT0gMCkgewogICAgICAgICAgICAgICAgcmVzb2x2ZShyZXN1bHQpOwogICAgICAgICAgICB9CgogICAgICAgICAgICBmdW5jdGlvbiByZXNvbHZlcihpKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZnVuY3Rpb24gKHgpIHsKICAgICAgICAgICAgICAgICAgICByZXN1bHRbaV0gPSB4OwogICAgICAgICAgICAgICAgICAgIGNvdW50ICs9IDE7CgogICAgICAgICAgICAgICAgICAgIGlmIChjb3VudCA9PT0gaXRlcmFibGUubGVuZ3RoKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdmUocmVzdWx0KTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9CgogICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGl0ZXJhYmxlLmxlbmd0aDsgaSArPSAxKSB7CiAgICAgICAgICAgICAgICBQcm9taXNlRm4ucmVzb2x2ZShpdGVyYWJsZVtpXSkudGhlbihyZXNvbHZlcihpKSwgcmVqZWN0KTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgfTsKCiAgICBQcm9taXNlRm4ucmFjZSA9IGZ1bmN0aW9uIHJhY2UoaXRlcmFibGUpIHsKICAgICAgICByZXR1cm4gbmV3IFByb21pc2VGbihmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7CiAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgaXRlcmFibGUubGVuZ3RoOyBpICs9IDEpIHsKICAgICAgICAgICAgICAgIFByb21pc2VGbi5yZXNvbHZlKGl0ZXJhYmxlW2ldKS50aGVuKHJlc29sdmUsIHJlamVjdCk7CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgIH07CgogICAgdmFyIHAgPSBQcm9taXNlRm4ucHJvdG90eXBlOwoKICAgIHAucmVzb2x2ZSA9IGZ1bmN0aW9uIHJlc29sdmUoeCkgewogICAgICAgIHZhciBwcm9taXNlID0gdGhpczsKCiAgICAgICAgaWYgKHByb21pc2Uuc3RhdGUgPT09IFBFTkRJTkcpIHsKICAgICAgICAgICAgaWYgKHggPT09IHByb21pc2UpIHsKICAgICAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoJ1Byb21pc2Ugc2V0dGxlZCB3aXRoIGl0c2VsZi4nKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgdmFyIGNhbGxlZCA9IGZhbHNlOwoKICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIHZhciB0aGVuID0geCAmJiB4LnRoZW47CgogICAgICAgICAgICAgICAgaWYgKHggIT09IG51bGwgJiYgaXNPYmplY3QoeCkgJiYgaXNGdW5jdGlvbih0aGVuKSkgewogICAgICAgICAgICAgICAgICAgIHRoZW4uY2FsbCgKICAgICAgICAgICAgICAgICAgICAgICAgeCwKICAgICAgICAgICAgICAgICAgICAgICAgZnVuY3Rpb24gKHgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghY2FsbGVkKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJvbWlzZS5yZXNvbHZlKHgpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGVkID0gdHJ1ZTsKICAgICAgICAgICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgICAgICAgICAgZnVuY3Rpb24gKHIpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghY2FsbGVkKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJvbWlzZS5yZWplY3Qocik7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYWxsZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgKTsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgICAgIGlmICghY2FsbGVkKSB7CiAgICAgICAgICAgICAgICAgICAgcHJvbWlzZS5yZWplY3QoZSk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHByb21pc2Uuc3RhdGUgPSBSRVNPTFZFRDsKICAgICAgICAgICAgcHJvbWlzZS52YWx1ZSA9IHg7CiAgICAgICAgICAgIHByb21pc2Uubm90aWZ5KCk7CiAgICAgICAgfQogICAgfTsKCiAgICBwLnJlamVjdCA9IGZ1bmN0aW9uIHJlamVjdChyZWFzb24pIHsKICAgICAgICB2YXIgcHJvbWlzZSA9IHRoaXM7CgogICAgICAgIGlmIChwcm9taXNlLnN0YXRlID09PSBQRU5ESU5HKSB7CiAgICAgICAgICAgIGlmIChyZWFzb24gPT09IHByb21pc2UpIHsKICAgICAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoJ1Byb21pc2Ugc2V0dGxlZCB3aXRoIGl0c2VsZi4nKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgcHJvbWlzZS5zdGF0ZSA9IFJFSkVDVEVEOwogICAgICAgICAgICBwcm9taXNlLnZhbHVlID0gcmVhc29uOwogICAgICAgICAgICBwcm9taXNlLm5vdGlmeSgpOwogICAgICAgIH0KICAgIH07CgogICAgcC5ub3RpZnkgPSBmdW5jdGlvbiBub3RpZnkoKSB7CiAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgogICAgICAgIGFzeW5jKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgaWYgKHRoaXMkMS5zdGF0ZSAhPT0gUEVORElORykgewogICAgICAgICAgICAgICAgd2hpbGUgKHRoaXMkMS5kZWZlcnJlZC5sZW5ndGgpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgcmVmID0gdGhpcyQxLmRlZmVycmVkLnNoaWZ0KCk7CiAgICAgICAgICAgICAgICAgICAgdmFyIG9uUmVzb2x2ZWQgPSByZWZbMF07CiAgICAgICAgICAgICAgICAgICAgdmFyIG9uUmVqZWN0ZWQgPSByZWZbMV07CiAgICAgICAgICAgICAgICAgICAgdmFyIHJlc29sdmUgPSByZWZbMl07CiAgICAgICAgICAgICAgICAgICAgdmFyIHJlamVjdCA9IHJlZlszXTsKCiAgICAgICAgICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMkMS5zdGF0ZSA9PT0gUkVTT0xWRUQpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpc0Z1bmN0aW9uKG9uUmVzb2x2ZWQpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZShvblJlc29sdmVkLmNhbGwodW5kZWZpbmVkLCB0aGlzJDEudmFsdWUpKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZSh0aGlzJDEudmFsdWUpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHRoaXMkMS5zdGF0ZSA9PT0gUkVKRUNURUQpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpc0Z1bmN0aW9uKG9uUmVqZWN0ZWQpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZShvblJlamVjdGVkLmNhbGwodW5kZWZpbmVkLCB0aGlzJDEudmFsdWUpKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVqZWN0KHRoaXMkMS52YWx1ZSk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJlamVjdChlKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgIH07CgogICAgcC50aGVuID0gZnVuY3Rpb24gdGhlbihvblJlc29sdmVkLCBvblJlamVjdGVkKSB7CiAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgogICAgICAgIHJldHVybiBuZXcgUHJvbWlzZUZuKGZ1bmN0aW9uIChyZXNvbHZlLCByZWplY3QpIHsKICAgICAgICAgICAgdGhpcyQxLmRlZmVycmVkLnB1c2goW29uUmVzb2x2ZWQsIG9uUmVqZWN0ZWQsIHJlc29sdmUsIHJlamVjdF0pOwogICAgICAgICAgICB0aGlzJDEubm90aWZ5KCk7CiAgICAgICAgfSk7CiAgICB9OwoKICAgIHAuY2F0Y2ggPSBmdW5jdGlvbiAob25SZWplY3RlZCkgewogICAgICAgIHJldHVybiB0aGlzLnRoZW4odW5kZWZpbmVkLCBvblJlamVjdGVkKTsKICAgIH07CgogICAgZnVuY3Rpb24gYWpheCh1cmwsIG9wdGlvbnMpIHsKICAgICAgICByZXR1cm4gbmV3IFByb21pc2UoZnVuY3Rpb24gKHJlc29sdmUsIHJlamVjdCkgewoKICAgICAgICAgICAgdmFyIGVudiA9IGFzc2lnbih7CiAgICAgICAgICAgICAgICBkYXRhOiBudWxsLAogICAgICAgICAgICAgICAgbWV0aG9kOiAnR0VUJywKICAgICAgICAgICAgICAgIGhlYWRlcnM6IHt9LAogICAgICAgICAgICAgICAgeGhyOiBuZXcgWE1MSHR0cFJlcXVlc3QoKSwKICAgICAgICAgICAgICAgIGJlZm9yZVNlbmQ6IG5vb3AsCiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGU6ICcnCiAgICAgICAgICAgIH0sIG9wdGlvbnMpOwoKICAgICAgICAgICAgZW52LmJlZm9yZVNlbmQoZW52KTsKCiAgICAgICAgICAgIHZhciB4aHIgPSBlbnYueGhyOwoKICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBlbnYpIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wIGluIHhocikgewogICAgICAgICAgICAgICAgICAgIHRyeSB7CgogICAgICAgICAgICAgICAgICAgICAgICB4aHJbcHJvcF0gPSBlbnZbcHJvcF07CgogICAgICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHt9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHhoci5vcGVuKGVudi5tZXRob2QudG9VcHBlckNhc2UoKSwgdXJsKTsKCiAgICAgICAgICAgIGZvciAodmFyIGhlYWRlciBpbiBlbnYuaGVhZGVycykgewogICAgICAgICAgICAgICAgeGhyLnNldFJlcXVlc3RIZWFkZXIoaGVhZGVyLCBlbnYuaGVhZGVyc1toZWFkZXJdKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgb24oeGhyLCAnbG9hZCcsIGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgICAgICBpZiAoeGhyLnN0YXR1cyA9PT0gMCB8fCB4aHIuc3RhdHVzID49IDIwMCAmJiB4aHIuc3RhdHVzIDwgMzAwIHx8IHhoci5zdGF0dXMgPT09IDMwNCkgewogICAgICAgICAgICAgICAgICAgIHJlc29sdmUoeGhyKTsKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgcmVqZWN0KGFzc2lnbihFcnJvcih4aHIuc3RhdHVzVGV4dCksIHsKICAgICAgICAgICAgICAgICAgICAgICAgeGhyOiB4aHIsCiAgICAgICAgICAgICAgICAgICAgICAgIHN0YXR1czogeGhyLnN0YXR1cwogICAgICAgICAgICAgICAgICAgIH0pKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgb24oeGhyLCAnZXJyb3InLCBmdW5jdGlvbiAoKSB7IHJldHVybiByZWplY3QoYXNzaWduKEVycm9yKCdOZXR3b3JrIEVycm9yJyksIHt4aHI6IHhocn0pKTsgfSk7CiAgICAgICAgICAgIG9uKHhociwgJ3RpbWVvdXQnLCBmdW5jdGlvbiAoKSB7IHJldHVybiByZWplY3QoYXNzaWduKEVycm9yKCdOZXR3b3JrIFRpbWVvdXQnKSwge3hocjogeGhyfSkpOyB9KTsKCiAgICAgICAgICAgIHhoci5zZW5kKGVudi5kYXRhKTsKICAgICAgICB9KTsKICAgIH0KCiAgICBmdW5jdGlvbiBnZXRJbWFnZShzcmMsIHNyY3NldCwgc2l6ZXMpIHsKCiAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKGZ1bmN0aW9uIChyZXNvbHZlLCByZWplY3QpIHsKICAgICAgICAgICAgdmFyIGltZyA9IG5ldyBJbWFnZSgpOwoKICAgICAgICAgICAgaW1nLm9uZXJyb3IgPSByZWplY3Q7CiAgICAgICAgICAgIGltZy5vbmxvYWQgPSBmdW5jdGlvbiAoKSB7IHJldHVybiByZXNvbHZlKGltZyk7IH07CgogICAgICAgICAgICBzaXplcyAmJiAoaW1nLnNpemVzID0gc2l6ZXMpOwogICAgICAgICAgICBzcmNzZXQgJiYgKGltZy5zcmNzZXQgPSBzcmNzZXQpOwogICAgICAgICAgICBpbWcuc3JjID0gc3JjOwogICAgICAgIH0pOwoKICAgIH0KCiAgICBmdW5jdGlvbiByZWFkeShmbikgewoKICAgICAgICBpZiAoZG9jdW1lbnQucmVhZHlTdGF0ZSAhPT0gJ2xvYWRpbmcnKSB7CiAgICAgICAgICAgIGZuKCk7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB9CgogICAgICAgIHZhciB1bmJpbmQgPSBvbihkb2N1bWVudCwgJ0RPTUNvbnRlbnRMb2FkZWQnLCBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHVuYmluZCgpOwogICAgICAgICAgICBmbigpOwogICAgICAgIH0pOwogICAgfQoKICAgIGZ1bmN0aW9uIGluZGV4KGVsZW1lbnQsIHJlZikgewogICAgICAgIHJldHVybiByZWYKICAgICAgICAgICAgPyB0b05vZGVzKGVsZW1lbnQpLmluZGV4T2YodG9Ob2RlKHJlZikpCiAgICAgICAgICAgIDogdG9Ob2RlcygoZWxlbWVudCA9IHRvTm9kZShlbGVtZW50KSkgJiYgZWxlbWVudC5wYXJlbnROb2RlLmNoaWxkcmVuKS5pbmRleE9mKGVsZW1lbnQpOwogICAgfQoKICAgIGZ1bmN0aW9uIGdldEluZGV4KGksIGVsZW1lbnRzLCBjdXJyZW50LCBmaW5pdGUpIHsKICAgICAgICBpZiAoIGN1cnJlbnQgPT09IHZvaWQgMCApIGN1cnJlbnQgPSAwOwogICAgICAgIGlmICggZmluaXRlID09PSB2b2lkIDAgKSBmaW5pdGUgPSBmYWxzZTsKCgogICAgICAgIGVsZW1lbnRzID0gdG9Ob2RlcyhlbGVtZW50cyk7CgogICAgICAgIHZhciBsZW5ndGggPSBlbGVtZW50cy5sZW5ndGg7CgogICAgICAgIGkgPSBpc051bWVyaWMoaSkKICAgICAgICAgICAgPyB0b051bWJlcihpKQogICAgICAgICAgICA6IGkgPT09ICduZXh0JwogICAgICAgICAgICAgICAgPyBjdXJyZW50ICsgMQogICAgICAgICAgICAgICAgOiBpID09PSAncHJldmlvdXMnCiAgICAgICAgICAgICAgICAgICAgPyBjdXJyZW50IC0gMQogICAgICAgICAgICAgICAgICAgIDogaW5kZXgoZWxlbWVudHMsIGkpOwoKICAgICAgICBpZiAoZmluaXRlKSB7CiAgICAgICAgICAgIHJldHVybiBjbGFtcChpLCAwLCBsZW5ndGggLSAxKTsKICAgICAgICB9CgogICAgICAgIGkgJT0gbGVuZ3RoOwoKICAgICAgICByZXR1cm4gaSA8IDAgPyBpICsgbGVuZ3RoIDogaTsKICAgIH0KCiAgICBmdW5jdGlvbiBlbXB0eShlbGVtZW50KSB7CiAgICAgICAgZWxlbWVudCA9ICQoZWxlbWVudCk7CiAgICAgICAgZWxlbWVudC5pbm5lckhUTUwgPSAnJzsKICAgICAgICByZXR1cm4gZWxlbWVudDsKICAgIH0KCiAgICBmdW5jdGlvbiBodG1sKHBhcmVudCwgaHRtbCkgewogICAgICAgIHBhcmVudCA9ICQocGFyZW50KTsKICAgICAgICByZXR1c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VmID0gJChyZWYpOwogICAgICAgIHJldHVybiBpbnNlcnROb2RlcyhlbGVtZW50LCBmdW5jdGlvbiAoZWxlbWVudCkgeyByZXR1cm4gcmVmLm5leHRTaWJsaW5nCiAgICAgICAgICAgID8gYmVmb3JlKHJlZi5uZXh0U2libGluZywgZWxlbWVudCkKICAgICAgICAgICAgOiBhcHBlbmQocmVmLnBhcmVudE5vZGUsIGVsZW1lbnQpOyB9CiAgICAgICAgKTsKICAgIH0KCiAgICBmdW5jdGlvbiBpbnNlcnROb2RlcyhlbGVtZW50LCBmbikgewogICAgICAgIGVsZW1lbnQgPSBpc1N0cmluZyhlbGVtZW50KSA/IGZyYWdtZW50KGVsZW1lbnQpIDogZWxlbWVudDsKICAgICAgICByZXR1cm4gZWxlbWVudAogICAgICAgICAgICA/ICdsZW5ndGgnIGluIGVsZW1lbnQKICAgICAgICAgICAgICAgID8gdG9Ob2RlcyhlbGVtZW50KS5tYXAoZm4pCiAgICAgICAgICAgICAgICA6IGZuKGVsZW1lbnQpCiAgICAgICAgICAgIDogbnVsbDsKICAgIH0KCiAgICBmdW5jdGlvbiByZW1vdmUoZWxlbWVudCkgewogICAgICAgIHRvTm9kZXMoZWxlbWVudCkubWFwKGZ1bmN0aW9uIChlbGVtZW50KSB7IHJldHVybiBlbGVtZW50LnBhcmVudE5vZGUgJiYgZWxlbWVudC5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKGVsZW1lbnQpOyB9KTsKICAgIH0KCiAgICBmdW5jdGlvbiB3cmFwQWxsKGVsZW1lbnQsIHN0cnVjdHVyZSkgewoKICAgICAgICBzdHJ1Y3R1cmUgPSB0b05vZGUoYmVmb3JlKGVsZW1lbnQsIHN0cnVjdHVyZSkpOwoKICAgICAgICB3aGlsZSAoc3RydWN0dXJlLmZpcnN0Q2hpbGQpIHsKICAgICAgICAgICAgc3RydWN0dXJlID0gc3RydWN0dXJlLmZpcnN0Q2hpbGQ7CiAgICAgICAgfQoKICAgICAgICBhcHBlbmQoc3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7CiAgICAgICAgaWYgKG1hdGNoZXMpIHsKICAgICAgICAgICAgcmV0dXJuIGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQobWF0Y2hlc1sxXSk7CiAgICAgICAgfQoKICAgICAgICB2YXIgY29udGFpbmVyID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnZGl2Jyk7CiAgICAgICAgaWYgKGZyYWdtZW50UmUudGVzdChodG1sKSkgewogICAgICAgICAgICBjb250YWluZXIuaW5zZXJ0QWRqYWNlbnRIVE1MKCdiZWZvcmVlbmQnLCBodG1sLnRyaW0oKSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgY29udGFpbmVyLnRleHRDb250ZW50ID0gaHRtbDsKICAgICAgICB9CgogICAgICAgIHJldHVybiBjb250YWluZXIuY2hpbGROb2Rlcy5sZW5ndGggPiAxID8gdG9Ob2Rlcyhjb250YWluZXIuY2hpbGROb2RlcykgOiBjb250YWluZXIuZmlyc3RDaGlsZDsKCiAgICB9CgogICAgZnVuY3Rpb24gYXBwbHkobm9kZSwgZm4pIHsKCiAgICAgICAgaWYgKCFub2RlIHx8IG5vZGUubm9kZVR5cGUgIT09IDEpIHsKICAgICAgICAgICAgcmV0dXJuOwogICAgICAgIH0KCiAgICAgICAgZm4obm9kZSk7CiAgICAgICAgbm9kZSA9IG5vZGUuZmlyc3RFbGVtZW50Q2hpbGQ7CiAgICAgICAgd2hpbGUgKG5vZGUpIHsKICAgICAgICAgICAgYXBwbHkobm9kZSwgZm4pOwogICAgICAgICAgICBub2RlID0gbm9kZS5uZXh0RWxlbWVudFNpYmxpbmc7CiAgICAgICAgfQogICAgfQoKICAgIGZ1bmN0aW9uICQoc2VsZWN0b3IsIGNvbnRleHQpIHsKICAgICAgICByZXR1cm4gIWlzU3RyaW5nKHNlbGVjdG9yKQogICAgICAgICAgICA/IHRvTm9kZShzZWxlY3RvcikKICAgICAgICAgICAgOiBpc0h0bWwoc2VsZWN0b3IpCiAgICAgICAgICAgICAgICA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iBhcmdzLmZvckVhY2goZnVuY3Rpb24gKGNscykgeyByZXR1cm4gY2xhc3NMaXN0W2ZuXShjbHMpOyB9KTsKICAgICAgICB9KTsKICAgIH0KCiAgICBmdW5jdGlvbiBnZXRBcmdzJDEoYXJncykgewogICAgICAgIHJldHVybiBhcmdzLnJlZHVjZShmdW5jdGlvbiAoYXJncywgYXJnKSB7IHJldHVybiBhcmdzLmNvbmNhdC5jYWxsKGFyZ3MsIGlzU3RyaW5nKGFyZykgJiYgaW5jbHVkZXMoYXJnLCAnICcpID8gYXJnLnRyaW0oKS5zcGxpdCgnICcpIDogYXJnKTsgfQogICAgICAgICAgICAsIFtdKTsKICAgIH0KCiAgICAvLyBJRSAxMQogICAgdmFyIHN1cHBvcnRzID0gewoKICAgICAgICBnZXQgTXVsdGlwbGUoKSB7CiAgICAgICAgICAgIHJldHVybiB0aGlzLmdldCgnX211bHRpcGxlJyk7CiAgICAgICAgfSwKCiAgICAgICAgZ2V0IEZvcmNlKCkgewogICAgICAgICAgICByZXR1cm4gdGhpcy5nZXQoJ19mb3JjZScpOwogICAgICAgIH0sCgogICAgICAgIGdldDogZnVuY3Rpb24oa2V5KSB7CgogICAgICAgICAgICBpZiAoIWhhc093bih0aGlzLCBrZXkpKSB7CiAgICAgICAgICAgICAgICB2YXIgcmVmID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnXycpOwogICAgICAgICAgICAgICAgdmFyIGNsYXNzTGlzdCA9IHJlZi5jbGFzc0xpc3Q7CiAgICAgICAgICAgICAgICBjbGFzc0xpc3QuYWRkKCdhJywgJ2InKTsKICAgICAgICAgICAgICAgIGNsYXNzTGlzdC50b2dnbGUoJ2MnLCBmYWxzZSk7CiAgICAgICAgICAgICAgICB0aGlzLl9tdWx0aXBsZSA9IGNsYXNzTGlzdC5jb250YWlucygnYicpOwogICAgICAgICAgICAgICAgdGhpcy5fZm9yY2UgPSAhY2xhc3NMaXN0LmNvbnRhaW5zKCdjJyk7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiB0aGlzW2tleV07CiAgICAgICAgfQoKICAgIH07CgogICAgdmFyIGNzc051bWJlciA9IHsKICAgICAgICAnYW5pbWF0aW9uLWl0ZXJhdGlvbi1jb3VudCc6IHRydWUsCiAgICAgICAgJ2NvbHVtbi1jb3VudCc6IHRydWUsCiAgICAgICAgJ2ZpbGwtb3BhY2l0eSc6IHRydWUsCiAgICAgICAgJ2ZsZXgtZ3Jvdyc6IHRydWUsCiAgICAgICAgJ2ZsZXgtc2hyaW5rJzogdHJ1ZSwKICAgICAgICAnZm9udC13ZWlnaHQnOiB0cnVlLAogICAgICAgICdsaW5lLWhlaWdodCc6IHRydWUsCiAgICAgICAgJ29wYWNpdHknOiB0cnVlLAogICAgICAgICdvcmRlcic6IHRydWUsCiAgICAgICAgJ29ycGhhbnMnOiB0cnVlLAogICAgICAgICdzdHJva2UtZGFzaGFycmF5JzogdHJ1ZSwKICAgICAgICAnc3Ryb2tlLWRhc2hvZmZzZXQnOiB0cnVlLAogICAgICAgICd3aWRvd3MnOiB0cnVlLAogICAgICAgICd6LWluZGV4JzogdHJ1ZSwKICAgICAgICAnem9vbSc6IHRydWUKICAgIH07CgogICAgZnVuY3Rpb24gY3NzKGVsZW1lbnQsIHByb3BlcnR5LCB2YWx1ZSkgewoKICAgICAgICByZXR1cm4gdG9Ob2RlcyhlbGVtZW50KS5tYXAoZnVuY3Rpb24gKGVsZW1lbnQpIHsKCiAgICAgICAgICAgIGlmIChpc1N0cmluZyhwcm9wZXJ0eSkpIHsKCiAgICAgICAgICAgICAgICBwcm9wZXJ0eSA9IHByb3BOYW1lKHByb3BlcnR5KTsKCiAgICAgICAgICAgICAgICBpZiAoaXNVbmRlZmluZWQodmFsdWUpKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGdldFN0eWxlKGVsZW1lbnQsIHByb3BlcnR5KTsKICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoIXZhbHVlICYmICFpc051bWJlcih2YWx1ZSkpIHsKICAgICAgICAgICAgICAgICAgICBlbGVtZW50LnN0eWxlLnJlbW92ZVByb3BlcnR5KHByb3BlcnR5KTsKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgZWxlbWVudC5zdHlsZVtwcm9wZXJ0eV0gPSBpc051bWVyaWModmFsdWUpICYmICFjc3NOdW1iZXJbcHJvcGVydHldID8gKHZhbHVlICsgInB4IikgOiB2YWx1ZTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0gZWxzZSBpZiAoaXNBcnJheShwcm9wZXJ0eSkpIHsKCiAgICAgICAgICAgICAgICB2YXIgc3R5bGVzID0gZ2V0U3R5bGVzKGVsZW1lbnQpOwoKICAgICAgICAgICAgICAgIHJldHVybiBwcm9wZXJ0eS5yZWR1Y2UoZnVuY3Rpb24gKHByb3BzLCBwcm9wZXJ0eSkgewogICAgICAgICAgICAgICAgICAgIHByb3BzW3Byb3BlcnR5XSA9IHN0eWxlc1twcm9wTmFtZShwcm9wZXJ0eSldOwogICAgICAgICAgICAgICAgICAgIHJldHVybiBwcm9wczsKICAgICAgICAgICAgICAgIH0sIHt9KTsKCiAgICAgICAgICAgIH0gZWxzZSBpZiAoaXNPYmplY3QocHJvcGVydHkpKSB7CiAgICAgICAgICAgICAgICBlYWNoKHByb3BlcnR5LCBmdW5jdGlvbiAodmFsdWUsIHByb3BlcnR5KSB7IHJldHVybiBjc3MoZWxlbWVudCwgcHJvcGVydHksIHZhbHVlKTsgfSk7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiBlbGVtZW50OwoKICAgICAgICB9KVswXTsKCiAgICB9CgogICAgZnVuY3Rpb24gZ2V0U3R5bGVzKGVsZW1lbnQsIHBzZXVkb0VsdCkgewogICAgICAgIGVsZW1lbnQgPSB0b05vZGUoZWxlbWVudCk7CiAgICAgICAgcmV0dXJuIGVsZW1lbnQub3duZXJEb2N1bWVudC5kZWZhdWx0Vmlldy5n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zW25hbWVdOwogICAgICAgIGlmICghcmV0KSB7CiAgICAgICAgICAgIHJldCA9IGNzc1Byb3BzW25hbWVdID0gdmVuZG9yUHJvcE5hbWUobmFtZSkgfHwgbmFtZTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHJldDsKICAgIH0KCiAgICB2YXIgY3NzUHJlZml4ZXMgPSBbJ3dlYmtpdCcsICdtb3onLCAnbXMnXTsKCiAgICBmdW5jdGlvbiB2ZW5kb3JQcm9wTmFtZShuYW1lKSB7CgogICAgICAgIG5hbWUgPSBoeXBoZW5hdGUobmFtZSk7CgogICAgICAgIHZhciByZWYgPSBkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQ7CiAgICAgICAgdmFyIHN0eWxlID0gcmVmLnN0eWxlOwoKICAgICAgICBpZiAobmFtZSBpbiBzdHlsZSkgewogICAgICAgICAgICByZXR1cm4gbmFtZTsKICAgICAgICB9CgogICAgICAgIHZhciBpID0gY3NzUHJlZml4ZXMubGVuZ3RoLCBwcmVmaXhlZE5hbWU7CgogICAgICAgIHdoaWxlIChpLS0pIHsKICAgICAgICAgICAgcHJlZml4ZWROYW1lID0gIi0iICsgKGNzc1ByZWZpeGVzW2ldKSArICItIiArIG5hbWU7CiAgICAgICAgICAgIGlmIChwcmVmaXhlZE5hbWUgaW4gc3R5bGUpIHsKICAgICAgICAgICAgICAgIHJldHVybiBwcmVmaXhlZE5hbWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9CgogICAgZnVuY3Rpb24gdHJhbnNpdGlvbihlbGVtZW50LCBwcm9wcywgZHVyYXRpb24sIHRpbWluZykgewogICAgICAgIGlmICggZHVyYXRpb24gPT09IHZvaWQgMCApIGR1cmF0aW9uID0gNDAwOwogICAgICAgIGlmICggdGltaW5nID09PSB2b2lkIDAgKSB0aW1pbmcgPSAnbGluZWFyJzsKCgogICAgICAgIHJldHVybiBQcm9taXNlLmFsbCh0b05vZGVzKGVsZW1lbnQpLm1hcChmdW5jdGlvbiAoZWxlbWVudCkgeyByZXR1cm4gbmV3IFByb21pc2UoZnVuY3Rpb24gKHJlc29sdmUsIHJlamVjdCkgewoKICAgICAgICAgICAgICAgIGZvciAodmFyIG5hbWUgaW4gcHJvcHMpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgdmFsdWUgPSBjc3MoZWxlbWVudCwgbmFtZSk7CiAgICAgICAgICAgICAgICAgICAgaWYgKHZhbHVlID09PSAnJykgewogICAgICAgICAgICAgICAgICAgICAgICBjc3MoZWxlbWVudCwgbmFtZSwgdmFsdWUpOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB2YXIgdGltZXIgPSBzZXRUaW1lb3V0KGZ1bmN0aW9uICgpIHsgcmV0dXJuIHRyaWdnZXIoZWxlbWVudCwgJ3RyYW5zaXRpb25lbmQnKTsgfSwgZHVyYXRpb24pOwoKICAgICAgICAgICAgICAgIG9uY2UoZWxlbWVudCwgJ3RyYW5zaXRpb25lbmQgdHJhbnNpdGlvbmNhbmNlbGVkJywgZnVuY3Rpb24gKHJlZikgewogICAgICAgICAgICAgICAgICAgIHZhciB0eXBlID0gcmVmLnR5cGU7CgogICAgICAgICAgICAgICAgICAgIGNsZWFyVGltZW91dCh0aW1lcik7CiAgICAgICAgICAgICAgICAgICAgcmVtb3ZlQ2xhc3MoZWxlbWVudCwgJ3VrLXRyYW5zaXRpb24nKTsKICAgICAgICAgICAgICAgICAgICBjc3MoZWxlbWVudCwgewogICAgICAgICAgICAgICAgICAgICAgICAndHJhbnNpdGlvbi1wcm9wZXJ0eSc6ICcnLAogICAgICAgICAgICAgICAgICAgICAgICAndHJhbnNpdGlvbi1kdXJhdGlvbic6ICcnLAogICAgICAgICAgICAgICAgICAgICAgICAndHJhbnNpdGlvbi10aW1pbmctZnVuY3Rpb24nOiAnJwogICAgICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgICAgIHR5cGUgPT09ICd0cmFuc2l0aW9uY2FuY2VsZWQnID8gcmVqZWN0KCkgOiByZXNvbHZlKCk7CiAgICAgICAgICAgICAgICB9LCB7c2VsZjogdHJ1ZX0pOwoKICAgICAgICAgICAgICAgIGFkZENsYXNzKGVsZW1lbnQsICd1ay10cmFuc2l0aW9uJyk7CiAgICAgICAgICAgICAgICBjc3MoZWxlbWVudCwgYXNzaWduKHsKICAgICAgICAgICAgICAgICAgICAndHJhbnNpdGlvbi1wcm9wZXJ0eSc6IE9iamVjdC5rZXlzKHByb3BzKS5tYXAocHJvcE5hbWUpLmpvaW4oJywnKSwKICAgICAgICAgICAgICAgICAgICAndHJhbnNpdGlvbi1kdXJhdGlvbic6IChkdXJhdGlvbiArICJtcyIpLAogICAgICAgICAgICAgICAgICAgICd0cmFuc2l0aW9uLXRpbWluZy1mdW5jdGlvbic6IHRpbWluZwogICAgICAgICAgICAgICAgfSwgcHJvcHMpKTsKCiAgICAgICAgICAgIH0pOyB9CiAgICAgICAgKSk7CgogICAgfQoKICAgIHZhciBUcmFuc2l0aW9uID0gewoKICAgICAgICBzdGFydDogdHJhbnNpdGlvbiwKCiAgICAgICAgc3RvcDogZnVuY3Rpb24oZWxlbWVudCkgewogICAgICAgICAgICB0cmlnZ2VyKGVsZW1lbnQsICd0cmFuc2l0aW9uZW5kJyk7CiAgICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoKTsKICAgICAgICB9LAoKICAgICAgICBjYW5jZWw6IGZ1bmN0aW9uKGVsZW1lbnQpIHsKICAgICAgICAgICAgdHJpZ2dlcihlbGVtZW50LCAndHJhbnNpdGlvbmNhbmNlbGVkJyk7CiAgICAgICAgfSwKCiAgICAgICAgaW5Qcm9ncmVzczogZnVuY3Rpb24oZWxlbWVudCkgewogICAgICAgICAgICByZXR1cm4gaGFzQ2xhc3MoZWxlbWVudCwgJ3VrLXRyYW5zaXRpb24nKTsKICAgICAgICB9CgogICAgfTsKCiAgICB2YXIgYW5pbWF0aW9uUHJlZml4ID0gJ3VrLWFuaW1hdGlvbi0nOwogICAgdmFyIGNsc0NhbmNlbEFuaW1hdGlvbiA9ICd1ay1jYW5jZWwtYW5pbWF0aW9uJzsKCiAgICBmdW5jdGlvbiBhbmltYXRlKGVsZW1lbnQsIGFuaW1hdGlvbiwgZHVyYXRpb24sIG9yaWdpbiwgb3V0KSB7CiAgICAgICAgdmFyIGFyZ3VtZW50cyQxID0gYXJndW1lbnRzOwogICAgICAgIGlmICggZHVyYXRpb24gPT09IHZvaWQgMCApIGR1cmF0aW9uID0gMjAwOwoKCiAgICAgICAgcmV0dXJuIFByb21pc2UuYWxsKHRvTm9kZXMoZWxlbWVudCkubWFwKGZ1bmN0aW9uIChlbGVtZW50KSB7IHJldHVybiBuZXcgUHJvbWlzZShmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7CgogICAgICAgICAgICAgICAgaWYgKGhhc0NsYXNzKGVsZW1lbnQsIGNsc0NhbmNlbEFuaW1hdGlvbikpIHsKICAgICAgICAgICAgICAgICAgICByZXF1ZXN0QW5pbWF0aW9uRnJhbWUoZnVuY3Rpb24gKCkgeyByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKCkudGhlbihmdW5jdGlvbiAoKSB7IHJldHVybiBhbmltYXRlLmFwcGx5KHZvaWQgMCwgYXJndW1lbnRzJDEpLnRoZW4ocmVzb2x2ZSwgcmVqZWN0KTsgfQogICAgICAgICAgICAgICAgICAgICAgICApOyB9CiAgICAgICAgICAgICAgICAgICAgKTsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdmFyIGNscyA9IGFuaW1hdGlvbiArICIgIiArIGFuaW1hdGlvblByZWZpeCArIChvdXQgPyAnbGVhdmUnIDogJ2VudGVyJyk7CgogICAgICAgICAgICAgICAgaWYgKHN0YXJ0c1dpdGgoYW5pbWF0aW9uLCBhbmltYXRpb25QcmVmaXgpKSB7CgogICAgICAgICAgICAgICAgICAgIGlmIChvcmlnaW4pIHsKICAgICAgICAgICAgICAgICAgICAgICAgY2xzICs9ICIgdWstdHJhbnNmb3JtLW9yaWdpbi0iICsgb3JpZ2luOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgaWYgKG91dCkgewogICAgICAgICAgICAgICAgICAgICAgICBjbHMgKz0gIiAiICsgYW5pbWF0aW9uUHJlZml4ICsgInJldmVyc2UiOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgcmVzZXQoKTsKCiAgICAgICAgICAgICAgICBvbmNlKGVsZW1lbnQsICdhbmltYXRpb25lbmQgYW5pbWF0aW9uY2FuY2VsJywgZnVuY3Rpb24gKHJlZikgewogICAgICAgICAgICAgICAgICAgIHZhciB0eXBlID0gcmVmLnR5cGU7CgoKICAgICAgICAgICAgICAgICAgICB2YXIgaGFzUmVzZXQgPSBmYWxzZTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGUgPT09ICdhbmltYXRpb25jYW5jZWwnKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJlamVjdCgpOwogICAgICAgICAgICAgICAgICAgICAgICByZXNldCgpOwogICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdmUoKTsKICAgICAgICAgICAgICAgICAgICAgICAgUHJvbWlzZS5yZXNvbHZlKCkudGhlbihmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYXNSZXNldCA9IHRydWU7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXNldCgpOwogICAgICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIHJlcXVlc3RBbmltYXRpb25GcmFtZShmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghaGFzUmVzZXQpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFkZENsYXNzKGVsZW1lbnQsIGNsc0NhbmNlbEFuaW1hdGlvbik7CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVxdWVzdEFuaW1hdGlvbkZyYW1lKGZ1bmN0aW9uICgpIHsgcmV0dXJuIHJlbW92ZUNsYXNzKGVsZW1lbnQsIGNsc0NhbmNlbEFuaW1hdGlvbik7IH0pOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CgogICAgICAgICAgICAgICAgfSwge3NlbGY6IHRydWV9KTsKCiAgICAgICAgICAgICAgICBjc3MoZWxlbWVudCwgJ2FuaW1hdGlvbkR1cmF0aW9uJywgKGR1cmF0aW9uICsgIm1zIikpOwogICAgICAgICAgICAgICAgYWRkQ2xhc3MoZWxlbWVudCwgY2xzKTsKCiAgICAgICAgICAgICAgICBmdW5jdGlvbiByZXNldCgpIHsKICAgICAgICAgICAgICAgICAgICBjc3MoZWxlbWVudCwgJ2FuaW1hdGlvbkR1cmF0aW9uJywgJycpOwogICAgICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzZXMoZWxlbWVudCwgKGFuaW1hdGlvblByZWZpeCArICJcXFMqIikpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSk7IH0KICAgICAgICApKTsKCiAgICB9CgogICAgdmFyIGluUHJvZ3Jlc3MgPSBuZXcgUmVnRXhwKChhbmltYXRpb25QcmVmaXggKyAiKGVudGVyfGxlYXZlKSIpKTsKICAgIHZhciBBbmltYXRpb24gPSB7CgogICAgICAgIGluOiBmdW5jdGlvbihlbGVtZW50LCBhbmltYXRpb24sIGR1cmF0aW9uLCBvcmlnaW4pIHsKICAgICAgICAgICAgcmV0dXJuIGFuaW1hdGUoZWxlbWVudCwgYW5pbWF0aW9uLCBkdXJhdGlvbiwgb3JpZ2luLCBmYWxzZSk7CiAgICAgICAgfSwKCiAgICAgICAgb3V0OiBmdW5jdGlvbihlbGVtZW50LCBhbmltYXRpb24sIGR1c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AgICAgdmFyIHBvc2l0aW9uID0gdGFyZ2V0RGltOwoKICAgICAgICBtb3ZlVG8ocG9zaXRpb24sIGVsQXR0YWNoLCBkaW0sIC0xKTsKICAgICAgICBtb3ZlVG8ocG9zaXRpb24sIHRhcmdldEF0dGFjaCwgdGFyZ2V0RGltLCAxKTsKCiAgICAgICAgZWxPZmZzZXQgPSBnZXRPZmZzZXRzKGVsT2Zmc2V0LCBkaW0ud2lkdGgsIGRpbS5oZWlnaHQpOwogICAgICAgIHRhcmdldE9mZnNldCA9IGdldE9mZnNldHModGFyZ2V0T2Zmc2V0LCB0YXJnZXREaW0ud2lkdGgsIHRhcmdldERpbS5oZWlnaHQpOwoKICAgICAgICBlbE9mZnNldFsneCddICs9IHRhcmdldE9mZnNldFsneCddOwogICAgICAgIGVsT2Zmc2V0Wyd5J10gKz0gdGFyZ2V0T2Zmc2V0Wyd5J107CgogICAgICAgIHBvc2l0aW9uLmxlZnQgKz0gZWxPZmZzZXRbJ3gnXTsKICAgICAgICBwb3NpdGlvbi50b3AgKz0gZWxPZmZzZXRbJ3knXTsKCiAgICAgICAgaWYgKGZsaXApIHsKCiAgICAgICAgICAgIHZhciBib3VuZGFyaWVzID0gW2dldERpbWVuc2lvbnMoZ2V0V2luZG93KGVsZW1lbnQpKV07CgogICAgICAgICAgICBpZiAoYm91bmRhcnkpIHsKICAgICAgICAgICAgICAgIGJvdW5kYXJpZXMudW5zaGlmdChnZXREaW1lbnNpb25zKGJvdW5kYXJ5KSk7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIGVhY2goZGlycywgZnVuY3Rpb24gKHJlZiwgcHJvcCkgewogICAgICAgICAgICAgICAgdmFyIGRpciA9IHJlZlswXTsKICAgICAgICAgICAgICAgIHZhciBhbGlnbiA9IHJlZlsxXTsKICAgICAgICAgICAgICAgIHZhciBhbGlnbkZsaXAgPSByZWZbMl07CgoKICAgICAgICAgICAgICAgIGlmICghKGZsaXAgPT09IHRydWUgfHwgaW5jbHVkZXMoZmxpcCwgZGlyKSkpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgYm91bmRhcmllcy5zb21lKGZ1bmN0aW9uIChib3VuZGFyeSkgewoKICAgICAgICAgICAgICAgICAgICB2YXIgZWxlbU9mZnNldCA9IGVsQXR0YWNoW2Rpcl0gPT09IGFsaWduCiAgICAgICAgICAgICAgICAgICAgICAgID8gLWRpbVtwcm9wXQogICAgICAgICAgICAgICAgICAgICAgICA6IGVsQXR0YWNoW2Rpcl0gPT09IGFsaWduRmxpcAogICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBkaW1bcHJvcF0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogMDsKCiAgICAgICAgICAgICAgICAgICAgdmFyIHRhcmdldE9mZnNldCA9IHRhcmdldEF0dGFjaFtkaXJdID09PSBhbGlnbgogICAgICAgICAgICAgICAgICAgICAgICA/IHRhcmdldERpbVtwcm9wXQogICAgICAgICAgICAgICAgICAgICAgICA6IHRhcmdldEF0dGFjaFtkaXJdID09PSBhbGlnbkZsaXAKICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gLXRhcmdldERpbVtwcm9wXQogICAgICAgICAgICAgICAgICAgICAgICAgICAgOiAwOwoKICAgICAgICAgICAgICAgICAgICBpZiAocG9zaXRpb25bYWxpZ25dIDwgYm91bmRhcnlbYWxpZ25dIHx8IHBvc2l0aW9uW2FsaWduXSArIGRpbVtwcm9wXSA+IGJvdW5kYXJ5W2FsaWduRmxpcF0pIHsKCiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBjZW50ZXJPZmZzZXQgPSBkaW1bcHJvcF0gLyAyOwogICAgICAgICAgICAgICAgICAgICAgICB2YXIgY2VudGVyVGFyZ2V0T2Zmc2V0ID0gdGFyZ2V0QXR0YWNoW2Rpcl0gPT09ICdjZW50ZXInID8gLXRhcmdldERpbVtwcm9wXSAvIDIgOiAwOwoKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGVsQXR0YWNoW2Rpcl0gPT09ICdjZW50ZXInICYmICgKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFwcGx5KGNlbnRlck9mZnNldCwgY2VudGVyVGFyZ2V0T2Zmc2V0KQogICAgICAgICAgICAgICAgICAgICAgICAgICAgfHwgYXBwbHkoLWNlbnRlck9mZnNldCwgLWNlbnRlclRhcmdldE9mZnNldCkKICAgICAgICAgICAgICAgICAgICAgICAgKSB8fCBhcHBseShlbGVtT2Zmc2V0LCB0YXJnZXRPZmZzZXQpOwoKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uIGFwcGx5KGVsZW1PZmZzZXQsIHRhcmdldE9mZnNldCkgewoKICAgICAgICAgICAgICAgICAgICAgICAgdmFyIG5ld1ZhbCA9IHBvc2l0aW9uW2FsaWduXSArIGVsZW1PZmZzZXQgKyB0YXJnZXRPZmZzZXQgLSBlbE9mZnNldFtkaXJdICogMjsKCiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChuZXdWYWwgPj0gYm91bmRhcnlbYWxpZ25dICYmIG5ld1ZhbCArIGRpbVtwcm9wXSA8PSBib3VuZGFyeVthbGlnbkZsaXBdKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwb3NpdGlvblthbGlnbl0gPSBuZXdWYWw7CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgWydlbGVtZW50JywgJ3RhcmdldCddLmZvckVhY2goZnVuY3Rpb24gKGVsKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmxpcHBlZFtlbF1bZGlyXSA9ICFlbGVtT2Zmc2V0CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gZmxpcHBlZFtlbF1bZGlyXQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6IGZsaXBwZWRbZWxdW2Rpcl0gPT09IGRpcnNbcHJvcF1bMV0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gZGlyc1twcm9wXVsyXQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOiBkaXJzW3Byb3BdWzFdOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgfSk7CiAgICAgICAgfQoKICAgICAgICBvZmZzZXQoZWxlbWVudCwgcG9zaXRpb24pOwoKICAgICAgICByZXR1cm4gZmxpcHBlZDsKICAgIH0KCiAgICBmdW5jdGlvbiBvZmZzZXQoZWxlbWVudCwgY29vcmRpbmF0ZXMpIHsKCiAgICAgICAgZWxlbWVudCA9IHRvTm9kZShlbGVtZW50KTsKCiAgICAgICAgaWYgKGNvb3JkaW5hdGVzKSB7CgogICAgICAgICAgICB2YXIgY3VycmVudE9mZnNldCA9IG9mZnNldChlbGVtZW50KTsKICAgICAgICAgICAgdmFyIHBvcyA9IGNzcyhlbGVtZW50LCAncG9zaXRpb24nKTsKCiAgICAgICAgICAgIFsnbGVmdCcsICd0b3AnXS5mb3JFYWNoKGZ1bmN0aW9uIChwcm9wKSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcCBpbiBjb29yZGluYXRlcykgewogICAgICAgICAgICAgICAgICAgIHZhciB2YWx1ZSA9IGNzcyhlbGVtZW50LCBwcm9wKTsKICAgICAgICAgICAgICAgICAgICBjc3MoZWxlbWVudCwgcHJvcCwgY29vcmRpbmF0ZXNbcHJvcF0gLSBjdXJyZW50T2Zmc2V0W3Byb3BdCiAgICAgICAgICAgICAgICAgICAgICAgICsgdG9GbG9hdChwb3MgPT09ICdhYnNvbHV0ZScgJiYgdmFsdWUgPT09ICdhdXRvJwogICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBwb3NpdGlvbihlbGVtZW50KVtwcm9wXQogICAgICAgICAgICAgICAgICAgICAgICAgICAgOiB2YWx1ZSkKICAgICAgICAgICAgICAgICAgICApOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB9CgogICAgICAgIHJldHVybiBnZXREaW1lbnNpb25zKGVsZW1lbnQpOwogICAgfQoKICAgIGZ1bmN0aW9uIGdldERpbWVuc2lvbnMoZWxlbWVudCkgewoKICAgICAgICBlbGVtZW50ID0gdG9Ob2RlKGVsZW1lbnQpOwoKICAgICAgICBpZiAoIWVsZW1lbnQpIHsKICAgICAgICAgICAgcmV0dXJuIHt9OwogICAgICAgIH0KCiAgICAgICAgdmFyIHJlZiA9IGdldFdpbmRvdyhlbGVtZW50KTsKICAgICAgICB2YXIgdG9wID0gcmVmLnBhZ2VZT2Zmc2V0OwogICAgICAgIHZhciBsZWZ0ID0gcmVmLnBhZ2VYT2Zmc2V0OwoKICAgICAgICBpZiAoaXNXaW5kb3coZWxlbWVudCkpIHsKCiAgICAgICAgICAgIHZhciBoZWlnaHQgPSBlbGVtZW50LmlubmVySGVpZ2h0OwogICAgICAgICAgICB2YXIgd2lkdGggPSBlbGVtZW50LmlubmVyV2lkdGg7CgogICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgdG9wOiB0b3AsCiAgICAgICAgICAgICAgICBsZWZ0OiBsZWZ0LAogICAgICAgICAgICAgICAgaGVpZ2h0OiBoZWlnaHQsCiAgICAgICAgICAgICAgICB3aWR0aDogd2lkdGgsCiAgICAgICAgICAgICAgICBib3R0b206IHRvcCArIGhlaWdodCwKICAgICAgICAgICAgICAgIHJpZ2h0OiBsZWZ0ICsgd2lkdGgKICAgICAgICAgICAgfTsKICAgICAgICB9CgogICAgICAgIHZhciBzdHlsZSwgaGlkZGVuOwoKICAgICAgICBpZiAoIWlzVmlzaWJsZShlbGVtZW50KSAmJiBjc3MoZWxlbWVudCwgJ2Rpc3BsYXknKSA9PT0gJ25vbmUnKSB7CgogICAgICAgICAgICBzdHlsZSA9IGF0dHIoZWxlbWVudCwgJ3N0eWxlJyk7CiAgICAgICAgICAgIGhpZGRlbiA9IGF0dHIoZWxlbWVudCwgJ2hpZGRlbicpOwoKICAgICAgICAgICAgYXR0cihlbGVtZW50LCB7CiAgICAgICAgICAgICAgICBzdHlsZTogKChzdHlsZSB8fCAnJykgKyAiO2Rpc3BsYXk6YmxvY2sgIWltcG9ydGFudDsiKSwKICAgICAgICAgICAgICAgIGhpZGRlbjogbnVsbAogICAgICAgICAgICB9KTsKICAgICAgICB9CgogICAgICAgIHZhciByZWN0ID0gZWxlbWVudC5nZXRCb3VuZGluZ0NsaWVudFJlY3QoKTsKCiAgICAgICAgaWYgKCFpc1VuZGVmaW5lZChzdHlsZSkpIHsKICAgICAgICAgICAgYXR0cihlbGVtZW50LCB7c3R5bGU6IHN0eWxlLCBoaWRkZW46IGhpZGRlbn0pOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgaGVpZ2h0OiByZWN0LmhlaWdodCwKICAgICAgICAgICAgd2lkdGg6IHJlY3Qud2lkdGgsCiAgICAgICAgICAgIHRvcDogcmVjdC50b3AgKyB0b3AsCiAgICAgICAgICAgIGxlZnQ6IHJlY3QubGVmdCArIGxlZnQsCiAgICAgICAgICAgIGJvdHRvbTogcmVjdC5ib3R0b20gKyB0b3AsCiAgICAgICAgICAgIHJpZ2h0OiByZWN0LnJpZ2h0ICsgbGVmdAogICAgICAgIH07CiAgICB9CgogICAgZnVuY3Rpb24gcG9zaXRpb24oZWxlbWVudCkgewogICAgICAgIGVsZW1lbnQgPSB0b05vZGUoZWxlbWVudCk7CgogICAgICAgIHZhciBwYXJlbnQgPSBlbGVtZW50Lm9mZnNldFBhcmVudCB8fCBnZXREb2NFbChlbGVtZW50KTsKICAgICAgICB2YXIgcGFyZW50T2Zmc2V0ID0gb2Zmc2V0KHBhcmVudCk7CiAgICAgICAgdmFyIHJlZiA9IFsndG9wJywgJ2xlZnQnXS5yZWR1Y2UoZnVuY3Rpb24gKHByb3BzLCBwcm9wKSB7CiAgICAgICAgICAgIHZhciBwcm9wTmFtZSA9IHVjZmlyc3QocHJvcCk7CiAgICAgICAgICAgIHByb3BzW3Byb3BdIC09IHBhcmVudE9mZnNldFtwcm9wXQogICAgICAgICAgICAgICAgKyB0b0Zsb2F0KGNzcyhlbGVtZW50LCAoIm1hcmdpbiIgKyBwcm9wTmFtZSkpKQogICAgICAgICAgICAgICAgKyB0b0Zsb2F0KGNzcyhwYXJlbnQsICgiYm9yZGVyIiArIHByb3BOYW1lICsgIldpZHRoIikpKTsKICAgICAgICAgICAgcmV0dXJuIHByb3BzOwogICAgICAgIH0sIG9mZnNldChlbGVtZW50KSk7CiAgICAgICAgdmFyIHRvcCA9IHJlZi50b3A7CiAgICAgICAgdmFyIGxlZnQgPSByZWYubGVmdDsKCiAgICAgICAgcmV0dXJuIHt0b3A6IHRvcCwgbGVmdDogbGVmdH07CiAgICB9CgogICAgdmFyIGhlaWdodCA9IGRpbWVuc2lvbignaGVpZ2h0Jyk7CiAgICB2YXIgd2lkdGggPSBkaW1lbnNpb24oJ3dpZHRoJyk7CgogICAgZnVuY3Rpb24gZGltZW5zaW9uKHByb3ApIHsKICAgICAgICB2YXIgcHJvcE5hbWUgPSB1Y2ZpcnN0KHByb3ApOwogICAgICAgIHJldHVybiBmdW5jdGlvbiAoZWxlbWVudCwgdmFsdWUpIHsKCiAgICAgICAgICAgIGVsZW1lbnQgPSB0b05vZGUoZWxlbWVudCk7CgogICAgICAgICAgICBpZiAoaXNVbmRlZmluZWQodmFsdWUpKSB7CgogICAgICAgICAgICAgICAgaWYgKGlzV2luZG93KGVsZW1lbnQpKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGVsZW1lbnRbKCJpbm5lciIgKyBwcm9wTmFtZSldOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIGlmIChpc0RvY3VtZW50KGVsZW1lbnQpKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGRvYyA9IGVsZW1lbnQuZG9jdW1lbnRFbGVtZW50OwogICAgICAgICAgICAgICAgICAgIHJldHVybiBNYXRoLm1heChkb2NbKCJvZmZzZXQiICsgcHJvcE5hbWUpXSwgZG9jWygic2Nyb2xsIiArIHByb3BOYW1lKV0pOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHZhbHVlID0gY3NzKGVsZW1lbnQsIHByb3ApOwogICAgICAgICAgICAgICAgdmFsdWUgPSB2YWx1ZSA9PT0gJ2F1dG8nID8gZWxlbWVudFsoIm9mZnNldCIgKyBwcm9wTmFtZSldIDogdG9GbG9hdCh2YWx1ZSkgfHwgMDsKCiAgICAgICAgICAgICAgICByZXR1cm4gdmFsdWUgLSBib3hNb2RlbEFkanVzdChwcm9wLCBlbGVtZW50KTsKCiAgICAgICAgICAgIH0gZWxzZSB7CgogICAgICAgICAgICAgICAgY3NzKGVsZW1lbnQsIHByb3AsICF2YWx1ZSAmJiB2YWx1ZSAhPT0gMAogICAgICAgICAgICAgICAgICAgID8gJycKICAgICAgICAgICAgICAgICAgICA6ICt2YWx1ZSArIGJveE1vZGVsQWRqdXN0KHByb3AsIGVsZW1lbnQpICsgJ3B4JwogICAgICAgICAgICAgICAgKTsKCiAgICAgICAgICAgIH0KCiAgICAgICAgfTsKICAgIH0KCiAgICBmdW5jdGlvbiBib3hNb2RlbEFkanVzdChwcm9wLCBlbGVtZW50LCBzaXppbmcpIHsKICAgICAgICBpZiAoIHNpemluZyA9PT0gdm9pZCAwICkgc2l6aW5nID0gJ2JvcmRlci1ib3gnOwoKICAgICAgICByZXR1cm4gY3NzKGVsZW1lbnQsICdib3hTaXppbmcnKSA9PT0gc2l6aW5nCiAgICAgICAgICAgID8gZGlyc1twcm9wXS5zbGljZSgxKS5tYXAodWNmaXJzdCkucmVkdWNlKGZ1bmN0aW9uICh2YWx1ZSwgcHJvcCkgeyByZXR1cm4gdmFsdWUKICAgICAgICAgICAgICAgICsgdG9GbG9hdChjc3MoZWxlbWVudCwgKCJwYWRkaW5nIiArIHByb3ApKSkKICAgICAgICAgICAgICAgICsgdG9GbG9hdChjc3MoZWxlbWVudCwgKCJib3JkZXIiICsgcHJvcCArICJXaWR0aCIpKSk7IH0KICAgICAgICAgICAgICAgICwgMCkKICAgICAgICAgICAgOiAwOwogICAgfQoKICAgIGZ1bmN0aW9uIG1vdmVUbyhwb3NpdGlvbiwgYXR0YWNoLCBkaW0sIGZhY3RvcikgewogICAgICAgIGVhY2goZGlycywgZnVuY3Rpb24gKHJlZiwgcHJvcCkgewogICAgICAgICAgICB2YXIgZGlyID0gcmVmWzBdOwogICAgICAgICAgICB2YXIgYWxpZ24gPSByZWZbMV07CiAgICAgICAgICAgIHZhciBhbGlnbkZsaXAgPSByZWZbMl07CgogICAgICAgICAgICBpZiAoYXR0YWNoW2Rpcl0gPT09IGFsaWduRmxpcCkgewogICAgICAgICAgICAgICAgcG9zaXRpb25bYWxpZ25dICs9IGRpbVtwcm9wXSAqIGZhY3RvcjsKICAgICAgICAgICAgfSBlbHNlIGlmIChhdHRhY2hbZGlyXSA9PT0gJ2NlbnRlcicpIHsKICAgICAgICAgICAgICAgIHBvc2l0aW9uW2FsaWduXSArPSBkaW1bcHJvcF0gKiBmYWN0b3IgLyAyOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICB9CgogICAgZnVuY3Rpb24gZ2V0UG9zKHBvcykgewoKICAgICAgICB2YXIgeCA9IC9sZWZ0fGNlbnRlcnxyaWdodC87CiAgICAgICAgdmFyIHkgPSAvdG9wfGNlbnRlcnxib3R0b20vOwoKICAgICAgICBwb3MgPSAocG9zIHx8ICcnKS5zcGxpdCgnICcpOwoKICAgICAgICBpZiAocG9zLmxlbmd0aCA9PT0gMSkgewogICAgICAgICAgICBwb3MgPSB4LnRlc3QocG9zWzBdKQogICAgICAgICAgICAgICAgPyBwb3MuY29uY2F0KFsnY2VudGVyJ10pCiAgICAgICAgICAgICAgICA6IHkudGVzdChwb3NbMF0pCiAgICAgICAgICAgICAgICAgICAgPyBbJ2NlbnRlciddLmNvbmNhdChwb3MpCiAgICAgICAgICAgICAgICAgICAgOiBbJ2NlbnRlcicsICdjZW50ZXInXTsKICAgICAgICB9CgogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIHg6IHgudGVzdChwb3NbMF0pID8gcG9zWzBdIDogJ2NlbnRlcicsCiAgICAgICAgICAgIHk6IHkudGVzdChwb3NbMV0pID8gcG9zWzFdIDogJ2NlbnRlcicKICAgICAgICB9OwogICAgfQoKICAgIGZ1bmN0aW9uIGdldE9mZnNldHMob2Zmc2V0cywgd2lkdGgsIGhlaWdodCkgewoKICAgICAgICB2YXIgcmVmID0gKG9mZnNldHMgfHwgJycpLnNwbGl0KCcgJyk7CiAgICAgICAgdmFyIHggPSByZWZbMF07CiAgICAgICAgdmFyIHkgPSByZWZbMV07CgogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIHg6IHggPyB0b0Zsb2F0KHgpICogKGVuZHNXaXRoKHgsICclJykgPyB3aWR0aCAvIDEwMCA6IDEpIDogMCwKICAgICAgICAgICAgeTogeSA/IHRvRmxvYXQoeSkgKiAoZW5kc1dpdGgoeSwgJyUnKSA/IGhlaWdodCAvIDEwMCA6IDEpIDogMAogICAgICAgIH07CiAgICB9CgogICAgZnVuY3Rpb24gZmxpcFBvc2l0aW9uKHBvcykgewogICAgICAgIHN3aXRjaCAocG9zKSB7CiAgICAgICAgICAgIGNhc2UgJ2xlZnQnOgogICAgICAgICAgICAgICAgcmV0dXJuICdyaWdodCc7CiAgICAgICAgICAgIGNhc2UgJ3JpZ2h0JzoKICAgICAgICAgICAgICAgIHJldHVybiAnbGVmdCc7CiAgICAgICAgICAgIGNhc2UgJ3RvcCc6CiAgICAgICAgICAgICAgICByZXR1cm4gJ2JvdHRvbSc7CiAgICAgICAgICAgIGNhc2UgJ2JvdHRvbSc6CiAgICAgICAgICAgICAgICByZXR1cm4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HJlZi5wYWdlWE9mZnNldDsKICAgICAgICAgICAgc2Nyb2xsVG8ocGFnZVhPZmZzZXQsIHRvcCk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgZWxlbWVudC5zY3JvbGxUb3AgPSB0b3A7CiAgICAgICAgfQogICAgfQoKICAgIGZ1bmN0aW9uIG9mZnNldFBvc2l0aW9uKGVsZW1lbnQpIHsKICAgICAgICB2YXIgb2Zmc2V0ID0gWzAsIDBdOwoKICAgICAgICBkbyB7CgogICAgICAgICAgICBvZmZzZXRbMF0gKz0gZWxlbWVudC5vZmZzZXRUb3A7CiAgICAgICAgICAgIG9mZnNldFsxXSArPSBlbGVtZW50Lm9mZnNldExlZnQ7CgogICAgICAgICAgICBpZiAoY3NzKGVsZW1lbnQsICdwb3NpdGlvbicpID09PSAnZml4ZWQnKSB7CiAgICAgICAgICAgICAgICB2YXIgd2luID0gZ2V0V2luZG93KGVsZW1lbnQpOwogICAgICAgICAgICAgICAgb2Zmc2V0WzBdICs9IHdpbi5wYWdlWU9mZnNldDsKICAgICAgICAgICAgICAgIG9mZnNldFsxXSArPSB3aW4ucGFnZVhPZmZzZXQ7CiAgICAgICAgICAgICAgICByZXR1cm4gb2Zmc2V0OwogICAgICAgICAgICB9CgogICAgICAgIH0gd2hpbGUgKChlbGVtZW50ID0gZWxlbWVudC5vZmZzZXRQYXJlbnQpKTsKCiAgICAgICAgcmV0dXJuIG9mZnNldDsKICAgIH0KCiAgICBmdW5jdGlvbiB0b1B4KHZhbHVlLCBwcm9wZXJ0eSwgZWxlbWVudCkgewogICAgICAgIGlmICggcHJvcGVydHkgPT09IHZvaWQgMCApIHByb3BlcnR5ID0gJ3dpZHRoJzsKICAgICAgICBpZiAoIGVsZW1lbnQgPT09IHZvaWQgMCApIGVsZW1lbnQgPSB3aW5kb3c7CgogICAgICAgIHJldHVybiBpc051bWVyaWModmFsdWUpCiAgICAgICAgICAgID8gK3ZhbHVlCiAgICAgICAgICAgIDogZW5kc1dpdGgodmFsdWUsICd2aCcpCiAgICAgICAgICAgICAgICA/IHBlcmNlbnQoaGVpZ2h0KGdldFdpbmRvdyhlbGVtZW50KSksIHZhbHVlKQogICAgICAgICAgICAgICAgOiBlbmRzV2l0aCh2YWx1ZSwgJ3Z3JykKICAgICAgICAgICAgICAgICAgICA/IHBlcmNlbnQod2lkdGgoZ2V0V2luZG93KGVsZW1lbnQpKSwgdmFsdWUpCiAgICAgICAgICAgICAgICAgICAgOiBlbmRzV2l0aCh2YWx1ZSwgJyUnKQogICAgICAgICAgICAgICAgICAgICAgICA/IHBlcmNlbnQoZ2V0RGltZW5zaW9ucyhlbGVtZW50KVtwcm9wZXJ0eV0sIHZhbHVlKQogICAgICAgICAgICAgICAgICAgICAgICA6IHRvRmxvYXQodmFsdWUpOwogICAgfQoKICAgIGZ1bmN0aW9uIHBlcmNlbnQoYmFzZSwgdmFsdWUpIHsKICAgICAgICByZXR1cm4gYmFzZSAqIHRvRmxvYXQodmFsdWUpIC8gMTAwOwogICAgfQoKICAgIGZ1bmN0aW9uIGdldFdpbmRvdyhlbGVtZW50KSB7CiAgICAgICAgcmV0dXJuIGlzV2luZG93KGVsZW1lbnQpID8gZWxlbWVudCA6IGdldERvY3VtZW50KGVsZW1lbnQpLmRlZmF1bHRWaWV3OwogICAgfQoKICAgIGZ1bmN0aW9uIGdldERvY3VtZW50KGVsZW1lbnQpIHsKICAgICAgICByZXR1cm4gdG9Ob2RlKGVsZW1lbnQpLm93bmVyRG9jdW1lbnQ7CiAgICB9CgogICAgZnVuY3Rpb24gZ2V0RG9jRWwoZWxlbWVudCkgewogICAgICAgIHJldHVybiBnZXREb2N1bWVudChlbGVtZW50KS5kb2N1bWVudEVsZW1lbnQ7CiAgICB9CgogICAgLyoKICAgICAgICBCYXNlZCBvbjoKICAgICAgICBDb3B5cmlnaHQgKGMpIDIwMTYgV2lsc29uIFBhZ2Ugd2lsc29ucGFnZUBtZS5jb20KICAgICAgICBodHRwczovL2dpdGh1Yi5jb20vd2lsc29ucGFnZS9mYXN0ZG9tCiAgICAqLwoKICAgIHZhciBmYXN0ZG9tID0gewoKICAgICAgICByZWFkczogW10sCiAgICAgICAgd3JpdGVzOiBbXSwKCiAgICAgICAgcmVhZDogZnVuY3Rpb24odGFzaykgewogICAgICAgICAgICB0aGlzLnJlYWRzLnB1c2godGFzayk7CiAgICAgICAgICAgIHNjaGVkdWxlRmx1c2goKTsKICAgICAgICAgICAgcmV0dXJuIHRhc2s7CiAgICAgICAgfSwKCiAgICAgICAgd3JpdGU6IGZ1bmN0aW9uKHRhc2spIHsKICAgICAgICAgICAgdGhpcy53cml0ZXMucHVzaCh0YXNrKTsKICAgICAgICAgICAgc2NoZWR1bGVGbHVzaCgpOwogICAgICAgICAgICByZXR1cm4gdGFzazsKICAgICAgICB9LAoKICAgICAgICBjbGVhcjogZnVuY3Rpb24odGFzaykgewogICAgICAgICAgICByZXR1cm4gcmVtb3ZlJDEodGhpcy5yZWFkcywgdGFzaykgfHwgcmVtb3ZlJDEodGhpcy53cml0ZXMsIHRhc2spOwogICAgICAgIH0sCgogICAgICAgIGZsdXNoOiBmbHVzaAoKICAgIH07CgogICAgZnVuY3Rpb24gZmx1c2goKSB7CiAgICAgICAgcnVuVGFza3MoZmFzdGRvbS5yZWFkcyk7CiAgICAgICAgcnVuVGFza3MoZmFzdGRvbS53cml0ZXMuc3BsaWNlKDAsIGZhc3Rkb20ud3JpdGVzLmxlbmd0aCkpOwoKICAgICAgICBmYXN0ZG9tLnNjaGVkdWxlZCA9IGZhbHNlOwoKICAgICAgICBpZiAoZmFzdGRvbS5yZWFkcy5sZW5ndGggfHwgZmFzdGRvbS53cml0ZXMubGVuZ3RoKSB7CiAgICAgICAgICAgIHNjaGVkdWxlRmx1c2godHJ1ZSk7CiAgICAgICAgfQogICAgfQoKICAgIGZ1bmN0aW9uIHNjaGVkdWxlRmx1c2gobWljcm90YXNrKSB7CiAgICAgICAgaWYgKCBtaWNyb3Rhc2sgPT09IHZvaWQgMCApIG1pY3JvdGFzayA9IGZhbHNlOwoKICAgICAgICBpZiAoIWZhc3Rkb20uc2NoZWR1bGVkKSB7CiAgICAgICAgICAgIGZhc3Rkb20uc2NoZWR1bGVkID0gdHJ1ZTsKICAgICAgICAgICAgaWYgKG1pY3JvdGFzaykgewogICAgICAgICAgICAgICAgUHJvbWlzZS5yZXNvbHZlKCkudGhlbihmbHVzaCk7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICByZXF1ZXN0QW5pbWF0aW9uRnJhbWUoZmx1c2gpOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgfQoKICAgIGZ1bmN0aW9uIHJ1blRhc2tzKHRhc2tzKSB7CiAgICAgICAgdmFyIHRhc2s7CiAgICAgICAgd2hpbGUgKCh0YXNrID0gdGFza3Muc2hpZnQoKSkpIHsKICAgICAgICAgICAgdGFzaygpOwogICAgICAgIH0KICAgIH0KCiAgICBmdW5jdGlvbiByZW1vdmUkMShhcnJheSwgaXRlbSkgewogICAgICAgIHZhciBpbmRleCA9IGFycmF5LmluZGV4T2YoaXRlbSk7CiAgICAgICAgcmV0dXJuICEhfmluZGV4ICYmICEhYXJyYXkuc3BsaWNlKGluZGV4LCAxKTsKICAgIH0KCiAgICBmdW5jdGlvbiBNb3VzZVRyYWNrZXIoKSB7fQoKICAgIE1vdXNlVHJhY2tlci5wcm90b3R5cGUgPSB7CgogICAgICAgIHBvc2l0aW9uczogW10sCiAgICAgICAgcG9zaXRpb246IG51bGwsCgogICAgICAgIGluaXQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICB0aGlzLnBvc2l0aW9ucyA9IFtdOwogICAgICAgICAgICB0aGlzLnBvc2l0aW9uID0gbnVsbDsKCiAgICAgICAgICAgIHZhciB0aWNraW5nID0gZmFsc2U7CiAgICAgICAgICAgIHRoaXMudW5iaW5kID0gb24oZG9jdW1lbnQsICdtb3VzZW1vdmUnLCBmdW5jdGlvbiAoZSkgewoKICAgICAgICAgICAgICAgIGlmICh0aWNraW5nKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgICAgICAgICB2YXIgdGltZSA9IERhdGUubm93KCk7CiAgICAgICAgICAgICAgICAgICAgdmFyIHJlZiA9IHRoaXMkMS5wb3NpdGlvbnM7CiAgICAgICAgICAgICAgICAgICAgdmFyIGxlbmd0aCA9IHJlZi5sZW5ndGg7CgogICAgICAgICAgICAgICAgICAgIGlmIChsZW5ndGggJiYgKHRpbWUgLSB0aGlzJDEucG9zaXRpb25zW2xlbmd0aCAtIDFdLnRpbWUgPiAxMDApKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMkMS5wb3NpdGlvbnMuc3BsaWNlKDAsIGxlbmd0aCk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICB0aGlzJDEucG9zaXRpb25zLnB1c2goe3RpbWU6IHRpbWUsIHg6IGUucGFnZVgsIHk6IGUucGFnZVl9KTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMkMS5wb3NpdGlvbnMubGVuZ3RoID4gNSkgewogICAgICAgICAgICAgICAgICAgICAgICB0aGlzJDEucG9zaXRpb25zLnNoaWZ0KCk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICB0aWNraW5nID0gZmFsc2U7CiAgICAgICAgICAgICAgICB9LCA1KTsKCiAgICAgICAgICAgICAgICB0aWNraW5nID0gdHJ1ZTsKICAgICAgICAgICAgfSk7CgogICAgICAgIH0sCgogICAgICAgIGNhbmNlbDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIGlmICh0aGlzLnVuYmluZCkgewogICAgICAgICAgICAgICAgdGhpcy51bmJpbmQoKTsKICAgICAgICAgICAgfQogICAgICAgIH0sCgogICAgICAgIG1vdmVzVG86IGZ1bmN0aW9uKHRhcmdldCkgewoKICAgICAgICAgICAgaWYgKHRoaXMucG9zaXRpb25zLmxlbmd0aCA8IDIpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgdmFyIHAgPSBvZmZzZXQodGFyZ2V0KTsKICAgICAgICAgICAgdmFyIHBvc2l0aW9uID0gbGFzdCh0aGlzLnBvc2l0aW9ucyk7CiAgICAgICAgICAgIHZhciByZWYgPSB0aGlzLnBvc2l0aW9uczsKICAgICAgICAgICAgdmFyIHByZXZQb3MgPSByZWZbMF07CgogICAgICAgICAgICBpZiAocC5sZWZ0IDw9IHBvc2l0aW9uLnggJiYgcG9zaXRpb24ueCA8PSBwLnJpZ2h0ICYmIHAudG9wIDw9IHBvc2l0aW9uLnkgJiYgcG9zaXRpb24ueSA8PSBwLmJvdHRvbSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CgogICAgICAgICAgICB2YXIgcG9pbnRzID0gWwogICAgICAgICAgICAgICAgW3t4OiBwLmxlZnQsIHk6IHAudG9wfSwge3g6IHAucmlnaHQsIHk6IHAuYm90dG9tfV0sCiAgICAgICAgICAgICAgICBbe3g6IHAucmlnaHQsIHk6IHAudG9wfSwge3g6IHAubGVmdCwgeTogcC5ib3R0b219XQogICAgICAgICAgICBdOwoKICAgICAgICAgICAgaWYgKHAucmlnaHQgPD0gcG9zaXRpb24ueCkgOyBlbHNlIGlmIChwLmxlZnQgPj0gcG9zaXRpb24ueCkgewogICAgICAgICAgICAgICAgcG9pbnRzWzBdLnJldmVyc2UoKTsKICAgICAgICAgICAgICAgIHBvaW50c1sxXS5yZXZlcnNlKCk7CiAgICAgICAgICAgIH0gZWxzZSBpZiAocC5ib3R0b20gPD0gcG9zaXRpb24ueSkgewogICAgICAgICAgICAgICAgcG9pbnRzWzBdLnJldmVyc2UoKTsKICAgICAgICAgICAgfSBlbH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gewogICAgICAgIHJldHVybiBzb3J0QnkoY29uY2F0U3RyYXQocGFyZW50VmFsLCBpc0Z1bmN0aW9uKGNoaWxkVmFsKSA/IHtyZWFkOiBjaGlsZFZhbH0gOiBjaGlsZFZhbCksICdvcmRlcicpOwogICAgfTsKCiAgICAvLyBwcm9wZXJ0eSBzdHJhdGVneQogICAgc3RyYXRzLnByb3BzID0gZnVuY3Rpb24gKHBhcmVudFZhbCwgY2hpbGRWYWwpIHsKCiAgICAgICAgaWYgKGlzQXJyYXkoY2hpbGRWYWwpKSB7CiAgICAgICAgICAgIGNoaWxkVmFsID0gY2hpbGRWYWwucmVkdWNlKGZ1bmN0aW9uICh2YWx1ZSwga2V5KSB7CiAgICAgICAgICAgICAgICB2YWx1ZVtrZXldID0gU3RyaW5nOwogICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlOwogICAgICAgICAgICB9LCB7fSk7CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gc3RyYXRzLm1ldGhvZHMocGFyZW50VmFsLCBjaGlsZFZhbCk7CiAgICB9OwoKICAgIC8vIGV4dGVuZCBzdHJhdGVneQogICAgc3RyYXRzLmNvbXB1dGVkID0KICAgIHN0cmF0cy5tZXRob2RzID0gZnVuY3Rpb24gKHBhcmVudFZhbCwgY2hpbGRWYWwpIHsKICAgICAgICByZXR1cm4gY2hpbGRWYWwKICAgICAgICAgICAgPyBwYXJlbnRWYWwKICAgICAgICAgICAgICAgID8gYXNzaWduKHt9LCBwYXJlbnRWYWwsIGNoaWxkVmFsKQogICAgICAgICAgICAgICAgOiBjaGlsZFZhbAogICAgICAgICAgICA6IHBhcmVudFZhbDsKICAgIH07CgogICAgLy8gZGF0YSBzdHJhdGVneQogICAgc3RyYXRzLmRhdGEgPSBmdW5jdGlvbiAocGFyZW50VmFsLCBjaGlsZFZhbCwgdm0pIHsKCiAgICAgICAgaWYgKCF2bSkgewoKICAgICAgICAgICAgaWYgKCFjaGlsZFZhbCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHBhcmVudFZhbDsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgaWYgKCFwYXJlbnRWYWwpIHsKICAgICAgICAgICAgICAgIHJldHVybiBjaGlsZFZhbDsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uICh2bSkgewogICAgICAgICAgICAgICAgcmV0dXJuIG1lcmdlRm5EYXRhKHBhcmVudFZhbCwgY2hpbGRWYWwsIHZtKTsKICAgICAgICAgICAgfTsKCiAgICAgICAgfQoKICAgICAgICByZXR1cm4gbWVyZ2VGbkRhdGEocGFyZW50VmFsLCBjaGlsZFZhbCwgdm0pOwogICAgfTsKCiAgICBmdW5jdGlvbiBtZXJnZUZuRGF0YShwYXJlbnRWYWwsIGNoaWxkVmFsLCB2bSkgewogICAgICAgIHJldHVybiBzdHJhdHMuY29tcHV0ZWQoCiAgICAgICAgICAgIGlzRnVuY3Rpb24ocGFyZW50VmFsKQogICAgICAgICAgICAgICAgPyBwYXJlbnRWYWwuY2FsbCh2bSwgdm0pCiAgICAgICAgICAgICAgICA6IHBhcmVudFZhbCwKICAgICAgICAgICAgaXNGdW5jdGlvbihjaGlsZFZhbCkKICAgICAgICAgICAgICAgID8gY2hpbGRWYWwuY2FsbCh2bSwgdm0pCiAgICAgICAgICAgICAgICA6IGNoaWxkVmFsCiAgICAgICAgKTsKICAgIH0KCiAgICAvLyBjb25jYXQgc3RyYXRlZ3kKICAgIGZ1bmN0aW9uIGNvbmNhdFN0cmF0KHBhcmVudFZhbCwgY2hpbGRWYWwpIHsKCiAgICAgICAgcGFyZW50VmFsID0gcGFyZW50VmFsICYmICFpc0FycmF5KHBhcmVudFZhbCkgPyBbcGFyZW50VmFsXSA6IHBhcmVudFZhbDsKCiAgICAgICAgcmV0dXJuIGNoaWxkVmFsCiAgICAgICAgICAgID8gcGFyZW50VmFsCiAgICAgICAgICAgICAgICA/IHBhcmVudFZhbC5jb25jYXQoY2hpbGRWYWwpCiAgICAgICAgICAgICAgICA6IGlzQXJyYXkoY2hpbGRWYWwpCiAgICAgICAgICAgICAgICAgICAgPyBjaGlsZFZhbAogICAgICAgICAgICAgICAgICAgIDogW2NoaWxkVmFsXQogICAgICAgICAgICA6IHBhcmVudFZhbDsKICAgIH0KCiAgICAvLyBkZWZhdWx0IHN0cmF0ZWd5CiAgICBmdW5jdGlvbiBkZWZhdWx0U3RyYXQocGFyZW50VmFsLCBjaGlsZFZhbCkgewogICAgICAgIHJldHVybiBpc1VuZGVmaW5lZChjaGlsZFZhbCkgPyBwYXJlbnRWYWwgOiBjaGlsZFZhbDsKICAgIH0KCiAgICBmdW5jdGlvbiBtZXJnZU9wdGlvbnMocGFyZW50LCBjaGlsZCwgdm0pIHsKCiAgICAgICAgdmFyIG9wdGlvbnMgPSB7fTsKCiAgICAgICAgaWYgKGlzRnVuY3Rpb24oY2hpbGQpKSB7CiAgICAgICAgICAgIGNoaWxkID0gY2hpbGQub3B0aW9uczsKICAgICAgICB9CgogICAgICAgIGlmIChjaGlsZC5leHRlbmRzKSB7CiAgICAgICAgICAgIHBhcmVudCA9IG1lcmdlT3B0aW9ucyhwYXJlbnQsIGNoaWxkLmV4dGVuZHMsIHZtKTsKICAgICAgICB9CgogICAgICAgIGlmIChjaGlsZC5taXhpbnMpIHsKICAgICAgICAgICAgZm9yICh2YXIgaSA9IDAsIGwgPSBjaGlsZC5taXhpbnMubGVuZ3RoOyBpIDwgbDsgaSsrKSB7CiAgICAgICAgICAgICAgICBwYXJlbnQgPSBtZXJnZU9wdGlvbnMocGFyZW50LCBjaGlsZC5taXhpbnNbaV0sIHZtKTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgZm9yICh2YXIga2V5IGluIHBhcmVudCkgewogICAgICAgICAgICBtZXJnZUtleShrZXkpOwogICAgICAgIH0KCiAgICAgICAgZm9yICh2YXIga2V5JDEgaW4gY2hpbGQpIHsKICAgICAgICAgICAgaWYgKCFoYXNPd24ocGFyZW50LCBrZXkkMSkpIHsKICAgICAgICAgICAgICAgIG1lcmdlS2V5KGtleSQxKTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgZnVuY3Rpb24gbWVyZ2VLZXkoa2V5KSB7CiAgICAgICAgICAgIG9wdGlvbnNba2V5XSA9IChzdHJhdHNba2V5XSB8fCBkZWZhdWx0U3RyYXQpKHBhcmVudFtrZXldLCBjaGlsZFtrZXldLCB2bSk7CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gb3B0aW9uczsKICAgIH0KCiAgICBmdW5jdGlvbiBwYXJzZU9wdGlvbnMob3B0aW9ucywgYXJncykgewogICAgICAgIHZhciBvYmo7CgogICAgICAgIGlmICggYXJncyA9PT0gdm9pZCAwICkgYXJncyA9IFtdOwoKICAgICAgICB0cnkgewoKICAgICAgICAgICAgcmV0dXJuICFvcHRpb25zCiAgICAgICAgICAgICAgICA/IHt9CiAgICAgICAgICAgICAgICA6IHN0YXJ0c1dpdGgob3B0aW9ucywgJ3snKQogICAgICAgICAgICAgICAgICAgID8gSlNPTi5wYXJzZShvcHRpb25zKQogICAgICAgICAgICAgICAgICAgIDogYXJncy5sZW5ndGggJiYgIWluY2x1ZGVzKG9wdGlvbnMsICc6JykKICAgICAgICAgICAgICAgICAgICAgICAgPyAoKCBvYmogPSB7fSwgb2JqW2FyZ3NbMF1dID0gb3B0aW9ucywgb2JqICkpCiAgICAgICAgICAgICAgICAgICAgICAgIDogb3B0aW9ucy5zcGxpdCgnOycpLnJlZHVjZShmdW5jdGlvbiAob3B0aW9ucywgb3B0aW9uKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgcmVmID0gb3B0aW9uLnNwbGl0KC86KC4qKS8pOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGtleSA9IHJlZlswXTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB2YWx1ZSA9IHJlZlsxXTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChrZXkgJiYgIWlzVW5kZWZpbmVkKHZhbHVlKSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnNba2V5LnRyaW0oKV0gPSB2YWx1ZS50cmltKCk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gb3B0aW9uczsKICAgICAgICAgICAgICAgICAgICAgICAgfSwge30pOwoKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiB7fTsKICAgICAgICB9CgogICAgfQoKICAgIHZhciBpZCA9IDA7CgogICAgdmFyIFBsYXllciA9IGZ1bmN0aW9uKGVsKSB7CiAgICAgICAgdGhpcy5pZCA9ICsraWQ7CiAgICAgICAgdGhpcy5lbCA9IHRvTm9kZShlbCk7CiAgICB9OwoKICAgIFBsYXllci5wcm90b3R5cGUuaXNWaWRlbyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICByZXR1cm4gdGhpcy5pc1lvdXR1YmUoKSB8fCB0aGlzLmlzVmltZW8oKSB8fCB0aGlzLmlzSFRNTDUoKTsKICAgIH07CgogICAgUGxheWVyLnByb3RvdHlwZS5pc0hUTUw1ID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiB0aGlzLmVsLnRhZ05hbWUgPT09ICdWSURFTyc7CiAgICB9OwoKICAgIFBsYXllci5wcm90b3R5cGUuaXNJRnJhbWUgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuZWwudGFnTmFtZSA9PT0gJ0lGUkFNRSc7CiAgICB9OwoKICAgIFBsYXllci5wcm90b3R5cGUuaXNZb3V0dWJlID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiB0aGlzLmlzSUZyYW1lKCkgJiYgISF0aGlzLmVsLnNyYy5tYXRjaCgvXC9cLy4qP3lvdXR1YmUoLW5vY29va2llKT9cLlthLXpdK1wvKHdhdGNoXD92PVteJlxzXSt8ZW1iZWQpfHlvdXR1XC5iZVwvLiovKTsKICAgIH07CgogICAgUGxheWVyLnByb3RvdHlwZS5pc1ZpbWVvID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiB0aGlzLmlzSUZyYW1lKCkgJiYgISF0aGlzLmVsLnNyYy5tYXRjaCgvdmltZW9cLmNvbVwvdmlkZW9cLy4qLyk7CiAgICB9OwoKICAgIFBsYXllci5wcm90b3R5cGUuZW5hYmxlQXBpID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgIGlmICh0aGlzLnJlYWR5KSB7CiAgICAgICAgICAgIHJldHVybiB0aGlzLnJlYWR5OwogICAgICAgIH0KCiAgICAgICAgdmFyIHlvdXR1YmUgPSB0aGlzLmlzWW91dHViZSgpOwogICAgICAgIHZhciB2aW1lbyA9IHRoaXMuaXNWaW1lbygpOwoKICAgICAgICB2YXIgcG9sbGVyOwoKICAgICAgICBpZiAoeW91dHViZSB8fCB2aW1lbykgewoKICAgICAgICAgICAgcmV0dXJuIHRoaXMucmVhZHkgPSBuZXcgUHJvbWlzZShmdW5jdGlvbiAocmVzb2x2ZSkgewoKICAgICAgICAgICAgICAgIG9uY2UodGhpcyQxLmVsLCAnbG9hZCcsIGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICBpZiAoeW91dHViZSkgewogICAgICAgICAgICAgICAgICAgICAgICB2YXIgbGlzdGVuZXIgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBwb3N0KHRoaXMkMS5lbCwge2V2ZW50OiAnbGlzdGVuaW5nJywgaWQ6IHRoaXMkMS5pZH0pOyB9OwogICAgICAgICAgICAgICAgICAgICAgICBwb2xsZXIgPSBzZXRJbnRlcnZhbChsaXN0ZW5lciwgMTAwKTsKICAgICAgICAgICAgICAgICAgICAgICAgbGlzdGVuZXIoKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgICAgICBsaXN0ZW4oZnVuY3Rpb24gKGRhdGEpIHsgcmV0dXJuIHlvdXR1YmUgJiYgZGF0YS5pZCA9PT0gdGhpcyQxLmlkICYmIGRhdGEuZXZlbnQgPT09ICdvblJlYWR5JyB8fCB2aW1lbyAmJiBOdW1iZXIoZGF0YS5wbGF5ZXJfaWQpID09PSB0aGlzJDEuaWQ7IH0pCiAgICAgICAgICAgICAgICAgICAgLnRoZW4oZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgICAgICByZXNvbHZlKCk7CiAgICAgICAgICAgICAgICAgICAgICAgIHBvbGxlciAmJiBjbGVhckludGVydmFsKHBvbGxlcik7CiAgICAgICAgICAgICAgICAgICAgfSk7CgogICAgICAgICAgICAgICAgYXR0cih0aGlzJDEuZWwsICdzcmMnLCAoIiIgKyAodGhpcyQxLmVsLnNyYykgKyAoaW5jbHVkZXModGhpcyQxLmVsLnNyYywgJz8nKSA/ICcmJyA6ICc/JykgKyAoeW91dHViZSA/ICdlbmFibGVqc2FwaT0xJyA6ICgiYXBpPTEmcGxheWVyX2lkPSIgKyAodGhpcyQxLmlkKSkpKSk7CgogICAgICAgICAgICB9KTsKCiAgICAgICAgfQoKICAgICAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKCk7CgogICAgfTsKCiAgICBQbGF5ZXIucHJvdG90eXBlLnBsYXkgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgaWYgKCF0aGlzLmlzVmlkZW8oKSkgewogICAgICAgICAgICByZXR1cm47CiAgICAgICAgfQoKICAgICAgICBpZiAodGhpcy5pc0lGcmFtZSgpKSB7CiAgICAgICAgICAgIHRoaXMuZW5hYmxlQXBpKCkudGhlbihmdW5jdGlvbiAoKSB7IHJldHVybiBwb3N0KHRoaXMkMS5lbCwge2Z1bmM6ICdwbGF5VmlkZW8nLCBtZXRob2Q6ICdwbGF5J30pOyB9KTsKICAgICAgICB9IGVsc2UgaWYgKHRoaXMuaXNIVE1MNSgpKSB7CiAgICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgICAgICB2YXIgcHJvbWlzZSA9IHRoaXMuZWwucGxheSgpOwoKICAgICAgICAgICAgICAgIGlmIChwcm9taXNlKSB7CiAgICAgICAgICAgICAgICAgICAgcHJvbWlzZS5jYXRjaChub29wKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSBjYXRjaCAoZSkge30KICAgICAgICB9CiAgICB9OwoKICAgIFBsYXllci5wcm90b3R5cGUucGF1c2UgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgaWYgKCF0aGlzLmlzVmlkZW8oKSkgewogICAgICAgICAgICByZXR1cm47CiAgICAgICAgfQoKICAgICAgICBpZiAodGhpcy5pc0lGcmFtZSgpKSB7CiAgICAgICAgICAgIHRoaXMuZW5hYmxlQXBpKCkudGhlbihmdW5jdGlvbiAoKSB7IHJldHVybiBwb3N0KHRoaXMkMS5lbCwge2Z1bmM6ICdwYXVzZVZpZGVvJywgbWV0aG9kOiAncGF1c2UnfSk7IH0pOwogICAgICAgIH0gZWxzZSBpZiAodGhpcy5pc0hUTUw1KCkpIHsKICAgICAgICAgICAgdGhpcy5lbC5wYXVzZSgpOwogICAgICAgIH0KICAgIH07CgogICAgUGxheWVyLnByb3RvdHlwZS5tdXRlID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgIGlmICghdGhpcy5pc1ZpZGVvKCkpIHsKICAgICAgICAgICAgcmV0dXJuOwogICAgICAgIH0KCiAgICAgICAgaWYgKHRoaXMuaXNJRnJhbWUoKSkgewogICAgICAgICAgICB0aGlzLmVuYWJsZUFwaSgpLnRoZW4oZnVuY3Rpb24gKCkgeyByZXR1cm4gcG9zdCh0aGlzJDEuZWwsIHtmdW5jOiAnbXV0ZScsIG1ldGhvZDogJ3NldFZvbHVtZScsIHZhbHVlOiAwfSk7IH0pOwogICAgICAgIH0gZWxzZSBpZiAodGhpcy5pc0hUTUw1KCkpIHsKICAgICAgICAgICAgdGhpcy5lbC5tdXRlZCA9IHRydWU7CiAgICAgICAgICAgIGF0dHIodGhpcy5lbCwgJ211dGVkJywgJycpOwogICAgICAgIH0KCiAgICB9OwoKICAgIGZ1bmN0aW9uIHBvc3QoZWwsIGNtZCkgewogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGVsLmNvbnRlbnRXaW5kb3cucG9zdE1lc3NhZ2UoSlNPTi5zdHJpbmdpZnkoYXNzaWduKHtldmVudDogJ2NvbW1hbmQnfSwgY21kKSksICcqJyk7CiAgICAgICAgfSBjYXRjaCAoZSkge30KICAgIH0KCiAgICBmdW5jdGlvbiBsaXN0ZW4oY2IpIHsKCiAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKGZ1bmN0aW9uIChyZXNvbHZlKSB7CgogICAgICAgICAgICBvbmNlKHdpbmRvdywgJ21lc3NhZ2UnLCBmdW5jdGlvbiAoXywgZGF0YSkgeyByZXR1cm4gcmVzb2x2ZShkYXRhKTsgfSwgZmFsc2UsIGZ1bmN0aW9uIChyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBkYXRhID0gcmVmLmRhdGE7CgoKICAgICAgICAgICAgICAgIGlmICghZGF0YSB8fCAhaXNTdHJpbmcoZGF0YSkpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgICAgICBkYXRhID0gSlNPTi5wYXJzZShkYXRhKTsKICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgcmV0dXJuIGRhdGEgJiYgY2IoZGF0YSk7CgogICAgICAgICAgICB9KTsKCiAgICAgICAgfSk7CgogICAgfQoKICAgIHZhciBJbnRlcnNlY3Rpb25PYnNlcnZlciA9ICdJbnRlcnNlY3Rpb25PYnNlcnZlcicgaW4gd2luZG93CiAgICAgICAgPyB3aW5kb3cuSW50ZXJzZWN0aW9uT2JzZXJ2ZXIKICAgICAgICA6IC8qQF9fUFVSRV9fKi8oZnVuY3Rpb24gKCkgewogICAgICAgIGZ1bmN0aW9uIEludGVyc2VjdGlvbk9ic2VydmVyQ2xhc3MoY2FsbGJhY2ssIHJlZikgewogICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKICAgICAgICAgICAgaWYgKCByZWYgPT09IHZvaWQgMCApIHJlZiA9IHt9OwogICAgICAgICAgICB2YXIgcm9vdE1hcmdpbiA9IHJlZi5yb290TWFyZ2luOyBpZiAoIHJvb3RNYXJnaW4gPT09IHZvaWQgMCApIHJvb3RNYXJnaW4gPSAnMCAwJzsKCgogICAgICAgICAgICAgICAgdGhpcy50YXJnZXRzID0gW107CgogICAgICAgICAgICAgICAgdmFyIHJlZiQxID0gKHJvb3RNYXJnaW4gfHwgJzAgMCcpLnNwbGl0KCcgJykubWFwKHRvRmxvYXQpOwogICAgICAgICAgICB2YXIgb2Zmc2V0VG9wID0gcmVmJDFbMF07CiAgICAgICAgICAgIHZhciBvZmZzZXRMZWZ0ID0gcmVmJDFbMV07CgogICAgICAgICAgICAgICAgdGhpcy5vZmZzZXRUb3AgPSBvZmZzZXRUb3A7CiAgICAgICAgICAgICAgICB0aGlzLm9mZnNldExlZnQgPSBvZmZzZXRMZWZ0OwoKICAgICAgICAgICAgICAgIHZhciBwZW5kaW5nOwogICAgICAgICAgICAgICAgdGhpcy5hcHBseSA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgICAgICAgICAgaWYgKHBlbmRpbmcpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgcGVuZGluZyA9IHJlcXVlc3RBbmltYXRpb25GcmFtZShmdW5jdGlvbiAoKSB7IHJldHVybiBzZXRUaW1lb3V0KGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHJlY29yZHMgPSB0aGlzJDEudGFrZVJlY29yZHMoKTsKCiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChyZWNvcmRzLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2socmVjb3JkcywgdGhpcyQxKTsKICAgICAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICAgICAgcGVuZGluZyA9IGZhbHNlOwogICAgICAgICAgICAgICAgICAgIH0pOyB9KTsKCiAgICAgICAgICAgICAgICB9OwoKICAgICAgICAgICAgICAgIHRoaXMub2ZmID0gb24od2luZG93LCAnc2Nyb2xsIHJlc2l6ZSBsb2FkJywgdGhpcy5hcHBseSwge3Bhc3NpdmU6IHRydWUsIGNhcHR1cmU6IHRydWV9KTsKCiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIEludGVyc2VjdGlvbk9ic2VydmVyQ2xhc3MucHJvdG90eXBlLnRha2VSZWNvcmRzID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMudGFyZ2V0cy5maWx0ZXIoZnVuY3Rpb24gKGVudHJ5KSB7CgogICAgICAgICAgICAgICAgICAgIHZhciBpblZpZXcgPSBpc0luVmlldyhlbnRyeS50YXJnZXQsIHRoaXMkMS5vZmZzZXRUb3AsIHRoaXMkMS5vZmZzZXRMZWZ0KTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGVudHJ5LmlzSW50ZXJzZWN0aW5nID09PSBudWxsIHx8IGluVmlldyBeIGVudHJ5LmlzSW50ZXJzZWN0aW5nKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGVudHJ5LmlzSW50ZXJzZWN0aW5nID0gaW5WaWV3OwogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH07CgogICAgICAgICAgICBJbnRlcnNlY3Rpb25PYnNlcnZlckNsYXNzLnByb3RvdHlwZS5vYnNlcnZlID0gZnVuY3Rpb24gKHRhcmdldCkgewogICAgICAgICAgICAgICAgdGhpcy50YXJnZXRzLnB1c2goewogICAgICAgICAgICAgICAgICAgIHRhcmdldDogdGFyZ2V0LAogICAgICAgICAgICAgICAgICAgIGlzSW50ZXJzZWN0aW5nOiBudWxsCiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIHRoaXMuYXBwbHkoKTsKICAgICAgICAgICAgfTsKCiAgICAgICAgICAgIEludGVyc2VjdGlvbk9ic2VydmVyQ2xhc3MucHJvdG90eXBlLmRpc2Nvbm5lY3QgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICB0aGlzLnRhcmdldHMgPSBbXTsKICAgICAgICAgICAgICAgIHRoaXMub2ZmKCk7CiAgICAgICAgICAgIH07CgogICAgICAgIHJldHVybiBJbnRlcnNlY3Rpb25PYnNlcnZlckNsYXNzOwogICAgfSgpKTsKCgoKICAgIHZhciB1dGlsID0gLyojX19QVVJFX18qL09iamVjdC5mcmVlemUoewogICAgICAgIGFqYXg6IGFqYXgsCiAgICAgICAgZ2V0SW1hZ2U6IGdldEltYWdlLAogICAgICAgIHRyYW5zaXRpb246IHRyYW5zaXRpb24sCiAgICAgICAgVHJhbnNpdGlvbjogVHJhbnNpdGlvbiwKICAgICAgICBhbmltYXRlOiBhbmltYXRlLAogICAgICAgIEFuaW1hdGlvbjogQW5pbWF0aW9uLAogICAgICAgIGF0dHI6IGF0dHIsCiAgICAgICAgaGFzQXR0cjogaGFzQXR0ciwKICAgICAgICByZW1vdmVBdHRyOiByZW1vdmVBdHRyLAogICAgICAgIGRhdGE6IGRhdGEsCiAgICAgICAgYWRkQ2xhc3M6IGFkZENsYXNzLAogICAgICAgIHJlbW92ZUNsYXNzOiByZW1vdmVDbGFzcywKICAgICAgICByZW1vdmVDbGFzc2VzOiByZW1vdmVDbGFzc2VzLAogICAgICAgIHJlcGxhY2VDbGFzczogcmVwbGFjZUNsYXNzLAogICAgICAgIGhhc0NsYXNzOiBoYXNDbGFzcywKICAgICAgICB0b2dnbGVDbGFzczogdG9nZ2xlQ2xhc3MsCiAgICAgICAgcG9zaXRpb25BdDogcG9zaXRpb25BdCwKICAgICAgICBvZmZzZXQ6IG9mZnNldCwKICAgICAgICBwb3NpdGlvbjogcG9zaXRpb24sCiAgICAgICAgaGVpZ2h0OiBoZWlnaHQsCiAgICAgICAgd2lkdGg6IHdpZHRoLAogICAgICAgIGJveE1vZGVsQWRqdXN0OiBib3hNb2RlbEFkanVzdCwKICAgICAgICBmbGlwUG9zaXRpb246IGZsaXBQb3NpdGlvbiwKICAgICAgICBpc0luVmlldzogaXNJblZpZXcsCiAgICAgICAgc2Nyb2xsZWRPdmVyOiBzY3JvbGxlZE92ZXIsCiAgICAgICAgc2Nyb2xsVG9wOiBzY3JvbGxUb3AsCiAgICAgICAgb2Zmc2V0UG9zaXRpb246IG9mZnNldFBvc2l0aW9uLAogICAgICAgIHRvUHg6IHRvUHgsCiAgICAgICAgcmVhZHk6IHJlYWR5LAogICAgICAgIGluZGV4OiBpbmRleCwKICAgICAgICBnZXRJbmRleDogZ2V0SW5kZXgsCiAgICAgICAgZW1wdHk6IGVtcHR5LAogICAgICAgIGh0bWw6IGh0bWwsCiAgICAgICAgcHJlcGVuZDogcHJlcGVuZCwKICAgICAgICBhcHBlbmQ6IGFwcGVuZCwKICAgICAgICBiZWZvcmU6IGJlZm9yZSwKICAgICAgICBhZnRlcjogYWZ0ZXIsCiAgICAgICAgcmVtb3ZlOiByZW1vdmUsCiAgICAgICAgd3JhcEFsbDogd3JhcEFsbCwKICAgICAgICB3cmFwSW5uZXI6IHdyYXBJbm5lciwKICAgICAgICB1bndyYXA6IHVud3JhcCwKICAgICAgICBmcmFnbWVudDogZnJhZ21lbnQsCiAgICAgICAgYXBwbHk6IGFwcGx5LAogICAgICAgICQ6ICQsCiAgICAgICAgJCQ6ICQkLAogICAgICAgIGlzSUU6IGlzSUUsCiAgICAgICAgaXNSdGw6IGlzUnRsLAogICAgICAgIGhhc1RvdWNoOiBoYXNUb3VjaCwKICAgICAgICBwb2ludGVyRG93bjogcG9pbnRlckRvd24sCiAgICAgICAgcG9pbnRlck1vdmU6IHBvaW50ZXJNb3ZlLAogICAgICAgIHBvaW50ZXJVcDogcG9pbnRlclVwLAogICAgICAgIHBvaW50ZXJFbnRlcjogcG9pbnRlckVudGVyLAogICAgICAgIHBvaW50ZXJMZWF2ZTogcG9pbnRlckxlYXZlLAogICAgICAgIHBvaW50ZXJDYW5jZWw6IHBvaW50ZXJDYW5jZWwsCiAgICAgICAgb246IG9uLAogICAgICAgIG9mZjogb2ZmLAogICAgICAgIG9uY2U6IG9uY2UsCiAgICAgICAgdHJpZ2dlcjogdHJpZ2dlciwKICAgICAgICBjcmVhdGVFdmVudDogY3JlYXRlRXZlbnQsCiAgICAgICAgdG9FdmVudFRhcmdldHM6IHRvRXZlbnRUYXJnZXRzLAogICAgICAgIGlzVG91Y2g6IGlzVG91Y2gsCiAgICAgICAgZ2V0RXZlbnRQb3M6IGdldEV2ZW50UG9zLAogICAgICAgIGZhc3Rkb206IGZhc3Rkb20sCiAgICAgICAgaXNWb2lkRWxlbWVudDogaXNWb2lkRWxlbWVudCwKICAgICAgICBpc1Zpc2libGU6IGlzVmlzaWJsZSwKICAgICAgICBzZWxJbnB1dDogc2VsSW5wdXQsCiAgICAgICAgaXNJbnB1dDogaXNJbnB1dCwKICAgICAgICBmaWx0ZXI6IGZpbHRlciwKICAgICAgICB3aXRoaW46IHdpdGhpbiwKICAgICAgICBoYXNPd246IGhhc093biwKICAgICAgICBoeXBoZW5hdGU6IGh5cGhlbmF0ZSwKICAgICAgICBjYW1lbGl6ZTogY2FtZWxpemUsCiAgICAgICAgdWNmaXJzdDogdWNmaXJzdCwKICAgICAgICBzdGFydHNXaXRoOiBzdGFydHNXaXRoLAogICAgICAgIGVuZHNXaXRoOiBlbmRzV2l0aCwKICAgICAgICBpbmNsdWRlczogaW5jbHVkZXMsCiAgICAgICAgZmluZEluZGV4OiBmaW5kSW5kZXgsCiAgICAgICAgaXNBcnJheTogaXNBcnJheSwKICAgICAgICBpc0Z1bmN0aW9uOiBpc0Z1bmN0aW9uLAogICAgICAgIGlzT2JqZWN0OiBpc09iamVjdCwKICAgICAgICBpc1BsYWluT2JqZWN0OiBpc1BsYWluT2JqZWN0LAogICAgICAgIGlzV2luZG93OiBpc1dpbmRvdywKICAgICAgICBpc0RvY3VtZW50OiBpc0RvY3VtZW50LAogICAgICAgIGlzSlF1ZXJ5OiBpc0pRdWVyeSwKICAgICAgICBpc05vZGU6IGlzTm9kZSwKICAgICAgICBpc05vZGVDb2xsZWN0aW9uOiBpc05vZGVDb2xsZWN0aW9uLAogICAgICAgIGlzQm9vbGVhbjogaXNCb29sZWFuLAogICAgICAgIGlzU3RyaW5nOiBpc1N0cmluZywKICAgICAgICBpc051bWJlcjogaXNOdW1iZXIsCiAgICAgICAgaXNOdW1lcmljOiBpc051bWVyaWMsCiAgICAgICAgaXNFbXB0eTogaXNFbXB0eSwKICAgICAgICBpc1VuZGVmaW5lZDogaXNVbmRlZmluZWQsCiAgICAgICAgdG9Cb29sZWFuOiB0b0Jvb2xlYW4sCiAgICAgICAgdG9OdW1iZXI6IHRvTnVtYmVyLAogICAgICAgIHRvRmxvYXQ6IHRvRmxvYXQsCiAgICAgICAgdG9Ob2RlOiB0b05vZGUsCiAgICAgICAgdG9Ob2RlczogdG9Ob2RlcywKICAgICAgICB0b0xpc3Q6IHRvTGlzdCwKICAgICAgICB0b01zOiB0b01zLAogICAgICAgIGlzRXF1YWw6IGlzRXF1YWwsCiAgICAgICAgc3dhcDogc3dhcCwKICAgICAgICBhc3NpZ246IGFzc2lnbiwKICAgICAgICBsYXN0OiBsYXN0LAogICAgICAgIGVhY2g6IGVhY2gsCiAgICAgICAgc29ydEJ5OiBzb3J0QnksCiAgICAgICAgdW5pcXVlQnk6IHVuaXF1ZUJ5LAogICAgICAgIGNsYW1wOiBjbGFtcCwKICAgICAgICBub29wOiBub29wLAogICAgICAgIGludGVyc2VjdFJlY3Q6IGludGVyc2VjdFJlY3QsCiAgICAgICAgcG9pbnRJblJlY3Q6IHBvaW50SW5SZWN0LAogICAgICAgIERpbWVuc2lvbnM6IERpbWVuc2lvbnMsCiAgICAgICAgTW91c2VUcmFja2VyOiBNb3VzZVRyYWNrZXIsCiAgICAgICAgbWVyZ2VPcHRpb25zOiBtZXJnZU9wdGlvbnMsCiAgICAgICAgcGFyc2VPcHRpb25zOiBwYXJzZU9wdGlvbnMsCiAgICAgICAgUGxheWVyOiBQbGF5ZXIsCiAgICAgICAgUHJvbWlzZTogUHJvbWlzZSwKICAgICAgICBEZWZlcnJlZDogRGVmZXJyZWQsCiAgICAgICAgSW50ZXJzZWN0aW9uT2JzZXJ2ZXI6IEludGVyc2VjdGlvbk9ic2VydmVyLAogICAgICAgIHF1ZXJ5OiBxdWVyeSwKICAgICAgICBxdWVyeUFsbDogcXVlcnlBbGwsCiAgICAgICAgZmluZDogZmluZCwKICAgICAgICBmaW5kQWxsOiBmaW5kQWxsLAogICAgICAgIG1hdGNoZXM6IG1hdGNoZXMsCiAgICAgICAgY2xvc2VzdDogY2xvc2VzdCwKICAgICAgICBwYXJlbnRzOiBwYXJlbnRzLAogICAgICAgIGVzY2FwZTogZXNjYXBlLAogICAgICAgIGNzczogY3NzLAogICAgICAgIGdldFN0eWxlczogZ2V0U3R5bGVzLAogICAgICAgIGdldFN0eWxlOiBnZXRTdHlsZSwKICAgICAgICBnZXRDc3NWYXI6IGdldENzc1ZhciwKICAgICAgICBwcm9wTmFtZTogcHJvcE5hbWUKICAgIH0pOwoKICAgIGZ1bmN0aW9uIGNvbXBvbmVudEFQSSAoVUlraXQpIHsKCiAgICAgICAgdmFyIERBVEEgPSBVSWtpdC5kYXRhOwoKICAgICAgICB2YXIgY29tcG9uZW50cyA9IHt9OwoKICAgICAgICBVSWtpdC5jb21wb25lbnQgPSBmdW5jdGlvbiAobmFtZSwgb3B0aW9ucykgewoKICAgICAgICAgICAgaWYgKCFvcHRpb25zKSB7CgogICAgICAgICAgICAgICAgaWYgKGlzUGxhaW5PYmplY3QoY29tcG9uZW50c1tuYW1lXSkpIHsKICAgICAgICAgICAgICAgICAgICBjb21wb25lbnRzW25hbWVdID0gVUlraXQuZXh0ZW5kKGNvbXBvbmVudHNbbmFtZV0pOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHJldHVybiBjb21wb25lbnRzW25hbWVdOwoKICAgICAgICAgICAgfQoKICAgICAgICAgICAgVUlraXRbbmFtZV0gPSBmdW5jdGlvbiAoZWxlbWVudCwgZGF0YSkgewogICAgICAgICAgICAgICAgdmFyIGkgPSBhcmd1bWVudHMubGVuZ3RoLCBhcmdzQXJyYXkgPSBBcnJheShpKTsKICAgICAgICAgICAgICAgIHdoaWxlICggaS0tICkgYXJnc0FycmF5W2ldID0gYXJndW1lbnRzW2ldOwoKCiAgICAgICAgICAgICAgICB2YXIgY29tcG9uZW50ID0gVUlraXQuY29tcG9uZW50KG5hbWUpOwoKICAgICAgICAgICAgICAgIGlmIChpc1BsYWluT2JqZWN0KGVsZW1lbnQpKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBjb21wb25lbnQoe2RhdGE6IGVsZW1lbnR9KTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBpZiAoY29tcG9uZW50Lm9wdGlvbnMuZnVuY3Rpb25hbCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBuZXcgY29tcG9uZW50KHtkYXRhOiBbXS5jb25jYXQoIGFyZ3NBcnJheSApfSk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgcmV0dXJuIGVsZW1lbnQgJiYgZWxlbWVudC5ub2RlVHlwZSA/IGluaXQoZWxlbWVudCkgOiAkJChlbGVtZW50KS5tYXAoaW5pdClbMF07CgogICAgICAgICAgICAgICAgZnVuY3Rpb24gaW5pdChlbGVtZW50KSB7CgogICAgICAgICAgICAgICAgICAgIHZhciBpbnN0YW5jZSA9IFVJa2l0LmdldENvbXBvbmVudChlbGVtZW50LCBuYW1lKTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGluc3RhbmNlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghZGF0YSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGluc3RhbmNlOwogICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgaW5zdGFuY2UuJGRlc3Ryb3koKTsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBjb21wb25lbnQoe2VsOiBlbGVtZW50LCBkYXRhOiBkYXRhfSk7CgogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfTsKCiAgICAgICAgICAgIHZhciBvcHQgPSBpc1BsYWluT2JqZWN0KG9wdGlvbnMpID8gYXNzaWduKHt9LCBvcHRpb25zKSA6IG9wdGlvbnMub3B0aW9uczsKCiAgICAgICAgICAgIG9wdC5uYW1lID0gbmFtZTsKCiAgICAgICAgICAgIGlmIChvcHQuaW5zdGFsbCkgewogICAgICAgICAgICAgICAgb3B0Lmluc3RhbGwoVUlraXQsIG9wdCwgbmFtZSk7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIGlmIChVSWtpdC5faW5pdGlhbGl6ZWQgJiYgIW9wdC5mdW5jdGlvbmFsKSB7CiAgICAgICAgICAgICAgICB2YXIgaWQgPSBoeXBoZW5hdGUobmFtZSk7CiAgICAgICAgICAgICAgICBmYXN0ZG9tLnJlYWQoZnVuY3Rpb24gKCkgeyByZXR1cm4gVUlraXRbbmFtZV0oKCJbdWstIiArIGlkICsgIl0sW2RhdGEtdWstIiArIGlkICsgIl0iKSk7IH0pOwogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gY29tcG9uZW50c1tuYW1lXSA9IGlzUGxhaW5PYmplY3Qob3B0aW9ucykgPyBvcHQgOiBvcHRpb25zOwogICAgICAgIH07CgogICAgICAgIFVJa2l0LmdldENvbXBvbmVudHMgPSBmdW5jdGlvbiAoZWxlbWVudCkgeyByZXR1cm4gZWxlbWVudCAmJiBlbGVtZW50W0RBVEFdIHx8IHt9OyB9OwogICAgICAgIFVJa2l0LmdldENvbXBvbmVudCA9IGZ1bmN0aW9uIChlbGVtZW50LCBuYW1lKSB7IHJldHVybiBVSWtpdC5nZXRDb21wb25lbnRzKGVsZW1lbnQpW25hbWVdOyB9OwoKICAgICAgICBVSWtpdC5jb25uZWN0ID0gZnVuY3Rpb24gKG5vZGUpIHsKCiAgICAgICAgICAgIGlmIChub2RlW0RBVEFdKSB7CiAgICAgICAgICAgICAgICBmb3IgKHZhciBuYW1lIGluIG5vZGVbREFUQV0pIHsKICAgICAgICAgICAgICAgICAgICBub2RlW0RBVEFdW25hbWVdLl9jYWxsQ29ubmVjdGVkKCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgbm9kZS5hdHRyaWJ1dGVzLmxlbmd0aDsgaSsrKSB7CgogICAgICAgICAgICAgICAgdmFyIG5hbWUkMSA9IGdldENvbXBvbmVudE5hbWUobm9kZS5hdHRyaWJ1dGVzW2ldLm5hbWUpOwoKICAgICAgICAgICAgICAgIGlmIChuYW1lJDEgJiYgbmFtZSQxIGluIGNvbXBvbmVudHMpIHsKICAgICAgICAgICAgICAgICAgICBVSWtpdFtuYW1lJDFdKG5vZGUpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfQoKICAgICAgICB9OwoKICAgICAgICBVSWtpdC5kaXNjb25uZWN0ID0gZnVuY3Rpb24gKG5vZGUpIHsKICAgICAgICAgICAgZm9yICh2YXIgbmFtZSBpbiBub2RlW0RBVEFdKSB7CiAgICAgICAgICAgICAgICBub2RlW0RBVEFdW25hbWVdLl9jYWxsRGlzY29ubmVjdGVkKCk7CiAgICAgICAgICAgIH0KICAgICAgICB9OwoKICAgIH0KCiAgICBmdW5jdGlvbiBnZXRDb21wb25lbnROYW1lKGF0dHJpYnV0ZSkgewogICAgICAgIHJldHVybiBzdGFydHNXaXRoKGF0dHJpYnV0ZSwgJ3VrLScpIHx8IHN0YXJ0c1dpdGgoYXR0cmlidXRlLCAnZGF0YS11ay0nKQogICAgICAgICAgICA/IGNhbWVsaXplKGF0dHJpYnV0ZS5yZXBsYWNlKCdkYXRhLXVrLScsICcnKS5yZXBsYWNlKCd1ay0nLCAnJykpCiAgICAgICAgICAgIDogZmFsc2U7CiAgICB9CgogICAgZnVuY3Rpb24gYm9vdCAoVUlraXQpIHsKCiAgICAgICAgdmFyIGNvbm5lY3QgPSBVSWtpdC5jb25uZWN0OwogICAgICAgIHZhciBkaXNjb25uZWN0ID0gVUlraXQuZGlzY29ubmVjdDsKCiAgICAgICAgaWYgKCEoJ011dGF0aW9uT2JzZXJ2ZXInIGluIHdpbmRvdykpIHsKICAgICAgICAgICAgcmV0dXJuOwogICAgICAgIH0KCiAgICAgICAgaWYgKGRvY3VtZW50LmJvZHkpIHsKCiAgICAgICAgICAgIGZhc3Rkb20ucmVhZChpbml0KTsKCiAgICAgICAgfSBlbHNlIHsKCiAgICAgICAgICAgIChuZXcgTXV0YXRpb25PYnNlcnZlcihmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICAgICAgaWYgKGRvY3VtZW50LmJvZHkpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLmRpc2Nvbm5lY3QoKTsKICAgICAgICAgICAgICAgICAgICBpbml0KCk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9KSkub2JzZXJ2ZShkb2N1bWVudCwge2NoaWxkTGlzdDogdHJ1ZSwgc3VidHJlZTogdHJ1ZX0pOwoKICAgICAgICB9CgogICAgICAgIGZ1bmN0aW9uIGluaXQoKSB7CgogICAgICAgICAgICBhcHBseShkb2N1bWVudC5ib2R5LCBjb25uZWN0KTsKCiAgICAgICAgICAgIC8vIFNhZmFyaSByZW5kZXJzIHByaW9yIHRvIGZpcnN0IGFuaW1hdGlvbiBmcmFtZQogICAgICAgICAgICBmYXN0ZG9tLmZsdXNoKCk7CgogICAgICAgICAgICAobmV3IE11dGF0aW9uT2JzZXJ2ZXIoZnVuY3Rpb24gKG11dGF0aW9ucykgeyByZXR1cm4gbXV0YXRpb25zLmZvckVhY2goYXBwbHlNdXRhdGlvbik7IH0pKS5vYnNlcnZlKGRvY3VtZW50LCB7CiAgICAgICAgICAgICAgICBjaGlsZExpc3Q6IHRydWUsCiAgICAgICAgICAgICAgICBzdWJ0cmVlOiB0cnVlLAogICAgICAgICAgICAgICAgY2hhcmFjdGVyRGF0YTogdHJ1ZSwKICAgICAgICAgICAgICAgIGF0dHJpYnV0ZXM6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBVSWtpdC5faW5pdGlhbGl6ZWQgPSB0cnVlOwogICAgICAgIH0KCiAgICAgICAgZnVuY3Rpb24gYXBwbHlNdXRhdGlvbihtdXRhdGlvbikgewoKICAgICAgICAgICAgdmFyIHRhcmdldCA9IG11dGF0aW9uLnRhcmdldDsKICAgICAgICAgICAgdmFyIHR5cGUgPSBtdXRhdGlvbi50eXBlOwoKICAgICAgICAgICAgdmFyIHVwZGF0ZSA9IHR5cGUgIT09ICdhdHRyaWJ1dGVzJwogICAgICAgICAgICAgICAgPyBhcHBseUNoaWxkTGlzdChtdXRhdGlvbikKICAgICAgICAgICAgICAgIDogYXBwbHlBdHRyaWJ1dGUobXV0YXRpb24pOwoKICAgICAgICAgICAgdXBkYXRlICYmIFVJa2l0LnVwZGF0ZSh0YXJnZXQpOwoKICAgICAgICB9CgogICAgICAgIGZ1bmN0aW9uIGFwcGx5QXR0cmlidXRlKHJlZikgewogICAgICAgICAgICB2YXIgdGFyZ2V0ID0gcmVmLnRhcmdldDsKICAgICAgICAgICAgdmFyIGF0dHJpYnV0ZU5hbWUgPSByZWYuYXR0cmlidXRlTmFtZTsKCgogICAgICAgICAgICBpZiAoYXR0cmlidXRlTmFtZSA9PT0gJ2hyZWYnKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgdmFyIG5hbWUgPSBnZXRDb21wb25lbnROYW1lKGF0dHJpYnV0ZU5hbWUpOwoKICAgICAgICAgICAgaWYgKCFuYW1lIHx8ICEobmFtZSBpbiBVSWtpdCkpIHsKICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgaWYgKGhhc0F0dHIodGFyZ2V0LCBhdHRyaWJ1dGVOYW1lKSkgewogICAgICAgICAgICAgICAgVUlraXRbbmFtZV0odGFyZ2V0KTsKICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICB9CgogICAgICAgICAgICB2YXIgY29tcG9uZW50ID0gVUlraXQuZ2V0Q29tcG9uZW50KHRhcmdldCwgbmFtZSk7CgogICAgICAgICAgICBpZiAoY29tcG9uZW50KSB7CiAgICAgICAgICAgICAgICBjb21wb25lbnQuJGRlc3Ryb3koKTsKICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICAgICAgZnVuY3Rpb24gYXBwbHlDaGlsZExpc3QocmVmKSB7CiAgICAgICAgICAgIHZhciBhZGRlZE5vZGVzID0gcmVmLmFkZGVkTm9kZXM7CiAgICAgICAgICAgIHZhciByZW1vdmVkTm9kZXMgPSByZWYucmVtb3ZlZE5vZGVzOwoKCiAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgYWRkZWROb2Rlcy5sZW5ndGg7IGkrKykgewogICAgICAgICAgICAgICAgYXBwbHkoYWRkZWROb2Rlc1tpXSwgY29ubmVjdCk7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIGZvciAodmFyIGkkMSA9IDA7IGkkMSA8IHJlbW92ZWROb2Rlcy5sZW5ndGg7IGkkMSsrKSB7CiAgICAgICAgICAgICAgICBhcHBseShyZW1vdmVkTm9kZXNbaSQxXSwgZGlzY29ubmVjdCk7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgIH0KCiAgICAgICAgZnVuY3Rpb24gYXBwbHkobm9kZSwgZm4pIHsKCiAgICAgICAgICAgIGlmIChub2RlLm5vZGVUeXBlICE9PSAxIHx8IGhhc0F0dHIobm9kZSwgJ3VrLW5vLWJvb3QnKSkgewogICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICB9CgogICAgICAgICAgICBmbihub2RlKTsKICAgICAgICAgICAgbm9kZSA9IG5vZGUuZmlyc3RFbGVtZW50Q2hpbGQ7CiAgICAgICAgICAgIHdoaWxlIChub2RlKSB7CiAgICAgICAgICAgICAgICB2YXIgbmV4dCA9IG5vZGUubmV4dEVsZW1lbnRTaWJsaW5nOwogICAgICAgICAgICAgICAgYXBwbHkobm9kZSwgZm4pOwogICAgICAgICAgICAgICAgbm9kZSA9IG5leHQ7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgfQoKICAgIGZ1bmN0aW9uIGdsb2JhbEFQSSAoVUlraXQpIHsKCiAgICAgICAgdmFyIERBVEEgPSBVSWtpdC5kYXRhOwoKICAgICAgICBVSWtpdC51c2UgPSBmdW5jdGlvbiAocGx1Z2luKSB7CgogICAgICAgICAgICBpZiAocGx1Z2luLmluc3RhbGxlZCkgewogICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICB9CgogICAgICAgICAgICBwbHVnaW4uY2FsbChudWxsLCB0aGlzKTsKICAgICAgICAgICAgcGx1Z2luLmluc3RhbGxlZCA9IHRydWU7CgogICAgICAgICAgICByZXR1cm4gdGhpczsKICAgICAgICB9OwoKICAgICAgICBVSWtpdC5taXhpbiA9IGZ1bmN0aW9uIChtaXhpbiwgY29tcG9uZW50KSB7CiAgICAgICAgICAgIGNvbXBvbmVudCA9IChpc1N0cmluZyhjb21wb25lbnQpID8gVUlraXQuY29tcG9uZW50KGNvbXBvbmVudCkgOiBjb21wb25lbnQpIHx8IHRoaXM7CiAgICAgICAgICAgIGNvbXBvbmVudC5vcHRpb25zID0gbWVyZ2VPcHRpb25zKGNvbXBvbmVudC5vcHRpb25zLCBtaXhpbik7CiAgICAgICAgfTsKCiAgICAgICAgVUlraXQuZXh0ZW5kID0gZnVuY3Rpb24gKG9wdGlvbnMpIHsKCiAgICAgICAgICAgIG9wdGlvbnMgPSBvcHRpb25zIHx8IHt9OwoKICAgICAgICAgICAgdmFyIFN1cGVyID0gdGhpczsKICAgICAgICAgICAgdmFyIFN1YiA9IGZ1bmN0aW9uIFVJa2l0Q29tcG9uZW50KG9wdGlvbnMpIHsKICAgICAgICAgICAgICAgIHRoaXMuX2luaXQob3B0aW9ucyk7CiAgICAgICAgICAgIH07CgogICAgICAgICAgICBTdWIucHJvdG90eXBlID0gT2JqZWN0LmNyZWF0ZShTdXBlci5wcm90b3R5cGUpOwogICAgICAgICAgICBTdWIucHJvdG90eXBlLmNvbnN0cnVjdG9yID0gU3ViOwogICAgICAgICAgICBTdWIub3B0aW9ucyA9IG1lcmdlT3B0aW9ucyhTdXBlci5vcHRpb25zLCBvcHRpb25zKTsKCiAgICAgICAgICAgIFN1Yi5zdXBlciA9IFN1cGVyOwogICAgICAgICAgICBTdWIuZXh0ZW5kID0gU3VwZXIuZXh0ZW5kOwoKICAgICAgICAgICAgcmV0dXJuIFN1YjsKICAgICAgICB9OwoKICAgICAgICBVSWtpdC51cGRhdGUgPSBmdW5jdGlvbiAoZWxlbWVudCwgZSkgewoKICAgICAgICAgICAgZWxlbWVudCA9IGVsZW1lbnQgPyB0b05vZGUoZWxlbWVudCkgOiBkb2N1bWVudC5ib2R5OwoKICAgICAgICAgICAgcGF0aChlbGVtZW50LCBmdW5jdGlvbiAoZWxlbWVudCkgeyByZXR1cm4gdXBkYXRlKGVsZW1lbnRbREFUQV0sIGUpOyB9KTsKICAgICAgICAgICAgYXBwbHkoZWxlbWVudCwgZnVuY3Rpb24gKGVsZW1lbnQpIHsgcmV0dXJuIHVwZGF0ZShlbGVtZW50W0RBVEFdLCBlKTsgfSk7CgogICAgICAgIH07CgogICAgICAgIHZhciBjb250YWluZXI7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KFVJa2l0LCAnY29udGFpbmVyJywgewoKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHJldHVybiBjb250YWluZXIgfHwgZG9jdW1lbnQuYm9keTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHNldDogZnVuY3Rpb24oZWxlbWVudCkgewogICAgICAgICAgICAgICAgY29udGFpbmVyID0gJChlbGVtZW50KTsKICAgICAgICAgICAgfQoKICAgICAgICB9KTsKCiAgICAgICAgZnVuY3Rpb24gdXBkYXRlKGRhdGEsIGUpIHsKCiAgICAgICAgICAgIGlmICghZGF0YSkgewogICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICB9CgogICAgICAgICAgICBmb3IgKHZhciBuYW1lIGluIGRhdGEpIHsKICAgICAgICAgICAgICAgIGlmIChkYXRhW25hbWVdLl9jb25uZWN0ZWQpIHsKICAgICAgICAgICAgICAgICAgICBkYXRhW25hbWVdLl9jYWxsVXBkYXRlKGUpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICAgICAgZnVuY3Rpb24gcGF0aChub2RlLCBmbikgewogICAgICAgICAgICBpZiAobm9kZSAmJiBub2RlICE9PSBkb2N1bWVudC5ib2R5ICYmIG5vZGUucGFyZW50Tm9kZSkgewogICAgICAgICAgICAgICAgcGF0aChub2RlLnBhcmVudE5vZGUsIGZuKTsKICAgICAgICAgICAgICAgIGZuKG5vZGUucGFyZW50Tm9kZSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgfQoKICAgIGZ1bmN0aW9uIGhvb2tzQVBJIChVSWtpdCkgewoKICAgICAgICBVSWtpdC5wcm90b3R5cGUuX2NhbGxIb29rID0gZnVuY3Rpb24gKGhvb2spIHsKICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgoKICAgICAgICAgICAgdmFyIGhhbmRsZXJzID0gdGhpcy4kb3B0aW9uc1tob29rXTsKCiAgICAgICAgICAgIGlmIChoYW5kbGVycykgewogICAgICAgICAgICAgICAgaGFuZGxlcnMuZm9yRWFjaChmdW5jdGlvbiAoaGFuZGxlcikgeyByZXR1cm4gaGFuZGxlci5jYWxsKHRoaXMkMSk7IH0pOwogICAgICAgICAgICB9CiAgICAgICAgfTsKCiAgICAgICAgVUlraXQucHJvdG90eXBlLl9jYWxsQ29ubmVjdGVkID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgaWYgKHRoaXMuX2Nvbm5lY3RlZCkgewogICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICB9CgogICAgICAgICAgICB0aGlzLl9kYXRhID0ge307CiAgICAgICAgICAgIHRoaXMuX2NvbXB1dGVkcyA9IHt9OwogICAgICAgICAgICB0aGlzLl9pbml0UHJvcHMoKTsKCiAgICAgICAgICAgIHRoaXMuX2NhbGxIb29rKCdiZWZvcmVDb25uZWN0Jyk7CiAgICAgICAgICAgIHRoaXMuX2Nvbm5lY3RlZCA9IHRydWU7CgogICAgICAgICAgICB0aGlzLl9pbml0RXZlbnRzKCk7CiAgICAgICAgICAgIHRoaXMuX2luaXRPYnNlcnZlcigpOwoKICAgICAgICAgICAgdGhpcy5fY2FsbEhvb2soJ2Nvbm5lY3RlZCcpOwogICAgICAgICAgICB0aGlzLl9jYWxsVXBkYXRlKCk7CiAgICAgICAgfTsKCiAgICAgICAgVUlraXQucHJvdG90eXBlLl9jYWxsRGlzY29ubmVjdGVkID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgaWYgKCF0aGlzLl9jb25uZWN0ZWQpIHsKICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgdGhpcy5fY2FsbEhvb2soJ2JlZm9yZURpc2Nvbm5lY3QnKTsKCiAgICAgICAgICAgIGlmICh0aGlzLl9vYnNlcnZlcikgewogICAgICAgICAgICAgICAgdGhpcy5fb2JzZXJ2ZXIuZGlzY29ubmVjdCgpOwogICAgICAgICAgICAgICAgdGhpcy5fb2JzZXJ2ZXIgPSBudWxsOwogICAgICAgICAgICB9CgogICAgICAgICAgICB0aGlzLl91bmJpbmRFdmVudHMoKTsKICAgICAgICAgICAgdGhpcy5fY2FsbEhvb2soJ2Rpc2Nvbm5lY3RlZCcpOwoKICAgICAgICAgICAgdGhpcy5fY29ubmVjdGVkID0gZmFsc2U7CgogICAgICAgIH07CgogICAgICAgIFVJa2l0LnByb3RvdHlwZS5fY2FsbFVwZGF0ZSA9IGZ1bmN0aW9uIChlKSB7CiAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwogICAgICAgICAgICBpZiAoIGUgPT09IHZvaWQgMCApIGUgPSAndXBkYXRlJzsKCgogICAgICAgICAgICB2YXIgdHlwZSA9IGUudHlwZSB8fCBlOwoKICAgICAgICAgICAgaWYgKGluY2x1ZGVzKFsndXBkYXRlJywgJ3Jlc2l6ZSddLCB0eXBlKSkgewogICAgICAgICAgICAgICAgdGhpcy5fY2FsbFdhdGNoZXMoKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgdmFyIHVwZGF0ZXMgPSB0aGlzLiRvcHRpb25zLnVwZGF0ZTsKICAgICAgICAgICAgdmFyIHJlZiA9IHRoaXMuX2ZyYW1lczsKICAgICAgICAgICAgdmFyIHJlYWRzID0gcmVmLnJlYWRzOwogICAgICAgICAgICB2YXIgd3JpdGVzID0gcmVmLndyaXRlczsKCiAgICAgICAgICAgIGlmICghdXBkYXRlcykgewogICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICB9CgogICAgICAgICAgICB1cGRhdGVzLmZvckVhY2goZnVuY3Rpb24gKHJlZiwgaSkgewogICAgICAgICAgICAgICAgdmFyIHJlYWQgPSByZWYucmVhZDsKICAgICAgICAgICAgICAgIHZhciB3cml0ZSA9IHJlZi53cml0ZTsKICAgICAgICAgICAgICAgIHZhciBldmVudHMgPSByZWYuZXZlbnRzOwoKCiAgICAgICAgICAgICAgICBpZiAodHlwZSAhPT0gJ3VwZGF0ZScgJiYgIWluY2x1ZGVzKGV2ZW50cywgdHlwZSkpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgaWYgKHJlYWQgJiYgIWluY2x1ZGVzKGZhc3Rkb20ucmVhZHMsIHJlYWRzW2ldKSkgewogICAgICAgICAgICAgICAgICAgIHJlYWRzW2ldID0gZmFzdGRvbS5yZWFkKGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgIHZhciByZXN1bHQgPSB0aGlzJDEuX2Nvbm5lY3RlZCAmJiByZWFkLmNhbGwodGhpcyQxLCB0aGlzJDEuX2RhdGEsIHR5cGUpOwoKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJlc3VsdCA9PT0gZmFsc2UgJiYgd3JpdGUpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZhc3Rkb20uY2xlYXIod3JpdGVzW2ldKTsKICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmIChpc1BsYWluT2JqZWN0KHJlc3VsdCkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFzc2lnbih0aGlzJDEuX2RhdGEsIHJlc3VsdCk7CiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBpZiAod3JpdGUgJiYgIWluY2x1ZGVzKGZhc3Rkb20ud3JpdGVzLCB3cml0ZXNbaV0pKSB7CiAgICAgICAgICAgICAgICAgICAgd3JpdGVzW2ldID0gZmFzdGRvbS53cml0ZShmdW5jdGlvbiAoKSB7IHJldHVybiB0aGlzJDEuX2Nvbm5lY3RlZCAmJiB3cml0ZS5jYWxsKHRoaXMkMSwgdGhpcyQxLl9kYXRhLCB0eXBlKTsgfSk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9KTsKCiAgICAgICAgfTsKCiAgICB9CgogICAgZnVuY3Rpb24gc3RhdGVBUEkgKFVJa2l0KSB7CgogICAgICAgIHZhciB1aWQgPSAwOwoKICAgICAgICBVSWtpdC5wcm90b3R5cGUuX2luaXQgPSBmdW5jdGlvbiAob3B0aW9ucykgewoKICAgICAgICAgICAgb3B0aW9ucyA9IG9wdGlvbnMgfHwge307CiAgICAgICAgICAgIG9wdGlvbnMuZGF0YSA9IG5vcm1hbGl6ZURhdGEob3B0aW9ucywgdGhpcy5jb25zdHJ1Y3Rvci5vcHRpb25zKTsKCiAgICAgICAgICAgIHRoaXMuJG9wdGlvbnMgPSBtZXJnZU9wdGlvbnModGhpcy5jb25zdHJ1Y3Rvci5vcHRpb25zLCBvcHRpb25zLCB0aGlzKTsKICAgICAgICAgICAgdGhpcy4kZWwgPSBudWxsOwogICAgICAgICAgICB0aGlzLiRwcm9wcyA9IHt9OwoKICAgICAgICAgICAgdGhpcy5fZnJhbWVzID0ge3JlYWRzOiB7fSwgd3JpdGVzOiB7fX07CiAgICAgICAgICAgIHRoaXMuX2V2ZW50cyA9IFtdOwoKICAgICAgICAgICAgdGhpcy5fdWlkID0gdWlkKys7CiAgICAgICAgICAgIHRoaXMuX2luaXREYXRhKCk7CiAgICAgICAgICAgIHRoaXMuX2luaXRNZXRob2RzKCk7CiAgICAgICAgICAgIHRoaXMuX2luaXRDb21wdXRlZHMoKTsKICAgICAgICAgICAgdGhpcy5fY2FsbEhvb2soJ2NyZWF0ZWQnKTsKCiAgICAgICAgICAgIGlmIChvcHRpb25zLmVsKSB7CiAgICAgICAgICAgICAgICB0aGlzLiRtb3VudChvcHRpb25zLmVsKTsKICAgICAgICAgICAgfQogICAgICAgIH07CgogICAgICAgIFVJa2l0LnByb3RvdHlwZS5faW5pdERhdGEgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICB2YXIgcmVmID0gdGhpcy4kb3B0aW9uczsKICAgICAgICAgICAgdmFyIGRhdGEgPSByZWYuZGF0YTsgaWYgKCBkYXRhID09PSB2b2lkIDAgKSBkYXRhID0ge307CgogICAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gZGF0YSkgewogICAgICAgICAgICAgICAgdGhpcy4kcHJvcHNba2V5XSA9IHRoaXNba2V5XSA9IGRhdGFba2V5XTsKICAgICAgICAgICAgfQogICAgICAgIH07CgogICAgICAgIFVJa2l0LnByb3RvdHlwZS5faW5pdE1ldGhvZHMgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICB2YXIgcmVmID0gdGhpcy4kb3B0aW9uczsKICAgICAgICAgICAgdmFyIG1ldGhvZHMgPSByZWYubWV0aG9kczsKCiAgICAgICAgICAgIGlmIChtZXRob2RzKSB7CiAgICAgICAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gbWV0aG9kcykgewogICAgICAgICAgICAgICAgICAgIHRoaXNba2V5XSA9IG1ldGhvZHNba2V5XS5iaW5kKHRoaXMpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfTsKCiAgICAgICAgVUlraXQucHJvdG90eXBlLl9pbml0Q29tcHV0ZWRzID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgdmFyIHJlZiA9IHRoaXMuJG9wdGlvbnM7CiAgICAgICAgICAgIHZhciBjb21wdXRlZCA9IHJlZi5jb21wdXRlZDsKCiAgICAgICAgICAgIHRoaXMuX2NvbXB1dGVkcyA9IHt9OwoKICAgICAgICAgICAgaWYgKGNvbXB1dGVkKSB7CiAgICAgICAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gY29tcHV0ZWQpIHsKICAgICAgICAgICAgICAgICAgICByZWdpc3RlckNvbXB1dGVkKHRoaXMsIGtleSwgY29tcHV0ZWRba2V5XSk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9OwoKICAgICAgICBVSWtpdC5wcm90b3R5cGUuX2NhbGxXYXRjaGVzID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgdmFyIHJlZiA9IHRoaXM7CiAgICAgICAgICAgIHZhciBjb21wdXRlZCA9IHJlZi4kb3B0aW9ucy5jb21wdXRlZDsKICAgICAgICAgICAgdmFyIF9jb21wdXRlZHMgPSByZWYuX2NvbXB1dGVkczsKCiAgICAgICAgICAgIGZvciAodmFyIGtleSBpbiBfY29tcHV0ZWRzKSB7CgogICAgICAgICAgICAgICAgdmFyIHZhbHVlID0gX2NvbXB1dGVkc1trZXldOwogICAgICAgICAgICAgICAgZGVsZXRlIF9jb21wdXRlZHNba2V5XTsKCiAgICAgICAgICAgICAgICBpZiAoY29tcHV0ZWRba2V5XS53YXRjaCAmJiAhaXNFcXVhbCh2YWx1ZSwgdGhpc1trZXldKSkgewogICAgICAgICAgICAgICAgICAgIGNvbXB1dGVkW2tleV0ud2F0Y2guY2FsbCh0aGlzLCB0aGlzW2tleV0sIHZhbHVlKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0KCiAgICAgICAgfTsKCiAgICAgICAgVUlraXQucHJvdG90eXBlLl9pbml0UHJvcHMgPSBmdW5jdGlvbiAocHJvcHMpIHsKCiAgICAgICAgICAgIHZhciBrZXk7CgogICAgICAgICAgICBwcm9wcyA9IHByb3BzIHx8IGdldFByb3BzKHRoaXMuJG9wdGlvbnMsIHRoaXMuJG5hbWUpOwoKICAgICAgICAgICAgZm9yIChrZXkgaW4gcHJvcHMpIHsKICAgICAgICAgICAgICAgIGlmICghaXNVbmRlZmluZWQocHJvcHNba2V5XSkpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLiRwcm9wc1trZXldID0gcHJvcHNba2V5XTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgdmFyIGV4Y2x1ZGUgPSBbdGhpcy4kb3B0aW9ucy5jb21wdXRlZCwgdGhpcy4kb3B0aW9ucy5tZXRob2RzXTsKICAgICAgICAgICAgZm9yIChrZXkgaW4gdGhpcy4kcHJvcHMpIHsKICAgICAgICAgICAgICAgIGlmIChrZXkgaW4gcHJvcHMgJiYgbm90SW4oZXhjbHVkZSwga2V5KSkgewogICAgICAgICAgICAgICAgICAgIHRoaXNba2V5XSA9IHRoaXMuJHByb3BzW2tleV07CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9OwoKICAgICAgICBVSWtpdC5wcm90b3R5cGUuX2luaXRFdmVudHMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgIHZhciByZWYgPSB0aGlzLiRvcHRpb25zOwogICAgICAgICAgICB2YXIgZXZlbnRzID0gcmVmLmV2ZW50czsKCiAgICAgICAgICAgIGlmIChldmVudHMpIHsKCiAgICAgICAgICAgICAgICBldmVudHMuZm9yRWFjaChmdW5jdGlvbiAoZXZlbnQpIHsKCiAgICAgICAgICAgICAgICAgICAgaWYgKCFoYXNPd24oZXZlbnQsICdoYW5kbGVyJykpIHsKICAgICAgICAgICAgICAgICAgICAgICAgZm9yICh2YXIga2V5IGluIGV2ZW50KSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWdpc3RlckV2ZW50KHRoaXMkMSwgZXZlbnRba2V5XSwga2V5KTsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJlZ2lzdGVyRXZlbnQodGhpcyQxLCBldmVudCk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9CiAgICAgICAgfTsKCiAgICAgICAgVUlraXQucHJvdG90eXBlLl91bmJpbmRFdmVudHMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHRoaXMuX2V2ZW50cy5mb3JFYWNoKGZ1bmN0aW9uICh1bmJpbmQpIHsgcmV0dXJuIHVuYmluZCgpOyB9KTsKICAgICAgICAgICAgdGhpcy5fZXZlbnRzID0gW107CiAgICAgICAgfTsKCiAgICAgICAgVUlraXQucHJvdG90eXBlLl9pbml0T2JzZXJ2ZXIgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgIHZhciByZWYgPSB0aGlzLiRvcHRpb25zOwogICAgICAgICAgICB2YXIgYXR0cnMgPSByZWYuYXR0cnM7CiAgICAgICAgICAgIHZhciBwcm9wcyA9IHJlZi5wcm9wczsKICAgICAgICAgICAgdmFyIGVsID0gcmVmLmVsOwogICAgICAgICAgICBpZiAodGhpcy5fb2JzZXJ2ZXIgfHwgIXByb3BzIHx8IGF0dHJzID09PSBmYWxzZSkgewogICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICB9CgogICAgICAgICAgICBhdHRycyA9IGlzQXJyYXkoYXR0cnMpID8gYXR0cnMgOiBPYmplY3Qua2V5cyhwcm9wcyk7CgogICAgICAgICAgICB0aGlzLl9vYnNlcnZlciA9IG5ldyBNdXRhdGlvbk9ic2VydmVyKGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgICAgICB2YXIgZGF0YSA9IGdldFByb3BzKHRoaXMkMS4kb3B0aW9ucywgdGhpcyQxLiRuYW1lKTsKICAgICAgICAgICAgICAgIGlmIChhdHRycy5zb21lKGZ1bmN0aW9uIChrZXkpIHsgcmV0dXJuICFpc1VuZGVmaW5lZChkYXRhW2tleV0pICYmIGRhdGFba2V5XSAhPT0gdGhpcyQxLiRwcm9wc1trZXldOyB9KSkgewogICAgICAgICAgICAgICAgICAgIHRoaXMkMS4kcmVzZXQoKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgdmFyIGZpbHRlciA9IGF0dHJzLm1hcChmdW5jdGlvbiAoa2V5KSB7IHJldHVybiBoeXBoZW5hdGUoa2V5KTsgfSkuY29uY2F0KHRoaXMuJG5hbWUpOwoKICAgICAgICAgICAgdGhpcy5fb2JzZXJ2ZXIub2JzZXJ2ZShlbCwgewogICAgICAgICAgICAgICAgYXR0cmlidXRlczogdHJ1ZSwKICAgICAgICAgICAgICAgIGF0dHJpYnV0ZUZpbHRlcjogZmlsdGVyLmNvbmNhdChmaWx0ZXIubWFwKGZ1bmN0aW9uIChrZXkpIHsgcmV0dXJuICgiZGF0YS0iICsga2V5KTsgfSkpCiAgICAgICAgICAgIH0pOwogICAgICAgIH07CgogICAgICAgIGZ1bmN0aW9uIGdldFByb3BzKG9wdHMsIG5hbWUpIHsKCiAgICAgICAgICAgIHZhciBkYXRhJDEgPSB7fTsKICAgICAgICAgICAgdmFyIGFyZ3MgPSBvcHRzLmFyZ3M7IGlmICggYXJncyA9PT0gdm9pZCAwICkgYXJncyA9IFtdOwogICAgICAgICAgICB2YXIgcHJvcHMgPSBvcHRzLnByb3BzOyBpZiAoIHByb3BzID09PSB2b2lkIDAgKSBwcm9wcyA9IHt9OwogICAgICAgICAgICB2YXIgZWwgPSBvcHRzLmVsOwoKICAgICAgICAgICAgaWYgKCFwcm9wcykgewogICAgICAgICAgICAgICAgcmV0dXJuIGRhdGEkMTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgZm9yICh2YXIga2V5IGluIHByb3BzKSB7CiAgICAgICAgICAgICAgICB2YXIgcHJvcCA9IGh5cGhlbmF0ZShrZXkpOwogICAgICAgICAgICAgICAgdmFyIHZhbHVlID0gZGF0YShlbCwgcHJvcCk7CgogICAgICAgICAgICAgICAgaWYgKCFpc1VuZGVmaW5lZCh2YWx1ZSkpIHsKCiAgICAgICAgICAgICAgICAgICAgdmFsdWUgPSBwcm9wc1trZXldID09PSBCb29sZWFuICYmIHZhbHVlID09PSAnJwogICAgICAgICAgICAgICAgICAgICAgICA/IHRydWUKICAgICAgICAgICAgICAgICAgICAgICAgOiBjb2VyY2UocHJvcHNba2V5XSwgdmFsdWUpOwoKICAgICAgICAgICAgICAgICAgICBpZiAocHJvcCA9PT0gJ3RhcmdldCcgJiYgKCF2YWx1ZSB8fCBzdGFydHNXaXRoKHZhbHVlLCAnXycpKSkgewogICAgICAgICAgICAgICAgICAgICAgICBjb250aW51ZTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIGRhdGEkMVtrZXldID0gdmFsdWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHZhciBvcHRpb25zID0gcGFyc2VPcHRpb25zKGRhdGEoZWwsIG5hbWUpLCBhcmdzKTsKCiAgICAgICAgICAgIGZvciAodmFyIGtleSQxIGluIG9wdGlvbnMpIHsKICAgICAgICAgICAgICAgIHZhciBwcm9wJDEgPSBjYW1lbGl6ZShrZXkkMSk7CiAgICAgICAgICAgICAgICBpZiAocHJvcHNbcHJvcCQxXSAhPT0gdW5kZWZpbmVkKSB7CiAgICAgICAgICAgICAgICAgICAgZGF0YSQxW3Byb3AkMV0gPSBjb2VyY2UocHJvcHNbcHJvcCQxXSwgb3B0aW9uc1trZXkkMV0pOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gZGF0YSQxOwogICAgICAgIH0KCiAgICAgICAgZnVuY3Rpb24gcmVnaXN0ZXJDb21wdXRlZChjb21wb25lbnQsIGtleSwgY2IpIHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGNvbXBvbmVudCwga2V5LCB7CgogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKCiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uKCkgewoKICAgICAgICAgICAgICAgICAgICB2YXIgX2NvbXB1dGVkcyA9IGNvbXBvbmVudC5fY29tcHV0ZWRzOwogICAgICAgICAgICAgICAgICAgIHZhciAkcHJvcHMgPSBjb21wb25lbnQuJHByb3BzOwogICAgICAgICAgICAgICAgICAgIHZhciAkZWwgPSBjb21wb25lbnQuJGVsOwoKICAgICAgICAgICAgICAgICAgICBpZiAoIWhhc093bihfY29tcHV0ZWRzLCBrZXkpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIF9jb21wdXRlZHNba2V5XSA9IChjYi5nZXQgfHwgY2IpLmNhbGwoY29tcG9uZW50LCAkcHJvcHMsICRlbCk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICByZXR1cm4gX2NvbXB1dGVkc1trZXldOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uKHZhbHVlKSB7CgogICAgICAgICAgICAgICAgICAgIHZhciBfY29tcHV0ZWRzID0gY29tcG9uZW50Ll9jb21wdXRlZHM7CgogICAgICAgICAgICAgICAgICAgIF9jb21wdXRlZHNba2V5XSA9IGNiLnNldCA/IGNiLnNldC5jYWxsKGNvbXBvbmVudCwgdmFsdWUpIDogdmFsdWU7CgogICAgICAgICAgICAgICAgICAgIGlmIChpc1VuZGVmaW5lZChfY29tcHV0ZWRzW2tleV0pKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGRlbGV0ZSBfY29tcHV0ZWRzW2tleV07CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSk7CiAgICAgICAgfQoKICAgICAgICBmdW5jdGlvbiByZWdpc3RlckV2ZW50KGNvbXBvbmVudCwgZXZlbnQsIGtleSkgewoKICAgICAgICAgICAgaWYgKCFpc1BsYWluT2JqZWN0KGV2ZW50KSkgewogICAgICAgICAgICAgICAgZXZlbnQgPSAoe25hbWU6IGtleSwgaGFuZGxlcjogZXZlbnR9KTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgdmFyIG5hbWUgPSBldmVudC5uYW1lOwogICAgICAgICAgICB2YXIgZWwgPSBldmVudC5lbDsKICAgICAgICAgICAgdmFyIGhhbmRsZXIgPSBldmVudC5oYW5kbGVyOwogICAgICAgICAgICB2YXIgY2FwdHVyZSA9IGV2ZW50LmNhcHR1cmU7CiAgICAgICAgICAgIHZhciBwYXNzaXZlID0gZXZlbnQucGFzc2l2ZTsKICAgICAgICAgICAgdmFyIGRlbGVnYXRlID0gZXZlbnQuZGVsZWdhdGU7CiAgICAgICAgICAgIHZhciBmaWx0ZXIgPSBldmVudC5maWx0ZXI7CiAgICAgICAgICAgIHZhciBzZWxmID0gZXZlbnQuc2VsZjsKICAgICAgICAgICAgZWwgPSBpc0Z1bmN0aW9uKGVsKQogICAgICAgICAgICAgICAgPyBlbC5jYWxsKGNvbXBvbmVudCkKICAgICAgICAgICAgICAgIDogZWwgfHwgY29tcG9uZW50LiRlbDsKCiAgICAgICAgICAgIGlmIChpc0FycmF5KGVsKSkgewogICAgICAgICAgICAgICAgZWwuZm9yRWFjaChmdW5jdGlvbiAoZWwpIHsgcmV0dXJuIHJlZ2lzdGVyRXZlbnQoY29tcG9uZW50LCBhc3NpZ24oe30sIGV2ZW50LCB7ZWw6IGVsfSksIGtleSk7IH0pOwogICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICB9CgogICAgICAgICAgICBpZiAoIWVsIHx8IGZpbHRlciAmJiAhZmlsdGVyLmNhbGwoY29tcG9uZW50KSkgewogICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICB9CgogICAgICAgICAgICBjb21wb25lbnQuX2V2ZW50cy5wdXNoKAogICAgICAgICAgICAgICAgb24oCiAgICAgICAgICAgICAgICAgICAgZWwsCiAgICAgICAgICAgICAgICAgICAgbmFtZSwKICAgICAgICAgICAgICAgICAgICAhZGVsZWdhdGUKICAgICAgICAgICAgICAgICAgICAgICAgPyBudWxsCiAgICAgICAgICAgICAgICAgICAgICAgIDogaXNTdHJpbmcoZGVsZWdhdGUpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA/IGRlbGVnYXRlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA6IGRlbGVnYXRlLmNhbGwoY29tcG9uZW50KSwKICAgICAgICAgICAgICAgICAgICBpc1N0cmluZyhoYW5kbGVyKSA/IGNvbXBvbmVudFtoYW5kbGVyXSA6IGhhbmRsZXIuYmluZChjb21wb25lbnQpLAogICAgICAgICAgICAgICAgICAgIHtwYXNzaXZlOiBwYXNzaXZlLCBjYXB0dXJlOiBjYXB0dXJlLCBzZWxmOiBzZWxmfQogICAgICAgICAgICAgICAgKQogICAgICAgICAgICApOwoKICAgICAgICB9CgogICAgICAgIGZ1bmN0aW9uIG5vdEluKG9wdGlvbnMsIGtleSkgewogICAgICAgICAgICByZXR1cm4gb3B0aW9ucy5ldmVyeShmdW5jdGlvbiAoYXJyKSB7IHJldHVybiAhYXJyIHx8ICFoYXNPd24oYXJyLCBrZXkpOyB9KTsKICAgICAgICB9CgogICAgICAgIGZ1bmN0aW9uIGNvZXJjZSh0eXBlLCB2YWx1ZSkgewoKICAgICAgICAgICAgaWYgKHR5cGUgPT09IEJvb2xlYW4pIHsKICAgICAgICAgICAgICAgIHJldHVybiB0b0Jvb2xlYW4odmFsdWUpOwogICAgICAgICAgICB9IGVsc2UgaWYgKHR5cGUgPT09IE51bWJlcikgewogICAgICAgICAgICAgICAgcmV0dXJuIHRvTnVtYmVyKHZhbHVlKTsKICAgICAgICAgICAgfSBlbHNlIGlmICh0eXBlID09PSAnbGlzdCcpIHsKICAgICAgICAgICAgICAgIHJldHVybiB0b0xpc3QodmFsdWUpOwogICAgICAgICAgICB9CgogICAgICAgICAgICByZXR1cm4gdHlwZSA/IHR5cGUodmFsdWUpIDogdmFsdWU7CiAgICAgICAgfQoKICAgICAgICBmdW5jdGlvbiBub3JtYWxpemVEYXRhKHJlZiwgcmVmJDEpIHsKICAgICAgICAgICAgdmFyIGRhdGEgPSByZWYuZGF0YTsKICAgICAgICAgICAgdmFyIGVsID0gcmVmLmVsOwogICAgICAgICAgICB2YXIgYXJncyA9IHJlZiQxLmFyZ3M7CiAgICAgICAgICAgIHZhciBwcm9wcyA9IHJlZiQxLnByb3BzOyBpZiAoIHByb3BzID09PSB2b2lkIDAgKSBwcm9wcyA9IHt9OwoKICAgICAgICAgICAgZGF0YSA9IGlzQXJyYXkoZGF0YSkKICAgICAgICAgICAgICAgID8gIWlzRW1wdHkoYXJncykKICAgICAgICAgICAgICAgICAgICA/IGRhdGEuc2xpY2UoMCwgYXJncy5sZW5ndGgpLnJlZHVjZShmdW5jdGlvbiAoZGF0YSwgdmFsdWUsIGluZGV4KSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpc1BsYWluT2JqZWN0KHZhbHVlKSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgYXNzaWduKGRhdGEsIHZhbHVlKTsKICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGFbYXJnc1tpbmRleF1dID0gdmFsdWU7CiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE7CiAgICAgICAgICAgICAgICAgICAgfSwge30pCiAgICAgICAgICAgICAgICAgICAgOiB1bmRlZmluZWQKICAgICAgICAgICAgICAgIDogZGF0YTsKCiAgICAgICAgICAgIGlmIChkYXRhKSB7CiAgICAgICAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gZGF0YSkgewogICAgICAgICAgICAgICAgICAgIGlmIChpc1VuZGVmaW5lZChkYXRhW2tleV0pKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGRlbGV0ZSBkYXRhW2tleV07CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgZGF0YVtrZXldID0gcHJvcHNba2V5XSA/IGNvZXJjZShwcm9wc1trZXldLCBkYXRhW2tleV0pIDogZGF0YVtrZXldOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmV0dXJuIGRhdGE7CiAgICAgICAgfQogICAgfQoKICAgIGZ1bmN0aW9uIGluc3RhbmNlQVBJIChVSWtpdCkgewoKICAgICAgICB2YXIgREFUQSA9IFVJa2l0LmRhdGE7CgogICAgICAgIFVJa2l0LnByb3RvdHlwZS4kbW91bnQgPSBmdW5jdGlvbiAoZWwpIHsKCiAgICAgICAgICAgIHZhciByZWYgPSB0aGlzLiRvcHRpb25zOwogICAgICAgICAgICB2YXIgbmFtZSA9IHJlZi5uYW1lOwoKICAgICAgICAgICAgaWYgKCFlbFtEQVRBXSkgewogICAgICAgICAgICAgICAgZWxbREFUQV0gPSB7fTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgaWYgKGVsW0RBVEFdW25hbWVdKSB7CiAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIGVsW0RBVEFdW25hbWVdID0gdGhpczsKCiAgICAgICAgICAgIHRoaXMuJGVsID0gdGhpcy4kb3B0aW9ucy5lbCA9IHRoaXMuJG9wdGlvbnMuZWwgfHwgZWw7CgogICAgICAgICAgICBpZiAod2l0aGluKGVsLCBkb2N1bWVudCkpIHsKICAgICAgICAgICAgICAgIHRoaXMuX2NhbGxDb25uZWN0ZWQoKTsKICAgICAgICAgICAgfQogICAgICAgIH07CgogICAgICAgIFVJa2l0LnByb3RvdHlwZS4kZW1pdCA9IGZ1bmN0aW9uIChlKSB7CiAgICAgICAgICAgIHRoaXMuX2NhbGxVcGRhdGUoZSk7CiAgICAgICAgfTsKCiAgICAgICAgVUlraXQucHJvdG90eXBlLiRyZXNldCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgdGhpcy5fY2FsbERpc2Nvbm5lY3RlZCgpOwogICAgICAgICAgICB0aGlzLl9jYWxsQ29ubmVjdGVkKCk7CiAgICAgICAgfTsKCiAgICAgICAgVUlraXQucHJvdG90eXBlLiRkZXN0cm95ID0gZnVuY3Rpb24gKHJlbW92ZUVsKSB7CiAgICAgICAgICAgIGlmICggcmVtb3ZlRWwgPT09IHZvaWQgMCApIHJlbW92ZUVsID0gZmFsc2U7CgoKICAgICAgICAgICAgdmFyIHJlZiA9IHRoaXMuJG9wdGlvbnM7CiAgICAgICAgICAgIHZhciBlbCA9IHJlZi5lbDsKICAgICAgICAgICAgdmFyIG5hbWUgPSByZWYubmFtZTsKCiAgICAgICAgICAgIGlmIChlbCkgewogICAgICAgICAgICAgICAgdGhpcy5fY2FsbERpc2Nvbm5lY3RlZCgpOwogICAgICAgICAgICB9CgogICAgICAgICAgICB0aGlzLl9jYWxsSG9vaygnZGVzdHJveScpOwoKICAgICAgICAgICAgaWYgKCFlbCB8fCAhZWxbREFUQV0pIHsKICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgZGVsZXRlIGVsW0RBVEFdW25hbWVdOwoKICAgICAgICAgICAgaWYgKCFpc0VtcHR5KGVsW0RBVEFdKSkgewogICAgICAgICAgICAgICAgZGVsZXRlIGVsW0RBVEFdOwogICAgICAgICAgICB9CgogICAgICAgICAgICBpZiAocmVtb3ZlRWwpIHsKICAgICAgICAgICAgICAgIHJlbW92ZSh0aGlzLiRlbCk7CiAgICAgICAgICAgIH0KICAgICAgICB9OwoKICAgICAgICBVSWtpdC5wcm90b3R5cGUuJGNyZWF0ZSA9IGZ1bmN0aW9uIChjb21wb25lbnQsIGVsZW1lbnQsIGRhdGEpIHsKICAgICAgICAgICAgcmV0dXJuIFVJa2l0W2NvbXBvbmVudF0oZWxlbWVudCwgZGF0YSk7CiAgICAgICAgfTsKCiAgICAgICAgVUlraXQucHJvdG90eXBlLiR1cGRhdGUgPSBVSWtpdC51cGRhdGU7CiAgICAgICAgVUlraXQucHJvdG90eXBlLiRnZXRDb21wb25lbnQgPSBVSWtpdC5nZXRDb21wb25lbnQ7CgogICAgICAgIHZhciBuYW1lcyA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKFVJa2l0LnByb3RvdHlwZSwgewoKICAgICAgICAgICAgJGNvbnRhaW5lcjogT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihVSWtpdCwgJ2NvbnRhaW5lcicpLAoKICAgICAgICAgICAgJG5hbWU6IHsKCiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHZhciByZWYgPSB0aGlzLiRvcHRpb25zOwogICAgICAgICAgICAgICAgICAgIHZhciBuYW1lID0gcmVmLm5hbWU7CgogICAgICAgICAgICAgICAgICAgIGlmICghbmFtZXNbbmFtZV0pIHsKICAgICAgICAgICAgICAgICAgICAgICAgbmFtZXNbbmFtZV0gPSBVSWtpdC5wcmVmaXggKyBoeXBoZW5hdGUobmFtZSk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmFtZXNbbmFtZV07CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9CgogICAgICAgIH0pOwoKICAgIH0KCiAgICB2YXIgVUlraXQgPSBmdW5jdGlvbiAob3B0aW9ucykgewogICAgICAgIHRoaXMuX2luaXQob3B0aW9ucyk7CiAgICB9OwoKICAgIFVJa2l0LnV0aWwgPSB1dGlsOwogICAgVUlraXQuZGF0YSA9ICdfX3Vpa2l0X18nOwogICAgVUlraXQucHJlZml4ID0gJ3VrLSc7CiAgICBVSWtpdC5vcHRpb25zID0ge307CgogICAgZ2xvYmFsQVBJKFVJa2l0KTsKICAgIGhvb2tzQVBJKFVJa2l0KTsKICAgIHN0YXRlQVBJKFVJa2l0KTsKICAgIGNvbXBvbmVudEFQSShVSWtpdCk7CiAgICBpbnN0YW5jZUFQSShVSWtpdCk7CgogICAgdmFyIENsYXNzID0gewoKICAgICAgICBjb25uZWN0ZWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAhaGFzQ2xhc3ModGhpcy4kZWwsIHRoaXMuJG5hbWUpICYmIGFkZENsYXNzKHRoaXMuJGVsLCB0aGlzLiRuYW1lKTsKICAgICAgICB9CgogICAgfTsKCiAgICB2YXIgVG9nZ2xhYmxlID0gewoKICAgICAgICBwcm9wczogewogICAgICAgICAgICBjbHM6IEJvb2xlYW4sCiAgICAgICAgICAgIGFuaW1hdGlvbjogJ2xpc3QnLAogICAgICAgICAgICBkdXJhdGlvbjogTnVtYmVyLAogICAgICAgICAgICBvcmlnaW46IFN0cmluZywKICAgICAgICAgICAgdHJhbnNpdGlvbjogU3RyaW5nLAogICAgICAgICAgICBxdWV1ZWQ6IEJvb2xlYW4KICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIGNsczogZmFsc2UsCiAgICAgICAgICAgIGFuaW1hdGlvbjogW2ZhbHNlXSwKICAgICAgICAgICAgZHVyYXRpb246IDIwMCwKICAgICAgICAgICAgb3JpZ2luOiBmYWxzZSwKICAgICAgICAgICAgdHJhbnNpdGlvbjogJ2xpbmVhcicsCiAgICAgICAgICAgIHF1ZXVlZDogZmFsc2UsCgogICAgICAgICAgICBpbml0UHJvcHM6IHsKICAgICAgICAgICAgICAgIG92ZXJmbG93OiAnJywKICAgICAgICAgICAgICAgIGhlaWdodDogJycsCiAgICAgICAgICAgICAgICBwYWRkaW5nVG9wOiAnJywKICAgICAgICAgICAgICAgIHBhZGRpbmdCb3R0b206ICcnLAogICAgICAgICAgICAgICAgbWFyZ2luVG9wOiAnJywKICAgICAgICAgICAgICAgIG1hcmdpbkJvdHRvbTogJycKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGhpZGVQcm9wczogewogICAgICAgICAgICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLAogICAgICAgICAgICAgICAgaGVpZ2h0OiAwLAogICAgICAgICAgICAgICAgcGFkZGluZ1RvcDogMCwKICAgICAgICAgICAgICAgIHBhZGRpbmdCb3R0b206IDAsCiAgICAgICAgICAgICAgICBtYXJnaW5Ub3A6IDAsCiAgICAgICAgICAgICAgICBtYXJnaW5Cb3R0b206IDAKICAgICAgICAgICAgfQoKICAgICAgICB9LAoKICAgICAgICBjb21wdXRlZDogewoKICAgICAgICAgICAgaGFzQW5pbWF0aW9uOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBhbmltYXRpb24gPSByZWYuYW5pbWF0aW9uOwoKICAgICAgICAgICAgICAgIHJldHVybiAhIWFuaW1hdGlvblswXTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGhhc1RyYW5zaXRpb246IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIGFuaW1hdGlvbiA9IHJlZi5hbmltYXRpb247CgogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuaGFzQW5pbWF0aW9uICYmIGFuaW1hdGlvblswXSA9PT0gdHJ1ZTsKICAgICAgICAgICAgfQoKICAgICAgICB9LAoKICAgICAgICBtZXRob2RzOiB7CgogICAgICAgICAgICB0b2dnbGVFbGVtZW50OiBmdW5jdGlvbih0YXJnZXRzLCBzaG93LCBhbmltYXRlKSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCiAgICAgICAgICAgICAgICByZXR1cm4gbmV3IFByb21pc2UoZnVuY3Rpb24gKHJlc29sdmUpIHsKCiAgICAgICAgICAgICAgICAgICAgdGFyZ2V0cyA9IHRvTm9kZXModGFyZ2V0cyk7CgogICAgICAgICAgICAgICAgICAgIHZhciBhbGwgPSBmdW5jdGlvbiAodGFyZ2V0cykgeyByZXR1cm4gUHJvbWlzZS5hbGwodGFyZ2V0cy5tYXAoZnVuY3Rpb24gKGVsKSB7IHJld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QgPT09ICcwcHgnOwoKICAgICAgICAgICAgICAgICAgICAgICAgcCA9IGFsbCh0b2dnbGVkKTsKCiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghaW5Qcm9ncmVzcykgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgcCA9IHAudGhlbihmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHAgPSBhbGwodW50b2dnbGVkKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBib2R5LnNjcm9sbFRvcCA9IHNjcm9sbDsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcDsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgcC50aGVuKHJlc29sdmUsIG5vb3ApOwoKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgdG9nZ2xlTm93OiBmdW5jdGlvbih0YXJnZXRzLCBzaG93KSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCiAgICAgICAgICAgICAgICByZXR1cm4gbmV3IFByb21pc2UoZnVuY3Rpb24gKHJlc29sdmUpIHsgcmV0dXJuIFByb21pc2UuYWxsKHRvTm9kZXModGFyZ2V0cykubWFwKGZ1bmN0aW9uIChlbCkgeyByZXR1cm4gdGhpcyQxLl90b2dnbGVFbGVtZW50KGVsLCBzaG93LCBmYWxzZSk7IH0pKS50aGVuKHJlc29sdmUsIG5vb3ApOyB9KTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGlzVG9nZ2xlZDogZnVuY3Rpb24oZWwpIHsKICAgICAgICAgICAgICAgIHZhciBub2RlcyA9IHRvTm9kZXMoZWwgfHwgdGhpcy4kZWwpOwogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuY2xzCiAgICAgICAgICAgICAgICAgICAgPyBoYXNDbGFzcyhub2RlcywgdGhpcy5jbHMuc3BsaXQoJyAnKVswXSkKICAgICAgICAgICAgICAgICAgICA6ICFoYXNBdHRyKG5vZGVzLCAnaGlkZGVuJyk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB1cGRhdGVBcmlhOiBmdW5jdGlvbihlbCkgewogICAgICAgICAgICAgICAgaWYgKHRoaXMuY2xzID09PSBmYWxzZSkgewogICAgICAgICAgICAgICAgICAgIGF0dHIoZWwsICdhcmlhLWhpZGRlbicsICF0aGlzLmlzVG9nZ2xlZChlbCkpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9LAoKICAgICAgICAgICAgX3RvZ2dsZUVsZW1lbnQ6IGZ1bmN0aW9uKGVsLCBzaG93LCBhbmltYXRlKSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICAgICAgc2hvdyA9IGlzQm9vbGVhbihzaG93KQogICAgICAgICAgICAgICAgICAgID8gc2hvdwogICAgICAgICAgICAgICAgICAgIDogQW5pbWF0aW9uLmluUHJvZ3Jlc3MoZWwpCiAgICAgICAgICAgICAgICAgICAgICAgID8gaGFzQ2xhc3MoZWwsICd1ay1hbmltYXRpb24tbGVhdmUnKQogICAgICAgICAgICAgICAgICAgICAgICA6IFRyYW5zaXRpb24uaW5Qcm9ncmVzcyhlbCkKICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gZWwuc3R5bGUuaGVpZ2h0ID09PSAnMHB4JwogICAgICAgICAgICAgICAgICAgICAgICAgICAgOiAhdGhpcy5pc1RvZ2dsZWQoZWwpOwoKICAgICAgICAgICAgICAgIGlmICghdHJpZ2dlcihlbCwgKCJiZWZvcmUiICsgKHNob3cgPyAnc2hvdycgOiAnaGlkZScpKSwgW3RoaXNdKSkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlamVjdCgpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHZhciBwcm9taXNlID0gKAogICAgICAgICAgICAgICAgICAgIGlzRnVuY3Rpb24oYW5pbWF0ZSkKICAgICAgICAgICAgICAgICAgICAgICAgPyBhbmltYXRlCiAgICAgICAgICAgICAgICAgICAgICAgIDogYW5pbWF0ZSA9PT0gZmFsc2UgfHwgIXRoaXMuaGFzQW5pbWF0aW9uCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA/IHRoaXMuX3RvZ2dsZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgOiB0aGlzLmhhc1RyYW5zaXRpb24KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA/IHRvZ2dsZUhlaWdodCh0aGlzKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogdG9nZ2xlQW5pbWF0aW9uKHRoaXMpCiAgICAgICAgICAgICAgICApKGVsLCBzaG93KTsKCiAgICAgICAgICAgICAgICB0cmlnZ2VyKGVsLCBzaG93ID8gJ3Nob3cnIDogJ2hpZGUnLCBbdGhpc10pOwoKICAgICAgICAgICAgICAgIHZhciBmaW5hbCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICB0cmlnZ2VyKGVsLCBzaG93ID8gJ3Nob3duJyA6ICdoaWRkZW4nLCBbdGhpcyQxXSk7CiAgICAgICAgICAgICAgICAgICAgdGhpcyQxLiR1cGRhdGUoZWwpOwogICAgICAgICAgICAgICAgfTsKCiAgICAgICAgICAgICAgICByZXR1cm4gcHJvbWlzZSA/IHByb21pc2UudGhlbihmaW5hbCkgOiBQcm9taXNlLnJlc29sdmUoZmluYWwoKSk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBfdG9nZ2xlOiBmdW5jdGlvbihlbCwgdG9nZ2xlZCkgewoKICAgICAgICAgICAgICAgIGlmICghZWwpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdG9nZ2xlZCA9IEJvb2xlYW4odG9nZ2xlZCk7CgogICAgICAgICAgICAgICAgdmFyIGNoYW5nZWQ7CiAgICAgICAgICAgICAgICBpZiAodGhpcy5jbHMpIHsKICAgICAgICAgICAgICAgICAgICBjaGFuZ2VkID0gaW5jbHVkZXModGhpcy5jbHMsICcgJykgfHwgdG9nZ2xlZCAhPT0gaGFzQ2xhc3MoZWwsIHRoaXMuY2xzKTsKICAgICAgICAgICAgICAgICAgICBjaGFuZ2VkICYmIHRvZ2dsZUNsYXNzKGVsLCB0aGlzLmNscywgaW5jbHVkZXModGhpcy5jbHMsICcgJykgPyB1bmRlZmluZWQgOiB0b2dnbGVkKTsKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgY2hhbmdlZCA9IHRvZ2dsZWQgPT09IGhhc0F0dHIoZWwsICdoaWRkZW4nKTsKICAgICAgICAgICAgICAgICAgICBjaGFuZ2VkICYmIGF0dHIoZWwsICdoaWRkZW4nLCAhdG9nZ2xlZCA/ICcnIDogbnVsbCk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgJCQoJ1thdXRvZm9jdXNdJywgZWwpLnNvbWUoZnVuY3Rpb24gKGVsKSB7IHJldHVybiBpc1Zpc2libGUoZWwpID8gZWwuZm9jdXMoKSB8fCB0cnVlIDogZWwuYmx1cigpOyB9KTsKCiAgICAgICAgICAgICAgICB0aGlzLnVwZGF0ZUFyaWEoZWwpOwogICAgICAgICAgICAgICAgY2hhbmdlZCAmJiB0aGlzLiR1cGRhdGUoZWwpOwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICB9OwoKICAgIGZ1bmN0aW9uIHRvZ2dsZUhlaWdodChyZWYpIHsKICAgICAgICB2YXIgaXNUb2dnbGVkID0gcmVmLmlzVG9nZ2xlZDsKICAgICAgICB2YXIgZHVyYXRpb24gPSByZWYuZHVyYXRpb247CiAgICAgICAgdmFyIGluaXRQcm9wcyA9IHJlZi5pbml0UHJvcHM7CiAgICAgICAgdmFyIGhpZGVQcm9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CBkdXJhdGlvbiwgb3JpZ2luKS50aGVuKGZ1bmN0aW9uICgpIHsgcmV0dXJuIF90b2dnbGUoZWwsIGZhbHNlKTsgfSk7CiAgICAgICAgfTsKICAgIH0KCiAgICB2YXIgQWNjb3JkaW9uID0gewoKICAgICAgICBtaXhpbnM6IFtDbGFzcywgVG9nZ2xhYmxlXSwKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgdGFyZ2V0czogU3RyaW5nLAogICAgICAgICAgICBhY3RpdmU6IG51bGwsCiAgICAgICAgICAgIGNvbGxhcHNpYmxlOiBCb29sZWFuLAogICAgICAgICAgICBtdWx0aXBsZTogQm9vbGVhbiwKICAgICAgICAgICAgdG9nZ2xlOiBTdHJpbmcsCiAgICAgICAgICAgIGNvbnRlbnQ6IFN0cmluZywKICAgICAgICAgICAgdHJhbnNpdGlvbjogU3RyaW5nCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICB0YXJnZXRzOiAnPiAqJywKICAgICAgICAgICAgYWN0aXZlOiBmYWxzZSwKICAgICAgICAgICAgYW5pbWF0aW9uOiBbdHJ1ZV0sCiAgICAgICAgICAgIGNvbGxhcHNpYmxlOiB0cnVlLAogICAgICAgICAgICBtdWx0aXBsZTogZmFsc2UsCiAgICAgICAgICAgIGNsc09wZW46ICd1ay1vcGVuJywKICAgICAgICAgICAgdG9nZ2xlOiAnPiAudWstYWNjb3JkaW9uLXRpdGxlJywKICAgICAgICAgICAgY29udGVudDogJz4gLnVrLWFjY29yZGlvbi1jb250ZW50JywKICAgICAgICAgICAgdHJhbnNpdGlvbjogJ2Vhc2UnCiAgICAgICAgfSwKCiAgICAgICAgY29tcHV0ZWQ6IHsKCiAgICAgICAgICAgIGl0ZW1zOiBmdW5jdGlvbihyZWYsICRlbCkgewogICAgICAgICAgICAgICAgdmFyIHRhcmdldHMgPSByZWYudGFyZ2V0czsKCiAgICAgICAgICAgICAgICByZXR1cm4gJCQodGFyZ2V0cywgJGVsKTsKICAgICAgICAgICAgfQoKICAgICAgICB9LAoKICAgICAgICBldmVudHM6IFsKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAnY2xpY2snLAoKICAgICAgICAgICAgICAgIGRlbGVnYXRlOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gKCh0aGlzLnRhcmdldHMpICsgIiAiICsgKHRoaXMuJHByb3BzLnRvZ2dsZSkpOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpOwogICAgICAgICAgICAgICAgICAgIHRoaXMudG9nZ2xlKGluZGV4KCQkKCgodGhpcy50YXJnZXRzKSArICIgIiArICh0aGlzLiRwcm9wcy50b2dnbGUpKSwgdGhpcy4kZWwpLCBlLmN1cnJlbnQpKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0KCiAgICAgICAgXSwKCiAgICAgICAgY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgIGlmICh0aGlzLmFjdGl2ZSA9PT0gZmFsc2UpIHsKICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgdmFyIGFjdGl2ZSA9IHRoaXMuaXRlbXNbTnVtYmVyKHRoaXMuYWN0aXZlKV07CiAgICAgICAgICAgIGlmIChhY3RpdmUgJiYgIWhhc0NsYXNzKGFjdGl2ZSwgdGhpcy5jbHNPcGVuKSkgewogICAgICAgICAgICAgICAgdGhpcy50b2dnbGUoYWN0aXZlLCBmYWxzZSk7CiAgICAgICAgICAgIH0KICAgICAgICB9LAoKICAgICAgICB1cGRhdGU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICB0aGlzLml0ZW1zLmZvckVhY2goZnVuY3Rpb24gKGVsKSB7IHJldHVybiB0aGlzJDEuX3RvZ2dsZSgkKHRoaXMkMS5jb250ZW50LCBlbCksIGhhc0NsYXNzKGVsLCB0aGlzJDEuY2xzT3BlbikpOyB9KTsKCiAgICAgICAgICAgIHZhciBhY3RpdmUgPSAhdGhpcy5jb2xsYXBzaWJsZSAmJiAhaGFzQ2xhc3ModGhpcy5pdGVtcywgdGhpcy5jbHNPcGVuKSAmJiB0aGlzLml0ZW1zWzBdOwogICAgICAgICAgICBpZiAoYWN0aXZlKSB7CiAgICAgICAgICAgICAgICB0aGlzLnRvZ2dsZShhY3RpdmUsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgIH0sCgogICAgICAgIG1ldGhvZHM6IHsKCiAgICAgICAgICAgIHRvZ2dsZTogZnVuY3Rpb24oaXRlbSwgYW5pbWF0ZSkgewogICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgoKICAgICAgICAgICAgICAgIHZhciBpbmRleCA9IGdldEluZGV4KGl0ZW0sIHRoaXMuaXRlbXMpOwogICAgICAgICAgICAgICAgdmFyIGFjdGl2ZSA9IGZpbHRlcih0aGlzLml0ZW1zLCAoIi4iICsgKHRoaXMuY2xzT3BlbikpKTsKCiAgICAgICAgICAgICAgICBpdGVtID0gdGhpcy5pdGVtc1tpbmRleF07CgogICAgICAgICAgICAgICAgaXRlbSAmJiBbaXRlbV0KICAgICAgICAgICAgICAgICAgICAuY29uY2F0KCF0aGlzLm11bHRpcGxlICYmICFpbmNsdWRlcyhhY3RpdmUsIGl0ZW0pICYmIGFjdGl2ZSB8fCBbXSkKICAgICAgICAgICAgICAgICAgICAuZm9yRWFjaChmdW5jdGlvbiAoZWwpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBpc0l0ZW0gPSBlbCA9PT0gaXRlbTsKICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHN0YXRlID0gaXNJdGVtICYmICFoYXNDbGFzcyhlbCwgdGhpcyQxLmNsc09wZW4pOwoKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFzdGF0ZSAmJiBpc0l0ZW0gJiYgIXRoaXMkMS5jb2xsYXBzaWJsZSAmJiBhY3RpdmUubGVuZ3RoIDwgMikgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgICAgICB0b2dnbGVDbGFzcyhlbCwgdGhpcyQxLmNsc09wZW4sIHN0YXRlKTsKCiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBjb250ZW50ID0gZWwuX3dyYXBwZXIgPyBlbC5fd3JhcHBlci5maXJzdEVsZW1lbnRDaGlsZCA6ICQodGhpcyQxLmNvbnRlbnQsIGVsKTsKCiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghZWwuX3dyYXBwZXIpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsLl93cmFwcGVyID0gd3JhcEFsbChjb250ZW50LCAnPGRpdj4nKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHIoZWwuX3dyYXBwZXIsICdoaWRkZW4nLCBzdGF0ZSA/ICcnIDogbnVsbCk7CiAgICAgICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMkMS5fdG9nZ2xlKGNvbnRlbnQsIHRydWUpOwogICAgICAgICAgICAgICAgICAgICAgICB0aGlzJDEudG9nZ2xlRWxlbWVudChlbC5fd3JhcHBlciwgc3RhdGUsIGFuaW1hdGUpLnRoZW4oZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChoYXNDbGFzcyhlbCwgdGhpcyQxLmNsc09wZW4pICE9PSBzdGF0ZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIXN0YXRlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcyQxLl90b2dnbGUoY29udGVudCwgZmFsc2UpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsLl93cmFwcGVyID0gbnVsbDsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVud3JhcChjb250ZW50KTsKCiAgICAgICAgICAgICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfQoKICAgICAgICB9CgogICAgfTsKCiAgICB2YXIgQWxlcnQgPSB7CgogICAgICAgIG1peGluczogW0NsYXNzLCBUb2dnbGFibGVdLAoKICAgICAgICBhcmdzOiAnYW5pbWF0aW9uJywKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgY2xvc2U6IFN0cmluZwogICAgICAgIH0sCgogICAgICAgIGRhdGE6IHsKICAgICAgICAgICAgYW5pbWF0aW9uOiBbdHJ1ZV0sCiAgICAgICAgICAgIHNlbENsb3NlOiAnLnVrLWFsZXJ0LWNsb3NlJywKICAgICAgICAgICAgZHVyYXRpb246IDE1MCwKICAgICAgICAgICAgaGlkZVByb3BzOiBhc3NpZ24oe29wYWNpdHk6IDB9LCBUb2dnbGFibGUuZGF0YS5oaWRlUHJvcHMpCiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiBbCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgbmFtZTogJ2NsaWNrJywKCiAgICAgICAgICAgICAgICBkZWxlZ2F0ZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuc2VsQ2xvc2U7CiAgICAgICAgICAgICAgICB9LAoKICAgICAgICAgICAgICAgIGhhbmRsZXI6IGZ1bmN0aW9uKGUpIHsKICAgICAgICAgICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5jbG9zZSgpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfQoKICAgICAgICBdLAoKICAgICAgICBtZXRob2RzOiB7CgogICAgICAgICAgICBjbG9zZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCiAgICAgICAgICAgICAgICB0aGlzLnRvZ2dsZUVsZW1lbnQodGhpcy4kZWwpLnRoZW4oZnVuY3Rpb24gKCkgeyByZXR1cm4gdGhpcyQxLiRkZXN0cm95KHRydWUpOyB9KTsKICAgICAgICAgICAgfQoKICAgICAgICB9CgogICAgfTsKCiAgICBmdW5jdGlvbiBDb3JlIChVSWtpdCkgewoKICAgICAgICByZWFkeShmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICBVSWtpdC51cGRhdGUoKTsKICAgICAgICAgICAgb24od2luZG93LCAnbG9hZCByZXNpemUnLCBmdW5jdGlvbiAoKSB7IHJldHVybiBVSWtpdC51cGRhdGUobnVsbCwgJ3Jlc2l6ZScpOyB9KTsKICAgICAgICAgICAgb24oZG9jdW1lbnQsICdsb2FkZWRtZXRhZGF0YSBsb2FkJywgZnVuY3Rpb24gKHJlZikgewogICAgICAgICAgICAgICAgdmFyIHRhcmdldCA9IHJlZi50YXJnZXQ7CgogICAgICAgICAgICAgICAgcmV0dXJuIFVJa2l0LnVwZGF0ZSh0YXJnZXQsICdyZXNpemUnKTsKICAgICAgICAgICAgfSwgdHJ1ZSk7CgogICAgICAgICAgICAvLyB0aHJvdHRsZSBgc2Nyb2xsYCBldmVudCAoU2FmYXJpIHRyaWdnZXJzIG11bHRpcGxlIGBzY3JvbGxgIGV2ZW50cyBwZXIgZnJhbWUpCiAgICAgICAgICAgIHZhciBwZW5kaW5nOwogICAgICAgICAgICBvbih3aW5kb3csICdzY3JvbGwnLCBmdW5jdGlvbiAoZSkgewoKICAgICAgICAgICAgICAgIGlmIChwZW5kaW5nKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgcGVuZGluZyA9IHRydWU7CiAgICAgICAgICAgICAgICBmYXN0ZG9tLndyaXRlKGZ1bmN0aW9uICgpIHsgcmV0dXJuIHBlbmRpbmcgPSBmYWxzZTsgfSk7CgogICAgICAgICAgICAgICAgdmFyIHRhcmdldCA9IGUudGFyZ2V0OwogICAgICAgICAgICAgICAgVUlraXQudXBkYXRlKHRhcmdldC5ub2RlVHlwZSAhPT0gMSA/IGRvY3VtZW50LmJvZHkgOiB0YXJnZXQsIGUudHlwZSk7CgogICAgICAgICAgICB9LCB7cGFzc2l2ZTogdHJ1ZSwgY2FwdHVyZTogdHJ1ZX0pOwoKICAgICAgICAgICAgdmFyIHN0YXJ0ZWQgPSAwOwogICAgICAgICAgICBvbihkb2N1bWVudCwgJ2FuaW1hdGlvbnN0YXJ0JywgZnVuY3Rpb24gKHJlZikgewogICAgICAgICAgICAgICAgdmFyIHRhcmdldCA9IHJlZi50YXJnZXQ7CgogICAgICAgICAgICAgICAgaWYgKChjc3ModGFyZ2V0LCAnYW5pbWF0aW9uTmFtZScpIHx8ICcnKS5tYXRjaCgvXnVrLS4qKGxlZnR8cmlnaHQpLykpIHsKCiAgICAgICAgICAgICAgICAgICAgc3RhcnRlZCsrOwogICAgICAgICAgICAgICAgICAgIGNzcyhkb2N1bWVudC5ib2R5LCAnb3ZlcmZsb3dYJywgJ2hpZGRlbicpOwogICAgICAgICAgICAgICAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgICAgICBpZiAoIS0tc3RhcnRlZCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgY3NzKGRvY3VtZW50LmJvZHksICdvdmVyZmxvd1gnLCAnJyk7CiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICB9LCB0b01zKGNzcyh0YXJnZXQsICdhbmltYXRpb25EdXJhdGlvbicpKSArIDEwMCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sIHRydWUpOwoKICAgICAgICAgICAgdmFyIG9mZjsKICAgICAgICAgICAgb24oZG9jdW1lbnQsIHBvaW50ZXJEb3duLCBmdW5jdGlvbiAoZSkgewoKICAgICAgICAgICAgICAgIG9mZiAmJiBvZmYoKTsKCiAgICAgICAgICAgICAgICBpZiAoIWlzVG91Y2goZSkpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgLy8gSGFuZGxlIFN3aXBlIEdlc3R1cmUKICAgICAgICAgICAgICAgIHZhciBwb3MgPSBnZXRFdmVudFBvcyhlKTsKICAgICAgICAgICAgICAgIHZhciB0YXJnZXQgPSAndGFnTmFtZScgaW4gZS50YXJnZXQgPyBlLnRhcmdldCA6IGUudGFyZ2V0LnBhcmVudE5vZGU7CiAgICAgICAgICAgICAgICBvZmYgPSBvbmNlKGRvY3VtZW50LCAocG9pbnRlclVwICsgIiAiICsgcG9pbnRlckNhbmNlbCksIGZ1bmN0aW9uIChlKSB7CgogICAgICAgICAgICAgICAgICAgIHZhciByZWYgPSBnZXRFdmVudFBvcyhlKTsKICAgICAgICAgICAgICAgICAgICB2YXIgeCA9IHJlZi54OwogICAgICAgICAgICAgICAgICAgIHZhciB5ID0gcmVmLnk7CgogICAgICAgICAgICAgICAgICAgIC8vIHN3aXBlCiAgICAgICAgICAgICAgICAgICAgaWYgKHRhcmdldCAmJiB4ICYmIE1hdGguYWJzKHBvcy54IC0geCkgPiAxMDAgfHwgeSAmJiBNYXRoLmFicyhwb3MueSAtIHkpID4gMTAwKSB7CgogICAgICAgICAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyaWdnZXIodGFyZ2V0LCAnc3dpcGUnKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyaWdnZXIodGFyZ2V0LCAoInN3aXBlIiArIChzd2lwZURpcmVjdGlvbihwb3MueCwgcG9zLnksIHgsIHkpKSkpOwogICAgICAgICAgICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgICAgIC8vIEZvcmNlIGNsaWNrIGV2ZW50IGFueXdoZXJlIG9uIGlPUyA8IDEzCiAgICAgICAgICAgICAgICBpZiAocG9pbnRlckRvd24gPT09ICd0b3VjaHN0YXJ0JykgewogICAgICAgICAgICAgICAgICAgIGNzcyhkb2N1bWVudC5ib2R5LCAnY3Vyc29yJywgJ3BvaW50ZXInKTsKICAgICAgICAgICAgICAgICAgICBvbmNlKGRvY3VtZW50LCAocG9pbnRlclVwICsgIiAiICsgcG9pbnRlckNhbmNlbCksIGZ1bmN0aW9uICgpIHsgcmV0dXJuIHNldFRpbWVvdXQoZnVuY3Rpb24gKCkgeyByZXR1cm4gY3NzKGRvY3VtZW50LmJvZHksICdjdXJzb3InLCAnJyk7IH0KICAgICAgICAgICAgICAgICAgICAgICAgLCA1MCk7IH0KICAgICAgICAgICAgICAgICAgICApOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwge3Bhc3NpdmU6IHRydWV9KTsKCiAgICAgICAgfSk7CgogICAgfQoKICAgIGZ1bmN0aW9uIHN3aXBlRGlyZWN0aW9uKHgxLCB5MSwgeDIsIHkyKSB7CiAgICAgICAgcmV0dXJuIE1hdGguYWJzKHgxIC0geDIpID49IE1hdGguYWJzKHkxIC0geTIpCiAgICAgICAgICAgID8geDEgLSB4MiA+IDAKICAgICAgICAgICAgICAgID8gJ0xlZnQnCiAgICAgICAgICAgICAgICA6ICdSaWdodCcKICAgICAgICAgICAgOiB5MSAtIHkyID4gMAogICAgICAgICAgICAgICAgPyAnVXAnCiAgICAgICAgICAgICAgICA6ICdEb3duJzsKICAgIH0KCiAgICB2YXIgVmlkZW8gPSB7CgogICAgICAgIGFyZ3M6ICdhdXRvcGxheScsCgogICAgICAgIHByb3BzOiB7CiAgICAgICAgICAgIGF1dG9tdXRlOiBCb29sZWFuLAogICAgICAgICAgICBhdXRvcGxheTogQm9vbGVhbgogICAgICAgIH0sCgogICAgICAgIGRhdGE6IHsKICAgICAgICAgICAgYXV0b211dGU6IGZhbHNlLAogICAgICAgICAgICBhdXRvcGxheTogdHJ1ZQogICAgICAgIH0sCgogICAgICAgIGNvbXB1dGVkOiB7CgogICAgICAgICAgICBpblZpZXc6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIGF1dG9wbGF5ID0gcmVmLmF1dG9wbGF5OwoKICAgICAgICAgICAgICAgIHJldHVybiBhdXRvcGxheSA9PT0gJ2ludmlldyc7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgIGlmICh0aGlzLmluVmlldyAmJiAhaGFzQXR0cih0aGlzLiRlbCwgJ3ByZWxvYWQnKSkgewogICAgICAgICAgICAgICAgdGhpcy4kZWwucHJlbG9hZCA9ICdub25lJzsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgdGhpcy5wbGF5ZXIgPSBuZXcgUGxheWVyKHRoaXMuJGVsKTsKCiAgICAgICAgICAgIGlmICh0aGlzLmF1dG9tdXRlKSB7CiAgICAgICAgICAgICAgICB0aGlzLnBsYXllci5tdXRlKCk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgdXBkYXRlOiB7CgogICAgICAgICAgICByZWFkOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgICAgICByZXR1cm4gIXRoaXMucGxheWVyCiAgICAgICAgICAgICAgICAgICAgPyBmYWxzZQogICAgICAgICAgICAgICAgICAgIDogewogICAgICAgICAgICAgICAgICAgICAgICB2aXNpYmxlOiBpc1Zpc2libGUodGhpcy4kZWwpICYmIGNzcyh0aGlzLiRlbCwgJ3Zpc2liaWxpdHknKSAhPT0gJ2hpZGRlbicsCiAgICAgICAgICAgICAgICAgICAgICAgIGluVmlldzogdGhpcy5pblZpZXcgJiYgaXNJblZpZXcodGhpcy4kZWwpCiAgICAgICAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHdyaXRlOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciB2aXNpYmxlID0gcmVmLnZpc2libGU7CiAgICAgICAgICAgICAgICB2YXIgaW5WaWV3ID0gcmVmLmluVmlldzsKCgogICAgICAgICAgICAgICAgaWYgKCF2aXNpYmxlIHx8IHRoaXMuaW5WaWV3ICYmICFpblZpZXcpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLnBsYXllci5wYXVzZSgpOwogICAgICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLmF1dG9wbGF5ID09PSB0cnVlIHx8IHRoaXMuaW5WaWV3ICYmIGluVmlldykgewogICAgICAgICAgICAgICAgICAgIHRoaXMucGxheWVyLnBsYXkoKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBldmVudHM6IFsncmVzaXplJywgJ3Njcm9sbCddCgogICAgICAgIH0KCiAgICB9OwoKICAgIHZhciBDb3ZlciA9IHsKCiAgICAgICAgbWl4aW5zOiBbQ2xhc3MsIFZpZGVvXSwKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgd2lkdGg6IE51bWJlciwKICAgICAgICAgICAgaGVpZ2h0OiBOdW1iZXIKICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIGF1dG9tdXRlOiB0cnVlCiAgICAgICAgfSwKCiAgICAgICAgdXBkYXRlOiB7CgogICAgICAgICAgICByZWFkOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgICAgICB2YXIgZWwgPSB0aGlzLiRlbDsKICAgICAgICAgICAgICAgIHZhciByZWYgPSBlbC5wYXJlbnROb2RlOwogICAgICAgICAgICAgICAgdmFyIGhlaWdodCA9IHJlZi5vZmZzZXRIZWlnaHQ7CiAgICAgICAgICAgICAgICB2YXIgd2lkdGggPSByZWYub2Zmc2V0V2lkdGg7CiAgICAgICAgICAgICAgICB2YXIgZGltID0gRGltZW5zaW9ucy5jb3ZlcigKICAgICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgIHdpZHRoOiB0aGlzLndpZHRoIHx8IGVsLm5hdHVyYWxXaWR0aCB8fCBlbC52aWRlb1dpZHRoIHx8IGVsLmNsaWVudFdpZHRoLAogICAgICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6IHRoaXMuaGVpZ2h0IHx8IGVsLm5hdHVyYWxIZWlnaHQgfHwgZWwudmlkZW9IZWlnaHQgfHwgZWwuY2xpZW50SGVpZ2h0CiAgICAgICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgIHdpZHRoOiB3aWR0aCArICh3aWR0aCAlIDIgPyAxIDogMCksCiAgICAgICAgICAgICAgICAgICAgICAgIGhlaWdodDogaGVpZ2h0ICsgKGhlaWdodCAlIDIgPyAxIDogMCkKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICApOwoKICAgICAgICAgICAgICAgIGlmICghZGltLndpZHRoIHx8ICFkaW0uaGVpZ2h0KSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHJldHVybiBkaW07CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB3cml0ZTogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgaGVpZ2h0ID0gcmVmLmhlaWdodDsKICAgICAgICAgICAgICAgIHZhciB3aWR0aCA9IHJlZi53aWR0aDsKCiAgICAgICAgICAgICAgICBjc3ModGhpcy4kZWwsIHtoZWlnaHQ6IGhlaWdodCwgd2lkdGg6IHdpZHRofSk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBldmVudHM6IFsncmVzaXplJ10KCiAgICAgICAgfQoKICAgIH07CgogICAgdmFyIFBvc2l0aW9uID0gewoKICAgICAgICBwcm9wczogewogICAgICAgICAgICBwb3M6IFN0cmluZywKICAgICAgICAgICAgb2Zmc2V0OiBudWxsLAogICAgICAgICAgICBmbGlwOiBCb29sZWFuLAogICAgICAgICAgICBjbHNQb3M6IFN0cmluZwogICAgICAgIH0sCgogICAgICAgIGRhdGE6IHsKICAgICAgICAgICAgcG9zOiAoImJvdHRvbS0iICsgKCFpc1J0bCA/ICdsZWZ0JyA6ICdyaWdodCcpKSwKICAgICAgICAgICAgZmxpcDogdHJ1ZSwKICAgICAgICAgICAgb2Zmc2V0OiBmYWxzZSwKICAgICAgICAgICAgY2xzUG9zOiAnJwogICAgICAgIH0sCgogICAgICAgIGNvbXB1dGVkOiB7CgogICAgICAgICAgICBwb3M6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIHBvcyA9IHJlZi5wb3M7CgogICAgICAgICAgICAgICAgcmV0dXJuIChwb3MgKyAoIWluY2x1ZGVzKHBvcywgJy0nKSA/ICctY2VudGVyJyA6ICcnKSkuc3BsaXQoJy0nKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGRpcjogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5wb3NbMF07CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBhbGlnbjogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5wb3NbMV07CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgbWV0aG9kczogewoKICAgICAgICAgICAgcG9zaXRpb25BdDogZnVuY3Rpb24oZWxlbWVudCwgdGFyZ2V0LCBib3VuZGFyeSkgewoKICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzZXMoZWxlbWVudCwgKCh0aGlzLmNsc1BvcykgKyAiLSh0b3B8Ym90dG9tfGxlZnR8cmlnaHQpKC1bYS16XSspPyIpKTsKICAgICAgICAgICAgICAgIGNzcyhlbGVtZW50LCB7dG9wOiAnJywgbGVmdDogJyd9KTsKCiAgICAgICAgICAgICAgICB2YXIgbm9kZTsKICAgICAgICAgICAgICAgIHZhciByZWYgPSB0aGlzOwogICAgICAgICAgICAgICAgdmFyIG9mZnNldCQxID0gcmVmLm9mZnNldDsKICAgICAgICAgICAgICAgIHZhciBheGlzID0gdGhpcy5nZXRBeGlzKCk7CgogICAgICAgICAgICAgICAgaWYgKCFpc051bWVyaWMob2Zmc2V0JDEpKSB7CiAgICAgICAgICAgICAgICAgICAgbm9kZSA9ICQob2Zmc2V0JDEpOwogICAgICAgICAgICAgICAgICAgIG9mZnNldCQxID0gbm9kZQogICAgICAgICAgICAgICAgICAgICAgICA/IG9mZnNldChub2RlKVtheGlzID09PSAneCcgPyAnbGVmdCcgOiAndG9wJ10gLSBvZmZzZXQodGFyZ2V0KVtheGlzID09PSAneCcgPyAncmlnaHQnIDogJ2JvdHRvbSddCiAgICAgICAgICAgICAgICAgICAgICAgIDogMDsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB2YXIgcmVmJDEgPSBwb3NpdGlvbkF0KAogICAgICAgICAgICAgICAgICAgIGVsZW1lbnQsCiAgICAgICAgICAgICAgICAgICAgdGFyZ2V0LAogICAgICAgICAgICAgICAgICAgIGF4aXMgPT09ICd4JyA/ICgoZmxpcFBvc2l0aW9uKHRoaXMuZGlyKSkgKyAiICIgKyAodGhpcy5hbGlnbikpIDogKCh0aGlzLmFsaWduKSArICIgIiArIChmbGlwUG9zaXRpb24odGhpcy5kaXIpKSksCiAgICAgICAgICAgICAgICAgICAgYXhpcyA9PT0gJ3gnID8gKCh0aGlzLmRpcikgKyAiICIgKyAodGhpcy5hbGlnbikpIDogKCh0aGlzLmFsaWduKSArICIgIiArICh0aGlzLmRpcikpLAogICAgICAgICAgICAgICAgICAgIGF4aXMgPT09ICd4JyA/ICgiIiArICh0aGlzLmRpciA9PT0gJ2xlZnQnID8gLW9mZnNldCQxIDogb2Zmc2V0JDEpKSA6ICgiICIgKyAodGhpcy5kaXIgPT09ICd0b3AnID8gLW9mZnNldCQxIDogb2Zmc2V0JDEpKSwKICAgICAgICAgICAgICAgICAgICBudWxsLAogICAgICAgICAgICAgICAgICAgIHRoaXMuZmxpcCwKICAgICAgICAgICAgICAgICAgICBib3VuZGFyeQogICAgICAgICAgICAgICAgKS50YXJnZXQ7CiAgICAgICAgICAgICAgICB2YXIgeCA9IHJlZiQxLng7CiAgICAgICAgICAgICAgICB2YXIgeSA9IHJlZiQxLnk7CgogICAgICAgICAgICAgICAgdGhpcy5kaXIgPSBheGlzID09PSAneCcgPyB4IDogeTsKICAgICAgICAgICAgICAgIHRoaXMuYWxpZ24gPSBheGlzID09PSAneCcgPyB5IDogeDsKCiAgICAgICAgICAgICAgICB0b2dnbGVDbGFzcyhlbGVtZW50LCAoKHRoaXMuY2xzUG9zKSArICItIiArICh0aGlzLmRpcikgKyAiLSIgKyAodGhpcy5hbGlnbikpLCB0aGlzLm9mZnNldCA9PT0gZmFsc2UpOwoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGdldEF4aXM6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZGlyID09PSAndG9wJyB8fCB0aGlzLmRpciA9PT0gJ2JvdHRvbScgPyAneScgOiAneCc7CiAgICAgICAgICAgIH0KCiAgICAgICAgfQoKICAgIH07CgogICAgdmFyIGFjdGl2ZTsKCiAgICB2YXIgRHJvcCA9IHsKCiAgICAgICAgbWl4aW5zOiBbUG9zaXRpb24sIFRvZ2dsYWJsZV0sCgogICAgICAgIGFyZ3M6ICdwb3MnLAoKICAgICAgICBwcm9wczogewogICAgICAgICAgICBtb2RlOiAnbGlzdCcsCiAgICAgICAgICAgIHRvZ2dsZTogQm9vbGVhbiwKICAgICAgICAgICAgYm91bmRhcnk6IEJvb2xlYW4sCiAgICAgICAgICAgIGJvdW5kYXJ5QWxpZ246IEJvb2xlYW4sCiAgICAgICAgICAgIGRlbGF5U2hvdzogTnVtYmVyLAogICAgICAgICAgICBkZWxheUhpZGU6IE51bWJlciwKICAgICAgICAgICAgY2xzRHJvcDogU3RyaW5nCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICBtb2RlOiBbJ2NsaWNrJywgJ2hvdmVyJ10sCiAgICAgICAgICAgIHRvZ2dsZTogJy0gKicsCiAgICAgICAgICAgIGJvdW5kYXJ5OiB3aW5kb3csCiAgICAgICAgICAgIGJvdW5kYXJ5QWxpZ246IGZhbHNlLAogICAgICAgICAgICBkZWxheVNob3c6IDAsCiAgICAgICAgICAgIGRlbGF5SGlkZTogODAwLAogICAgICAgICAgICBjbHNEcm9wOiBmYWxzZSwKICAgICAgICAgICAgaG92ZXJJZGxlOiAyMDAsCiAgICAgICAgICAgIGFuaW1hdGlvbjogWyd1ay1hbmltYXRpb24tZmFkZSddLAogICAgICAgICAgICBjbHM6ICd1ay1vcGVuJwogICAgICAgIH0sCgogICAgICAgIGNvbXB1dGVkOiB7CgogICAgICAgICAgICBib3VuZGFyeTogZnVuY3Rpb24ocmVmLCAkZWwpIHsKICAgICAgICAgICAgICAgIHZhciBib3VuZGFyeSA9IHJlZi5ib3VuZGFyeTsKCiAgICAgICAgICAgICAgICByZXR1cm4gcXVlcnkoYm91bmRhcnksICRlbCk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBjbHNEcm9wOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBjbHNEcm9wID0gcmVmLmNsc0Ryb3A7CgogICAgICAgICAgICAgICAgcmV0dXJuIGNsc0Ryb3AgfHwgKCJ1ay0iICsgKHRoaXMuJG9wdGlvbnMubmFtZSkpOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgY2xzUG9zOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmNsc0Ryb3A7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgY3JlYXRlZDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIHRoaXMudHJhY2tlciA9IG5ldyBNb3VzZVRyYWNrZXIoKTsKICAgICAgICB9LAoKICAgICAgICBjb25uZWN0ZWQ6IGZ1bmN0aW9uKCkgewoKICAgICAgICAgICAgYWRkQ2xhc3ModGhpcy4kZWwsIHRoaXMuY2xzRHJvcCk7CgogICAgICAgICAgICB2YXIgcmVmID0gdGhpcy4kcHJvcHM7CiAgICAgICAgICAgIHZhciB0b2dnbGUgPSByZWYudG9nZ2xlOwogICAgICAgICAgICB0aGlzLnRvZ2dsZSA9IHRvZ2dsZSAmJiB0aGlzLiRjcmVhdGUoJ3RvZ2dsZScsIHF1ZXJ5KHRvZ2dsZSwgdGhpcy4kZWwpLCB7CiAgICAgICAgICAgICAgICB0YXJnZXQ6IHRoaXMuJGVsLAogICAgICAgICAgICAgICAgbW9kZTogdGhpcy5tb2RlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgIXRoaXMudG9nZ2xlICYmIHRyaWdnZXIodGhpcy4kZWwsICd1cGRhdGVhcmlhJyk7CgogICAgICAgIH0sCgogICAgICAgIGV2ZW50czogWwoKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAnY2xpY2snLAoKICAgICAgICAgICAgICAgIGRlbGVnYXRlOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gKCIuIiArICh0aGlzLmNsc0Ryb3ApICsgIi1jbG9zZSIpOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpOwogICAgICAgICAgICAgICAgICAgIHRoaXMuaGlkZShmYWxzZSk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIG5hbWU6ICdjbGljaycsCgogICAgICAgICAgICAgICAgZGVsZWdhdGU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAnYVtocmVmXj0iIyJdJzsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGRlZmF1bHRQcmV2ZW50ZWQgPSByZWYuZGVmYXVsdFByZXZlbnRlZDsKICAgICAgICAgICAgICAgICAgICB2YXIgaGFzaCA9IHJlZi5jdXJyZW50Lmhhc2g7CgogICAgICAgICAgICAgICAgICAgIGlmICghZGVmYXVsdFByZXZlbnRlZCAmJiBoYXNoICYmICF3aXRoaW4oaGFzaCwgdGhpcy4kZWwpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuaGlkZShmYWxzZSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAnYmVmb3Jlc2Nyb2xsJywKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLmhpZGUoZmFsc2UpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAndG9nZ2xlJywKCiAgICAgICAgICAgICAgICBzZWxmOiB0cnVlLAoKICAgICAgICAgICAgICAgIGhhbmRsZXI6IGZ1bmN0aW9uKGUsIHRvZ2dsZSkgewoKICAgICAgICAgICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7CgogICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmlzVG9nZ2xlZCgpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuaGlkZShmYWxzZSk7CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zaG93KHRvZ2dsZSwgZmFsc2UpOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgbmFtZTogcG9pbnRlckVudGVyLAoKICAgICAgICAgICAgICAgIGZpbHRlcjogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGluY2x1ZGVzKHRoaXMubW9kZSwgJ2hvdmVyJyk7CiAgICAgICAgICAgICAgICB9LAoKICAgICAgICAgICAgICAgIGhhbmRsZXI6IGZ1bmN0aW9uKGUpIHsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGlzVG91Y2goZSkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgaWYgKGFjdGl2ZQogICAgICAgICAgICAgICAgICAgICAgICAmJiBhY3RpdmUgIT09IHRoaXMKICAgICAgICAgICAgICAgICAgICAgICAgJiYgYWN0aXZlLnRvZ2dsZQogICAgICAgICAgICAgICAgICAgICAgICAmJiBpbmNsdWRlcyhhY3RpdmUudG9nZ2xlLm1vZGUsICdob3ZlcicpCiAgICAgICAgICAgICAgICAgICAgICAgICYmICF3aXRoaW4oZS50YXJnZXQsIGFjdGl2ZS50b2dnbGUuJGVsKQogICAgICAgICAgICAgICAgICAgICAgICAmJiAhcG9pbnRJblJlY3Qoe3g6IGUucGFnZVgsIHk6IGUucGFnZVl9LCBvZmZzZXQoYWN0aXZlLiRlbCkpCiAgICAgICAgICAgICAgICAgICAgKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGFjdGl2ZS5oaWRlKGZhbHNlKTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTsKICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3codGhpcy50b2dnbGUpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAndG9nZ2xlc2hvdycsCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24oZSwgdG9nZ2xlKSB7CgogICAgICAgICAgICAgICAgICAgIGlmICh0b2dnbGUgJiYgIWluY2x1ZGVzKHRvZ2dsZS50YXJnZXQsIHRoaXMuJGVsKSkgewogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5zaG93KHRvZ2dsZSB8fCB0aGlzLnRvZ2dsZSk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIG5hbWU6ICgidG9nZ2xlaGlkZSAiICsgcG9pbnRlckxlYXZlKSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlLCB0b2dnbGUpIHsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGlzVG91Y2goZSkgfHwgdG9nZ2xlICYmICFpbmNsdWRlcyh0b2dnbGUudGFyZ2V0LCB0aGlzLiRlbCkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpOwoKICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy50b2dnbGUgJiYgaW5jbHVkZXModGhpcy50b2dnbGUubW9kZSwgJ2hvdmVyJykpIHsKICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5oaWRlKCk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAnYmVmb3Jlc2hvdycsCgogICAgICAgICAgICAgICAgc2VsZjogdHJ1ZSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLmNsZWFyVGltZXJzKCk7CiAgICAgICAgICAgICAgICAgICAgQW5pbWF0aW9uLmNhbmNlbCh0aGlzLiRlbCk7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5wb3NpdGlvbigpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAnc2hvdycsCgogICAgICAgICAgICAgICAgc2VsZjogdHJ1ZSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCiAgICAgICAgICAgICAgICAgICAgdGhpcy50cmFja2VyLmluaXQoKTsKICAgICAgICAgICAgICAgICAgICB0cmlnZ2VyKHRoaXMuJGVsLCAndXBkYXRlYXJpYScpOwoKICAgICAgICAgICAgICAgICAgICAvLyBJZiB0cmlnZ2VyZWQgZnJvbSBhbiBjbGljayBldmVudCBoYW5kbGVyLCBkZWxheSBhZGRpbmcgdGhlIGNsaWNrIGhhbmRsZXIKICAgICAgICAgICAgICAgICAgICB2YXIgb2ZmID0gZGVsYXlPbihkb2N1bWVudCwgJ2NsaWNrJywgZnVuY3Rpb24gKHJlZikgewogICAgICAgICAgICAgICAgICAgICAgICB2YXIgZGVmYXVsdFByZXZlbnRlZCA9IHJlZi5kZWZhdWx0UHJldmVudGVkOwogICAgICAgICAgICAgICAgICAgICAgICB2YXIgdGFyZ2V0ID0gcmVmLnRhcmdldDsKCiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghZGVmYXVsdFByZXZlbnRlZCAmJiAhd2l0aGluKHRhcmdldCwgdGhpcyQxLiRlbCkgJiYgISh0aGlzJDEudG9nZ2xlICYmIHdpdGhpbih0YXJnZXQsIHRoaXMkMS50b2dnbGUuJGVsKSkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMkMS5oaWRlKGZhbHNlKTsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgICAgICAgICBvbmNlKHRoaXMuJGVsLCAnaGlkZScsIG9mZiwge3NlbGY6IHRydWV9KTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgbmFtZTogJ2JlZm9yZWhpZGUnLAoKICAgICAgICAgICAgICAgIHNlbGY6IHRydWUsCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5jbGVhclRpbWVycygpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAnaGlkZScsCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIHRhcmdldCA9IHJlZi50YXJnZXQ7CgoKICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy4kZWwgIT09IHRhcmdldCkgewogICAgICAgICAgICAgICAgICAgICAgICBhY3RpdmUgPSBhY3RpdmUgPT09IG51bGwgJiYgd2l0aGluKHRhcmdldCwgdGhpcy4kZWwpICYmIHRoaXMuaXNUb2dnbGVkKCkgPyB0aGlzIDogYWN0aXZlOwogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICBhY3RpdmUgPSB0aGlzLmlzQWN0aXZlKCkgPyBudWxsIDogYWN0aXZlOwogICAgICAgICAgICAgICAgICAgIHRyaWdnZXIodGhpcy4kZWwsICd1cGRhdGVhcmlhJyk7CiAgICAgICAgICAgICAgICAgICAgdGhpcy50cmFja2VyLmNhbmNlbCgpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAndXBkYXRlYXJpYScsCgogICAgICAgICAgICAgICAgc2VsZjogdHJ1ZSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlLCB0b2dnbGUpIHsKCiAgICAgICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpOwoKICAgICAgICAgICAgICAgICAgICB0aGlzLnVwZGF0ZUFyaWEodGhpcy4kZWwpOwoKICAgICAgICAgICAgICAgICAgICBpZiAodG9nZ2xlIHx8IHRoaXMudG9nZ2xlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGF0dHIoKHRvZ2dsZSB8fCB0aGlzLnRvZ2dsZSkuJGVsLCAnYXJpYS1leHBhbmRlZCcsIHRoaXMuaXNUb2dnbGVkKCkpOwogICAgICAgICAgICAgICAgICAgICAgICB0b2dnbGVDbGFzcyh0aGlzLnRvZ2dsZS4kZWwsIHRoaXMuY2xzLCB0aGlzLmlzVG9nZ2xlZCgpKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgXSwKCiAgICAgICAgdXBkYXRlOiB7CgogICAgICAgICAgICB3cml0ZTogZnVuY3Rpb24oKSB7CgogICAgICAgICAgICAgICAgaWYgKHRoaXMuaXNUb2dnbGVkKCkgJiYgIUFuaW1hdGlvbi5pblByb2dyZXNzKHRoaXMuJGVsKSkgewogICAgICAgICAgICAgICAgICAgIHRoaXMucG9zaXRpb24oKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBldmVudHM6IFsncmVzaXplJ10KCiAgICAgICAgfSwKCiAgICAgICAgbWV0aG9kczogewoKICAgICAgICAgICAgc2hvdzogZnVuY3Rpb24odG9nZ2xlLCBkZWxheSkgewogICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CiAgICAgICAgICAgICAgICBpZiAoIGRlbGF5ID09PSB2b2lkIDAgKSBkZWxheSA9IHRydWU7CgoKICAgICAgICAgICAgICAgIHZhciBzaG93ID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gIXRoaXMkMS5pc1RvZ2dsZWQoKSAmJiB0aGlzJDEudG9nZ2xlRWxlbWVudCh0aGlzJDEuJGVsLCB0cnVlKTsgfTsKICAgICAgICAgICAgICAgIHZhciB0cnlTaG93ID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgICAgICAgICB0aGlzJDEudG9nZ2xlID0gdG9nZ2xlIHx8IHRoaXMkMS50b2dnbGU7CgogICAgICAgICAgICAgICAgICAgIHRoaXMkMS5jbGVhclRpbWVycygpOwoKICAgICAgICAgICAgICAgICAgICBpZiAodGhpcyQxLmlzQWN0aXZlKCkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoZGVsYXkgJiYgYWN0aXZlICYmIGFjdGl2ZSAhPT0gdGhpcyQxICYmIGFjdGl2ZS5pc0RlbGF5aW5nKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMkMS5zaG93VGltZXIgPSBzZXRUaW1lb3V0KHRoaXMkMS5zaG93LCAxMCk7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHRoaXMkMS5pc1BhcmVudE9mKGFjdGl2ZSkpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChhY3RpdmUuaGlkZVRpbWVyKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhY3RpdmUuaGlkZShmYWxzZSk7CiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzJDEuaXNDaGlsZE9mKGFjdGl2ZSkpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgIGFjdGl2ZS5jbGVhclRpbWVycygpOwoKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGFjdGl2ZSAmJiAhdGhpcyQxLmlzQ2hpbGRPZihhY3RpdmUpICYmICF0aGlzJDEuaXNQYXJlbnRPZihhY3RpdmUpKSB7CgogICAgICAgICAgICAgICAgICAgICAgICB2YXIgcHJldjsKICAgICAgICAgICAgICAgICAgICAgICAgd2hpbGUgKGFjdGl2ZSAmJiBhY3RpdmUgIT09IHByZXYgJiYgIXRoaXMkMS5pc0NoaWxkT2YoYWN0aXZlKSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJldiA9IGFjdGl2ZTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFjdGl2ZS5oaWRlKGZhbHNlKTsKICAgICAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIGlmIChkZWxheSAmJiB0aGlzJDEuZGVsYXlTaG93KSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMkMS5zaG93VGltZXIgPSBzZXRUaW1lb3V0KHNob3csIHRoaXMkMS5kZWxheVNob3cpOwogICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHNob3coKTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIGFjdGl2ZSA9IHRoaXMkMTsKICAgICAgICAgICAgICAgIH07CgogICAgICAgICAgICAgICAgaWYgKHRvZ2dsZSAmJiB0aGlzLnRvZ2dsZSAmJiB0b2dnbGUuJGVsICE9PSB0aGlzLnRvZ2dsZS4kZWwpIHsKCiAgICAgICAgICAgICAgICAgICAgb25jZSh0aGlzLiRlbCwgJ2hpZGUnLCB0cnlTaG93KTsKICAgICAgICAgICAgICAgICAgICB0aGlzLmhpZGUoZmFsc2UpOwoKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgdHJ5U2hvdygpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9LAoKICAgICAgICAgICAgaGlkZTogZnVuY3Rpb24oZGVsYXkpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwogICAgICAgICAgICAgICAgaWYgKCBkZWxheSA9PT0gdm9pZCAwICkgZGVsYXkgPSB0cnVlOwoKCiAgICAgICAgICAgICAgICB2YXIgaGlkZSA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIHRoaXMkMS50b2dnbGVOb3codGhpcyQxLiRlbCwgZmFsc2UpOyB9OwoKICAgICAgICAgICAgICAgIHRoaXMuY2xlYXJUaW1lcnMoKTsKCiAgICAgICAgICAgICAgICB0aGlzLmlzRGVsYXlpbmcgPSB0aGlzLnRyYWNrZXIubW92ZXNUbyh0aGlzLiRlbCk7CgogICAgICAgICAgICAgICAgaWYgKGRlbGF5ICYmIHRoaXMuaXNEZWxheWluZykgewogICAgICAgICAgICAgICAgICAgIHRoaXMuaGlkZVRpbWVyID0gc2V0VGltZW91dCh0aGlzLmhpZGUsIHRoaXMuaG92ZXJJZGxlKTsKICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoZGVsYXkgJiYgdGhpcy5kZWxheUhpZGUpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLmhpZGVUaW1lciA9IHNldFRpbWVvdXQoaGlkZSwgdGhpcy5kZWxheUhpZGUpOwogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICBoaWRlKCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBjbGVhclRpbWVyczogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQodGhpcy5zaG93VGltZXIpOwogICAgICAgICAgICAgICAgY2xlYXJUaW1lb3V0KHRoaXMuaGlkZVRpbWVyKTsKICAgICAgICAgICAgICAgIHRoaXMuc2hvd1RpbWVyID0gbnVsbDsKICAgICAgICAgICAgICAgIHRoaXMuaGlkZVRpbWVyID0gbnVsbDsKICAgICAgICAgICAgICAgIHRoaXMuaXNEZWxheWluZyA9IGZhbHNlOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgaXNBY3RpdmU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGFjdGl2ZSA9PT0gdGhpczsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGlzQ2hpbGRPZjogZnVuY3Rpb24oZHJvcCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGRyb3AgJiYgZHJvcCAhPT0gdGhpcyAmJiB3aXRoaW4odGhpcy4kZWwsIGRyb3AuJGVsKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGlzUGFyZW50T2Y6IGZ1bmN0aW9uKGRyb3ApIHsKICAgICAgICAgICAgICAgIHJldHVybiBkcm9wICYmIGRyb3AgIT09IHRoaXMgJiYgd2l0aGluKGRyb3AuJGVsLCB0aGlzLiRlbCk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBwb3NpdGlvbjogZnVuY3Rpb24oKSB7CgogICAgICAgICAgICAgICAgcmVtb3ZlQ2xhc3Nlcyh0aGlzLiRlbCwgKCh0aGlzLmNsc0Ryb3ApICsgIi0oc3RhY2t8Ym91bmRhcnkpIikpOwogICAgICAgICAgICAgICAgY3NzKHRoaXMuJGVsLCB7dG9wOiAnJywgbGVmdDogJycsIGRpc3BsYXk6ICdibG9jayd9KTsKICAgICAgICAgICAgICAgIHRvZ2dsZUNsYXNzKHRoaXMuJGVsLCAoKHRoaXMuY2xzRHJvcCkgKyAiLWJvdW5kYXJ5IiksIHRoaXMuYm91bmRhcnlBbGlnbik7CgogICAgICAgICAgICAgICAgdmFyIGJvdW5kYXJ5ID0gb2Zmc2V0KHRoaXMuYm91bmRhcnkpOwogICAgICAgICAgICAgICAgdmFyIGFsaWduVG8gPSB0aGlzLmJvdW5kYXJ5QWxpZ24gPyBib3VuZGFyeSA6IG9mZnNldCh0aGlzLnRvZ2dsZS4kZWwpOwoKICAgICAgICAgICAgICAgIGlmICh0aGlzLmFsaWduID09PSAnanVzdGlmeScpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgcHJvcCA9IHRoaXMuZ2V0QXhpcygpID09PSAneScgPyAnd2lkdGgnIDogJ2hlaWdodCc7CiAgICAgICAgICAgICAgICAgICAgY3NzKHRoaXMuJGVsLCBwcm9wLCBhbGlnblRvW3Byb3BdKTsKICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy4kZWwub2Zmc2V0V2lkdGggPiBNYXRoLm1heChib3VuZGFyeS5yaWdodCAtIGFsaWduVG8ubGVmdCwgYWxpZ25Uby5yaWdodCAtIGJvdW5kYXJ5LmxlZnQpKSB7CiAgICAgICAgICAgICAgICAgICAgYWRkQ2xhc3ModGhpcy4kZWwsICgodGhpcy5jbHNEcm9wKSArICItc3RhY2siKSk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdGhpcy5wb3NpdGlvbkF0KHRoaXMuJGVsLCB0aGlzLmJvdW5kYXJ5QWxpZ24gPyB0aGlzLmJvdW5kYXJ5IDogdGhpcy50b2dnbGUuJGVsLCB0aGlzLmJvdW5kYXJ5KTsKCiAgICAgICAgICAgICAgICBjc3ModGhpcy4kZWwsICdkaXNwbGF5JywgJycpOwoKICAgICAgICAgICAgfQoKICAgICAgICB9CgogICAgfTsKCiAgICBmdW5jdGlvbiBkZWxheU9uKGVsLCB0eXBlLCBmbikgewogICAgICAgIHZhciBvZmYgPSBvbmNlKGVsLCB0eXBlLCBmdW5jdGlvbiAoKSB7IHJldHVybiBvZmYgPSBvbihlbCwgdHlwZSwgZm4pOyB9CiAgICAgICAgLCB0cnVlKTsKICAgICAgICByZXR1cm4gZnVuY3Rpb24gKCkgeyByZXR1cm4gb2ZmKCk7IH07CiAgICB9CgogICAgdmFyIERyb3Bkb3duID0gewoKICAgICAgICBleHRlbmRzOiBEcm9wCgogICAgfTsKCiAgICB2YXIgRm9ybUN1c3RvbSA9IHsKCiAgICAgICAgbWl4aW5zOiBbQ2xhc3NdLAoKICAgICAgICBhcmdzOiAndGFyZ2V0JywKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgdGFyZ2V0OiBCb29sZWFuCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICB0YXJnZXQ6IGZhbHNlCiAgICAgICAgfSwKCiAgICAgICAgY29tcHV0ZWQ6IHsKCiAgICAgICAgICAgIGlucHV0OiBmdW5jdGlvbihfLCAkZWwpIHsKICAgICAgICAgICAgICAgIHJldHVybiAkKHNlbElucHV0LCAkZWwpOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgc3RhdGU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuaW5wdXQubmV4dEVsZW1lbnRTaWJsaW5nOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgdGFyZ2V0OiBmdW5jdGlvbihyZWYsICRlbCkgewogICAgICAgICAgICAgICAgdmFyIHRhcmdldCA9IHJlZi50YXJnZXQ7CgogICAgICAgICAgICAgICAgcmV0dXJuIHRhcmdldCAmJiAodGFyZ2V0ID09PSB0cnVlCiAgICAgICAgICAgICAgICAgICAgJiYgdGhpcy5pbnB1dC5wYXJlbnROb2RlID09PSAkZWwKICAgICAgICAgICAgICAgICAgICAmJiB0aGlzLmlucHV0Lm5leHRFbGVtZW50U2libGluZwogICAgICAgICAgICAgICAgICAgIHx8IHF1ZXJ5KHRhcmdldCwgJGVsKSk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgdXBkYXRlOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgIHZhciByZWYgPSB0aGlzOwogICAgICAgICAgICB2YXIgdGFyZ2V0ID0gcmVmLnRhcmdldDsKICAgICAgICAgICAgdmFyIGlucHV0ID0gcmVmLmlucHV0OwoKICAgICAgICAgICAgaWYgKCF0YXJnZXQpIHsKICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgdmFyIG9wdGlvbjsKICAgICAgICAgICAgdmFyIHByb3AgPSBpc0lucHV0KHRhcmdldCkgPyAndmFsdWUnIDogJ3RleHRDb250ZW50JzsKICAgICAgICAgICAgdmFyIHByZXYgPSB0YXJnZXRbcHJvcF07CiAgICAgICAgICAgIHZhciB2YWx1ZSA9IGlucHV0LmZpbGVzICYmIGlucHV0LmZpbGVzWzBdCiAgICAgICAgICAgICAgICA/IGlucHV0LmZpbGVzWzBdLm5hbWUKICAgICAgICAgICAgICAgIDogbWF0Y2hlcyhpbnB1dCwgJ3NlbGVjdCcpICYmIChvcHRpb24gPSAkJCgnb3B0aW9uJywgaW5wdXQpLmZpbHRlcihmdW5jdGlvbiAoZWwpIHsgcmV0dXJuIGVsLnNlbGVjdGVkOyB9KVswXSkgLy8gZXNsaW50LWRpc2FibGUtbGluZSBwcmVmZXItZGVzdHJ1Y3R1cmluZwogICAgICAgICAgICAgICAgICAgID8gb3B0aW9uLnRleHRDb250ZW50CiAgICAgICAgICAgICAgICAgICAgOiBpbnB1dC52YWx1ZTsKCiAgICAgICAgICAgIGlmIChwcmV2ICE9PSB2YWx1ZSkgewogICAgICAgICAgICAgICAgdGFyZ2V0W3Byb3BdID0gdmFsdWU7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiBbCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAnY2hhbmdlJywKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLiRlbWl0KCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAncmVzZXQnLAoKICAgICAgICAgICAgICAgIGVsOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gY2xvc2VzdCh0aGlzLiRlbCwgJ2Zvcm0nKTsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcy4kZW1pdCgpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgIF0KCiAgICB9OwoKICAgIC8vIERlcHJlY2F0ZWQKICAgIHZhciBHaWYgPSB7CgogICAgICAgIHVwZGF0ZTogewoKICAgICAgICAgICAgcmVhZDogZnVuY3Rpb24oZGF0YSkgewoKICAgICAgICAgICAgICAgIHZhciBpbnZpZXcgPSBpc0luVmlldyh0aGlzLiRlbCk7CgogICAgICAgICAgICAgICAgaWYgKCFpbnZpZXcgfHwgZGF0YS5pc0luVmlldyA9PT0gaW52aWV3KSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIGRhdGEuaXNJblZpZXcgPSBpbnZpZXc7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB3cml0ZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICB0aGlzLiRlbC5zcmMgPSB0aGlzLiRlbC5zcmM7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBldmVudHM6IFsnc2Nyb2xsJywgJ3Jlc2l6ZSddCiAgICAgICAgfQoKICAgIH07CgogICAgdmFyIE1hcmdpbiA9IHsKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgbWFyZ2luOiBTdHJpbmcsCiAgICAgICAgICAgIGZpcnN0Q29sdW1uOiBCb29sZWFuCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICBtYXJnaW46ICd1ay1tYXJnaW4tc21hbGwtdG9wJywKICAgICAgICAgICAgZmlyc3RDb2x1bW46ICd1ay1maXJzdC1jb2x1bW4nCiAgICAgICAgfSwKCiAgICAgICAgdXBkYXRlOiB7CgogICAgICAgICAgICByZWFkOiBmdW5jdGlvbihkYXRhKSB7CgogICAgICAgICAgICAgICAgdmFyIGl0ZW1zID0gdGhpcy4kZWwuY2hpbGRyZW47CiAgICAgICAgICAgICAgICB2YXIgcm93cyA9IFtbXV07CgogICAgICAgICAgICAgICAgaWYgKCFpdGVtcy5sZW5ndGggfHwgIWlzVmlzaWJsZSh0aGlzLiRlbCkpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YS5yb3dzID0gcm93czsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBkYXRhLnJvd3MgPSBnZXRSb3dzKGl0ZW1zKTsKICAgICAgICAgICAgICAgIGRhdGEuc3RhY2tzID0gIWRhdGEucm93cy5zb21lKGZ1bmN0aW9uIChyb3cpIHsgcmV0dXJuIHJvdy5sZW5ndGggPiAxOyB9KTsKCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB3cml0ZTogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKICAgICAgICAgICAgICAgIHZhciByb3dzID0gcmVmLnJvd3M7CgoKICAgICAgICAgICAgICAgIHJvd3MuZm9yRWFjaChmdW5jdGlvbiAocm93LCBpKSB7IHJldHVybiByb3cuZm9yRWFjaChmdW5jdGlvbiAoZWwsIGopIHsKICAgICAgICAgICAgICAgICAgICAgICAgdG9nZ2xlQ2xhc3MoZWwsIHRoaXMkMS5tYXJnaW4sIGkgIT09IDApOwogICAgICAgICAgICAgICAgICAgICAgICB0b2dnbGVDbGFzcyhlbCwgdGhpcyQxLmZpcnN0Q29sdW1uLCBqID09PSAwKTsKICAgICAgICAgICAgICAgICAgICB9KTsgfQogICAgICAgICAgICAgICAgKTsKCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBldmVudHM6IFsncmVzaXplJ10KCiAgICAgICAgfQoKICAgIH07CgogICAgZnVuY3Rpb24gZ2V0Um93cyhpdGVtcykgewogICAgICAgIHZhciByb3dzID0gW1tdXTsKCiAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBpdGVtcy5sZW5ndGg7IGkrKykgewoKICAgICAgICAgICAgdmFyIGVsID0gaXRlbXNbaV07CiAgICAgICAgICAgIHZhciBkaW0gPSBnZXRPZmZzZXQoZWwpOwoKICAgICAgICAgICAgaWYgKCFkaW0uaGVpZ2h0KSB7CiAgICAgICAgICAgICAgICBjb250aW51ZTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgZm9yICh2YXIgaiA9IHJvd3MubGVuZ3RoIC0gMTsgaiA+PSAwOyBqLS0pIHsKCiAgICAgICAgICAgICAgICB2YXIgcm93ID0gcm93c1tqXTsKCiAgICAgICAgICAgICAgICBpZiAoIXJvd1swXSkgewogICAgICAgICAgICAgICAgICAgIHJvdy5wdXNoKGVsKTsKICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB2YXIgbGVmdERpbSA9ICh2b2lkIDApOwogICAgICAgICAgICAgICAgaWYgKHJvd1swXS5vZmZzZXRQYXJlbnQgPT09IGVsLm9mZnNldFBhcmVudCkgewogICAgICAgICAgICAgICAgICAgIGxlZnREaW0gPSBnZXRPZmZzZXQocm93WzBdKTsKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgZGltID0gZ2V0T2Zmc2V0KGVsLCB0cnVlKTsKICAgICAgICAgICAgICAgICAgICBsZWZ0RGltID0gZ2V0T2Zmc2V0KHJvd1swXSwgdHJ1ZSk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgaWYgKGRpbS50b3AgPj0gbGVmdERpbS5ib3R0b20gLSAxICYmIGRpbS50b3AgIT09IGxlZnREaW0udG9wKSB7CiAgICAgICAgICAgICAgICAgICAgcm93cy5wdXNoKFtlbF0pOwogICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIGlmIChkaW0uYm90dG9tID4gbGVmdERpbS50b3ApIHsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGRpbS5sZWZ0IDwgbGVmdERpbS5sZWZ0ICYmICFpc1J0bCkgewogICAgICAgICAgICAgICAgICAgICAgICByb3cudW5zaGlmdChlbCk7CiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgcm93LnB1c2goZWwpOwogICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIGlmIChqID09PSAwKSB7CiAgICAgICAgICAgICAgICAgICAgcm93cy51bnNoaWZ0KFtlbF0pOwogICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfQoKICAgICAgICB9CgogICAgICAgIHJldHVybiByb3dzOwoKICAgIH0KCiAgICBmdW5jdGlvbiBnZXRPZmZzZXQoZWxlbWVudCwgb2Zmc2V0KSB7CiAgICAgICAgdmFyIGFzc2lnbjsKCiAgICAgICAgaWYgKCBvZmZzZXQgPT09IHZvaWQgMCApIG9mZnNldCA9IGZhbHNlOwoKICAgICAgICB2YXIgb2Zmc2V0VG9wID0gZWxlbWVudC5vZmZzZXRUb3A7CiAgICAgICAgdmFyIG9mZnNldExlZnQgPSBlbGVtZW50Lm9mZnNldExlZnQ7CiAgICAgICAgdmFyIG9mZnNldEhlaWdodCA9IGVsZW1lbnQub2Zmc2V0SGVpZ2h0OwoKICAgICAgICBpZiAob2Zmc2V0KSB7CiAgICAgICAgICAgIChhc3NpZ24gPSBvZmZzZXRQb3NpdGlvbihlbGVtZW50KSwgb2Zmc2V0VG9wID0gYXNzaWduWzBdLCBvZmZzZXRMZWZ0ID0gYXNzaWduWzFdKTsKICAgICAgICB9CgogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIHRvcDogb2Zmc2V0VG9wLAogICAgICAgICAgICBsZWZ0OiBvZmZzZXRMZWZ0LAogICAgICAgICAgICBoZWlnaHQ6IG9mZnNldEhlaWdodCwKICAgICAgICAgICAgYm90dG9tOiBvZmZzZXRUb3AgKyBvZmZzZXRIZWlnaHQKICAgICAgICB9OwogICAgfQoKICAgIHZhciBHcmlkID0gewoKICAgICAgICBleHRlbmRzOiBNYXJnaW4sCgogICAgICAgIG1peGluczogW0NsYXNzXSwKCiAgICAgICAgbmFtZTogJ2dyaWQnLAoKICAgICAgICBwcm9wczogewogICAgICAgICAgICBtYXNvbnJ5OiBCb29sZWFuLAogICAgICAgICAgICBwYXJhbGxheDogTnVtYmVyCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICBtYXJnaW46ICd1ay1ncmlkLW1hcmdpbicsCiAgICAgICAgICAgIGNsc1N0YWNrOiAndWstZ3JpZC1zdGFjaycsCiAgICAgICAgICAgIG1hc29ucnk6IGZhbHNlLAogICAgICAgICAgICBwYXJhbGxheDogMAogICAgICAgIH0sCgogICAgICAgIGNvbXB1dGVkOiB7CgogICAgICAgICAgICBsZW5ndGg6IGZ1bmN0aW9uKF8sICRlbCkgewogICAgICAgICAgICAgICAgcmV0dXJuICRlbC5jaGlsZHJlbi5sZW5ndGg7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBwYXJhbGxheDogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgcGFyYWxsYXggPSByZWYucGFyYWxsYXg7CgogICAgICAgICAgICAgICAgcmV0dXJuIHBhcmFsbGF4ICYmIHRoaXMubGVuZ3RoID8gTWF0aC5hYnMocGFyYWxsYXgpIDogJyc7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdGhpcy5tYXNvbnJ5ICYmIGFkZENsYXNzKHRoaXMuJGVsLCAndWstZmxleC10b3AgdWstZmxleC13cmFwLXRvcCcpOwogICAgICAgIH0sCgogICAgICAgIHVwZGF0ZTogWwoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIHJlYWQ6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgICAgIHZhciByb3dzID0gcmVmLnJvd3M7CgoKICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5tYXNvbnJ5IHx8IHRoaXMucGFyYWxsYXgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcm93cyA9IHJvd3MubWFwKGZ1bmN0aW9uIChlbGVtZW50cykgeyByZXR1cm4gc29ydEJ5KGVsZW1lbnRzLCAnb2Zmc2V0TGVmdCcpOyB9KTsKCiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpc1J0bCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93cy5tYXAoZnVuY3Rpb24gKHJvdykgeyByZXR1cm4gcm93LnJldmVyc2UoKTsgfSk7CiAgICAgICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICB2YXIgdHJhbnNpdGlvbkluUHJvZ3Jlc3MgPSByb3dzLnNvbWUoZnVuY3Rpb24gKGVsZW1lbnRzKSB7IHJldHVybiBlbGVtZW50cy5zb21lKFRyYW5zaXRpb24uaW5Qcm9ncmVzcyk7IH0pOwogICAgICAgICAgICAgICAgICAgIHZhciB0cmFuc2xhdGVzID0gZmFsc2U7CiAgICAgICAgICAgICAgICAgICAgdmFyIGVsSGVpZ2h0ID0gJyc7CgogICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLm1hc29ucnkgJiYgdGhpcy5sZW5ndGgpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBoZWlnaHQgPSAwOwoKICAgICAgICAgICAgICAgICAgICAgICAgdHJhbnNsYXRlcyA9IHJvd3MucmVkdWNlKGZ1bmN0aW9uICh0cmFuc2xhdGVzLCByb3csIGkpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cmFuc2xhdGVzW2ldID0gcm93Lm1hcChmdW5jdGlvbiAoXywgaikgeyByZXR1cm4gaSA9PT0gMCA/IDAgOiB0b0Zsb2F0KHRyYW5zbGF0ZXNbaSAtIDFdW2pdKSArIChoZWlnaHQgLSB0b0Zsb2F0KHJvd3NbaSAtIDFdW2pdICYmIHJvd3NbaSAtIDFdW2pdLm9mZnNldEhlaWdodCkpOyB9KTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhlaWdodCA9IHJvdy5yZWR1Y2UoZnVuY3Rpb24gKGhlaWdodCwgZWwpIHsgcmV0dXJuIE1hdGgubWF4KGhlaWdodCwgZWwub2Zmc2V0SGVpZ2h0KTsgfSwgMCk7CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRyYW5zbGF0ZXM7CgogICAgICAgICAgICAgICAgICAgICAgICB9LCBbXSk7CgogICAgICAgICAgICAgICAgICAgICAgICBlbEhlaWdodCA9IG1heENvbHVtbkhlaWdodChyb3dzKSArIGdldE1hcmdpblRvcCh0aGlzLiRlbCwgdGhpcy5tYXJnaW4pICogKHJvd3MubGVuZ3RoIC0gMSk7CgogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgdmFyIHBhZGRpbmcgPSB0aGlzLnBhcmFsbGF4ICYmIGdldFBhZGRpbmdCb3R0b20odGhpcy5wYXJhbGxheCwgcm93cywgdHJhbnNsYXRlcyk7CgogICAgICAgICAgICAgICAgICAgIHJldHVybiB7cGFkZGluZzogcGFkZGluZywgcm93czogcm93cywgdHJhbnNsYXRlczogdHJhbnNsYXRlcywgaGVpZ2h0OiAhdHJhbnNpdGlvbkluUHJvZ3Jlc3MgPyBlbEhlaWdodCA6IGZhbHNlfTsKCiAgICAgICAgICAgICAgICB9LAoKICAgICAgICAgICAgICAgIHdyaXRlOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgc3RhY2tzID0gcmVmLnN0YWNrczsKICAgICAgICAgICAgICAgICAgICB2YXIgaGVpZ2h0ID0gcmVmLmhlaWdodDsKICAgICAgICAgICAgICAgICAgICB2YXIgcGFkZGluZyA9IHJlZi5wYWRkaW5nOwoKCiAgICAgICAgICAgICAgICAgICAgdG9nZ2xlQ2xhc3ModGhpcy4kZWwsIHRoaXMuY2xzU3RhY2ssIHN0YWNrcyk7CgogICAgICAgICAgICAgICAgICAgIGNzcyh0aGlzLiRlbCwgJ3BhZGRpbmdCb3R0b20nLCBwYWRkaW5nKTsKICAgICAgICAgICAgICAgICAgICBoZWlnaHQgIT09IGZhbHNlICYmIGNzcyh0aGlzLiRlbCwgJ2hlaWdodCcsIGhlaWdodCk7CgogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBldmVudHM6IFsncmVzaXplJ10KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgcmVhZDogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGhlaWdodCQxID0gcmVmLmhlaWdodDsKCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgICAgICAgICAgICAgc2Nyb2xsZWQ6IHRoaXMucGFyYWxsYXgKICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gc2Nyb2xsZWRPdmVyKHRoaXMuJGVsLCBoZWlnaHQkMSA/IGhlaWdodCQxIC0gaGVpZ2h0KHRoaXMuJGVsKSA6IDApICogdGhpcy5wYXJhbGxheAogICAgICAgICAgICAgICAgICAgICAgICAgICAgOiBmYWxzZQogICAgICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgICAgICB9LAoKICAgICAgICAgICAgICAgIHdyaXRlOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgcm93cyA9IHJlZi5yb3dzOwogICAgICAgICAgICAgICAgICAgIHZhciBzY3JvbGxlZCA9IHJlZi5zY3JvbGxlZDsKICAgICAgICAgICAgICAgICAgICB2YXIgdHJhbnNsYXRlcyA9IHJlZi50cmFuc2xhdGVzOwoKCiAgICAgICAgICAgICAgICAgICAgaWYgKHNjcm9sbGVkID09PSBmYWxzZSAmJiAhdHJhbnNsYXRlcykgewogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICByb3dzLmZvckVhY2goZnVuY3Rpb24gKHJvdywgaSkgeyByZXR1cm4gcm93LmZvckVhY2goZnVuY3Rpb24gKGVsLCBqKSB7IHJldHVybiBjc3MoZWwsICd0cmFuc2Zvcm0nLCAhc2Nyb2xsZWQgJiYgIXRyYW5zbGF0ZXMgPyAnJyA6ICgidHJhbnNsYXRlWSgiICsgKCh0cmFuc2xhdGVzICYmIC10cmFuc2xhdGVzW2ldW2pdKSArIChzY3JvbGxlZCA/IGogJSAyID8gc2Nyb2xsZWQgOiBzY3JvbGxlZCAvIDggOiAwKSkgKyAicHgpIikpOyB9CiAgICAgICAgICAgICAgICAgICAgICAgICk7IH0KICAgICAgICAgICAgICAgICAgICApOwoKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgZXZlbnRzOiBbJ3Njcm9sbCcsICdyZXNpemUnXQoKICAgICAgICAgICAgfQoKICAgICAgICBdCgogICAgfTsKCiAgICBmdW5jdGlvbiBnZXRQYWRkaW5nQm90dG9tKGRpc3RhbmNlLCByb3dzLCB0cmFuc2xhdGVzKSB7CiAgICAgICAgdmFyIGNvbHVtbiA9IDA7CiAgICAgICAgdmFyIG1heCA9IDA7CiAgICAgICAgdmFyIG1heFNjcm9sbGVkID0gMDsKICAgICAgICBmb3IgKHZhciBpID0gcm93cy5sZW5ndGggLSAxOyBpID49IDA7IGktLSkgewogICAgICAgICAgICBmb3IgKHZhciBqID0gY29sdW1uOyBqIDwgcm93c1tpXS5sZW5ndGg7IGorKykgewogICAgICAgICAgICAgICAgdmFyIGVsID0gcm93c1tpXVtqXTsKICAgICAgICAgICAgICAgIHZhciBib3R0b20gPSBlbC5vZmZzZXRUb3AgKyBoZWlnaHQoZWwpICsgKHRyYW5zbGF0ZXMgJiYgLXRyYW5zbGF0ZXNbaV1bal0pOwogICAgICAgICAgICAgICAgbWF4ID0gTWF0aC5tYXgobWF4LCBib3R0b20pOwogICAgICAgICAgICAgICAgbWF4U2Nyb2xsZWQgPSBNYXRoLm1heChtYXhTY3JvbGxlZCwgYm90dG9tICsgKGogJSAyID8gZGlzdGFuY2UgOiBkaXN0YW5jZSAvIDgpKTsKICAgICAgICAgICAgICAgIGNvbHVtbisrOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBtYXhTY3JvbGxlZCAtIG1heDsKICAgIH0KCiAgICBmdW5jdGlvbiBnZXRNYXJnaW5Ub3Aocm9vdCwgY2xzKSB7CgogICAgICAgIHZhciBub2RlcyA9IHRvTm9kZXMocm9vdC5jaGlsZHJlbik7CiAgICAgICAgdmFyIHJlZiA9IG5vZGVzLmZpbHRlcihmdW5jdGlvbiAoZWwpIHsgcmV0dXJuIGhhc0NsYXNzKGVsLCBjbHMpOyB9KTsKICAgICAgICB2YXIgbm9kZSA9IHJlZlswXTsKCiAgICAgICAgcmV0dXJuIHRvRmxvYXQobm9kZQogICAgICAgICAgICA/IGNzcyhub2RlLCAnbWFyZ2luVG9wJykKICAgICAgICAgICAgOiBjc3Mobm9kZXNbMF0sICdwYWRkaW5nTGVmdCcpKTsKICAgIH0KCiAgICBmdW5jdGlvbiBtYXhDb2x1bW5IZWlnaHQocm93cykgewogICAgICAgIHJldHVybiBNYXRoLm1heC5hcHBseShNYXRoLCByb3dzLnJlZHVjZShmdW5jdGlvbiAoc3VtLCByb3cpIHsKICAgICAgICAgICAgcm93LmZvckVhY2goZnVuY3Rpb24gKGVsLCBpKSB7IHJldHVybiBzdW1baV0gPSAoc3VtW2ldIHx8IDApICsgZWwub2Zmc2V0SGVpZ2h0OyB9KTsKICAgICAgICAgICAgcmV0dXJuIHN1bTsKICAgICAgICB9LCBbXSkpOwogICAgfQoKICAgIC8vIElFIDExIGZpeCAobWluLWhlaWdodCBvbiBhIGZsZXggY29udGFpbmVyIHdvbid0IGFwcGx5IHRvIGl0cyBmbGV4IGl0ZW1zKQogICAgdmFyIEZsZXhCdWcgPSBpc0lFID8gewoKICAgICAgICBwcm9wczogewogICAgICAgICAgICBzZWxNaW5IZWlnaHQ6IFN0cmluZwogICAgICAgIH0sCgogICAgICAgIGRhdGE6IHsKICAgICAgICAgICAgc2VsTWluSGVpZ2h0OiBmYWxzZSwKICAgICAgICAgICAgZm9yY2VIZWlnaHQ6IGZhbHNlCiAgICAgICAgfSwKCiAgICAgICAgY29tcHV0ZWQ6IHsKCiAgICAgICAgICAgIGVsZW1lbnRzOiBmdW5jdGlvbihyZWYsICRlbCkgewogICAgICAgICAgICAgICAgdmFyIHNlbE1pbkhlaWdodCA9IHJlZi5zZWxNaW5IZWlnaHQ7CgogICAgICAgICAgICAgICAgcmV0dXJuIHNlbE1pbkhlaWdodCA/ICQkKHNlbE1pbkhlaWdodCwgJGVsKSA6IFskZWxdOwogICAgICAgICAgICB9CgogICAgICAgIH0sCgogICAgICAgIHVwZGF0ZTogWwoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIHJlYWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIGNzcyh0aGlzLmVsZW1lbnRzLCAnaGVpZ2h0JywgJycpOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBvcmRlcjogLTUsCgogICAgICAgICAgICAgICAgZXZlbnRzOiBbJ3Jlc2l6ZSddCgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIHdyaXRlOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCiAgICAgICAgICAgICAgICAgICAgdGhpcy5lbGVtZW50cy5mb3JFYWNoKGZ1bmN0aW9uIChlbCkgewogICAgICAgICAgICAgICAgICAgICAgICB2YXIgaGVpZ2h0ID0gdG9GbG9hdChjc3MoZWwsICdtaW5IZWlnaHQnKSk7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChoZWlnaHQgJiYgKHRoaXMkMS5mb3JjZUhlaWdodCB8fCBNYXRoLnJvdW5kKGhlaWdodCArIGJveE1vZGVsQWRqdXN0KCdoZWlnaHQnLCBlbCwgJ2NvbnRlbnQtYm94JykpID49IGVsLm9mZnNldEhlaWdodCkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNzcyhlbCwgJ2hlaWdodCcsIGhlaWdodCk7CiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgb3JkZXI6IDUsCgogICAgICAgICAgICAgICAgZXZlbnRzOiBbJ3Jlc2l6ZSddCgogICAgICAgICAgICB9CgogICAgICAgIF0KCiAgICB9IDoge307CgogICAgdmFyIEhlaWdodE1hdGNoID0gewoKICAgICAgICBtaXhpbnM6IFtGbGV4QnVnXSwKCiAgICAgICAgYXJnczogJ3RhcmdldCcsCgogICAgICAgIHByb3BzOiB7CiAgICAgICAgICAgIHRhcmdldDogU3RyaW5nLAogICAgICAgICAgICByb3c6IEJvb2xlYW4KICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIHRhcmdldDogJz4gKicsCiAgICAgICAgICAgIHJvdzogdHJ1ZSwKICAgICAgICAgICAgZm9yY2VIZWlnaHQ6IHRydWUKICAgICAgICB9LAoKICAgICAgICBjb21wdXRlZDogewoKICAgICAgICAgICAgZWxlbWVudHM6IGZ1bmN0aW9uKHJlZiwgJGVsKSB7CiAgICAgICAgICAgICAgICB2YXIgdGFyZ2V0ID0gcmVmLnRhcmdldDsKCiAgICAgICAgICAgICAgICByZXR1cm4gJCQodGFyZ2V0LCAkZWwpOwogICAgICAgICAgICB9CgogICAgICAgIH0sCgogICAgICAgIHVwZGF0ZTogewoKICAgICAgICAgICAgcmVhZDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgICAgIHJvd3M6ICh0aGlzLnJvdyA/IGdldFJvd3ModGhpcy5lbGVtZW50cykgOiBbdGhpcy5lbGVtZW50c10pLm1hcChtYXRjaCkKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB3cml0ZTogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgcm93cyA9IHJlZi5yb3dzOwoKICAgICAgICAgICAgICAgIHJvd3MuZm9yRWFjaChmdW5jdGlvbiAocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBoZWlnaHRzID0gcmVmLmhlaWdodHM7CiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBlbGVtZW50cyA9IHJlZi5lbGVtZW50czsKCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBlbGVtZW50cy5mb3JFYWNoKGZ1bmN0aW9uIChlbCwgaSkgeyByZXR1cm4gY3NzKGVsLCAnbWluSGVpZ2h0JywgaGVpZ2h0c1tpXSk7IH0KICAgICAgICAgICAgICAgICAgICApOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGV2ZW50czogWydyZXNpemUnXQoKICAgICAgICB9CgogICAgfTsKCiAgICBmdW5jdGlvbiBtYXRjaChlbGVtZW50cykgewogICAgICAgIHZhciBhc3NpZ247CgoKICAgICAgICBpZiAoZWxlbWVudHMubGVuZ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dmFyIGhlaWdodHMgPSBlbGVtZW50cy5tYXAoZnVuY3Rpb24gKGVsKSB7IHJldHVybiBvZmZzZXQoZWwpLmhlaWdodCAtIGJveE1vZGVsQWRqdXN0KCdoZWlnaHQnLCBlbCwgJ2NvbnRlbnQtYm94Jyk7IH0pOwogICAgICAgIHZhciBtYXggPSBNYXRoLm1heC5hcHBseShudWxsLCBoZWlnaHRzKTsKCiAgICAgICAgcmV0dXJuIHtoZWlnaHRzOiBoZWlnaHRzLCBtYXg6IG1heH07CiAgICB9CgogICAgdmFyIEhlaWdodFZpZXdwb3J0ID0gewoKICAgICAgICBtaXhpbnM6IFtGbGV4QnVnXSwKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgZXhwYW5kOiBCb29sZWFuLAogICAgICAgICAgICBvZmZzZXRUb3A6IEJvb2xlYW4sCiAgICAgICAgICAgIG9mZnNldEJvdHRvbTogQm9vbGVhbiwKICAgICAgICAgICAgbWluSGVpZ2h0OiBOdW1iZXIKICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIGV4cGFuZDogZmFsc2UsCiAgICAgICAgICAgIG9mZnNldFRvcDogZmFsc2UsCiAgICAgICAgICAgIG9mZnNldEJvdHRvbTogZmFsc2UsCiAgICAgICAgICAgIG1pbkhlaWdodDogMAogICAgICAgIH0sCgogICAgICAgIHVwZGF0ZTogewoKICAgICAgICAgICAgcmVhZDogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgcHJldiA9IHJlZi5taW5IZWlnaHQ7CgoKICAgICAgICAgICAgICAgIGlmICghaXNWaXNpYmxlKHRoaXMuJGVsKSkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB2YXIgbWluSGVpZ2h0ID0gJyc7CiAgICAgICAgICAgICAgICB2YXIgYm94ID0gYm94TW9kZWxBZGp1c3QoJ2hlaWdodCcsIHRoaXMuJGVsLCAnY29udGVudC1ib3gnKTsKCiAgICAgICAgICAgICAgICBpZiAodGhpcy5leHBhbmQpIHsKCiAgICAgICAgICAgICAgICAgICAgdGhpcy4kZWwuZGF0YXNldC5oZWlnaHRFeHBhbmQgPSAnJzsKCiAgICAgICAgICAgICAgICAgICAgaWYgKCQoJ1tkYXRhLWhlaWdodC1leHBhbmRdJykgIT09IHRoaXMuJGVsKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIG1pbkhlaWdodCA9IGhlaWdodCh3aW5kb3cpIC0gKG9mZnNldEhlaWdodChkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQpIC0gb2Zmc2V0SGVpZ2h0KHRoaXMuJGVsKSkgLSBib3ggfHwgJyc7CgogICAgICAgICAgICAgICAgfSBlbHNlIHsKCiAgICAgICAgICAgICAgICAgICAgLy8gb24gbW9iaWxlIGRldmljZXMgKGlPUyBhbmQgQW5kcm9pZCkgd2luZG93LmlubmVySGVpZ2h0ICE9PSAxMDB2aAogICAgICAgICAgICAgICAgICAgIG1pbkhlaWdodCA9ICdjYWxjKDEwMHZoJzsKCiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMub2Zmc2V0VG9wKSB7CgogICAgICAgICAgICAgICAgICAgICAgICB2YXIgcmVmJDEgPSBvZmZzZXQodGhpcy4kZWwpOwogICAgICAgICAgICAgICAgICAgICAgICB2YXIgdG9wID0gcmVmJDEudG9wOwogICAgICAgICAgICAgICAgICAgICAgICBtaW5IZWlnaHQgKz0gdG9wID4gMCAmJiB0b3AgPCBoZWlnaHQod2luZG93KSAvIDIgPyAoIiAtICIgKyB0b3AgKyAicHgiKSA6ICcnOwoKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLm9mZnNldEJvdHRvbSA9PT0gdHJ1ZSkgewoKICAgICAgICAgICAgICAgICAgICAgICAgbWluSGVpZ2h0ICs9ICIgLSAiICsgKG9mZnNldEhlaWdodCh0aGlzLiRlbC5uZXh0RWxlbWVudFNpYmxpbmcpKSArICJweCI7CgogICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoaXNOdW1lcmljKHRoaXMub2Zmc2V0Qm90dG9tKSkgewoKICAgICAgICAgICAgICAgICAgICAgICAgbWluSGVpZ2h0ICs9ICIgLSAiICsgKHRoaXMub2Zmc2V0Qm90dG9tKSArICJ2aCI7CgogICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5vZmZzZXRCb3R0b20gJiYgZW5kc1dpdGgodGhpcy5vZmZzZXRCb3R0b20sICdweCcpKSB7CgogICAgICAgICAgICAgICAgICAgICAgICBtaW5IZWlnaHQgKz0gIiAtICIgKyAodG9GbG9hdCh0aGlzLm9mZnNldEJvdHRvbSkpICsgInB4IjsKCiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmIChpc1N0cmluZyh0aGlzLm9mZnNldEJvdHRvbSkpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgIG1pbkhlaWdodCArPSAiIC0gIiArIChvZmZzZXRIZWlnaHQocXVlcnkodGhpcy5vZmZzZXRCb3R0b20sIHRoaXMuJGVsKSkpICsgInB4IjsKCiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICBtaW5IZWlnaHQgKz0gKGJveCA/ICgiIC0gIiArIGJveCArICJweCIpIDogJycpICsgIikiOwoKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICByZXR1cm4ge21pbkhlaWdodDogbWluSGVpZ2h0LCBwcmV2OiBwcmV2fTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHdyaXRlOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBtaW5IZWlnaHQgPSByZWYubWluSGVpZ2h0OwogICAgICAgICAgICAgICAgdmFyIHByZXYgPSByZWYucHJldjsKCgogICAgICAgICAgICAgICAgY3NzKHRoaXMuJGVsLCB7bWluSGVpZ2h0OiBtaW5IZWlnaHR9KTsKCiAgICAgICAgICAgICAgICBpZiAobWluSGVpZ2h0ICE9PSBwcmV2KSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcy4kdXBkYXRlKHRoaXMuJGVsLCAncmVzaXplJyk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgaWYgKHRoaXMubWluSGVpZ2h0ICYmIHRvRmxvYXQoY3NzKHRoaXMuJGVsLCAnbWluSGVpZ2h0JykpIDwgdGhpcy5taW5IZWlnaHQpIHsKICAgICAgICAgICAgICAgICAgICBjc3ModGhpcy4kZWwsICdtaW5IZWlnaHQnLCB0aGlzLm1pbkhlaWdodCk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgZXZlbnRzOiBbJ3Jlc2l6ZSddCgogICAgICAgIH0KCiAgICB9OwoKICAgIGZ1bmN0aW9uIG9mZnNldEhlaWdodChlbCkgewogICAgICAgIHJldHVybiBlbCAmJiBvZmZzZXQoZWwpLmhlaWdodCB8fCAwOwogICAgfQoKICAgIHZhciBTdmcgPSB7CgogICAgICAgIGFyZ3M6ICdzcmMnLAoKICAgICAgICBwcm9wczogewogICAgICAgICAgICBpZDogQm9vbGVhbiwKICAgICAgICAgICAgaWNvbjogU3RyaW5nLAogICAgICAgICAgICBzcmM6IFN0cmluZywKICAgICAgICAgICAgc3R5bGU6IFN0cmluZywKICAgICAgICAgICAgd2lkdGg6IE51bWJlciwKICAgICAgICAgICAgaGVpZ2h0OiBOdW1iZXIsCiAgICAgICAgICAgIHJhdGlvOiBOdW1iZXIsCiAgICAgICAgICAgIGNsYXNzOiBTdHJpbmcsCiAgICAgICAgICAgIHN0cm9rZUFuaW1hdGlvbjogQm9vbGVhbiwKICAgICAgICAgICAgZm9jdXNhYmxlOiBCb29sZWFuLCAvLyBJRSAxMQogICAgICAgICAgICBhdHRyaWJ1dGVzOiAnbGlzdCcKICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIHJhdGlvOiAxLAogICAgICAgICAgICBpbmNsdWRlOiBbJ3N0eWxlJywgJ2NsYXNzJywgJ2ZvY3VzYWJsZSddLAogICAgICAgICAgICBjbGFzczogJycsCiAgICAgICAgICAgIHN0cm9rZUFuaW1hdGlvbjogZmFsc2UKICAgICAgICB9LAoKICAgICAgICBiZWZvcmVDb25uZWN0OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CiAgICAgICAgICAgIHZhciBhc3NpZ247CgoKICAgICAgICAgICAgdGhpcy5jbGFzcyArPSAnIHVrLXN2Zyc7CgogICAgICAgICAgICBpZiAoIXRoaXMuaWNvbiAmJiBpbmNsdWRlcyh0aGlzLnNyYywgJyMnKSkgewoKICAgICAgICAgICAgICAgIHZhciBwYXJ0cyA9IHRoaXMuc3JjLnNwbGl0KCcjJyk7CgogICAgICAgICAgICAgICAgaWYgKHBhcnRzLmxlbmd0aCA+IDEpIHsKICAgICAgICAgICAgICAgICAgICAoYXNzaWduID0gcGFydHMsIHRoaXMuc3JjID0gYXNzaWduWzBdLCB0aGlzLmljb24gPSBhc3NpZ25bMV0pOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICB0aGlzLnN2ZyA9IHRoaXMuZ2V0U3ZnKCkudGhlbihmdW5jdGlvbiAoZWwpIHsKICAgICAgICAgICAgICAgIHRoaXMkMS5hcHBseUF0dHJpYnV0ZXMoZWwpOwogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMkMS5zdmdFbCA9IGluc2VydFNWRyhlbCwgdGhpcyQxLiRlbCk7CiAgICAgICAgICAgIH0sIG5vb3ApOwoKICAgICAgICB9LAoKICAgICAgICBkaXNjb25uZWN0ZWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICBpZiAoaXNWb2lkRWxlbWVudCh0aGlzLiRlbCkpIHsKICAgICAgICAgICAgICAgIGF0dHIodGhpcy4kZWwsICdoaWRkZW4nLCBudWxsKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgaWYgKHRoaXMuc3ZnKSB7CiAgICAgICAgICAgICAgICB0aGlzLnN2Zy50aGVuKGZ1bmN0aW9uIChzdmcpIHsgcmV0dXJuICghdGhpcyQxLl9jb25uZWN0ZWQgfHwgc3ZnICE9PSB0aGlzJDEuc3ZnRWwpICYmIHJlbW92ZShzdmcpOyB9LCBub29wKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgdGhpcy5zdmcgPSB0aGlzLnN2Z0VsID0gbnVsbDsKCiAgICAgICAgfSwKCiAgICAgICAgdXBkYXRlOiB7CgogICAgICAgICAgICByZWFkOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHJldHVybiAhISh0aGlzLnN0cm9rZUFuaW1hdGlvbiAmJiB0aGlzLnN2Z0VsICYmIGlzVmlzaWJsZSh0aGlzLnN2Z0VsKSk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB3cml0ZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICBhcHBseUFuaW1hdGlvbih0aGlzLnN2Z0VsKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHR5cGU6IFsncmVzaXplJ10KCiAgICAgICAgfSwKCiAgICAgICAgbWV0aG9kczogewoKICAgICAgICAgICAgZ2V0U3ZnOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKICAgICAgICAgICAgICAgIHJldHVybiBsb2FkU1ZHKHRoaXMuc3JjKS50aGVuKGZ1bmN0aW9uIChzdmcpIHsgcmV0dXJuIHBhcnNlU1ZHKHN2ZywgdGhpcyQxLmljb24pIHx8IFByb21pc2UucmVqZWN0KCdTVkcgbm90IGZvdW5kLicpOyB9CiAgICAgICAgICAgICAgICApOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgYXBwbHlBdHRyaWJ1dGVzOiBmdW5jdGlvbihlbCkgewogICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgoKICAgICAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gdGhpcy4kb3B0aW9ucy5wcm9wcykgewogICAgICAgICAgICAgICAgICAgIGlmICh0aGlzW3Byb3BdICYmIGluY2x1ZGVzKHRoaXMuaW5jbHVkZSwgcHJvcCkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgYXR0cihlbCwgcHJvcCwgdGhpc1twcm9wXSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIGZvciAodmFyIGF0dHJpYnV0ZSBpbiB0aGlzLmF0dHJpYnV0ZXMpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgcmVmID0gdGhpcy5hdHRyaWJ1dGVzW2F0dHJpYnV0ZV0uc3BsaXQoJzonLCAyKTsKICAgICAgICAgICAgICAgICAgICB2YXIgcHJvcCQxID0gcmVmWzBdOwogICAgICAgICAgICAgICAgICAgIHZhciB2YWx1ZSA9IHJlZlsxXTsKICAgICAgICAgICAgICAgICAgICBhdHRyKGVsLCBwcm9wJDEsIHZhbHVlKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBpZiAoIXRoaXMuaWQpIHsKICAgICAgICAgICAgICAgICAgICByZW1vdmVBdHRyKGVsLCAnaWQnKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB2YXIgcHJvcHMgPSBbJ3dpZHRoJywgJ2hlaWdodCddOwogICAgICAgICAgICAgICAgdmFyIGRpbWVuc2lvbnMgPSBbdGhpcy53aWR0aCwgdGhpcy5oZWlnaHRdOwoKICAgICAgICAgICAgICAgIGlmICghZGltZW5zaW9ucy5zb21lKGZ1bmN0aW9uICh2YWwpIHsgcmV0dXJuIHZhbDsgfSkpIHsKICAgICAgICAgICAgICAgICAgICBkaW1lbnNpb25zID0gcHJvcHMubWFwKGZ1bmN0aW9uIChwcm9wKSB7IHJldHVybiBhdHRyKGVsLCBwcm9wKTsgfSk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdmFyIHZpZXdCb3ggPSBhdHRyKGVsLCAndmlld0JveCcpOwogICAgICAgICAgICAgICAgaWYgKHZpZXdCb3ggJiYgIWRpbWVuc2lvbnMuc29tZShmdW5jdGlvbiAodmFsKSB7IHJldHVybiB2YWw7IH0pKSB7CiAgICAgICAgICAgICAgICAgICAgZGltZW5zaW9ucyA9IHZpZXdCb3guc3BsaXQoJyAnKS5zbGljZSgyKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBkaW1lbnNpb25zLmZvckVhY2goZnVuY3Rpb24gKHZhbCwgaSkgewogICAgICAgICAgICAgICAgICAgIHZhbCA9ICh2YWwgfCAwKSAqIHRoaXMkMS5yYXRpbzsKICAgICAgICAgICAgICAgICAgICB2YWwgJiYgYXR0cihlbCwgcHJvcHNbaV0sIHZhbCk7CgogICAgICAgICAgICAgICAgICAgIGlmICh2YWwgJiYgIWRpbWVuc2lvbnNbaSBeIDFdKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJlbW92ZUF0dHIoZWwsIHByb3BzW2kgXiAxXSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfSk7CgogICAgICAgICAgICAgICAgYXR0cihlbCwgJ2RhdGEtc3ZnJywgdGhpcy5pY29uIHx8IHRoaXMuc3JjKTsKCiAgICAgICAgICAgIH0KCiAgICAgICAgfQoKICAgIH07CgogICAgdmFyIHN2Z3MgPSB7fTsKCiAgICBmdW5jdGlvbiBsb2FkU1ZHKHNyYykgewoKICAgICAgICBpZiAoc3Znc1tzcmNdKSB7CiAgICAgICAgICAgIHJldHVybiBzdmdzW3NyY107CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gc3Znc1tzcmNdID0gbmV3IFByb21pc2UoZnVuY3Rpb24gKHJlc29sdmUsIHJlamVjdCkgewoKICAgICAgICAgICAgaWYgKCFzcmMpIHsKICAgICAgICAgICAgICAgIHJlamVjdCgpOwogICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICB9CgogICAgICAgICAgICBpZiAoc3RhcnRzV2l0aChzcmMsICdkYXRhOicpKSB7CiAgICAgICAgICAgICAgICByZXNvbHZlKGRlY29kZVVSSUNvbXBvbmVudChzcmMuc3BsaXQoJywnKVsxXSkpOwogICAgICAgICAgICB9IGVsc2UgewoKICAgICAgICAgICAgICAgIGFqYXgoc3JjKS50aGVuKAogICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uICh4aHIpIHsgcmV0dXJuIHJlc29sdmUoeGhyLnJlc3BvbnNlKTsgfSwKICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiAoKSB7IHJldHVybiByZWplY3QoJ1NWRyBub3QgZm91bmQuJyk7IH0KICAgICAgICAgICAgICAgICk7CgogICAgICAgICAgICB9CgogICAgICAgIH0pOwogICAgfQoKICAgIGZ1bmN0aW9uIHBhcnNlU1ZHKHN2ZywgaWNvbikgewoKICAgICAgICBpZiAoaWNvbiAmJiBpbmNsdWRlcyhzdmcsICc8c3ltYm9sJykpIHsKICAgICAgICAgICAgc3ZnID0gcGFyc2VTeW1ib2xzKHN2ZywgaWNvbikgfHwgc3ZnOwogICAgICAgIH0KCiAgICAgICAgc3ZnID0gJChzdmcuc3Vic3RyKHN2Zy5pbmRleE9mKCc8c3ZnJykpKTsKICAgICAgICByZXR1cm4gc3ZnICYmIHN2Zy5oYXNDaGlsZE5vZGVzKCkgJiYgc3ZnOwogICAgfQoKICAgIHZhciBzeW1ib2xSZSA9IC88c3ltYm9sKC4qP2lkPShbJyJdKSguKj8pXDJbXl0qPzxcLylzeW1ib2w+L2c7CiAgICB2YXIgc3ltYm9scyA9IHt9OwoKICAgIGZ1bmN0aW9uIHBhcnNlU3ltYm9scyhzdmcsIGljb24pIHsKCiAgICAgICAgaWYg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QsCiAgICAgICAgJ3BhZ2luYXRpb24tcHJldmlvdXMnOiBwYWdpbmF0aW9uUHJldmlvdXMsCiAgICAgICAgJ3NlYXJjaC1pY29uJzogc2VhcmNoSWNvbiwKICAgICAgICAnc2VhcmNoLWxhcmdlJzogc2VhcmNoTGFyZ2UsCiAgICAgICAgJ3NlYXJjaC1uYXZiYXInOiBzZWFyY2hOYXZiYXIsCiAgICAgICAgJ3NsaWRlbmF2LW5leHQnOiBzbGlkZW5hdk5leHQsCiAgICAgICAgJ3NsaWRlbmF2LW5leHQtbGFyZ2UnOiBzbGlkZW5hdk5leHRMYXJnZSwKICAgICAgICAnc2xpZGVuYXYtcHJldmlvdXMnOiBzbGlkZW5hdlByZXZpb3VzLAogICAgICAgICdzbGlkZW5hdi1wcmV2aW91cy1sYXJnZSc6IHNsaWRlbmF2UHJldmlvdXNMYXJnZQogICAgfTsKCiAgICB2YXIgSWNvbiA9IHsKCiAgICAgICAgaW5zdGFsbDogaW5zdGFsbCwKCiAgICAgICAgZXh0ZW5kczogU3ZnLAoKICAgICAgICBhcmdzOiAnaWNvbicsCgogICAgICAgIHByb3BzOiBbJ2ljb24nXSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICBpbmNsdWRlOiBbJ2ZvY3VzYWJsZSddCiAgICAgICAgfSwKCiAgICAgICAgaXNJY29uOiB0cnVlLAoKICAgICAgICBiZWZvcmVDb25uZWN0OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgYWRkQ2xhc3ModGhpcy4kZWwsICd1ay1pY29uJyk7CiAgICAgICAgfSwKCiAgICAgICAgbWV0aG9kczogewoKICAgICAgICAgICAgZ2V0U3ZnOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgICAgICB2YXIgaWNvbiA9IGdldEljb24oYXBwbHlSdGwodGhpcy5pY29uKSk7CgogICAgICAgICAgICAgICAgaWYgKCFpY29uKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFByb21pc2UucmVqZWN0KCdJY29uIG5vdCBmb3VuZC4nKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKGljb24pOwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICB9OwoKICAgIHZhciBJY29uQ29tcG9uZW50ID0gewoKICAgICAgICBhcmdzOiBmYWxzZSwKCiAgICAgICAgZXh0ZW5kczogSWNvbiwKCiAgICAgICAgZGF0YTogZnVuY3Rpb24gKHZtKSB7IHJldHVybiAoewogICAgICAgICAgICBpY29uOiBoeXBoZW5hdGUodm0uY29uc3RydWN0b3Iub3B0aW9ucy5uYW1lKQogICAgICAgIH0pOyB9LAoKICAgICAgICBiZWZvcmVDb25uZWN0OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgYWRkQ2xhc3ModGhpcy4kZWwsIHRoaXMuJG5hbWUpOwogICAgICAgIH0KCiAgICB9OwoKICAgIHZhciBTbGlkZW5hdiA9IHsKCiAgICAgICAgZXh0ZW5kczogSWNvbkNvbXBvbmVudCwKCiAgICAgICAgYmVmb3JlQ29ubmVjdDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIGFkZENsYXNzKHRoaXMuJGVsLCAndWstc2xpZGVuYXYnKTsKICAgICAgICB9LAoKICAgICAgICBjb21wdXRlZDogewoKICAgICAgICAgICAgaWNvbjogZnVuY3Rpb24ocmVmLCAkZWwpIHsKICAgICAgICAgICAgICAgIHZhciBpY29uID0gcmVmLmljb247CgogICAgICAgICAgICAgICAgcmV0dXJuIGhhc0NsYXNzKCRlbCwgJ3VrLXNsaWRlbmF2LWxhcmdlJykKICAgICAgICAgICAgICAgICAgICA/IChpY29uICsgIi1sYXJnZSIpCiAgICAgICAgICAgICAgICAgICAgOiBpY29uOwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICB9OwoKICAgIHZhciBTZWFyY2ggPSB7CgogICAgICAgIGV4dGVuZHM6IEljb25Db21wb25lbnQsCgogICAgICAgIGNvbXB1dGVkOiB7CgogICAgICAgICAgICBpY29uOiBmdW5jdGlvbihyZWYsICRlbCkgewogICAgICAgICAgICAgICAgdmFyIGljb24gPSByZWYuaWNvbjsKCiAgICAgICAgICAgICAgICByZXR1cm4gaGFzQ2xhc3MoJGVsLCAndWstc2VhcmNoLWljb24nKSAmJiBwYXJlbnRzKCRlbCwgJy51ay1zZWFyY2gtbGFyZ2UnKS5sZW5ndGgKICAgICAgICAgICAgICAgICAgICA/ICdzZWFyY2gtbGFyZ2UnCiAgICAgICAgICAgICAgICAgICAgOiBwYXJlbnRzKCRlbCwgJy51ay1zZWFyY2gtbmF2YmFyJykubGVuZ3RoCiAgICAgICAgICAgICAgICAgICAgICAgID8gJ3NlYXJjaC1uYXZiYXInCiAgICAgICAgICAgICAgICAgICAgICAgIDogaWNvbjsKICAgICAgICAgICAgfQoKICAgICAgICB9CgogICAgfTsKCiAgICB2YXIgQ2xvc2UgPSB7CgogICAgICAgIGV4dGVuZHM6IEljb25Db21wb25lbnQsCgogICAgICAgIGNvbXB1dGVkOiB7CgogICAgICAgICAgICBpY29uOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHJldHVybiAoImNsb3NlLSIgKyAoaGFzQ2xhc3ModGhpcy4kZWwsICd1ay1jbG9zZS1sYXJnZScpID8gJ2xhcmdlJyA6ICdpY29uJykpOwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICB9OwoKICAgIHZhciBTcGlubmVyID0gewoKICAgICAgICBleHRlbmRzOiBJY29uQ29tcG9uZW50LAoKICAgICAgICBjb25uZWN0ZWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCiAgICAgICAgICAgIHRoaXMuc3ZnLnRoZW4oZnVuY3Rpb24gKHN2ZykgeyByZXR1cm4gdGhpcyQxLnJhdGlvICE9PSAxICYmIGNzcygkKCdjaXJjbGUnLCBzdmcpLCAnc3Ryb2tlV2lkdGgnLCAxIC8gdGhpcyQxLnJhdGlvKTsgfSwgbm9vcCk7CiAgICAgICAgfQoKICAgIH07CgogICAgZnVuY3Rpb24gaW5zdGFsbChVSWtpdCkgewogICAgICAgIFVJa2l0Lmljb24uYWRkID0gZnVuY3Rpb24gKG5hbWUsIHN2ZykgewogICAgICAgICAgICB2YXIgb2JqOwoKCiAgICAgICAgICAgIHZhciBhZGRlZCA9IGlzU3RyaW5nKG5hbWUpID8gKCggb2JqID0ge30sIG9ialtuYW1lXSA9IHN2Zywgb2JqICkpIDogbmFtZTsKICAgICAgICAgICAgZWFjaChhZGRlZCwgZnVuY3Rpb24gKHN2ZywgbmFtZSkgewogICAgICAgICAgICAgICAgaWNvbnNbbmFtZV0gPSBzdmc7CiAgICAgICAgICAgICAgICBkZWxldGUgcGFyc2VkW25hbWVdOwogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIGlmIChVSWtpdC5faW5pdGlhbGl6ZWQpIHsKICAgICAgICAgICAgICAgIGFwcGx5KGRvY3VtZW50LmJvZHksIGZ1bmN0aW9uIChlbCkgeyByZXR1cm4gZWFjaChVSWtpdC5nZXRDb21wb25lbnRzKGVsKSwgZnVuY3Rpb24gKGNtcCkgewogICAgICAgICAgICAgICAgICAgICAgICBjbXAuJG9wdGlvbnMuaXNJY29uICYmIGNtcC5pY29uIGluIGFkZGVkICYmIGNtcC4kcmVzZXQoKTsKICAgICAgICAgICAgICAgICAgICB9KTsgfQogICAgICAgICAgICAgICAgKTsKICAgICAgICAgICAgfQogICAgICAgIH07CiAgICB9CgogICAgZnVuY3Rpb24gZ2V0SWNvbihpY29uKSB7CgogICAgICAgIGlmICghaWNvbnNbaWNvbl0pIHsKICAgICAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgICAgfQoKICAgICAgICBpZiAoIXBhcnNlZFtpY29uXSkgewogICAgICAgICAgICBwYXJzZWRbaWNvbl0gPSAkKGljb25zW2ljb25dLnRyaW0oKSk7CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gcGFyc2VkW2ljb25dLmNsb25lTm9kZSh0cnVlKTsKICAgIH0KCiAgICBmdW5jdGlvbiBhcHBseVJ0bChpY29uKSB7CiAgICAgICAgcmV0dXJuIGlzUnRsID8gc3dhcChzd2FwKGljb24sICdsZWZ0JywgJ3JpZ2h0JyksICdwcmV2aW91cycsICduZXh0JykgOiBpY29uOwogICAgfQoKICAgIHZhciBJbWcgPSB7CgogICAgICAgIGFyZ3M6ICdkYXRhU3JjJywKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgZGF0YVNyYzogU3RyaW5nLAogICAgICAgICAgICBkYXRhU3Jjc2V0OiBCb29sZWFuLAogICAgICAgICAgICBzaXplczogU3RyaW5nLAogICAgICAgICAgICB3aWR0aDogTnVtYmVyLAogICAgICAgICAgICBoZWlnaHQ6IE51bWJlciwKICAgICAgICAgICAgb2Zmc2V0VG9wOiBTdHJpbmcsCiAgICAgICAgICAgIG9mZnNldExlZnQ6IFN0cmluZywKICAgICAgICAgICAgdGFyZ2V0OiBTdHJpbmcKICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIGRhdGFTcmM6ICcnLAogICAgICAgICAgICBkYXRhU3Jjc2V0OiBmYWxzZSwKICAgICAgICAgICAgc2l6ZXM6IGZhbHNlLAogICAgICAgICAgICB3aWR0aDogZmFsc2UsCiAgICAgICAgICAgIGhlaWdodDogZmFsc2UsCiAgICAgICAgICAgIG9mZnNldFRvcDogJzUwdmgnLAogICAgICAgICAgICBvZmZzZXRMZWZ0OiAwLAogICAgICAgICAgICB0YXJnZXQ6IGZhbHNlCiAgICAgICAgfSwKCiAgICAgICAgY29tcHV0ZWQ6IHsKCiAgICAgICAgICAgIGNhY2hlS2V5OiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBkYXRhU3JjID0gcmVmLmRhdGFTcmM7CgogICAgICAgICAgICAgICAgcmV0dXJuICgodGhpcy4kbmFtZSkgKyAiLiIgKyBkYXRhU3JjKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHdpZHRoOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciB3aWR0aCA9IHJlZi53aWR0aDsKICAgICAgICAgICAgICAgIHZhciBkYXRhV2lkdGggPSByZWYuZGF0YVdpZHRoOwoKICAgICAgICAgICAgICAgIHJldHVybiB3aWR0aCB8fCBkYXRhV2lkdGg7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBoZWlnaHQ6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIGhlaWdodCA9IHJlZi5oZWlnaHQ7CiAgICAgICAgICAgICAgICB2YXIgZGF0YUhlaWdodCA9IHJlZi5kYXRhSGVpZ2h0OwoKICAgICAgICAgICAgICAgIHJldHVybiBoZWlnaHQgfHwgZGF0YUhlaWdodDsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHNpemVzOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBzaXplcyA9IHJlZi5zaXplczsKICAgICAgICAgICAgICAgIHZhciBkYXRhU2l6ZXMgPSByZWYuZGF0YVNpemVzOwoKICAgICAgICAgICAgICAgIHJldHVybiBzaXplcyB8fCBkYXRhU2l6ZXM7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBpc0ltZzogZnVuY3Rpb24oXywgJGVsKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gaXNJbWcoJGVsKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHRhcmdldDogewoKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIHRhcmdldCA9IHJlZi50YXJnZXQ7CgogICAgICAgICAgICAgICAgICAgIHJldHVybiBbdGhpcy4kZWxdLmNvbmNhdChxdWVyeUFsbCh0YXJnZXQsIHRoaXMuJGVsKSk7CiAgICAgICAgICAgICAgICB9LAoKICAgICAgICAgICAgICAgIHdhdGNoOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLm9ic2VydmUoKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBvZmZzZXRUb3A6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIG9mZnNldFRvcCA9IHJlZi5vZmZzZXRUb3A7CgogICAgICAgICAgICAgICAgcmV0dXJuIHRvUHgob2Zmc2V0VG9wLCAnaGVpZ2h0Jyk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBvZmZzZXRMZWZ0OiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBvZmZzZXRMZWZ0ID0gcmVmLm9mZnNldExlZnQ7CgogICAgICAgICAgICAgICAgcmV0dXJuIHRvUHgob2Zmc2V0TGVmdCwgJ3dpZHRoJyk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgIGlmIChzdG9yYWdlW3RoaXMuY2FjaGVLZXldKSB7CiAgICAgICAgICAgICAgICBzZXRTcmNBdHRycyh0aGlzLiRlbCwgc3RvcmFnZVt0aGlzLmNhY2hlS2V5XSB8fCB0aGlzLmRhdGFTcmMsIHRoaXMuZGF0YVNyY3NldCwgdGhpcy5zaXplcyk7CiAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5pc0ltZyAmJiB0aGlzLndpZHRoICYmIHRoaXMuaGVpZ2h0KSB7CiAgICAgICAgICAgICAgICBzZXRTcmNBdHRycyh0aGlzLiRlbCwgZ2V0UGxhY2Vob2xkZXJJbWFnZSh0aGlzLndpZHRoLCB0aGlzLmhlaWdodCwgdGhpcy5zaXplcykpOwogICAgICAgICAgICB9CgogICAgICAgICAgICB0aGlzLm9ic2VydmVyID0gbmV3IEludGVyc2VjdGlvbk9ic2VydmVyKHRoaXMubG9hZCwgewogICAgICAgICAgICAgICAgcm9vdE1hcmdpbjogKCh0aGlzLm9mZnNldFRvcCkgKyAicHggIiArICh0aGlzLm9mZnNldExlZnQpICsgInB4IikKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXF1ZXN0QW5pbWF0aW9uRnJhbWUodGhpcy5vYnNlcnZlKTsKCiAgICAgICAgfSwKCiAgICAgICAgZGlzY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdGhpcy5vYnNlcnZlci5kaXNjb25uZWN0KCk7CiAgICAgICAgfSwKCiAgICAgICAgdXBkYXRlOiB7CgogICAgICAgICAgICByZWFkOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwogICAgICAgICAgICAgICAgdmFyIGltYWdlID0gcmVmLmltYWdlOwoKCiAgICAgICAgICAgICAgICBpZiAoIWltYWdlICYmIGRvY3VtZW50LnJlYWR5U3RhdGUgPT09ICdjb21wbGV0ZScpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLmxvYWQodGhpcy5vYnNlcnZlci50YWtlUmVjb3JkcygpKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBpZiAodGhpcy5pc0ltZykgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBpbWFnZSAmJiBpbWFnZS50aGVuKGZ1bmN0aW9uIChpbWcpIHsgcmV0dXJuIGltZyAmJiBpbWcuY3VycmVudFNyYyAhPT0gJycgJiYgc2V0U3JjQXR0cnModGhpcyQxLiRlbCwgY3VycmVudFNyYyhpbWcpKTsgfSk7CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgd3JpdGU6IGZ1bmN0aW9uKGRhdGEpIHsKCiAgICAgICAgICAgICAgICBpZiAodGhpcy5kYXRhU3Jjc2V0ICYmIHdpbmRvdy5kZXZpY2VQaXhlbFJhdGlvICE9PSAxKSB7CgogICAgICAgICAgICAgICAgICAgIHZhciBiZ1NpemUgPSBjc3ModGhpcy4kZWwsICdiYWNrZ3JvdW5kU2l6ZScpOwogICAgICAgICAgICAgICAgICAgIGlmIChiZ1NpemUubWF0Y2goL14oYXV0b1xzPykrJC8pIHx8IHRvRmxvYXQoYmdTaXplKSA9PT0gZGF0YS5iZ1NpemUpIHsKICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5iZ1NpemUgPSBnZXRTb3VyY2VTaXplKHRoaXMuZGF0YVNyY3NldCwgdGhpcy5zaXplcyk7CiAgICAgICAgICAgICAgICAgICAgICAgIGNzcyh0aGlzLiRlbCwgJ2JhY2tncm91bmRTaXplJywgKChkYXRhLmJnU2l6ZSkgKyAicHgiKSk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBldmVudHM6IFsncmVzaXplJ10KCiAgICAgICAgfSwKCiAgICAgICAgbWV0aG9kczogewoKICAgICAgICAgICAgbG9hZDogZnVuY3Rpb24oZW50cmllcykgewogICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgoKICAgICAgICAgICAgICAgIC8vIE9sZCBjaHJvbWl1bSBiYXNlZCBicm93c2VycyAoVUMgQnJvd3NlcikgZGlkIG5vdCBpbXBsZW1lbnQgYGlzSW50ZXJzZWN0aW5nYAogICAgICAgICAgICAgICAgaWYgKCFlbnRyaWVzLnNvbWUoZnVuY3Rpb24gKGVudHJ5KSB7IHJldHVybiBpc1VuZGVmaW5lZChlbnRyeS5pc0ludGVyc2VjdGluZykgfHwgZW50cnkuaXNJbnRlcnNlY3Rpbmc7IH0pKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHRoaXMuX2RhdGEuaW1hZ2UgPSBnZXRJbWFnZSh0aGlzLmRhdGFTcmMsIHRoaXMuZGF0YVNyY3NldCwgdGhpcy5zaXplcykudGhlbihmdW5jdGlvbiAoaW1nKSB7CgogICAgICAgICAgICAgICAgICAgIHNldFNyY0F0dHJzKHRoaXMkMS4kZWwsIGN1cnJlbnRTcmMoaW1nKSwgaW1nLnNyY3NldCwgaW1nLnNpemVzKTsKICAgICAgICAgICAgICAgICAgICBzdG9yYWdlW3RoaXMkMS5jYWNoZUtleV0gPSBjdXJyZW50U3JjKGltZyk7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGltZzsKCiAgICAgICAgICAgICAgICB9LCBub29wKTsKCiAgICAgICAgICAgICAgICB0aGlzLm9ic2VydmVyLmRpc2Nvbm5lY3QoKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIG9ic2VydmU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgogICAgICAgICAgICAgICAgaWYgKCF0aGlzLl9kYXRhLmltYWdlICYmIHRoaXMuX2Nvbm5lY3RlZCkgewogICAgICAgICAgICAgICAgICAgIHRoaXMudGFyZ2V0LmZvckVhY2goZnVuY3Rpb24gKGVsKSB7IHJldHVybiB0aGlzJDEub2JzZXJ2ZXIub2JzZXJ2ZShlbCk7IH0pOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICB9OwoKICAgIGZ1bmN0aW9uIHNldFNyY0F0dHJzKGVsLCBzcmMsIHNyY3NldCwgc2l6ZXMpIHsKCiAgICAgICAgaWYgKGlzSW1nKGVsKSkgewogICAgICAgICAgICBzaXplcyAmJiAoZWwuc2l6ZXMgPSBzaXplcyk7CiAgICAgICAgICAgIHNyY3NldCAmJiAoZWwuc3Jjc2V0ID0gc3Jjc2V0KTsKICAgICAgICAgICAgc3JjICYmIChlbC5zcmMgPSBzcmMpOwogICAgICAgIH0gZWxzZSBpZiAoc3JjKSB7CgogICAgICAgICAgICB2YXIgY2hhbmdlID0gIWluY2x1ZGVzKGVsLnN0eWxlLmJhY2tncm91bmRJbWFnZSwgc3JjKTsKICAgICAgICAgICAgaWYgKGNoYW5nZ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jaE1lZGlhKG1hdGNoZXNbMV0pLm1hdGNoZXMpIHsKICAgICAgICAgICAgICAgIG1hdGNoZXMgPSBldmFsdWF0ZVNpemUobWF0Y2hlc1syXSk7CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIG1hdGNoZXMgfHwgJzEwMHZ3JzsKICAgIH0KCiAgICB2YXIgc2l6ZVJlID0gL1xkKyg/Olx3K3wlKS9nOwogICAgdmFyIGFkZGl0aW9uUmUgPSAvWystXT8oXGQrKS9nOwogICAgZnVuY3Rpb24gZXZhbHVhdGVTaXplKHNpemUpIHsKICAgICAgICByZXR1cm4gc3RhcnRzV2l0aChzaXplLCAnY2FsYycpCiAgICAgICAgICAgID8gc2l6ZQogICAgICAgICAgICAgICAgLnN1YnN0cmluZyg1LCBzaXplLmxlbmd0aCAtIDEpCiAgICAgICAgICAgICAgICAucmVwbGFjZShzaXplUmUsIGZ1bmN0aW9uIChzaXplKSB7IHJldHVybiB0b1B4KHNpemUpOyB9KQogICAgICAgICAgICAgICAgLnJlcGxhY2UoLyAvZywgJycpCiAgICAgICAgICAgICAgICAubWF0Y2goYWRkaXRpb25SZSkKICAgICAgICAgICAgICAgIC5yZWR1Y2UoZnVuY3Rpb24gKGEsIGIpIHsgcmV0dXJuIGEgKyArYjsgfSwgMCkKICAgICAgICAgICAgOiBzaXplOwogICAgfQoKICAgIHZhciBzcmNTZXRSZSA9IC9ccytcZCt3XHMqKD86LHwkKS9nOwogICAgZnVuY3Rpb24gZ2V0U291cmNlU2l6ZShzcmNzZXQsIHNpemVzKSB7CiAgICAgICAgdmFyIHNyY1NpemUgPSB0b1B4KHNpemVzVG9QaXhlbChzaXplcykpOwogICAgICAgIHZhciBkZXNjcmlwdG9ycyA9IChzcmNzZXQubWF0Y2goc3JjU2V0UmUpIHx8IFtdKS5tYXAodG9GbG9hdCkuc29ydChmdW5jdGlvbiAoYSwgYikgeyByZXR1cm4gYSAtIG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GNoTWVkaWEobWVkaWEpLm1hdGNoZXM7CiAgICAgICAgICAgIH0KCiAgICAgICAgfQoKICAgIH07CgogICAgZnVuY3Rpb24gdG9NZWRpYSh2YWx1ZSkgewoKICAgICAgICBpZiAoaXNTdHJpbmcodmFsdWUpKSB7CiAgICAgICAgICAgIGlmICh2YWx1ZVswXSA9PT0gJ0AnKSB7CiAgICAgICAgICAgICAgICB2YXIgbmFtZSA9ICJicmVha3BvaW50LSIgKyAodmFsdWUuc3Vic3RyKDEpKTsKICAgICAgICAgICAgICAgIHZhbHVlID0gdG9GbG9hdChnZXRDc3NWYXIobmFtZSkpOwogICAgICAgICAgICB9IGVsc2UgaWYgKGlzTmFOKHZhbHVlKSkgewogICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gdmFsdWUgJiYgIWlzTmFOKHZhbHVlKSA/ICgiKG1pbi13aWR0aDogIiArIHZhbHVlICsgInB4KSIpIDogZmFsc2U7CiAgICB9CgogICAgdmFyIExlYWRlciA9IHsKCiAgICAgICAgbWl4aW5zOiBbQ2xhc3MsIE1lZGlhXSwKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgZmlsbDogU3RyaW5nCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICBmaWxsOiAnJywKICAgICAgICAgICAgY2xzV3JhcHBlcjogJ3VrLWxlYWRlci1maWxsJywKICAgICAgICAgICAgY2xzSGlkZTogJ3VrLWxlYWRlci1oaWRlJywKICAgICAgICAgICAgYXR0ckZpbGw6ICdkYXRhLWZpbGwnCiAgICAgICAgfSwKCiAgICAgICAgY29tcHV0ZWQ6IHsKCiAgICAgICAgICAgIGZpbGw6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIGZpbGwgPSByZWYuZmlsbDsKCiAgICAgICAgICAgICAgICByZXR1cm4gZmlsbCB8fCBnZXRDc3NWYXIoJ2xlYWRlci1maWxsLWNvbnRlbnQnKTsKICAgICAgICAgICAgfQoKICAgICAgICB9LAoKICAgICAgICBjb25uZWN0ZWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICB2YXIgYXNzaWduOwoKICAgICAgICAgICAgKGFzc2lnbiA9IHdyYXBJbm5lcih0aGlzLiRlbCwgKCI8c3BhbiBjbGFzcz1cIiIgKyAodGhpcy5jbHNXcmFwcGVyKSArICJcIj4iKSksIHRoaXMud3JhcHBlciA9IGFzc2lnblswXSk7CiAgICAgICAgfSwKCiAgICAgICAgZGlzY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdW53cmFwKHRoaXMud3JhcHBlci5jaGlsZE5vZGVzKTsKICAgICAgICB9LAoKICAgICAgICB1cGRhdGU6IHsKCiAgICAgICAgICAgIHJlYWQ6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIGNoYW5nZWQgPSByZWYuY2hhbmdlZDsKICAgICAgICAgICAgICAgIHZhciB3aWR0aCA9IHJlZi53aWR0aDsKCgogICAgICAgICAgICAgICAgdmFyIHByZXYgPSB3aWR0aDsKCiAgICAgICAgICAgICAgICB3aWR0aCA9IE1hdGguZmxvb3IodGhpcy4kZWwub2Zmc2V0V2lkdGggLyAyKTsKCiAgICAgICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgICAgIHdpZHRoOiB3aWR0aCwKICAgICAgICAgICAgICAgICAgICBmaWxsOiB0aGlzLmZpbGwsCiAgICAgICAgICAgICAgICAgICAgY2hhbmdlZDogY2hhbmdlZCB8fCBwcmV2ICE9PSB3aWR0aCwKICAgICAgICAgICAgICAgICAgICBoaWRlOiAhdGhpcy5tYXRjaE1lZGlhCiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgd3JpdGU6IGZ1bmN0aW9uKGRhdGEpIHsKCiAgICAgICAgICAgICAgICB0b2dnbGVDbGFzcyh0aGlzLndyYXBwZXIsIHRoaXMuY2xzSGlkZSwgZGF0YS5oaWRlKTsKCiAgICAgICAgICAgICAgICBpZiAoZGF0YS5jaGFuZ2VkKSB7CiAgICAgICAgICAgICAgICAgICAgZGF0YS5jaGFuZ2VkID0gZmFsc2U7CiAgICAgICAgICAgICAgICAgICAgYXR0cih0aGlzLndyYXBwZXIsIHRoaXMuYXR0ckZpbGwsIG5ldyBBcnJheShkYXRhLndpZHRoKS5qb2luKGRhdGEuZmlsbCkpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGV2ZW50czogWydyZXNpemUnXQoKICAgICAgICB9CgogICAgfTsKCiAgICB2YXIgQ29udGFpbmVyID0gewoKICAgICAgICBwcm9wczogewogICAgICAgICAgICBjb250YWluZXI6IEJvb2xlYW4KICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIGNvbnRhaW5lcjogdHJ1ZQogICAgICAgIH0sCgogICAgICAgIGNvbXB1dGVkOiB7CgogICAgICAgICAgICBjb250YWluZXI6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIGNvbnRhaW5lciA9IHJlZi5jb250YWluZXI7CgogICAgICAgICAgICAgICAgcmV0dXJuIGNvbnRhaW5lciA9PT0gdHJ1ZSAmJiB0aGlzLiRjb250YWluZXIgfHwgY29udGFpbmVyICYmICQoY29udGFpbmVyKTsKICAgICAgICAgICAgfQoKICAgICAgICB9CgogICAgfTsKCiAgICB2YXIgYWN0aXZlJDEgPSBbXTsKCiAgICB2YXIgTW9kYWwgPSB7CgogICAgICAgIG1peGluczogW0NsYXNzLCBDb250YWluZXIsIFRvZ2dsYWJsZV0sCgogICAgICAgIHByb3BzOiB7CiAgICAgICAgICAgIHNlbFBhbmVsOiBTdHJpbmcsCiAgICAgICAgICAgIHNlbENsb3NlOiBTdHJpbmcsCiAgICAgICAgICAgIGVzY0Nsb3NlOiBCb29sZWFuLAogICAgICAgICAgICBiZ0Nsb3NlOiBCb29sZWFuLAogICAgICAgICAgICBzdGFjazogQm9vbGVhbgogICAgICAgIH0sCgogICAgICAgIGRhdGE6IHsKICAgICAgICAgICAgY2xzOiAndWstb3BlbicsCiAgICAgICAgICAgIGVzY0Nsb3NlOiB0cnVlLAogICAgICAgICAgICBiZ0Nsb3NlOiB0cnVlLAogICAgICAgICAgICBvdmVybGF5OiB0cnVlLAogICAgICAgICAgICBzdGFjazogZmFsc2UKICAgICAgICB9LAoKICAgICAgICBjb21wdXRlZDogewoKICAgICAgICAgICAgcGFuZWw6IGZ1bmN0aW9uKHJlZiwgJGVsKSB7CiAgICAgICAgICAgICAgICB2YXIgc2VsUGFuZWwgPSByZWYuc2VsUGFuZWw7CgogICAgICAgICAgICAgICAgcmV0dXJuICQoc2VsUGFuZWwsICRlbCk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB0cmFuc2l0aW9uRWxlbWVudDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5wYW5lbDsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGJnQ2xvc2U6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIGJnQ2xvc2UgPSByZWYuYmdDbG9zZTsKCiAgICAgICAgICAgICAgICByZXR1cm4gYmdDbG9zZSAmJiB0aGlzLnBhbmVsOwogICAgICAgICAgICB9CgogICAgICAgIH0sCgogICAgICAgIGJlZm9yZURpc2Nvbm5lY3Q6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICBpZiAodGhpcy5pc1RvZ2dsZWQoKSkgewogICAgICAgICAgICAgICAgdGhpcy50b2dnbGVOb3codGhpcy4kZWwsIGZhbHNlKTsKICAgICAgICAgICAgfQogICAgICAgIH0sCgogICAgICAgIGV2ZW50czogWwoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIG5hbWU6ICdjbGljaycsCgogICAgICAgICAgICAgICAgZGVsZWdhdGU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLnNlbENsb3NlOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpOwogICAgICAgICAgICAgICAgICAgIHRoaXMuaGlkZSgpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAndG9nZ2xlJywKCiAgICAgICAgICAgICAgICBzZWxmOiB0cnVlLAoKICAgICAgICAgICAgICAgIGhhbmRsZXI6IGZ1bmN0aW9uKGUpIHsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGUuZGVmYXVsdFByZXZlbnRlZCkgewogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7CiAgICAgICAgICAgICAgICAgICAgdGhpcy50b2dnbGUoKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAnYmVmb3Jlc2hvdycsCgogICAgICAgICAgICAgICAgc2VsZjogdHJ1ZSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlKSB7CgogICAgICAgICAgICAgICAgICAgIGlmIChpbmNsdWRlcyhhY3RpdmUkMSwgdGhpcykpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgaWYgKCF0aGlzLnN0YWNrICYmIGFjdGl2ZSQxLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgICAgICBQcm9taXNlLmFsbChhY3RpdmUkMS5tYXAoZnVuY3Rpb24gKG1vZGFsKSB7IHJldHVybiBtb2RhbC5oaWRlKCk7IH0pKS50aGVuKHRoaXMuc2hvdyk7CiAgICAgICAgICAgICAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTsKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICBhY3RpdmUkMS5wdXNoKHRoaXMpOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgbmFtZTogJ3Nob3cnLAoKICAgICAgICAgICAgICAgIHNlbGY6IHRydWUsCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgoKICAgICAgICAgICAgICAgICAgICBpZiAod2lkdGgod2luZG93KSAtIHdpZHRoKGRvY3VtZW50KSAmJiB0aGlzLm92ZXJsYXkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgY3NzKGRvY3VtZW50LmJvZHksICdvdmVyZmxvd1knLCAnc2Nyb2xsJyk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICBhZGRDbGFzcyhkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQsIHRoaXMuY2xzUGFnZSk7CgogICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmJnQ2xvc2UpIHsKICAgICAgICAgICAgICAgICAgICAgICAgb25jZSh0aGlzLiRlbCwgJ2hpZGUnLCBkZWxheU9uKGRvY3VtZW50LCAnY2xpY2snLCBmdW5jdGlvbiAocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgZGVmYXVsdFByZXZlbnRlZCA9IHJlZi5kZWZhdWx0UHJldmVudGVkOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHRhcmdldCA9IHJlZi50YXJnZXQ7CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGN1cnJlbnQgPSBsYXN0KGFjdGl2ZSQxKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghZGVmYXVsdFByZXZlbnRlZAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICYmIGN1cnJlbnQgPT09IHRoaXMkMQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICYmICghY3VycmVudC5vdmVybGF5IHx8IHdpdGhpbih0YXJnZXQsIGN1cnJlbnQuJGVsKSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAmJiAhd2l0aGluKHRhcmdldCwgY3VycmVudC5wYW5lbCkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGN1cnJlbnQuaGlkZSgpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICB9KSwge3NlbGY6IHRydWV9KTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmVzY0Nsb3NlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG9uY2UodGhpcy4kZWwsICdoaWRlJywgb24oZG9jdW1lbnQsICdrZXlkb3duJywgZnVuY3Rpb24gKGUpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBjdXJyZW50ID0gbGFzdChhY3RpdmUkMSk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoZS5rZXlDb2RlID09PSAyNyAmJiBjdXJyZW50ID09PSB0aGlzJDEpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY3VycmVudC5oaWRlKCk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgIH0pLCB7c2VsZjogdHJ1ZX0pOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgbmFtZTogJ2hpZGRlbicsCgogICAgICAgICAgICAgICAgc2VsZjogdHJ1ZSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICAgICAgICAgIGFjdGl2ZSQxLnNwbGljZShhY3RpdmUkMS5pbmRleE9mKHRoaXMpLCAxKTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKCFhY3RpdmUkMS5sZW5ndGgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgY3NzKGRvY3VtZW50LmJvZHksICdvdmVyZmxvd1knLCAnJyk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICBpZiAoIWFjdGl2ZSQxLnNvbWUoZnVuY3Rpb24gKG1vZGFsKSB7IHJldHVybiBtb2RhbC5jbHNQYWdlID09PSB0aGlzJDEuY2xzUGFnZTsgfSkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmVtb3ZlQ2xhc3MoZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50LCB0aGlzLmNsc1BhZ2UpOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9CgogICAgICAgIF0sCgogICAgICAgIG1ldGhvZHM6IHsKCiAgICAgICAgICAgIHRvZ2dsZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5pc1RvZ2dsZWQoKSA/IHRoaXMuaGlkZSgpIDogdGhpcy5zaG93KCk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBzaG93OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgICAgICBpZiAodGhpcy5jb250YWluZXIgJiYgdGhpcy4kZWwucGFyZW50Tm9kZSAhPT0gdGhpcy5jb250YWluZXIpIHsKICAgICAgICAgICAgICAgICAgICBhcHBlbmQodGhpcy5jb250YWluZXIsIHRoaXMuJGVsKTsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IFByb21pc2UoZnVuY3Rpb24gKHJlc29sdmUpIHsgcmV0dXJuIHJlcXVlc3RBbmltYXRpb25GcmFtZShmdW5jdGlvbiAoKSB7IHJldHVybiB0aGlzJDEuc2hvdygpLnRoZW4ocmVzb2x2ZSk7IH0KICAgICAgICAgICAgICAgICAgICAgICAgKTsgfQogICAgICAgICAgICAgICAgICAgICk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMudG9nZ2xlRWxlbWVudCh0aGlzLiRlbCwgdHJ1ZSwgYW5pbWF0ZSQxKHRoaXMpKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGhpZGU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMudG9nZ2xlRWxlbWVudCh0aGlzLiRlbCwgZmFsc2UsIGFuaW1hdGUkMSh0aGlzKSk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfQoKICAgIH07CgogICAgZnVuY3Rpb24gYW5pbWF0ZSQxKHJlZikgewogICAgICAgIHZhciB0cmFuc2l0aW9uRWxlbWVudCA9IHJlZi50cmFuc2l0aW9uRWxlbWVudDsKICAgICAgICB2YXIgX3RvZ2dsZSA9IHJlZi5fdG9nZ2xlOwoKICAgICAgICByZXR1cm4gZnVuY3Rpb24gKGVsLCBzaG93KSB7IHJldHVybiBuZXcgUHJvbWlzZShmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7IHJldHVybiBvbmNlKGVsLCAnc2hvdyBoaWRlJywgZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIGVsLl9yZWplY3QgJiYgZWwuX3JlamVjdCgpOwogICAgICAgICAgICAgICAgICAgIGVsLl9yZWplY3QgPSByZWplY3Q7CgogICAgICAgICAgICAgICAgICAgIF90b2dnbGUoZWwsIHNob3cpOwoKICAgICAgICAgICAgICAgICAgICB2YXIgb2ZmID0gb25jZSh0cmFuc2l0aW9uRWxlbWVudCwgJ3RyYW5zaXRpb25zdGFydCcsIGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgb25jZSh0cmFuc2l0aW9uRWxlbWVudCwgJ3RyYW5zaXRpb25lbmQgdHJhbnNpdGlvbmNhbmNlbCcsIHJlc29sdmUsIHtzZWxmOiB0cnVlfSk7CiAgICAgICAgICAgICAgICAgICAgICAgIGNsZWFyVGltZW91dCh0aW1lcik7CiAgICAgICAgICAgICAgICAgICAgfSwge3NlbGY6IHRydWV9KTsKCiAgICAgICAgICAgICAgICAgICAgdmFyIHRpbWVyID0gc2V0VGltZW91dChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG9mZigpOwogICAgICAgICAgICAgICAgICAgICAgICByZXNvbHZlKCk7CiAgICAgICAgICAgICAgICAgICAgfSwgdG9Ncyhjc3ModHJhbnNpdGlvbkVsZW1lbnQsICd0cmFuc2l0aW9uRHVyYXRpb24nKSkpOwoKICAgICAgICAgICAgICAgIH0pOyB9CiAgICAgICAgICAgICk7IH07CiAgICB9CgogICAgdmFyIE1vZGFsJDEgPSB7CgogICAgICAgIGluc3RhbGw6IGluc3RhbGwkMSwKCiAgICAgICAgbWl4aW5zOiBbTW9kYWxdLAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIGNsc1BhZ2U6ICd1ay1tb2RhbC1wYWdlJywKICAgICAgICAgICAgc2VsUGFuZWw6ICcudWstbW9kYWwtZGlhbG9nJywKICAgICAgICAgICAgc2VsQ2xvc2U6ICcudWstbW9kYWwtY2xvc2UsIC51ay1tb2RhbC1jbG9zZS1kZWZhdWx0LCAudWstbW9kYWwtY2xvc2Utb3V0c2lkZSwgLnVrLW1vZGFsLWNsb3NlLWZ1bGwnCiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiBbCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAnc2hvdycsCgogICAgICAgICAgICAgICAgc2VsZjogdHJ1ZSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGhhc0NsYXNzKHRoaXMucGFuZWwsICd1ay1tYXJnaW4tYXV0by12ZXJ0aWNhbCcpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGFkZENsYXNzKHRoaXMuJGVsLCAndWstZmxleCcpOwogICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGNzcyh0aGlzLiRlbCwgJ2Rpc3BsYXknLCAnYmxvY2snKTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIGhlaWdodCh0aGlzLiRlbCk7IC8vIGZvcmNlIHJlZmxvdwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgbmFtZTogJ2hpZGRlbicsCgogICAgICAgICAgICAgICAgc2VsZjogdHJ1ZSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgICAgICAgICAgY3NzKHRoaXMuJGVsLCAnZGlzcGxheScsICcnKTsKICAgICAgICAgICAgICAgICAgICByZW1vdmVDbGFzcyh0aGlzLiRlbCwgJ3VrLWZsZXgnKTsKCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgXQoKICAgIH07CgogICAgZnVuY3Rpb24gaW5zdGFsbCQxKFVJa2l0KSB7CgogICAgICAgIFVJa2l0Lm1vZGFsLmRpYWxvZyA9IGZ1bmN0aW9uIChjb250ZW50LCBvcHRpb25zKSB7CgogICAgICAgICAgICB2YXIgZGlhbG9nID0gVUlraXQubW9kYWwoKCIgPG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AgICAgICAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTsKICAgICAgICAgICAgICAgICAgICByZXNvbHZlKCk7CiAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgICAgIGNvbmZpcm0uaGlkZSgpOwogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICBvbihjb25maXJtLiRlbCwgJ2hpZGUnLCBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKCFyZXNvbHZlZCkgewogICAgICAgICAgICAgICAgICAgICAgICByZWplY3QoKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIH0pOwogICAgICAgIH07CgogICAgICAgIFVJa2l0Lm1vZGFsLnByb21wdCA9IGZ1bmN0aW9uIChtZXNzYWdlLCB2YWx1ZSwgb3B0aW9ucykgewoKICAgICAgICAgICAgb3B0aW9ucyA9IGFzc2lnbih7YmdDbG9zZTogZmFsc2UsIGVzY0Nsb3NlOiB0cnVlLCBsYWJlbHM6IFVJa2l0Lm1vZGFsLmxhYmVsc30sIG9wdGlvbnMpOwoKICAgICAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKGZ1bmN0aW9uIChyZXNvbHZlKSB7CgogICAgICAgICAgICAgICAgdmFyIHByb21wdCA9IFVJa2l0Lm1vZGFsLmRpYWxvZygoIiA8Zm9ybSBjbGFzcz1cInVrLWZvcm0tc3RhY2tlZFwiPiA8ZGl2IGNsYXNzPVwidWstbW9kYWwtYm9keVwiPiA8bGFiZWw+IiArIChpc1N0cmluZyhtZXNzYWdlKSA/IG1lc3NhZ2UgOiBodG1sKG1lc3NhZ2UpKSArICI8L2xhYmVsPiA8aW5wdXQgY2xhc3M9XCJ1ay1pbnB1dFwiIGF1dG9mb2N1cz4gPC9kaXY+IDxkaXYgY2xhc3M9XCJ1ay1tb2RhbC1mb290ZXIgdWstdGV4dC1yaWdodFwiPiA8YnV0dG9uIGNsYXNzPVwidWstYnV0dG9uIHVrLWJ1dHRvbi1kZWZhdWx0IHVrLW1vZGFsLWNsb3NlXCIgdHlwZT1cImJ1dHRvblwiPiIgKyAob3B0aW9ucy5sYWJlbHMuY2FuY2VsKSArICI8L2J1dHRvbj4gPGJ1dHRvbiBjbGFzcz1cInVrLWJ1dHRvbiB1ay1idXR0b24tcHJpbWFyeVwiPiIgKyAob3B0aW9ucy5sYWJlbHMub2spICsgIjwvYnV0dG9uPiA8L2Rpdj4gPC9mb3JtPiAiKSwgb3B0aW9ucyksCiAgICAgICAgICAgICAgICAgICAgaW5wdXQgPSAkKCdpbnB1dCcsIHByb21wdC4kZWwpOwoKICAgICAgICAgICAgICAgIGlucHV0LnZhbHVlID0gdmFsdWU7CgogICAgICAgICAgICAgICAgdmFyIHJlc29sdmVkID0gZmFsc2U7CgogICAgICAgICAgICAgICAgb24ocHJvbXB0LiRlbCwgJ3N1Ym1pdCcsICdmb3JtJywgZnVuY3Rpb24gKGUpIHsKICAgICAgICAgICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7CiAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZShpbnB1dC52YWx1ZSk7CiAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgICAgIHByb21wdC5oaWRlKCk7CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIG9uKHByb21wdC4kZWwsICdoaWRlJywgZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIGlmICghcmVzb2x2ZWQpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZShudWxsKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIH0pOwogICAgICAgIH07CgogICAgICAgIFVJa2l0Lm1vZGFsLmxhYmVscyA9IHsKICAgICAgICAgICAgb2s6ICdPaycsCiAgICAgICAgICAgIGNhbmNlbDogJ0NhbmNlbCcKICAgICAgICB9OwoKICAgIH0KCiAgICB2YXIgTmF2ID0gewoKICAgICAgICBleHRlbmRzOiBBY2NvcmRpb24sCgogICAgICAgIGRhdGE6IHsKICAgICAgICAgICAgdGFyZ2V0czogJz4gLnVrLXBhcmVudCcsCiAgICAgICAgICAgIHRvZ2dsZTogJz4gYScsCiAgICAgICAgICAgIGNvbnRlbnQ6ICc+IHVsJwogICAgICAgIH0KCiAgICB9OwoKICAgIHZhciBOYXZiYXIgPSB7CgogICAgICAgIG1peGluczogW0NsYXNzLCBGbGV4QnVnXSwKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgZHJvcGRvd246IFN0cmluZywKICAgICAgICAgICAgbW9kZTogJ2xpc3QnLAogICAgICAgICAgICBhbGlnbjogU3RyaW5nLAogICAgICAgICAgICBvZmZzZXQ6IE51bWJlciwKICAgICAgICAgICAgYm91bmRhcnk6IEJvb2xlYW4sCiAgICAgICAgICAgIGJvdW5kYXJ5QWxpZ246IEJvb2xlYW4sCiAgICAgICAgICAgIGNsc0Ryb3A6IFN0cmluZywKICAgICAgICAgICAgZGVsYXlTaG93OiBOdW1iZXIsCiAgICAgICAgICAgIGRlbGF5SGlkZTogTnVtYmVyLAogICAgICAgICAgICBkcm9wYmFyOiBCb29sZWFuLAogICAgICAgICAgICBkcm9wYmFyTW9kZTogU3RyaW5nLAogICAgICAgICAgICBkcm9wYmFyQW5jaG9yOiBCb29sZWFuLAogICAgICAgICAgICBkdXJhdGlvbjogTnVtYmVyCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICBkcm9wZG93bjogJy51ay1uYXZiYXItbmF2ID4gbGknLAogICAgICAgICAgICBhbGlnbjogIWlzUnRsID8gJ2xlZnQnIDogJ3JpZ2h0JywKICAgICAgICAgICAgY2xzRHJvcDogJ3VrLW5hdmJhci1kcm9wZG93bicsCiAgICAgICAgICAgIG1vZGU6IHVuZGVmaW5lZCwKICAgICAgICAgICAgb2Zmc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGRlbGF5U2hvdzogdW5kZWZpbmVkLAogICAgICAgICAgICBkZWxheUhpZGU6IHVuZGVmaW5lZCwKICAgICAgICAgICAgYm91bmRhcnlBbGlnbjogdW5kZWZpbmVkLAogICAgICAgICAgICBmbGlwOiAneCcsCiAgICAgICAgICAgIGJvdW5kYXJ5OiB0cnVlLAogICAgICAgICAgICBkcm9wYmFyOiBmYWxzZSwKICAgICAgICAgICAgZHJvcGJhck1vZGU6ICdzbGlkZScsCiAgICAgICAgICAgIGRyb3BiYXJBbmNob3I6IGZhbHNlLAogICAgICAgICAgICBkdXJhdGlvbjogMjAwLAogICAgICAgICAgICBmb3JjZUhlaWdodDogdHJ1ZSwKICAgICAgICAgICAgc2VsTWluSGVpZ2h0OiAnLnVrLW5hdmJhci1uYXYgPiBsaSA+IGEsIC51ay1uYXZiYXItaXRlbSwgLnVrLW5hdmJhci10b2dnbGUnCiAgICAgICAgfSwKCiAgICAgICAgY29tcHV0ZWQ6IHsKCiAgICAgICAgICAgIGJvdW5kYXJ5OiBmdW5jdGlvbihyZWYsICRlbCkgewogICAgICAgICAgICAgICAgdmFyIGJvdW5kYXJ5ID0gcmVmLmJvdW5kYXJ5OwogICAgICAgICAgICAgICAgdmFyIGJvdW5kYXJ5QWxpZ24gPSByZWYuYm91bmRhcnlBbGlnbjsKCiAgICAgICAgICAgICAgICByZXR1cm4gKGJvdW5kYXJ5ID09PSB0cnVlIHx8IGJvdW5kYXJ5QWxpZ24pID8gJGVsIDogYm91bmRhcnk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBkcm9wYmFyQW5jaG9yOiBmdW5jdGlvbihyZWYsICRlbCkgewogICAgICAgICAgICAgICAgdmFyIGRyb3BiYXJBbmNob3IgPSByZWYuZHJvcGJhckFuY2hvcjsKCiAgICAgICAgICAgICAgICByZXR1cm4gcXVlcnkoZHJvcGJhckFuY2hvciwgJGVsKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHBvczogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgYWxpZ24gPSByZWYuYWxpZ247CgogICAgICAgICAgICAgICAgcmV0dXJuICgiYm90dG9tLSIgKyBhbGlnbik7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBkcm9wZG93bnM6IGZ1bmN0aW9uKHJlZiwgJGVsKSB7CiAgICAgICAgICAgICAgICB2YXIgZHJvcGRvd24gPSByZWYuZHJvcGRvd247CiAgICAgICAgICAgICAgICB2YXIgY2xzRHJvcCA9IHJlZi5jbHNEcm9wOwoKICAgICAgICAgICAgICAgIHJldHVybiAkJCgoZHJvcGRvd24gKyAiIC4iICsgY2xzRHJvcCksICRlbCk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgYmVmb3JlQ29ubmVjdDogZnVuY3Rpb24oKSB7CgogICAgICAgICAgICB2YXIgcmVmID0gdGhpcy4kcHJvcHM7CiAgICAgICAgICAgIHZhciBkcm9wYmFyID0gcmVmLmRyb3BiYXI7CgogICAgICAgICAgICB0aGlzLmRyb3BiYXIgPSBkcm9wYmFyICYmIChxdWVyeShkcm9wYmFyLCB0aGlzLiRlbCkgfHwgJCgnKyAudWstbmF2YmFyLWRyb3BiYXInLCB0aGlzLiRlbCkgfHwgJCgnPGRpdj48L2Rpdj4nKSk7CgogICAgICAgICAgICBpZiAodGhpcy5kcm9wYmFyKSB7CgogICAgICAgICAgICAgICAgYWRkQ2xhc3ModGhpcy5kcm9wYmFyLCAndWstbmF2YmFyLWRyb3BiYXInKTsKCiAgICAgICAgICAgICAgICBpZiAodGhpcy5kcm9wYmFyTW9kZSA9PT0gJ3NsaWRlJykgewogICAgICAgICAgICAgICAgICAgIGFkZENsYXNzKHRoaXMuZHJvcGJhciwgJ3VrLW5hdmJhci1kcm9wYmFyLXNsaWRlJyk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgZGlzY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdGhpcy5kcm9wYmFyICYmIHJlbW92ZSh0aGlzLmRyb3BiYXIpOwogICAgICAgIH0sCgogICAgICAgIHVwZGF0ZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgIHRoaXMuJGNyZWF0ZSgKICAgICAgICAgICAgICAgICdkcm9wJywKICAgICAgICAgICAgICAgIHRoaXMuZHJvcGRvd25zLmZpbHRlcihmdW5jdGlvbiAoZWwpIHsgcmV0dXJuICF0aGlzJDEuZ2V0RHJvcGRvd24oZWwpOyB9KSwKICAgICAgICAgICAgICAgIGFzc2lnbih7fSwgdGhpcy4kcHJvcHMsIHtib3VuZGFyeTogdGhpcy5ib3VuZGFyeSwgcG9zOiB0aGlzLnBvcywgb2Zmc2V0OiB0aGlzLmRyb3BiYXIgfHwgdGhpcy5vZmZzZXR9KQogICAgICAgICAgICApOwoKICAgICAgICB9LAoKICAgICAgICBldmVudHM6IFsKCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIG5hbWU6ICdtb3VzZW92ZXInLAoKICAgICAgICAgICAgICAgIGRlbGVnYXRlOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5kcm9wZG93bjsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGN1cnJlbnQgPSByZWYuY3VycmVudDsKCiAgICAgICAgICAgICAgICAgICAgdmFyIGFjdGl2ZSA9IHRoaXMuZ2V0QWN0aXZlKCk7CiAgICAgICAgICAgICAgICAgICAgaWYgKGFjdGl2ZSAmJiBhY3RpdmUudG9nZ2xlICYmICF3aXRoaW4oYWN0aXZlLnRvZ2dsZS4kZWwsIGN1cnJlbnQpICYmICFhY3RpdmUudHJhY2tlci5tb3Zlc1RvKGFjdGl2ZS4kZWwpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGFjdGl2ZS5oaWRlKGZhbHNlKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgbmFtZTogJ21vdXNlbGVhdmUnLAoKICAgICAgICAgICAgICAgIGVsOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5kcm9wYmFyOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgYWN0aXZlID0gdGhpcy5nZXRBY3RpdmUoKTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGFjdGl2ZSAmJiAhdGhpcy5kcm9wZG93bnMuc29tZShmdW5jdGlvbiAoZWwpIHsgcmV0dXJuIG1hdGNoZXMoZWwsICc6aG92ZXInKTsgfSkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgYWN0aXZlLmhpZGUoKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAnYmVmb3Jlc2hvdycsCgogICAgICAgICAgICAgICAgY2FwdHVyZTogdHJ1ZSwKCiAgICAgICAgICAgICAgICBmaWx0ZXI6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmRyb3BiYXI7CiAgICAgICAgICAgICAgICB9LAoKICAgICAgICAgICAgICAgIGhhbmRsZXI6IGZ1bmN0aW9uKCkgewoKICAgICAgICAgICAgICAgICAgICBpZiAoIXRoaXMuZHJvcGJhci5wYXJlbnROb2RlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGFmdGVyKHRoaXMuZHJvcGJhckFuY2hvciB8fCB0aGlzLiRlbCwgdGhpcy5kcm9wYmFyKTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgbmFtZTogJ3Nob3cnLAoKICAgICAgICAgICAgICAgIGNhcHR1cmU6IHRydWUsCgogICAgICAgICAgICAgICAgZmlsdGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5kcm9wYmFyOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihfLCBkcm9wKSB7CgogICAgICAgICAgICAgICAgICAgIHZhciAkZWwgPSBkcm9wLiRlbDsKICAgICAgICAgICAgICAgICAgICB2YXIgZGlyID0gZHJvcC5kaXI7CgogICAgICAgICAgICAgICAgICAgIHRoaXMuY2xzRHJvcCAmJiBhZGRDbGFzcygkZWwsICgodGhpcy5jbHNEcm9wKSArICItZHJvcGJhciIpKTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGRpciA9PT0gJ2JvdHRvbScpIHsKICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy50cmFuc2l0aW9uVG8oJGVsLm9mZnNldEhlaWdodCArIHRvRmxvYXQoY3NzKCRlbCwgJ21hcmdpblRvcCcpKSArIHRvRmxvYXQoY3NzKCRlbCwgJ21hcmdpbkJvdHRvbScpKSwgJGVsKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAnYmVmb3JlaGlkZScsCgogICAgICAgICAgICAgICAgZmlsdGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5kcm9wYmFyOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlLCByZWYpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgJGVsID0gcmVmLiRlbDsKCgogICAgICAgICAgICAgICAgICAgIHZhciBhY3RpdmUgPSB0aGlzLmdldEFjdGl2ZSgpOwoKICAgICAgICAgICAgICAgICAgICBpZiAobWF0Y2hlcyh0aGlzLmRyb3BiYXIsICc6aG92ZXInKSAmJiBhY3RpdmUgJiYgYWN0aXZlLiRlbCA9PT0gJGVsKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAnaGlkZScsCgogICAgICAgICAgICAgICAgZmlsdGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5kcm9wYmFyOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihfLCByZWYpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgJGVsID0gcmVmLiRlbDsKCgogICAgICAgICAgICAgICAgICAgIHZhciBhY3RpdmUgPSB0aGlzLmdldEFjdGl2ZSgpOwoKICAgICAgICAgICAgICAgICAgICBpZiAoIWFjdGl2ZSB8fCBhY3RpdmUgJiYgYWN0aXZlLiRlbCA9PT0gJGVsKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudHJhbnNpdGlvblRvKDApOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICBdLAoKICAgICAgICBtZXRob2RzOiB7CgogICAgICAgICAgICBnZXRBY3RpdmU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgdmFyIHJlZiA9IHRoaXMuZHJvcGRvd25zLm1hcCh0aGlzLmdldERyb3Bkb3duKS5maWx0ZXIoZnVuY3Rpb24gKGRyb3ApIHsgcmV0dXJuIGRyb3AgJiYgZHJvcC5pc0FjdGl2ZSgpOyB9KTsKICAgICAgICAgICAgICAgIHZhciBhY3RpdmUgPSByZWZbMF07CiAgICAgICAgICAgICAgICByZXR1cm4gYWN0aXZlICYmIGluY2x1ZGVzKGFjdGl2ZS5tb2RlLCAnaG92ZXInKSAmJiB3aXRoaW4oYWN0aXZlLnRvZ2dsZS4kZWwsIHRoaXMuJGVsKSAmJiBhY3RpdmU7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB0cmFuc2l0aW9uVG86IGZ1bmN0aW9uKG5ld0hlaWdodCwgZWwpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgICAgICB2YXIgcmVmID0gdGhpczsKICAgICAgICAgICAgICAgIHZhciBkcm9wYmFyID0gcmVmLmRyb3BiYXI7CiAgICAgICAgICAgICAgICB2YXIgb2xkSGVpZ2h0ID0gaXNWaXNpYmxlKGRyb3BiYXIpID8gaGVpZ2h0KGRyb3BiYXIpIDogMDsKCiAgICAgICAgICAgICAgICBlbCA9IG9sZEhlaWdodCA8IG5ld0hlaWdodCAmJiBlbDsKCiAgICAgICAgICAgICAgICBjc3MoZWwsICdjbGlwJywgKCJyZWN0KDAsIiArIChlbC5vZmZzZXRXaWR0aCkgKyAicHgsIiArIG9sZEhlaWdodCArICJweCwwKSIpKTsKCiAgICAgICAgICAgICAgICBoZWlnaHQoZHJvcGJhciwgb2xkSGVpZ2h0KTsKCiAgICAgICAgICAgICAgICBUcmFuc2l0aW9uLmNhbmNlbChbZWwsIGRyb3BiYXJdKTsKICAgICAgICAgICAgICAgIHJldHVybiBQcm9taXNlLmFsbChbCiAgICAgICAgICAgICAgICAgICAgVHJhbnNpdGlvbi5zdGFydChkcm9wYmFyLCB7aGVpZ2h0OiBuZXdIZWlnaHR9LCB0aGlzLmR1cmF0aW9uKSwKICAgICAgICAgICAgICAgICAgICBUcmFuc2l0aW9uLnN0YXJ0KGVsLCB7Y2xpcDogKCJyZWN0KDAsIiArIChlbC5vZmZzZXRXaWR0aCkgKyAicHgsIiArIG5ld0hlaWdodCArICJweCwwKSIpfSwgdGhpcy5kdXJhdGlvbikKICAgICAgICAgICAgICAgIF0pCiAgICAgICAgICAgICAgICAgICAgLmNhdGNoKG5vb3ApCiAgICAgICAgICAgICAgICAgICAgLnRoZW4oZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgICAgICBjc3MoZWwsIHtjbGlwOiAnJ30pOwogICAgICAgICAgICAgICAgICAgICAgICB0aGlzJDEuJHVwZGF0ZShkcm9wYmFyKTsKICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGdldERyb3Bkb3duOiBmdW5jdGlvbihlbCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuJGdldENvbXBvbmVudChlbCwgJ2Ryb3AnKSB8fCB0aGlzLiRnZXRDb21wb25lbnQoZWwsICdkcm9wZG93bicpOwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICB9OwoKICAgIHZhciBPZmZjYW52YXMgPSB7CgogICAgICAgIG1peGluczogW01vZGFsXSwKCiAgICAgICAgYXJnczogJ21vZGUnLAoKICAgICAgICBwcm9wczogewogICAgICAgICAgICBtb2RlOiBTdHJpbmcsCiAgICAgICAgICAgIGZsaXA6IEJvb2xlYW4sCiAgICAgICAgICAgIG92ZXJsYXk6IEJvb2xlYW4KICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIG1vZGU6ICdzbGlkZScsCiAgICAgICAgICAgIGZsaXA6IGZhbHNlLAogICAgICAgICAgICBvdmVybGF5OiBmYWxzZSwKICAgICAgICAgICAgY2xzUGFnZTogJ3VrLW9mZmNhbnZhcy1wYWdlJywKICAgICAgICAgICAgY2xzQ29udGFpbmVyOiAndWstb2ZmY2FudmFzLWNvbnRhaW5lcicsCiAgICAgICAgICAgIHNlbFBhbmVsOiAnLnVrLW9mZmNhbnZhcy1iYXInLAogICAgICAgICAgICBjbHNGbGlwOiAndWstb2ZmY2FudmFzLWZsaXAnLAogICAgICAgICAgICBjbHNDb250YWluZXJBbmltYXRpb246ICd1ay1vZmZjYW52YXMtY29udGFpbmVyLWFuaW1hdGlvbicsCiAgICAgICAgICAgIGNsc1NpZGViYXJBbmltYXRpb246ICd1ay1vZmZjYW52YXMtYmFyLWFuaW1hdGlvbicsCiAgICAgICAgICAgIGNsc01vZGU6ICd1ay1vZmZjYW52YXMnLAogICAgICAgICAgICBjbHNPdmVybGF5OiAndWstb2ZmY2FudmFzLW92ZXJsYXknLAogICAgICAgICAgICBzZWxDbG9zZTogJy51ay1vZmZjYW52YXMtY2xvc2UnLAogICAgICAgICAgICBjb250YWluZXI6IGZhbHNlCiAgICAgICAgfSwKCiAgICAgICAgY29tcHV0ZWQ6IHsKCiAgICAgICAgICAgIGNsc0ZsaXA6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIGZsaXAgPSByZWYuZmxpcDsKICAgICAgICAgICAgICAgIHZhciBjbHNGbGlwID0gcmVmLmNsc0ZsaXA7CgogICAgICAgICAgICAgICAgcmV0dXJuIGZsaXAgPyBjbHNGbGlwIDogJyc7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBjbHNPdmVybGF5OiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBvdmVybGF5ID0gcmVmLm92ZXJsYXk7CiAgICAgICAgICAgICAgICB2YXIgY2xzT3ZlcmxheSA9IHJlZi5jbHNPdmVybGF5OwoKICAgICAgICAgICAgICAgIHJldHVybiBvdmVybGF5ID8gY2xzT3ZlcmxheSA6ICcnOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgY2xzTW9kZTogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgbW9kZSA9IHJlZi5tb2RlOwogICAgICAgICAgICAgICAgdmFyIGNsc01vZGUgPSByZWYuY2xzTW9kZTsKCiAgICAgICAgICAgICAgICByZXR1cm4gKGNsc01vZGUgKyAiLSIgKyBtb2RlKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGNsc1NpZGViYXJBbmltYXRpb246IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIG1vZGUgPSByZWYubW9kZTsKICAgICAgICAgICAgICAgIHZhciBjbHNTaWRlYmFyQW5pbWF0aW9uID0gcmVmLmNsc1NpZGViYXJBbmltYXRpb247CgogICAgICAgICAgICAgICAgcmV0dXJuIG1vZGUgPT09ICdub25lJyB8fCBtb2RlID09PSAncmV2ZWFsJyA/ICcnIDogY2xzU2lkZWJhckFuaW1hdGlvbjsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGNsc0NvbnRhaW5lckFuaW1hdGlvbjogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgbW9kZSA9IHJlZi5tb2RlOwogICAgICAgICAgICAgICAgdmFyIGNsc0NvbnRhaW5lckFuaW1hdGlvbiA9IHJlZi5jbHNDb250YWluZXJBbmltYXRpb247CgogICAgICAgICAgICAgICAgcmV0dXJuIG1vZGUgIT09ICdwdXNoJyAmJiBtb2RlICE9PSAncmV2ZWFsJyA/ICcnIDogY2xzQ29udGFpbmVyQW5pbWF0aW9uOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgdHJhbnNpdGlvbkVsZW1lbnQ6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIG1vZGUgPSByZWYubW9kZTsKCiAgICAgICAgICAgICAgICByZXR1cm4gbW9kZSA9PT0gJ3JldmVhbCcgPyB0aGlzLnBhbmVsLnBhcmVudE5vZGUgOiB0aGlzLnBhbmVsOwogICAgICAgICAgICB9CgogICAgICAgIH0sCgogICAgICAgIGV2ZW50czogWwoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIG5hbWU6ICdjbGljaycsCgogICAgICAgICAgICAgICAgZGVsZWdhdGU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAnYVtocmVmXj0iIyJdJzsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGhhc2ggPSByZWYuY3VycmVudC5oYXNoOwogICAgICAgICAgICAgICAgICAgIHZhciBkZWZhdWx0UHJldmVudGVkID0gcmVmLmRlZmF1bHRQcmV2ZW50ZWQ7CgogICAgICAgICAgICAgICAgICAgIGlmICghZGVmYXVsdFByZXZlbnRlZCAmJiBoYXNoICYmICQoaGFzaCwgZG9jdW1lbnQuYm9keSkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5oaWRlKCk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIG5hbWU6ICd0b3VjaHN0YXJ0JywKCiAgICAgICAgICAgICAgICBwYXNzaXZlOiB0cnVlLAoKICAgICAgICAgICAgICAgIGVsOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5wYW5lbDsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIHRhcmdldFRvdWNoZXMgPSByZWYudGFyZ2V0VG91Y2hlczsKCgogICAgICAgICAgICAgICAgICAgIGlmICh0YXJnZXRUb3VjaGVzLmxlbmd0aCA9PT0gMSkgewogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmNsaWVudFkgPSB0YXJnZXRUb3VjaGVzWzBdLmNsaWVudFk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAndG91Y2htb3ZlJywKCiAgICAgICAgICAgICAgICBzZWxmOiB0cnVlLAogICAgICAgICAgICAgICAgcGFzc2l2ZTogZmFsc2UsCgogICAgICAgICAgICAgICAgZmlsdGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5vdmVybGF5OwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgICAgICAgICAgZS5jYW5jZWxhYmxlICYmIGUucHJldmVudERlZmF1bHQoKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAndG91Y2htb3ZlJywKCiAgICAgICAgICAgICAgICBwYXNzaXZlOiBmYWxzZSwKCiAgICAgICAgICAgICAgICBlbDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMucGFuZWw7CiAgICAgICAgICAgICAgICB9LAoKICAgICAgICAgICAgICAgIGhhbmRsZXI6IGZ1bmN0aW9uKGUpIHsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGUudGFyZ2V0VG91Y2hlcy5sZW5ndGggIT09IDEpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgdmFyIGNsaWVudFkgPSBldmVudC50YXJnZXRUb3VjaGVzWzBdLmNsaWVudFkgLSB0aGlzLmNsaWVudFk7CiAgICAgICAgICAgICAgICAgICAgdmFyIHJlZiA9IHRoaXMucGFuZWw7CiAgICAgICAgICAgICAgICAgICAgdmFyIHNjcm9sbFRvcCA9IHJlZi5zY3JvbGxUb3A7CiAgICAgICAgICAgICAgICAgICAgdmFyIHNjcm9sbEhlaWdodCA9IHJlZi5zY3JvbGxIZWlnaHQ7CiAgICAgICAgICAgICAgICAgICAgdmFyIGNsaWVudEhlaWdodCA9IHJlZi5jbGllbnRIZWlnaHQ7CgogICAgICAgICAgICAgICAgICAgIGlmIChjbGllbnRIZWlnaHQgPj0gc2Nyb2xsSGVpZ2h0CiAgICAgICAgICAgICAgICAgICAgICAgIHx8IHNjcm9sbFRvcCA9PT0gMCAmJiBjbGllbnRZID4gMAogICAgICAgICAgICAgICAgICAgICAgICB8fCBzY3JvbGxIZWlnaHQgLSBzY3JvbGxUb3AgPD0gY2xpZW50SGVpZ2h0ICYmIGNsaWVudFkgPCAwCiAgICAgICAgICAgICAgICAgICAgKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGUuY2FuY2VsYWJsZSAmJiBlLnByZXZlbnREZWZhdWx0KCk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAnc2hvdycsCgogICAgICAgICAgICAgICAgc2VsZjogdHJ1ZSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMubW9kZSA9PT0gJ3JldmVhbCcgJiYgIWhhc0NsYXNzKHRoaXMucGFuZWwucGFyZW50Tm9kZSwgdGhpcy5jbHNNb2RlKSkgewogICAgICAgICAgICAgICAgICAgICAgICB3cmFwQWxsKHRoaXMucGFuZWwsICc8ZGl2PicpOwogICAgICAgICAgICAgICAgICAgICAgICBhZGRDbGFzcyh0aGlzLnBhbmVsLnBhcmVudE5vZGUsIHRoaXMuY2xzTW9kZSk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICBjc3MoZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50LCAnb3ZlcmZsb3dZJywgdGhpcy5vdmVybGF5ID8gJ2hpZGRlbicgOiAnJyk7CiAgICAgICAgICAgICAgICAgICAgYWRkQ2xhc3MoZG9jdW1lbnQuYm9keSwgdGhpcy5jbHNDb250YWluZXIsIHRoaXMuY2xzRmxpcCk7CiAgICAgICAgICAgICAgICAgICAgY3NzKGRvY3VtZW50LmJvZHksICd0b3VjaC1hY3Rpb24nLCAncGFuLXkgcGluY2gtem9vbScpOwogICAgICAgICAgICAgICAgICAgIGNzcyh0aGlzLiRlbCwgJ2Rpc3BsYXknLCAnYmxvY2snKTsKICAgICAgICAgICAgICAgICAgICBhZGRDbGFzcyh0aGlzLiRlbCwgdGhpcy5jbHNPdmVybGF5KTsKICAgICAgICAgICAgICAgICAgICBhZGRDbGFzcyh0aGlzLnBhbmVsLCB0aGlzLmNsc1NpZGViYXJBbmltYXRpb24sIHRoaXMubW9kZSAhPT0gJ3JldmVhbCcgPyB0aGlzLmNsc01vZGUgOiAnJyk7CgogICAgICAgICAgICAgICAgICAgIGhlaWdodChkb2N1bWVudC5ib2R5KTsgLy8gZm9yY2UgcmVmbG93CiAgICAgICAgICAgICAgICAgICAgYWRkQ2xhc3MoZG9jdW1lbnQuYm9keSwgdGhpcy5jbHNDb250YWluZXJBbmltYXRpb24pOwoKICAgICAgICAgICAgICAgICAgICB0aGlzLmNsc0NvbnRhaW5lckFuaW1hdGlvbiAmJiBzdXBwcmVzc1VzZXJTY2FsZSgpOwoKCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAnaGlkZScsCgogICAgICAgICAgICAgICAgc2VsZjogdHJ1ZSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZW1vdmVDbGFzcyhkb2N1bWVudC5ib2R5LCB0aGlzLmNsc0NvbnRhaW5lckFuaW1hdGlvbik7CiAgICAgICAgICAgICAgICAgICAgY3NzKGRvY3VtZW50LmJvZHksICd0b3VjaC1hY3Rpb24nLCAnJyk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAnaGlkZGVuJywKCiAgICAgICAgICAgICAgICBzZWxmOiB0cnVlLAoKICAgICAgICAgICAgICAgIGhhbmRsZXI6IGZ1bmN0aW9uKCkgewoKICAgICAgICAgICAgICAgICAgICB0aGlzLmNsc0NvbnRhaW5lckFuaW1hdGlvbiAmJiByZXN1bWVVc2VyU2NhbGUoKTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMubW9kZSA9PT0gJ3JldmVhbCcpIHsKICAgICAgICAgICAgICAgICAgICAgICAgdW53cmFwKHRoaXMucGFuZWwpOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgcmVtb3ZlQ2xhc3ModGhpcy5wYW5lbCwgdGhpcy5jbHNTaWRlYmFyQW5pbWF0aW9uLCB0aGlzLmNsc01vZGUpOwogICAgICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzKHRoaXMuJGVsLCB0aGlzLmNsc092ZXJsYXkpOwogICAgICAgICAgICAgICAgICAgIGNzcyh0aGlzLiRlbCwgJ2Rpc3BsYXknLCAnJyk7CiAgICAgICAgICAgICAgICAgICAgcmVtb3ZlQ2xhc3MoZG9jdW1lbnQuYm9keSwgdGhpcy5jbHNDb250YWluZXIsIHRoaXMuY2xzRmxpcCk7CgogICAgICAgICAgICAgICAgICAgIGNzcyhkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQsICdvdmVyZmxvd1knLCAnJyk7CgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgbmFtZTogJ3N3aXBlTGVmdCBzd2lwZVJpZ2h0JywKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlKSB7CgogICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmlzVG9nZ2xlZCgpICYmIGVuZHNXaXRoKGUudHlwZSwgJ0xlZnQnKSBeIHRoaXMuZmxpcCkgewogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmhpZGUoKTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgIF0KCiAgICB9OwoKICAgIC8vIENocm9tZSBpbiByZXNwb25zaXZlIG1vZGUgem9vbXMgcGFnZSB1cG9uIG9wZW5pbmcgb2ZmY2FudmFzCiAgICBmdW5jdGlvbiBzdXBwcmVzc1VzZXJTY2FsZSgpIHsKICAgICAgICBnZXRWaWV3cG9ydCgpLmNvbnRlbnQgKz0gJyx1c2VyLXNjYWxhYmxlPTAnOwogICAgfQoKICAgIGZ1bmN0aW9uIHJlc3VtZVVzZXJTY2FsZSgpIHsKICAgICAgICB2YXIgdmlld3BvcnQgPSBnZXRWaWV3cG9ydCgpOwogICAgICAgIHZpZXdwb3J0LmNvbnRlbnQgPSB2aWV3cG9ydC5jb250ZW50LnJlcGxhY2UoLyx1c2VyLXNjYWxhYmxlPTAkLywgJycpOwogICAgfQoKICAgIGZ1bmN0aW9uIGdldFZpZXdwb3J0KCkgewogICAgICAgIHJldHVybiAkKCdtZXRhW25hbWU9InZpZXdwb3J0Il0nLCBkb2N1bWVudC5oZWFkKSB8fCBhcHBlbmQoZG9jdW1lbnQuaGVhZCwgJzxtZXRhIG5hbWU9InZpZXdwb3J0Ij4nKTsKICAgIH0KCiAgICB2YXIgT3ZlcmZsb3dBdXRvID0gewoKICAgICAgICBtaXhpbnM6IFtDbGFzc10sCgogICAgICAgIHByb3BzOiB7CiAgICAgICAgICAgIHNlbENvbnRhaW5lcjogU3RyaW5nLAogICAgICAgICAgICBzZWxDb250ZW50OiBTdHJpbmcKICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIHNlbENvbnRhaW5lcjogJy51ay1tb2RhbCcsCiAgICAgICAgICAgIHNlbENvbnRlbnQ6ICcudWstbW9kYWwtZGlhbG9nJwogICAgICAgIH0sCgogICAgICAgIGNvbXB1dGVkOiB7CgogICAgICAgICAgICBjb250YWluZXI6IGZ1bmN0aW9uKHJlZiwgJGVsKSB7CiAgICAgICAgICAgICAgICB2YXIgc2VsQ29udGFpbmVyID0gcmVmLnNlbENvbnRhaW5lcjsKCiAgICAgICAgICAgICAgICByZXR1cm4gY2xvc2VzdCgkZWwsIHNlbENvbnRhaW5lcik7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBjb250ZW50OiBmdW5jdGlvbihyZWYsICRlbCkgewogICAgICAgICAgICAgICAgdmFyIHNlbENvbnRlbnQgPSByZWYuc2VsQ29udGVudDsKCiAgICAgICAgICAgICAgICByZXR1cm4gY2xvc2VzdCgkZWwsIHNlbENvbnRlbnQpOwogICAgICAgICAgICB9CgogICAgICAgIH0sCgogICAgICAgIGNvbm5lY3RlZDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIGNzcyh0aGlzLiRlbCwgJ21pbkhlaWdodCcsIDE1MCk7CiAgICAgICAgfSwKCiAgICAgICAgdXBkYXRlOiB7CgogICAgICAgICAgICByZWFkOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgICAgICBpZiAoIXRoaXMuY29udGVudCB8fCAhdGhpcy5jb250YWluZXIpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgICAgICAgICBjdXJyZW50OiB0b0Zsb2F0KGNzcyh0aGlzLiRlbCwgJ21heEhlaWdodCcpKSwKICAgICAgICAgICAgICAgICAgICBtYXg6IE1hdGgubWF4KDE1MCwgaGVpZ2h0KHRoaXMuY29udGFpbmVyKSAtIChvZmZzZXQodGhpcy5jb250ZW50KS5oZWlnaHQgLSBoZWlnaHQodGhpcy4kZWwpKSkKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB3cml0ZTogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgY3VycmVudCA9IHJlZi5jdXJyZW50OwogICAgICAgICAgICAgICAgdmFyIG1heCA9IHJlZi5tYXg7CgogICAgICAgICAgICAgICAgY3NzKHRoaXMuJGVsLCAnbWF4SGVpZ2h0JywgbWF4KTsKICAgICAgICAgICAgICAgIGlmIChNYXRoLnJvdW5kKGN1cnJlbnQpICE9PSBNYXRoLnJvdW5kKG1heCkpIHsKICAgICAgICAgICAgICAgICAgICB0cmlnZ2VyKHRoaXMuJGVsLCAncmVzaXplJyk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBldmVudHM6IFsncmVzaXplJ10KCiAgICAgICAgfQoKICAgIH07CgogICAgdmFyIFJlc3BvbnNpdmUgPSB7CgogICAgICAgIHByb3BzOiBbJ3dpZHRoJywgJ2hlaWdodCddLAoKICAgICAgICBjb25uZWN0ZWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICBhZGRDbGFzcyh0aGlzLiRlbCwgJ3VrLXJlc3BvbnNpdmUtd2lkdGgnKTsKICAgICAgICB9LAoKICAgICAgICB1cGRhdGU6IHsKCiAgICAgICAgICAgIHJlYWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGlzVmlzaWJsZSh0aGlzLiRlbCkgJiYgdGhpcy53aWR0aCAmJiB0aGlzLmhlaWdodAogICAgICAgICAgICAgICAgICAgID8ge3dpZHRoOiB3aWR0aCh0aGlzLiRlbC5wYXJlbnROb2RlKSwgaGVpZ2h0OiB0aGlzLmhlaWdodH0KICAgICAgICAgICAgICAgICAgICA6IGZhbHNlOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgd3JpdGU6IGZ1bmN0aW9uKGRpbSkgewogICAgICAgICAgICAgICAgaGVpZ2h0KHRoaXMuJGVsLCBEaW1lbnNpb25zLmNvbnRhaW4oewogICAgICAgICAgICAgICAgICAgIGhlaWdodDogdGhpcy5oZWlnaHQsCiAgICAgICAgICAgICAgICAgICAgd2lkdGg6IHRoaXMud2lkdGgKICAgICAgICAgICAgICAgIH0sIGRpbSkuaGVpZ2h0KTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGV2ZW50czogWydyZXNpemUnXQoKICAgICAgICB9CgogICAgfTsKCiAgICB2YXIgU2Nyb2xsID0gewoKICAgICAgICBwcm9wczogewogICAgICAgICAgICBkdXJhdGlvbjogTnVtYmVyLAogICAgICAgICAgICBvZmZzZXQ6IE51bWJlcgogICAgICAgIH0sCgogICAgICAgIGRhdGE6IHsKICAgICAgICAgICAgZHVyYXRpb246IDEwMDAsCiAgICAgICAgICAgIG9mZnNldDogMAogICAgICAgIH0sCgogICAgICAgIG1ldGhvZHM6IHsKCiAgICAgICAgICAgIHNjcm9sbFRvOiBmdW5jdGlvbihlbCkgewogICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgoKICAgICAgICAgICAgICAgIGVsID0gZWwgJiYgJChlbCkgfHwgZG9jdW1lbnQuYm9keTsKCiAgICAgICAgICAgICAgICB2YXIgZG9jSGVpZ2h0ID0gaGVpZ2h0KGRvY3VtZW50KTsKICAgICAgICAgICAgICAgIHZhciB3aW5IZWlnaHQgPSBoZWlnaHQod2luZG93KTsKCiAgICAgICAgICAgICAgICB2YXIgdGFyZ2V0ID0gb2Zmc2V0KGVsKS50b3AgLSB0aGlzLm9mZnNldDsKICAgICAgICAgICAgICAgIGlmICh0YXJnZXQgKyB3aW5IZWlnaHQgPiBkb2NIZWlnaHQpIHsKICAgICAgICAgICAgICAgICAgICB0YXJnZXQgPSBkb2NIZWlnaHQgLSB3aW5IZWlnaHQ7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgaWYgKCF0cmlnZ2VyKHRoaXMuJGVsLCAnYmVmb3Jlc2Nyb2xsJywgW3RoaXMsIGVsXSkpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdmFyIHN0YXJ0ID0gRGF0ZS5ub3coKTsKICAgICAgICAgICAgICAgIHZhciBzdGFydFkgPSB3aW5kb3cucGFnZVlPZmZzZXQ7CiAgICAgICAgICAgICAgICB2YXIgc3RlcCA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgICAgICAgICAgdmFyIGN1cnJlbnRZID0gc3RhcnRZICsgKHRhcmdldCAtIHN0YXJ0WSkgKiBlYXNlKGNsYW1wKChEYXRlLm5vdygpIC0gc3RhcnQpIC8gdGhpcyQxLmR1cmF0aW9uKSk7CgogICAgICAgICAgICAgICAgICAgIHNjcm9sbFRvcCh3aW5kb3csIGN1cnJlbnRZKTsKCiAgICAgICAgICAgICAgICAgICAgLy8gc2Nyb2xsIG1vcmUgaWYgd2UgaGF2ZSBub3QgcmVhY2hlZCBvdXIgZGVzdGluYXRpb24KICAgICAgICAgICAgICAgICAgICBpZiAoY3VycmVudFkgIT09IHRhcmdldCkgewogICAgICAgICAgICAgICAgICAgICAgICByZXF1ZXN0QW5pbWF0aW9uRnJhbWUoc3RlcCk7CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgdHJpZ2dlcih0aGlzJDEuJGVsLCAnc2Nyb2xsZWQnLCBbdGhpcyQxLCBlbF0pOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB9OwoKICAgICAgICAgICAgICAgIHN0ZXAoKTsKCiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiB7CgogICAgICAgICAgICBjbGljazogZnVuY3Rpb24oZSkgewoKICAgICAgICAgICAgICAgIGlmIChlLmRlZmF1bHRQcmV2ZW50ZWQpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpOwogICAgICAgICAgICAgICAgdGhpcy5zY3JvbGxUbyhlc2NhcGUoZGVjb2RlVVJJQ29tcG9uZW50KHRoaXMuJGVsLmhhc2gpKS5zdWJzdHIoMSkpOwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICB9OwoKICAgIGZ1bmN0aW9uIGVhc2UoaykgewogICAgICAgIHJldHVybiAwLjUgKiAoMSAtIE1hdGguY29zKE1hdGguUEkgKiBrKSk7CiAgICB9CgogICAgdmFyIFNjcm9sbHNweSA9IHsKCiAgICAgICAgYXJnczogJ2NscycsCgogICAgICAgIHByb3BzOiB7CiAgICAgICAgICAgIGNsczogU3RyaW5nLAogICAgICAgICAgICB0YXJnZXQ6IFN0cmluZywKICAgICAgICAgICAgaGlkZGVuOiBCb29sZWFuLAogICAgICAgICAgICBvZmZzZXRUb3A6IE51bWJlciwKICAgICAgICAgICAgb2Zmc2V0TGVmdDogTnVtYmVyLAogICAgICAgICAgICByZXBlYXQ6IEJvb2xlYW4sCiAgICAgICAgICAgIGRlbGF5OiBOdW1iZXIKICAgICAgICB9LAoKICAgICAgICBkYXRhOiBmdW5jdGlvbiAoKSB7IHJldHVybiAoewogICAgICAgICAgICBjbHM6IGZhbHNlLAogICAgICAgICAgICB0YXJnZXQ6IGZhbHNlLAogICAgICAgICAgICBoaWRkZW46IHRydWUsCiAgICAgICAgICAgIG9mZnNldFRvcDogMCwKICAgICAgICAgICAgb2Zmc2V0TGVmdDogMCwKICAgICAgICAgICAgcmVwZWF0OiBmYWxzZSwKICAgICAgICAgICAgZGVsYXk6IDAsCiAgICAgICAgICAgIGluVmlld0NsYXNzOiAndWstc2Nyb2xsc3B5LWludmlldycKICAgICAgICB9KTsgfSwKCiAgICAgICAgY29tcHV0ZWQ6IHsKCiAgICAgICAgICAgIGVsZW1lbnRzOiBmdW5jdGlvbihyZWYsICRlbCkgewogICAgICAgICAgICAgICAgdmFyIHRhcmdldCA9IHJlZi50YXJnZXQ7CgogICAgICAgICAgICAgICAgcmV0dXJuIHRhcmdldCA/ICQkKHRhcmdldCwgJGVsKSA6IFskZWxdOwogICAgICAgICAgICB9CgogICAgICAgIH0sCgogICAgICAgIHVwZGF0ZTogWwoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIHdyaXRlOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5oaWRkZW4pIHsKICAgICAgICAgICAgICAgICAgICAgICAgY3NzKGZpbHRlcih0aGlzLmVsZW1lbnRzLCAoIjpub3QoLiIgKyAodGhpcy5pblZpZXdDbGFzcykgKyAiKSIpKSwgJ3Zpc2liaWxpdHknLCAnaGlkZGVuJyk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICByZWFkOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKICAgICAgICAgICAgICAgICAgICB2YXIgdXBkYXRlID0gcmVmLnVwZGF0ZTsKCgogICAgICAgICAgICAgICAgICAgIGlmICghdXBkYXRlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIHRoaXMuZWxlbWVudHMuZm9yRWFjaChmdW5jdGlvbiAoZWwpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBzdGF0ZSA9IGVsLl91a1Njcm9sbHNweVN0YXRlOwoKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFzdGF0ZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGUgPSB7Y2xzOiBkYXRhKGVsLCAndWstc2Nyb2xsc3B5LWNsYXNzJykgfHwgdGhpcyQxLmNsc307CiAgICAgICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRlLnNob3cgPSBpc0luVmlldyhlbCwgdGhpcyQxLm9mZnNldFRvcCwgdGhpcyQxLm9mZnNldExlZnQpOwogICAgICAgICAgICAgICAgICAgICAgICBlbC5fdWtTY3JvbGxzcHlTdGF0ZSA9IHN0YXRlOwoKICAgICAgICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgICAgICB9LAoKICAgICAgICAgICAgICAgIHdyaXRlOiBmdW5jdGlvbihkYXRhKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgoKICAgICAgICAgICAgICAgICAgICAvLyBMZXQgY2hpbGQgY29tcG9uZW50cyBiZSBhcHBsaWVkIGF0IGxlYXN0IG9uY2UgZmlyc3QKICAgICAgICAgICAgICAgICAgICBpZiAoIWRhdGEudXBkYXRlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJGVtaXQoKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGEudXBkYXRlID0gdHJ1ZTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIHRoaXMuZWxlbWVudHMuZm9yRWFjaChmdW5jdGlvbiAoZWwpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBzdGF0ZSA9IGVsLl91a1Njcm9sbHNweVN0YXRlOwogICAgICAgICAgICAgICAgICAgICAgICB2YXIgY2xzID0gc3RhdGUuY2xzOwoKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHN0YXRlLnNob3cgJiYgIXN0YXRlLmludmlldyAmJiAhc3RhdGUucXVldWVkKSB7CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHNob3cgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNzcyhlbCwgJ3Zpc2liaWxpdHknLCAnJyk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWRkQ2xhc3MoZWwsIHRoaXMkMS5pblZpZXdDbGFzcyk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9nZ2xlQ2xhc3MoZWwsIGNscyk7CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyaWdnZXIoZWwsICdpbnZpZXcnKTsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcyQxLiR1cGRhdGUoZWwpOwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0ZS5pbnZpZXcgPSB0cnVlOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRlLmFib3J0ICYmIHN0YXRlLmFib3J0KCk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9OwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzJDEuZGVsYXkpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGUucXVldWVkID0gdHJ1ZTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnByb21pc2UgPSAoZGF0YS5wcm9taXNlIHx8IFByb21pc2UucmVzb2x2ZSgpKS50aGVuKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICFzdGF0ZS5pbnZpZXcgJiYgbmV3IFByb21pc2UoZnVuY3Rpb24gKHJlc29sdmUpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdGltZXIgPSBzZXRUaW1lb3V0KGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2hvdygpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdmUoKTsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LCBkYXRhLnByb21pc2UgfHwgdGhpcyQxLmVsZW1lbnRzLmxlbmd0aCA9PT0gMSA/IHRoaXMkMS5kZWxheSA6IDApOwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRlLmFib3J0ID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsZWFyVGltZW91dCh0aW1lcik7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZSgpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRlLnF1ZXVlZCA9IGZhbHNlOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfTsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNob3coKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoIXN0YXRlLnNob3cgJiYgKHN0YXRlLmludmlldyB8fCBzdGF0ZS5xdWV1ZWQpICYmIHRoaXMkMS5yZXBlYXQpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0ZS5hYm9ydCAmJiBzdGF0ZS5hYm9ydCgpOwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghc3RhdGUuaW52aWV3KSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNzcyhlbCwgJ3Zpc2liaWxpdHknLCB0aGlzJDEuaGlkZGVuID8gJ2hpZGRlbicgOiAnJyk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZW1vdmVDbGFzcyhlbCwgdGhpcyQxLmluVmlld0NsYXNzKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvZ2dsZUNsYXNzKGVsLCBjbHMpOwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyaWdnZXIoZWwsICdvdXR2aWV3Jyk7CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcyQxLiR1cGRhdGUoZWwpOwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRlLmludmlldyA9IGZhbHNlOwoKICAgICAgICAgICAgICAgICAgICAgICAgfQoKCiAgICAgICAgICAgICAgICAgICAgfSk7CgogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBldmVudHM6IFsnc2Nyb2xsJywgJ3Jlc2l6ZSddCgogICAgICAgICAgICB9CgogICAgICAgIF0KCiAgICB9OwoKICAgIHZhciBTY3JvbGxzcHlOYXYgPSB7CgogICAgICAgIHByb3BzOiB7CiAgICAgICAgICAgIGNsczogU3RyaW5nLAogICAgICAgICAgICBjbG9zZXN0OiBTdHJpbmcsCiAgICAgICAgICAgIHNjcm9sbDogQm9vbGVhbiwKICAgICAgICAgICAgb3ZlcmZsb3c6IEJvb2xlYW4sCiAgICAgICAgICAgIG9mZnNldDogTnVtYmVyCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICBjbHM6ICd1ay1hY3RpdmUnLAogICAgICAgICAgICBjbG9zZXN0OiBmYWxzZSwKICAgICAgICAgICAgc2Nyb2xsOiBmYWxzZSwKICAgICAgICAgICAgb3ZlcmZsb3c6IHRydWUsCiAgICAgICAgICAgIG9mZnNldDogMAogICAgICAgIH0sCgogICAgICAgIGNvbXB1dGVkOiB7CgogICAgICAgICAgICBsaW5rczogZnVuY3Rpb24oXywgJGVsKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gJCQoJ2FbaHJlZl49IiMiXScsICRlbCkuZmlsdGVyKGZ1bmN0aW9uIChlbCkgeyByZXR1cm4gZWwuaGFzaDsgfSk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBlbGVtZW50czogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgc2VsZWN0b3IgPSByZWYuY2xvc2VzdDsKCiAgICAgICAgICAgICAgICByZXR1cm4gY2xvc2VzdCh0aGlzLmxpbmtzLCBzZWxlY3RvciB8fCAnKicpOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgdGFyZ2V0czogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gJCQodGhpcy5saW5rcy5tYXAoZnVuY3Rpb24gKGVsKSB7IHJldHVybiBlc2NhcGUoZWwuaGFzaCkuc3Vic3RyKDEpOyB9KS5qb2luKCcsJykpOwogICAgICAgICAgICB9CgogICAgICAgIH0sCgogICAgICAgIHVwZGF0ZTogWwoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIHJlYWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLnNjcm9sbCkgewogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiRjcmVhdGUoJ3Njcm9sbCcsIHRoaXMubGlua3MsIHtvZmZzZXQ6IHRoaXMub2Zmc2V0IHx8IDB9KTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIHJlYWQ6IGZ1bmN0aW9uKGRhdGEpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICAgICAgICAgIHZhciBzY3JvbGwgPSB3aW5kb3cucGFnZVlPZmZzZXQgKyB0aGlzLm9mZnNldCArIDE7CiAgICAgICAgICAgICAgICAgICAgdmFyIG1heCA9IGhlaWdodChkb2N1bWVudCkgLSBoZWlnaHQod2luZG93KSArIHRoaXMub2Zmc2V0OwoKICAgICAgICAgICAgICAgICAgICBkYXRhLmFjdGl2ZSA9IGZhbHNlOwoKICAgICAgICAgICAgICAgICAgICB0aGlzLnRhcmdldHMuZXZlcnkoZnVuY3Rpb24gKGVsLCBpKSB7CgogICAgICAgICAgICAgICAgICAgICAgICB2YXIgcmVmID0gb2Zmc2V0KGVsKTsKICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHRvcCA9IHJlZi50b3A7CiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBsYXN0ID0gaSArIDEgPT09IHRoaXMkMS50YXJnZXRzLmxlbmd0aDsKCiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghdGhpcyQxLm92ZXJmbG93ICYmIChpID09PSAwICYmIHRvcCA+IHNjcm9sbCB8fCBsYXN0ICYmIHRvcCArIGVsLm9mZnNldFRvcCA8IHNjcm9sbCkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFsYXN0ICYmIG9mZnNldCh0aGlzJDEudGFyZ2V0c1tpICsgMV0pLnRvcCA8PSBzY3JvbGwpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgICAgICBpZiAoc2Nyb2xsID49IG1heCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9yICh2YXIgaiA9IHRoaXMkMS50YXJnZXRzLmxlbmd0aCAtIDE7IGogPiBpOyBqLS0pIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoaXNJblZpZXcodGhpcyQxLnRhcmdldHNbal0pKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsID0gdGhpcyQxLnRhcmdldHNbal07CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICEoZGF0YS5hY3RpdmUgPSAkKGZpbHRlcih0aGlzJDEubGlua3MsICgiW2hyZWY9XCIjIiArIChlbC5pZCkgKyAiXCJdIikpKSk7CgogICAgICAgICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgd3JpdGU6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgICAgIHZhciBhY3RpdmUgPSByZWYuYWN0aXZlOwoKCiAgICAgICAgICAgICAgICAgICAgdGhpcy5saW5rcy5mb3JFYWNoKGZ1bmN0aW9uIChlbCkgeyByZXR1cm4gZWwuYmx1cigpOyB9KTsKICAgICAgICAgICAgICAgICAgICByZW1vdmVDbGFzcyh0aGlzLmVsZW1lbnRzLCB0aGlzLmNscyk7CgogICAgICAgICAgICAgICAgICAgIGlmIChhY3RpdmUpIHsKICAgICAgICAgICAgICAgICAgICAgICAgdHJpZ2dlcih0aGlzLiRlbCwgJ2FjdGl2ZScsIFthY3RpdmUsIGFkZENsYXNzKHRoaXMuY2xvc2VzdCA/IGNsb3Nlc3QoYWN0aXZlLCB0aGlzLmNsb3Nlc3QpIDogYWN0aXZlLCB0aGlzLmNscyldKTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBldmVudHM6IFsnc2Nyb2xsJywgJ3Jlc2l6ZSddCgogICAgICAgICAgICB9CgogICAgICAgIF0KCiAgICB9OwoKICAgIHZhciBTdGlja3kgPSB7CgogICAgICAgIG1peGluczogW0NsYXNzLCBNZWRpYV0sCgogICAgICAgIHByb3BzOiB7CiAgICAgICAgICAgIHRvcDogbnVsbCwKICAgICAgICAgICAgYm90dG9tOiBCb29sZWFuLAogICAgICAgICAgICBvZmZzZXQ6IFN0cmluZywKICAgICAgICAgICAgYW5pbWF0aW9uOiBTdHJpbmcsCiAgICAgICAgICAgIGNsc0FjdGl2ZTogU3RyaW5nLAogICAgICAgICAgICBjbHNJbmFjdGl2ZTogU3RyaW5nLAogICAgICAgICAgICBjbHNGaXhlZDogU3RyaW5nLAogICAgICAgICAgICBjbHNCZWxvdzogU3RyaW5nLAogICAgICAgICAgICBzZWxUYXJnZXQ6IFN0cmluZywKICAgICAgICAgICAgd2lkdGhFbGVtZW50OiBCb29sZWFuLAogICAgICAgICAgICBzaG93T25VcDogQm9vbGVhbiwKICAgICAgICAgICAgdGFyZ2V0T2Zmc2V0OiBOdW1iZXIKICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIHRvcDogMCwKICAgICAgICAgICAgYm90dG9tOiBmYWxzZSwKICAgICAgICAgICAgb2Zmc2V0OiAwLAogICAgICAgICAgICBhbmltYXRpb246ICcnLAogICAgICAgICAgICBjbHNBY3RpdmU6ICd1ay1hY3RpdmUnLAogICAgICAgICAgICBjbHNJbmFjdGl2ZTogJycsCiAgICAgICAgICAgIGNsc0ZpeGVkOiAndWstc3RpY2t5LWZpeGVkJywKICAgICAgICAgICAgY2xzQmVsb3c6ICd1ay1zdGlja3ktYmVsb3cnLAogICAgICAgICAgICBzZWxUYXJnZXQ6ICcnLAogICAgICAgICAgICB3aWR0aEVsZW1lbnQ6IGZhbHNlLAogICAgICAgICAgICBzaG93T25VcDogZmFsc2UsCiAgICAgICAgICAgIHRhcmdldE9mZnNldDogZmFsc2UKICAgICAgICB9LAoKICAgICAgICBjb21wdXRlZDogewoKICAgICAgICAgICAgb2Zmc2V0OiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBvZmZzZXQgPSByZWYub2Zmc2V0OwoKICAgICAgICAgICAgICAgIHJldHVybiB0b1B4KG9mZnNldCk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBzZWxUYXJnZXQ6IGZ1bmN0aW9uKHJlZiwgJGVsKSB7CiAgICAgICAgICAgICAgICB2YXIgc2VsVGFyZ2V0ID0gcmVmLnNlbFRhcmdldDsKCiAgICAgICAgICAgICAgICByZXR1cm4gc2VsVGFyZ2V0ICYmICQoc2VsVGFyZ2V0LCAkZWwpIHx8ICRlbDsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHdpZHRoRWxlbWVudDogZnVuY3Rpb24ocmVmLCAkZWwpIHsKICAgICAgICAgICAgICAgIHZhciB3aWR0aEVsZW1lbnQgPSByZWYud2lkdGhFbGVtZW50OwoKICAgICAgICAgICAgICAgIHJldHVybiBxdWVyeSh3aWR0aEVsZW1lbnQsICRlbCkgfHwgdGhpcy5wbGFjZWhvbGRlcjsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGlzQWN0aXZlOiB7CgogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gaGFzQ2xhc3ModGhpcy5zZWxUYXJnZXQsIHRoaXMuY2xzQWN0aXZlKTsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgc2V0OiBmdW5jdGlvbih2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIGlmICh2YWx1ZSAmJiAhdGhpcy5pc0FjdGl2ZSkgewogICAgICAgICAgICAgICAgICAgICAgICByZXBsYWNlQ2xhc3ModGhpcy5zZWxUYXJnZXQsIHRoaXMuY2xzSW5hY3RpdmUsIHRoaXMuY2xzQWN0aXZlKTsKICAgICAgICAgICAgICAgICAgICAgICAgdHJpZ2dlcih0aGlzLiRlbCwgJ2FjdGl2ZScpOwogICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoIXZhbHVlICYmICFoYXNDbGFzcyh0aGlzLnNlbFRhcmdldCwgdGhpcy5jbHNJbmFjdGl2ZSkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmVwbGFjZUNsYXNzKHRoaXMuc2VsVGFyZ2V0LCB0aGlzLmNsc0FjdGl2ZSwgdGhpcy5jbHNJbmFjdGl2ZSk7CiAgICAgICAgICAgICAgICAgICAgICAgIHRyaWdnZXIodGhpcy4kZWwsICdpbmFjdGl2ZScpOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdGhpcy5wbGFjZWhvbGRlciA9ICQoJysgLnVrLXN0aWNreS1wbGFjZWhvbGRlcicsIHRoaXMuJGVsKSB8fCAkKCc8ZGl2IGNsYXNzPSJ1ay1zdGlja3ktcGxhY2Vob2xkZXIiPjwvZGl2PicpOwogICAgICAgICAgICB0aGlzLmlzRml4ZWQgPSBmYWxzZTsKICAgICAgICAgICAgdGhpcy5pc0FjdGl2ZSA9IGZhbHNlOwogICAgICAgIH0sCgogICAgICAgIGRpc2Nvbm5lY3RlZDogZnVuY3Rpb24oKSB7CgogICAgICAgICAgICBpZiAodGhpcy5pc0ZpeGVkKSB7CiAgICAgICAgICAgICAgICB0aGlzLmhpZGUoKTsKICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzKHRoaXMuc2VsVGFyZ2V0LCB0aGlzLmNsc0luYWN0aXZlKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgcmVtb3ZlKHRoaXMucGxhY2Vob2xkZXIpOwogICAgICAgICAgICB0aGlzLnBsYWNlaG9sZGVyID0gbnVsbDsKICAgICAgICAgICAgdGhpcy53aWR0aEVsZW1lbnQgPSBudWxsOwogICAgICAgIH0sCgogICAgICAgIGV2ZW50czogWwoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIG5hbWU6ICdsb2FkIGhhc2hjaGFuZ2UgcG9wc3RhdGUnLAoKICAgICAgICAgICAgICAgIGVsOiB3aW5kb3csCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgoKICAgICAgICAgICAgICAgICAgICBpZiAoISh0aGlzLnRhcmdldE9mZnNldCAhPT0gZmFsc2UgJiYgbG9jYXRpb24uaGFzaCAmJiB3aW5kb3cucGFnZVlPZmZzZXQgPiAwKSkgewogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICB2YXIgdGFyZ2V0ID0gJChsb2NhdGlvbi5oYXNoKTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKHRhcmdldCkgewogICAgICAgICAgICAgICAgICAgICAgICBmYXN0ZG9tLnJlYWQoZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciByZWYgPSBvZmZzZXQodGFyZ2V0KTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB0b3AgPSByZWYudG9wOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGVsVG9wID0gb2Zmc2V0KHRoaXMkMS4kZWwpLnRvcDsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBlbEhlaWdodCA9IHRoaXMkMS4kZWwub2Zmc2V0SGVpZ2h0OwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzJDEuaXNGaXhlZCAmJiBlbFRvcCArIGVsSGVpZ2h0ID49IHRvcCAmJiBlbFRvcCA8PSB0b3AgKyB0YXJnZXQub2Zmc2V0SGVpZ2h0KSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2Nyb2xsVG9wKHdpbmRvdywgdG9wIC0gZWxIZWlnaHQgLSAoaXNOdW1lcmljKHRoaXMkMS50YXJnZXRPZmZzZXQpID8gdGhpcyQxLnRhcmdldE9mZnNldCA6IDApIC0gdGhpcyQxLm9mZnNldCk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfQoKICAgICAgICBdLAoKICAgICAgICB1cGRhdGU6IFsKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICByZWFkOiBmdW5jdGlvbihyZWYsIHR5cGUpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgaGVpZ2h0ID0gcmVmLmhlaWdodDsKCgogICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmlzQWN0aXZlICYmIHR5cGUgIT09ICd1cGRhdGUnKSB7CgogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmhpZGUoKTsKICAgICAgICAgICAgICAgICAgICAgICAgaGVpZ2h0ID0gdGhpcy4kZWwub2Zmc2V0SGVpZ2h0OwogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3coKTsKCiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICBoZWlnaHQgPSAhdGhpcy5pc0FjdGl2ZSA/IHRoaXMuJGVsLm9mZnNldEhlaWdodCA6IGhlaWdodDsKCiAgICAgICAgICAgICAgICAgICAgdGhpcy50b3BPZmZzZXQgPSBvZmZzZXQodGhpcy5pc0ZpeGVkID8gdGhpcy5wbGFjZWhvbGRlciA6IHRoaXMuJGVsKS50b3A7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5ib3R0b21PZmZzZXQgPSB0aGlzLnRvcE9mZnNldCArIGhlaWdodDsKCiAgICAgICAgICAgICAgICAgICAgdmFyIGJvdHRvbSA9IHBhcnNlUHJvcCgnYm90dG9tJywgdGhpcyk7CgogICAgICAgICAgICAgICAgICAgIHRoaXMudG9wID0gTWF0aC5tYXgodG9GbG9hdChwYXJzZVByb3AoJ3RvcCcsIHRoaXMpKSwgdGhpcy50b3BPZmZzZXQpIC0gdGhpcy5vZmZzZXQ7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5ib3R0b20gPSBib3R0b20gJiYgYm90dG9tIC0gaGVpZ2h0OwogICAgICAgICAgICAgICAgICAgIHRoaXMuaW5hY3RpdmUgPSAhdGhpcy5tYXRjaE1lZGlhOwoKICAgICAgICAgICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgICAgICAgICBsYXN0U2Nyb2xsOiBmYWxzZSwKICAgICAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiBoZWlnaHQsCiAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbnM6IGNzcyh0aGlzLiRlbCwgWydtYXJnaW5Ub3AnLCAnbWFyZ2luQm90dG9tJywgJ21hcmdpbkxlZnQnLCAnbWFyZ2luUmlnaHQnXSkKICAgICAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICB3cml0ZTogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGhlaWdodCA9IHJlZi5oZWlnaHQ7CiAgICAgICAgICAgICAgICAgICAgdmFyIG1hcmdpbnMgPSByZWYubWFyZ2luczsKCgogICAgICAgICAgICAgICAgICAgIHZhciByZWYkMSA9IHRoaXM7CiAgICAgICAgICAgICAgICAgICAgdmFyIHBsYWNlaG9sZGVyID0gcmVmJDEucGxhY2Vob2xkZXI7CgogICAgICAgICAgICAgICAgICAgIGNzcyhwbGFjZWhvbGRlciwgYXNzaWduKHtoZWlnaHQ6IGhlaWdodH0sIG1hcmdpbnMpKTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKCF3aXRoaW4ocGxhY2Vob2xkZXIsIGRvY3VtZW50KSkgewogICAgICAgICAgICAgICAgICAgICAgICBhZnRlcih0aGlzLiRlbCwgcGxhY2Vob2xkZXIpOwogICAgICAgICAgICAgICAgICAgICAgICBhdHRyKHBsYWNlaG9sZGVyLCAnaGlkZGVuJywgJycpOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgLy8gZW5zdXJlIGFjdGl2ZS9pbmFjdGl2ZSBjbGFzc2VzIGFyZSBhcHBsaWVkCiAgICAgICAgICAgICAgICAgICAgdGhpcy5pc0FjdGl2ZSA9IHRoaXMuaXNBY3RpdmU7CgogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBldmVudHM6IFsncmVzaXplJ10KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgcmVhZDogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIHNjcm9sbCA9IHJlZi5zY3JvbGw7IGlmICggc2Nyb2xsID09PSB2b2lkIDAgKSBzY3JvbGwgPSAwOwoKCiAgICAgICAgICAgICAgICAgICAgdGhpcy53aWR0aCA9IChpc1Zpc2libGUodGhpcy53aWR0aEVsZW1lbnQpID8gdGhpcy53aWR0aEVsZW1lbnQgOiB0aGlzLiRlbCkub2Zmc2V0V2lkdGg7CgogICAgICAgICAgICAgICAgICAgIHRoaXMuc2Nyb2xsID0gd2luZG93LnBhZ2VZT2Zmc2V0OwoKICAgICAgICAgICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgICAgICAgICBkaXI6IHNjcm9sbCA8PSB0aGlzLnNjcm9sbCA/ICdkb3duJyA6ICd1cCcsCiAgICAgICAgICAgICAgICAgICAgICAgIHNjcm9sbDogdGhpcy5zY3JvbGwsCiAgICAgICAgICAgICAgICAgICAgICAgIHZpc2libGU6IGlzVmlzaWJsZSh0aGlzLiRlbCksCiAgICAgICAgICAgICAgICAgICAgICAgIHRvcDogb2Zmc2V0UG9zaXRpb24odGhpcy5wbGFjZWhvbGRlcilbMF0KICAgICAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICB3cml0ZTogZnVuY3Rpb24oZGF0YSwgdHlwZSkgewogICAgICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgICAgICAgICAgdmFyIGluaXRUaW1lc3RhbXAgPSBkYXRhLmluaXRUaW1lc3RhbXA7IGlmICggaW5pdFRpbWVzdGFtcCA9PT0gdm9pZCAwICkgaW5pdFRpbWVzdGFtcCA9IDA7CiAgICAgICAgICAgICAgICAgICAgdmFyIGRpciA9IGRhdGEuZGlyOwogICAgICAgICAgICAgICAgICAgIHZhciBsYXN0RGlyID0gZGF0YS5sYXN0RGlyOwogICAgICAgICAgICAgICAgICAgIHZhciBsYXN0U2Nyb2xsID0gZGF0YS5sYXN0U2Nyb2xsOwogICAgICAgICAgICAgICAgICAgIHZhciBzY3JvbGwgPSBkYXRhLnNjcm9sbDsKICAgICAgICAgICAgICAgICAgICB2YXIgdG9wID0gZGF0YS50b3A7CiAgICAgICAgICAgICAgICAgICAgdmFyIHZpc2libGUgPSBkYXRhLnZpc2libGU7CiAgICAgICAgICAgICAgICAgICAgdmFyIG5vdyA9IHBlcmZvcm1hbmNlLm5vdygpOwoKICAgICAgICAgICAgICAgICAgICBkYXRhLmxhc3RTY3JvbGwgPSBzY3JvbGw7CgogICAgICAgICAgICAgICAgICAgIGlmIChzY3JvbGwgPCAwIHx8IHNjcm9sbCA9PT0gbGFzdFNjcm9sbCB8fCAhdmlzaWJsZSB8fCB0aGlzLmRpc2FibGVkIHx8IHRoaXMuc2hvd09uVXAgJiYgdHlwZSAhPT0gJ3Njcm9sbCcpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgaWYgKG5vdyAtIGluaXRUaW1lc3RhbXAgPiAzMDAgfHwgZGlyICE9PSBsYXN0RGlyKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEuaW5pdFNjcm9sbCA9IHNjcm9sbDsKICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5pbml0VGltZXN0YW1wID0gbm93OwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgZGF0YS5sYXN0RGlyID0gZGlyOwoKICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5zaG93T25VcCAmJiBNYXRoLmFicyhkYXRhLmluaXRTY3JvbGwgLSBzY3JvbGwpIDw9IDMwICYmIE1hdGguYWJzKGxhc3RTY3JvbGwgLSBzY3JvbGwpIDw9IDEwKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmluYWN0aXZlCiAgICAgICAgICAgICAgICAgICAgICAgIHx8IHNjcm9sbCA8IHRoaXMudG9wCiAgICAgICAgICAgICAgICAgICAgICAgIHx8IHRoaXMuc2hvd09uVXAgJiYgKHNjcm9sbCA8PSB0aGlzLnRvcCB8fCBkaXIgPT09ICdkb3duJyB8fCBkaXIgPT09ICd1cCcgJiYgIXRoaXMuaXNGaXhlZCAmJiBzY3JvbGwgPD0gdGhpcy5ib3R0b21PZmZzZXQpCiAgICAgICAgICAgICAgICAgICAgKSB7CgogICAgICAgICAgICAgICAgICAgICAgICBpZiAoIXRoaXMuaXNGaXhlZCkgewoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChBbmltYXRpb24uaW5Qcm9ncmVzcyh0aGlzLiRlbCkgJiYgdG9wID4gc2Nyb2xsKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQW5pbWF0aW9uLmNhbmNlbCh0aGlzLiRlbCk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5oaWRlKCk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmlzRml4ZWQgPSBmYWxzZTsKCiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmFuaW1hdGlvbiAmJiBzY3JvbGwgPiB0aGlzLnRvcE9mZnNldCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgQW5pbWF0aW9uLmNhbmNlbCh0aGlzLiRlbCk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBBbmltYXRpb24ub3V0KHRoaXMuJGVsLCB0aGlzLmFuaW1hdGlvbikudGhlbihmdW5jdGlvbiAoKSB7IHJldHVybiB0aGlzJDEuaGlkZSgpOyB9LCBub29wKTsKICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuaGlkZSgpOwogICAgICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5pc0ZpeGVkKSB7CgogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnVwZGF0ZSgpOwoKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHRoaXMuYW5pbWF0aW9uKSB7CgogICAgICAgICAgICAgICAgICAgICAgICBBbmltYXRpb24uY2FuY2VsKHRoaXMuJGVsKTsKICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zaG93KCk7CiAgICAgICAgICAgICAgICAgICAgICAgIEFuaW1hdGlvbi5pbih0aGlzLiRlbCwgdGhpcy5hbmltYXRpb24pLmNhdGNoKG5vb3ApOwoKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3coKTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBldmVudHM6IFsncmVzaXplJywgJ3Njcm9sbCddCgogICAgICAgICAgICB9CgogICAgICAgIF0sCgogICAgICAgIG1ldGhvZHM6IHsKCiAgICAgICAgICAgIHNob3c6IGZ1bmN0aW9uKCkgewoKICAgICAgICAgICAgICAgIHRoaXMuaXNGaXhlZCA9IHRydWU7CiAgICAgICAgICAgICAgICB0aGlzLnVwZGF0ZSgpOwogICAgICAgICAgICAgICAgYXR0cih0aGlzLnBsYWNlaG9sZGVyLCAnaGlkZGVuJywgbnVsbCk7CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgaGlkZTogZnVuY3Rpb24oKSB7CgogICAgICAgICAgICAgICAgdGhpcy5pc0FjdGl2ZSA9IGZhbHNlOwogICAgICAgICAgICAgICAgcmVtb3ZlQ2xhc3ModGhpcy4kZWwsIHRoaXMuY2xzRml4ZWQsIHRoaXMuY2xzQmVsb3cpOwogICAgICAgICAgICAgICAgY3NzKHRoaXMuJGVsLCB7cG9zaXRpb246ICcnLCB0b3A6ICcnLCB3aWR0aDogJyd9KTsKICAgICAgICAgICAgICAgIGF0dHIodGhpcy5wbGFjZWhvbGRlciwgJ2hpZGRlbicsICcnKTsKCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB1cGRhdGU6IGZ1bmN0aW9uKCkgewoKICAgICAgICAgICAgICAgIHZhciBhY3RpdmUgPSB0aGlzLnRvcCAhPT0gMCB8fCB0aGlzLnNjcm9sbCA+IHRoaXMudG9wOwogICAgICAgICAgICAgICAgdmFyIHRvcCA9IE1hdGgubWF4KDAsIHRoaXMub2Zmc2V0KTsKCiAgICAgICAgICAgICAgICBpZiAodGhpcy5ib3R0b20gJiYgdGhpcy5zY3JvbGwgPiB0aGlzLmJvdHRvbSAtIHRoaXMub2Zmc2V0KSB7CiAgICAgICAgICAgICAgICAgICAgdG9wID0gdGhpcy5ib3R0b20gLSB0aGlzLnNjcm9sbDsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBjc3ModGhpcy4kZWwsIHsKICAgICAgICAgICAgICAgICAgICBwb3NpdGlvbjogJ2ZpeGVkJywKICAgICAgICAgICAgICAgICAgICB0b3A6ICh0b3AgKyAicHgiKSwKICAgICAgICAgICAgICAgICAgICB3aWR0aDogdGhpcy53aWR0aAogICAgICAgICAgICAgICAgfSk7CgogICAgICAgICAgICAgICAgdGhpcy5pc0FjdGl2ZSA9IGFjdGl2ZTsKICAgICAgICAgICAgICAgIHRvZ2dsZUNsYXNzKHRoaXMuJGVsLCB0aGlzLmNsc0JlbG93LCB0aGlzLnNjcm9sbCA+IHRoaXMuYm90dG9tT2Zmc2V0KTsKICAgICAgICAgICAgICAgIGFkZENsYXNzKHRoaXMuJGVsLCB0aGlzLmNsc0ZpeGVkKTsKCiAgICAgICAgICAgIH0KCiAgICAgICAgfQoKICAgIH07CgogICAgZnVuY3Rpb24gcGFyc2VQcm9wKHByb3AsIHJlZikgewogICAgICAgIHZhciAkcHJvcHMgPSByZWYuJHByb3BzOwogICAgICAgIHZhciAkZWwgPSByZWYuJGVsOwogICAgICAgIHZhciBwcm9wT2Zmc2V0ID0gcmVmWyhwcm9wICsgIk9mZnNldCIpXTsKCgogICAgICAgIHZhciB2YWx1ZSA9ICRwcm9wc1twcm9wXTsKCiAgICAgICAgaWYgKCF2YWx1ZSkgewogICAgICAgICAgICByZXR1cm47CiAgICAgICAgfQoKICAgICAgICBpZiAoaXNOdW1lcmljKHZhbHVlKSAmJiBpc1N0cmluZyh2YWx1ZSkgJiYgdmFsdWUubWF0Y2goL14tP1xkLykpIHsKCiAgICAgICAgICAgIHJldHVybiBwcm9wT2Zmc2V0ICsgdG9QeCh2YWx1ZSk7CgogICAgICAgIH0gZWxzZSB7CgogICAgICAgICAgICByZXR1cm4gb2Zmc2V0KHZhbHVlID09PSB0cnVlID8gJGVsLnBhcmVudE5vZGUgOiBxdWVyeSh2YWx1ZSwgJGVsKSkuYm90dG9tOwoKICAgICAgICB9CiAgICB9CgogICAgdmFyIFN3aXRjaGVyID0gewoKICAgICAgICBtaXhpbnM6IFtUb2dnbGFibGVdLAoKICAgICAgICBhcmdzOiAnY29ubmVjdCcsCgogICAgICAgIHByb3BzOiB7CiAgICAgICAgICAgIGNvbm5lY3Q6IFN0cmluZywKICAgICAgICAgICAgdG9nZ2xlOiBTdHJpbmcsCiAgICAgICAgICAgIGFjdGl2ZTogTnVtYmVyLAogICAgICAgICAgICBzd2lwaW5nOiBCb29sZWFuCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICBjb25uZWN0OiAnfi51ay1zd2l0Y2hlcicsCiAgICAgICAgICAgIHRvZ2dsZTogJz4gKiA+IDpmaXJzdC1jaGlsZCcsCiAgICAgICAgICAgIGFjdGl2ZTogMCwKICAgICAgICAgICAgc3dpcGluZzogdHJ1ZSwKICAgICAgICAgICAgY2xzOiAndWstYWN0aXZlJywKICAgICAgICAgICAgY2xzQ29udGFpbmVyOiAndWstc3dpdGNoZXInLAogICAgICAgICAgICBhdHRySXRlbTogJ3VrLXN3aXRjaGVyLWl0ZW0nLAogICAgICAgICAgICBxdWV1ZWQ6IHRydWUKICAgICAgICB9LAoKICAgICAgICBjb21wdXRlZDogewoKICAgICAgICAgICAgY29ubmVjdHM6IGZ1bmN0aW9uKHJlZiwgJGVsKSB7CiAgICAgICAgICAgICAgICB2YXIgY29ubmVjdCA9IHJlZi5jb25uZWN0OwoKICAgICAgICAgICAgICAgIHJldHVybiBxdWVyeUFsbChjb25uZWN0LCAkZWwpOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgdG9nZ2xlczogZnVuY3Rpb24ocmVmLCAkZWwpIHsKICAgICAgICAgICAgICAgIHZhciB0b2dnbGUgPSByZWYudG9nZ2xlOwoKICAgICAgICAgICAgICAgIHJldHVybiAkJCh0b2dnbGUsICRlbCk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiBbCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgbmFtZTogJ2NsaWNrJywKCiAgICAgICAgICAgICAgICBkZWxlZ2F0ZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICgodGhpcy50b2dnbGUpICsgIjpub3QoLnVrLWRpc2FibGVkKSIpOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpOwogICAgICAgICAgICAgICAgICAgIHRoaXMuc2hvdyh0b05vZGVzKHRoaXMuJGVsLmNoaWxkcmVuKS5maWx0ZXIoZnVuY3Rpb24gKGVsKSB7IHJldHVybiB3aXRoaW4oZS5jdXJyZW50LCBlbCk7IH0pWzBdKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAnY2xpY2snLAoKICAgICAgICAgICAgICAgIGVsOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5jb25uZWN0czsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgZGVsZWdhdGU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAoIlsiICsgKHRoaXMuYXR0ckl0ZW0pICsgIl0sW2RhdGEtIiArICh0aGlzLmF0dHJJdGVtKSArICJdIik7CiAgICAgICAgICAgICAgICB9LAoKICAgICAgICAgICAgICAgIGhhbmRsZXI6IGZ1bmN0aW9uKGUpIHsKICAgICAgICAgICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5zaG93KGRhdGEoZS5jdXJyZW50LCB0aGlzLmF0dHJJdGVtKSk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAnc3dpcGVSaWdodCBzd2lwZUxlZnQnLAoKICAgICAgICAgICAgICAgIGZpbHRlcjogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuc3dpcGluZzsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgZWw6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmNvbm5lY3RzOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgdHlwZSA9IHJlZi50eXBlOwoKICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3coZW5kc1dpdGgodHlwZSwgJ0xlZnQnKSA/ICduZXh0JyA6ICdwcmV2aW91cycpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgIF0sCgogICAgICAgIHVwZGF0ZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgIHRoaXMuY29ubmVjdHMuZm9yRWFjaChmdW5jdGlvbiAobGlzdCkgeyByZXR1cm4gdGhpcyQxLnVwZGF0ZUFyaWEobGlzdC5jaGlsZHJlbik7IH0pOwogICAgICAgICAgICB2YXIgcmVmID0gdGhpcy4kZWw7CiAgICAgICAgICAgIHZhciBjaGlsZHJlbiA9IHJlZi5jaGlsZHJlbjsKICAgICAgICAgICAgdGhpcy5zaG93KGZpbHRlcihjaGlsZHJlbiwgKCIuIiArICh0aGlzLmNscykpKVswXSB8fCBjaGlsZHJlblt0aGlzLmFjdGl2ZV0gfHwgY2hpbGRyZW5bMF0pOwoKICAgICAgICAgICAgdGhpcy5zd2lwaW5nICYmIGNzcyh0aGlzLmNvbm5lY3RzLCAndG91Y2gtYWN0aW9uJywgJ3Bhbi15IHBpbmNoLXpvb20nKTsKCiAgICAgICAgfSwKCiAgICAgICAgbWV0aG9kczogewoKICAgICAgICAgICAgaW5kZXg6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICFpc0VtcHR5KHRoaXMuY29ubmVjdHMpICYmIGluZGV4KGZpbHRlcih0aGlzLmNvbm5lY3RzWzBdLmNoaWxkcmVuLCAoIi4iICsgKHRoaXMuY2xzKSkpWzBdKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHNob3c6IGZ1bmN0aW9uKGl0ZW0pIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgICAgICB2YXIgcmVmID0gdGhpcy4kZWw7CiAgICAgICAgICAgICAgICB2YXIgY2hpbGRyZW4gPSByZWYuY2hpbGRyZW47CiAgICAgICAgICAgICAgICB2YXIgbGVuZ3RoID0gY2hpbGRyZW4ubGVuZ3RoOwogICAgICAgICAgICAgICAgdmFyIHByZXYgPSB0aGlzLmluZGV4KCk7CiAgICAgICAgICAgICAgICB2YXIgaGFzUHJldiA9IHByZXYgPj0gMDsKICAgICAgICAgICAgICAgIHZhciBkaXIgPSBpdGVtID09PSAncHJldmlvdXMnID8gLTEgOiAxOwoKICAgICAgICAgICAgICAgIHZhciB0b2dnbGUsIGFjdGl2ZSwgbmV4dCA9IGdldEluZGV4KGl0ZW0sIGNoaWxkcmVuLCBwcmV2KTsKCiAgICAgICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxlbmd0aDsgaSsrLCBuZXh0ID0gKG5leHQgKyBkaXIgKyBsZW5ndGgpICUgbGVuZ3RoKSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKCFtYXRjaGVzKHRoaXMudG9nZ2xlc1tuZXh0XSwgJy51ay1kaXNhYmxlZCAqLCAudWstZGlzYWJsZWQsIFtkaXNhYmxlZF0nKSkgewogICAgICAgICAgICAgICAgICAgICAgICB0b2dnbGUgPSB0aGlzLnRvZ2dsZXNbbmV4dF07CiAgICAgICAgICAgICAgICAgICAgICAgIGFjdGl2ZSA9IGNoaWxkcmVuW25leHRdOwogICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgaWYgKCFhY3RpdmUgfHwgcHJldiA+PSAwICYmIGhhc0NsYXNzKGFjdGl2ZSwgdGhpcy5jbHMpIHx8IHByZXYgPT09IG5leHQpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgcmVtb3ZlQ2xhc3MoY2hpbGRyZW4sIHRoaXMuY2xzKTsKICAgICAgICAgICAgICAgIGFkZENsYXNzKGFjdGl2ZSwgdGhpcy5jbHMpOwogICAgICAgICAgICAgICAgYXR0cih0aGlzLnRvZ2dsZXMsICdhcmlhLWV4cGFuZGVkJywgZmFsc2UpOwogICAgICAgICAgICAgICAgYXR0cih0b2dnbGUsICdhcmlhLWV4cGFuZGVkJywgdHJ1ZSk7CgogICAgICAgICAgICAgICAgdGhpcy5jb25uZWN0cy5mb3JFYWNoKGZ1bmN0aW9uIChsaXN0KSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKCFoYXNQcmV2KSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMkMS50b2dnbGVOb3cobGlzdC5jaGlsZHJlbltuZXh0XSk7CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgdGhpcyQxLnRvZ2dsZUVsZW1lbnQoW2xpc3QuY2hpbGRyZW5bcHJldl0sIGxpc3QuY2hpbGRyZW5bbmV4dF1dKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIH0KCiAgICAgICAgfQoKICAgIH07CgogICAgdmFyIFRhYiA9IHsKCiAgICAgICAgbWl4aW5zOiBbQ2xhc3NdLAoKICAgICAgICBleHRlbmRzOiBTd2l0Y2hlciwKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgbWVkaWE6IEJvb2xlYW4KICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIG1lZGlhOiA5NjAsCiAgICAgICAgICAgIGF0dHJJdGVtOiAndWstdGFiLWl0ZW0nCiAgICAgICAgfSwKCiAgICAgICAgY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgIHZhciBjbHMgPSBoYXNDbGFzcyh0aGlzLiRlbCwgJ3VrLXRhYi1sZWZ0JykKICAgICAgICAgICAgICAgID8gJ3VrLXRhYi1sZWZ0JwogICAgICAgICAgICAgICAgOiBoYXNDbGFzcyh0aGlzLiRlbCwgJ3VrLXRhYi1yaWdodCcpCiAgICAgICAgICAgICAgICAgICAgPyAndWstdGFiLXJpZ2h0JwogICAgICAgICAgICAgICAgICAgIDogZmFsc2U7CgogICAgICAgICAgICBpZiAoY2xzKSB7CiAgICAgICAgICAgICAgICB0aGlzLiRjcmVhdGUoJ3RvZ2dsZScsIHRoaXMuJGVsLCB7Y2xzOiBjbHMsIG1vZGU6ICdtZWRpYScsIG1lZGlhOiB0aGlzLm1lZGlhfSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgfTsKCiAgICB2YXIgVG9nZ2xlID0gewoKICAgICAgICBtaXhpbnM6IFtNZWRpYSwgVG9nZ2xhYmxlXSwKCiAgICAgICAgYXJnczogJ3RhcmdldCcsCgogICAgICAgIHByb3BzOiB7CiAgICAgICAgICAgIGhyZWY6IFN0cmluZywKICAgICAgICAgICAgdGFyZ2V0OiBudWxsLAogICAgICAgICAgICBtb2RlOiAnbGlzdCcKICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIGhyZWY6IGZhbHNlLAogICAgICAgICAgICB0YXJnZXQ6IGZhbHNlLAogICAgICAgICAgICBtb2RlOiAnY2xpY2snLAogICAgICAgICAgICBxdWV1ZWQ6IHRydWUKICAgICAgICB9LAoKICAgICAgICBjb21wdXRlZDogewoKICAgICAgICAgICAgdGFyZ2V0OiBmdW5jdGlvbihyZWYsICRlbCkgewogICAgICAgICAgICAgICAgdmFyIGhyZWYgPSByZWYuaHJlZjsKICAgICAgICAgICAgICAgIHZhciB0YXJnZXQgPSByZWYudGFyZ2V0OwoKICAgICAgICAgICAgICAgIHRhcmdldCA9IHF1ZXJ5QWxsKHRhcmdldCB8fCBocmVmLCAkZWwpOwogICAgICAgICAgICAgICAgcmV0dXJuIHRhcmdldC5sZW5ndGggJiYgdGFyZ2V0IHx8IFskZWxdOwogICAgICAgICAgICB9CgogICAgICAgIH0sCgogICAgICAgIGNvbm5lY3RlZDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIHRyaWdnZXIodGhpcy50YXJnZXQsICd1cGRhdGVhcmlhJywgW3RoaXNdKTsKICAgICAgICB9LAoKICAgICAgICBldmVudHM6IFsKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAocG9pbnRlckVudGVyICsgIiAiICsgcG9pbnRlckxlYXZlKSwKCiAgICAgICAgICAgICAgICBmaWx0ZXI6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBpbmNsdWRlcyh0aGlzLm1vZGUsICdob3ZlcicpOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKCFpc1RvdWNoKGUpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudG9nZ2xlKCgidG9nZ2xlIiArIChlLnR5cGUgPT09IHBvaW50ZXJFbnRlciA/ICdzaG93JyA6ICdoaWRlJykpKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIG5hbWU6ICdjbGljaycsCgogICAgICAgICAgICAgICAgZmlsdGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gaW5jbHVkZXModGhpcy5tb2RlLCAnY2xpY2snKSB8fCBoYXNUb3VjaCAmJiBpbmNsdWRlcyh0aGlzLm1vZGUsICdob3ZlcicpOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlKSB7CgogICAgICAgICAgICAgICAgICAgIC8vIFRPRE8gYmV0dGVyIGlzVG9nZ2xlZCBoYW5kbGluZwogICAgICAgICAgICAgICAgICAgIHZhciBsaW5rOwogICAgICAgICAgICAgICAgICAgIGlmIChjbG9zZXN0KGUudGFyZ2V0LCAnYVtocmVmPSIjIl0sIGFbaHJlZj0iIl0nKQogICAgICAgICAgICAgICAgICAgICAgICB8fCAobGluayA9IGNsb3Nlc3QoZS50YXJnZXQsICdhW2hyZWZdJykpICYmICgKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY2xzCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB8fCAhaXNWaXNpYmxlKHRoaXMudGFyZ2V0KQogICAgICAgICAgICAgICAgICAgICAgICAgICAgfHwgbGluay5oYXNoICYmIG1hdGNoZXModGhpcy50YXJnZXQsIGxpbmsuaGFzaCkKICAgICAgICAgICAgICAgICAgICAgICAgKQogICAgICAgICAgICAgICAgICAgICkgewogICAgICAgICAgICAgICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICB0aGlzLnRvZ2dsZSgpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfQoKICAgICAgICBdLAoKICAgICAgICB1cGRhdGU6IHsKCiAgICAgICAgICAgIHJlYWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGluY2x1ZGVzKHRoaXMubW9kZSwgJ21lZGlhJykgJiYgdGhpcy5tZWRpYQogICAgICAgICAgICAgICAgICAgID8ge21hdGNoOiB0aGlzLm1hdGNoTWVkaWF9CiAgICAgICAgICAgICAgICAgICAgOiBmYWxzZTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHdyaXRlOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBtYXRjaCA9IHJlZi5tYXRjaDsKCgogICAgICAgICAgICAgICAgdmFyIHRvZ2dsZWQgPSB0aGlzLmlzVG9nZ2xlZCh0aGlzLnRhcmdldCk7CiAgICAgICAgICAgICAgICBpZiAobWF0Y2ggPyAhdG9nZ2xlZCA6IHRvZ2dsZWQpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLnRvZ2dsZSgpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGV2ZW50czogWydyZXNpemUnXQoKICAgICAgICB9LAoKICAgICAgICBtZXRob2RzOiB7CgogICAgICAgICAgICB0b2dnbGU6IGZ1bmN0aW9uKHR5cGUpIHsKICAgICAgICAgICAgICAgIGlmICh0cmlnZ2VyKHRoaXMudGFyZ2V0LCB0eXBlIHx8ICd0b2dnbGUnLCBbdGhpc10pKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcy50b2dnbGVFbGVtZW50KHRoaXMudGFyZ2V0KTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICB9CgogICAgfTsKCiAgICBmdW5jdGlvbiBjb3JlIChVSWtpdCkgewoKICAgICAgICAvLyBjb3JlIGNvbXBvbmVudHMKICAgICAgICBVSWtpdC5jb21wb25lbnQoJ2FjY29yZGlvbicsIEFjY29yZGlvbik7CiAgICAgICAgVUlraXQuY29tcG9uZW50KCdhbGVydCcsIEFsZXJ0KTsKICAgICAgICBVSWtpdC5jb21wb25lbnQoJ2NvdmVyJywgQ292ZXIpOwogICAgICAgIFVJa2l0LmNvbXBvbmVudCgnZHJvcCcsIERyb3ApOwogICAgICAgIFVJa2l0LmNvbXBvbmVudCgnZHJvcGRvd24nLCBEcm9wZG93bik7CiAgICAgICAgVUlraXQuY29tcG9uZW50KCdmb3JtQ3VzdG9tJywgRm9ybUN1c3RvbSk7CiAgICAgICAgVUlraXQuY29tcG9uZW50KCdnaWYnLCBHaWYpOwogICAgICAgIFVJa2l0LmNvbXBvbmVudCgnZ3JpZCcsIEdyaWQpOwogICAgICAgIFVJa2l0LmNvbXBvbmVudCgnaGVpZ2h0TWF0Y2gnLCBIZWlnaHRNYXRjaCk7CiAgICAgICAgVUlraXQuY29tcG9uZW50KCdoZWlnaHRWaWV3cG9ydCcsIEhlaWdodFZpZXdwb3J0KTsKICAgICAgICBVSWtpdC5jb21wb25lbnQoJ2ljb24nLCBJY29uKTsKICAgICAgICBVSWtpdC5jb21wb25lbnQoJ2ltZycsIEltZyk7CiAgICAgICAgVUlraXQuY29tcG9uZW50KCdsZWFkZXIn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TsKICAgICAgICBVSWtpdC5jb21wb25lbnQoJ25hdmJhclRvZ2dsZUljb24nLCBJY29uQ29tcG9uZW50KTsKICAgICAgICBVSWtpdC5jb21wb25lbnQoJ292ZXJsYXlJY29uJywgSWNvbkNvbXBvbmVudCk7CiAgICAgICAgVUlraXQuY29tcG9uZW50KCdwYWdpbmF0aW9uTmV4dCcsIEljb25Db21wb25lbnQpOwogICAgICAgIFVJa2l0LmNvbXBvbmVudCgncGFnaW5hdGlvblByZXZpb3VzJywgSWNvbkNvbXBvbmVudCk7CiAgICAgICAgVUlraXQuY29tcG9uZW50KCdzZWFyY2hJY29uJywgU2VhcmNoKTsKICAgICAgICBVSWtpdC5jb21wb25lbnQoJ3NsaWRlbmF2TmV4dCcsIFNsaWRlbmF2KTsKICAgICAgICBVSWtpdC5jb21wb25lbnQoJ3NsaWRlbmF2UHJldmlvdXMnLCBTbGlkZW5hdik7CiAgICAgICAgVUlraXQuY29tcG9uZW50KCdzcGlubmVyJywgU3Bpbm5lcik7CiAgICAgICAgVUlraXQuY29tcG9uZW50KCd0b3RvcCcsIEljb25Db21wb25lbnQpOwoKICAgICAgICAvLyBjb3JlIGZ1bmN0aW9uYWxpdHkKICAgICAgICBVSWtpdC51c2UoQ29yZSk7CgogICAgfQoKICAgIFVJa2l0LnZlcnNpb24gPSAnMy4yLjAnOwoKICAgIGNvcmUoVUlraXQpOwoKICAgIHZhciBDb3VudGRvd24gPSB7CgogICAgICAgIG1peGluczogW0NsYXNzXSwKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgZGF0ZTogU3RyaW5nLAogICAgICAgICAgICBjbHNXcmFwcGVyOiBTdHJpbmcKICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIGRhdGU6ICcnLAogICAgICAgICAgICBjbHNXcmFwcGVyOiAnLnVrLWNvdW50ZG93bi0ldW5pdCUnCiAgICAgICAgfSwKCiAgICAgICAgY29tcHV0ZWQ6IHsKCiAgICAgICAgICAgIGRhdGU6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIGRhdGUgPSByZWYuZGF0ZTsKCiAgICAgICAgICAgICAgICByZXR1cm4gRGF0ZS5wYXJzZShkYXRlKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGRheXM6IGZ1bmN0aW9uKHJlZiwgJGVsKSB7CiAgICAgICAgICAgICAgICB2YXIgY2xzV3JhcHBlciA9IHJlZi5jbHNXcmFwcGVyOwoKICAgICAgICAgICAgICAgIHJldHVybiAkKGNsc1dyYXBwZXIucmVwbGFjZSgnJXVuaXQlJywgJ2RheXMnKSwgJGVsKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGhvdXJzOiBmdW5jdGlvbihyZWYsICRlbCkgewogICAgICAgICAgICAgICAgdmFyIGNsc1dyYXBwZXIgPSByZWYuY2xzV3JhcHBlcjsKCiAgICAgICAgICAgICAgICByZXR1cm4gJChjbHNXcmFwcGVyLnJlcGxhY2UoJyV1bml0JScsICdob3VycycpLCAkZWwpOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgbWludXRlczogZnVuY3Rpb24ocmVmLCAkZWwpIHsKICAgICAgICAgICAgICAgIHZhciBjbHNXcmFwcGVyID0gcmVmLmNsc1dyYXBwZXI7CgogICAgICAgICAgICAgICAgcmV0dXJuICQoY2xzV3JhcHBlci5yZXBsYWNlKCcldW5pdCUnLCAnbWludXRlcycpLCAkZWwpOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgc2Vjb25kczogZnVuY3Rpb24ocmVmLCAkZWwpIHsKICAgICAgICAgICAgICAgIHZhciBjbHNXcmFwcGVyID0gcmVmLmNsc1dyYXBwZXI7CgogICAgICAgICAgICAgICAgcmV0dXJuICQoY2xzV3JhcHBlci5yZXBsYWNlKCcldW5pdCUnLCAnc2Vjb25kcycpLCAkZWwpOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgdW5pdHM6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgogICAgICAgICAgICAgICAgcmV0dXJuIFsnZGF5cycsICdob3VycycsICdtaW51dGVzJywgJ3NlY29uZHMnXS5maWx0ZXIoZnVuY3Rpb24gKHVuaXQpIHsgcmV0dXJuIHRoaXMkMVt1bml0XTsgfSk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdGhpcy5zdGFydCgpOwogICAgICAgIH0sCgogICAgICAgIGRpc2Nvbm5lY3RlZDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKICAgICAgICAgICAgdGhpcy5zdG9wKCk7CiAgICAgICAgICAgIHRoaXMudW5pdHMuZm9yRWFjaChmdW5jdGlvbiAodW5pdCkgeyByZXR1cm4gZW1wdHkodGhpcyQxW3VuaXRdKTsgfSk7CiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiBbCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgbmFtZTogJ3Zpc2liaWxpdHljaGFuZ2UnLAoKICAgICAgICAgICAgICAgIGVsOiBkb2N1bWVudCwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICBpZiAoZG9jdW1lbnQuaGlkZGVuKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc3RvcCgpOwogICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc3RhcnQoKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9CgogICAgICAgIF0sCgogICAgICAgIHVwZGF0ZTogewoKICAgICAgICAgICAgd3JpdGU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgoKICAgICAgICAgICAgICAgIHZhciB0aW1lc3BhbiA9IGdldFRpbWVTcGFuKHRoaXMuZGF0ZSk7CgogICAgICAgICAgICAgICAgaWYgKHRpbWVzcGFuLnRvdGFsIDw9IDApIHsKCiAgICAgICAgICAgICAgICAgICAgdGhpcy5zdG9wKCk7CgogICAgICAgICAgICAgICAgICAgIHRpbWVzcGFuLmRheXMKICAgICAgICAgICAgICAgICAgICAgICAgPSB0aW1lc3Bhbi5ob3VycwogICAgICAgICAgICAgICAgICAgICAgICA9IHRpbWVzcGFuLm1pbnV0ZXMKICAgICAgICAgICAgICAgICAgICAgICAgPSB0aW1lc3Bhbi5zZWNvbmRzCiAgICAgICAgICAgICAgICAgICAgICAgID0gMDsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB0aGlzLnVuaXRzLmZvckVhY2goZnVuY3Rpb24gKHVuaXQpIHsKCiAgICAgICAgICAgICAgICAgICAgdmFyIGRpZ2l0cyA9IFN0cmluZyhNYXRoLmZsb29yKHRpbWVzcGFuW3VuaXRdKSk7CgogICAgICAgICAgICAgICAgICAgIGRpZ2l0cyA9IGRpZ2l0cy5sZW5ndGggPCAyID8gKCIwIiArIGRpZ2l0cykgOiBkaWdpdHM7CgogICAgICAgICAgICAgICAgICAgIHZhciBlbCA9IHRoaXMkMVt1bml0XTsKICAgICAgICAgICAgICAgICAgICBpZiAoZWwudGV4dENvbnRlbnQgIT09IGRpZ2l0cykgewogICAgICAgICAgICAgICAgICAgICAgICBkaWdpdHMgPSBkaWdpdHMuc3BsaXQoJycpOwoKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGRpZ2l0cy5sZW5ndGggIT09IGVsLmNoaWxkcmVuLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgaHRtbChlbCwgZGlnaXRzLm1hcChmdW5jdGlvbiAoKSB7IHJldHVybiAnPHNwYW4+PC9zcGFuPic7IH0pLmpvaW4oJycpKTsKICAgICAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICAgICAgZGlnaXRzLmZvckVhY2goZnVuY3Rpb24gKGRpZ2l0LCBpKSB7IHJldHVybiBlbC5jaGlsZHJlbltpXS50ZXh0Q29udGVudCA9IGRpZ2l0OyB9KTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgfSk7CgogICAgICAgICAgICB9CgogICAgICAgIH0sCgogICAgICAgIG1ldGhvZHM6IHsKCiAgICAgICAgICAgIHN0YXJ0OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgICAgICB0aGlzLnN0b3AoKTsKCiAgICAgICAgICAgICAgICBpZiAodGhpcy5kYXRlICYmIHRoaXMudW5pdHMubGVuZ3RoKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcy4kZW1pdCgpOwogICAgICAgICAgICAgICAgICAgIHRoaXMudGltZXIgPSBzZXRJbnRlcnZhbChmdW5jdGlvbiAoKSB7IHJldHVybiB0aGlzJDEuJGVtaXQoKTsgfSwgMTAwMCk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgc3RvcDogZnVuY3Rpb24oKSB7CgogICAgICAgICAgICAgICAgaWYgKHRoaXMudGltZXIpIHsKICAgICAgICAgICAgICAgICAgICBjbGVhckludGVydmFsKHRoaXMudGltZXIpOwogICAgICAgICAgICAgICAgICAgIHRoaXMudGltZXIgPSBudWxsOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfQoKICAgICAgICB9CgogICAgfTsKCiAgICBmdW5jdGlvbiBnZXRUaW1lU3BhbihkYXRlKSB7CgogICAgICAgIHZhciB0b3RhbCA9IGRhdGUgLSBEYXRlLm5vdygpOwoKICAgICAgICByZXR1cm4gewogICAgICAgICAgICB0b3RhbDogdG90YWwsCiAgICAgICAgICAgIHNlY29uZHM6IHRvdGFsIC8gMTAwMCAlIDYwLAogICAgICAgICAgICBtaW51dGVzOiB0b3RhbCAvIDEwMDAgLyA2MCAlIDYwLAogICAgICAgICAgICBob3VyczogdG90YWwgLyAxMDAwIC8gNjAgLyA2MCAlIDI0LAogICAgICAgICAgICBkYXlzOiB0b3RhbCAvIDEwMDAgLyA2MCAvIDYwIC8gMjQKICAgICAgICB9OwogICAgfQoKICAgIHZhciB0YXJnZXRDbGFzcyA9ICd1ay1hbmltYXRpb24tdGFyZ2V0JzsKCiAgICB2YXIgQW5pbWF0ZSA9IHsKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgYW5pbWF0aW9uOiBOdW1iZXIKICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIGFuaW1hdGlvbjogMTUwCiAgICAgICAgfSwKCiAgICAgICAgY29tcHV0ZWQ6IHsKCiAgICAgICAgICAgIHRhcmdldDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy4kZWw7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgbWV0aG9kczogewoKICAgICAgICAgICAgYW5pbWF0ZTogZnVuY3Rpb24oYWN0aW9uKSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICAgICAgYWRkU3R5bGUoKTsKCiAgICAgICAgICAgICAgICB2YXIgY2hpbGRyZW4gPSB0b05vZGVzKHRoaXMudGFyZ2V0LmNoaWxkcmVuKTsKICAgICAgICAgICAgICAgIHZhciBwcm9wc0Zyb20gPSBjaGlsZHJlbi5tYXAoZnVuY3Rpb24gKGVsKSB7IHJldHVybiBnZXRQcm9wcyhlbCwgdHJ1ZSk7IH0pOwoKICAgICAgICAgICAgICAgIHZhciBvbGRIZWlnaHQgPSBoZWlnaHQodGhpcy50YXJnZXQpOwogICAgICAgICAgICAgICAgdmFyIG9sZFNjcm9sbFkgPSB3aW5kb3cucGFnZVlPZmZzZXQ7CgogICAgICAgICAgICAgICAgYWN0aW9uKCk7CgogICAgICAgICAgICAgICAgVHJhbnNpdGlvbi5jYW5jZWwodGhpcy50YXJnZXQpOwogICAgICAgICAgICAgICAgY2hpbGRyZW4uZm9yRWFjaChUcmFuc2l0aW9uLmNhbmNlbCk7CgogICAgICAgICAgICAgICAgcmVzZXQodGhpcy50YXJnZXQpOwogICAgICAgICAgICAgICAgdGhpcy4kdXBkYXRlKHRoaXMudGFyZ2V0KTsKICAgICAgICAgICAgICAgIGZhc3Rkb20uZmx1c2goKTsKCiAgICAgICAgICAgICAgICB2YXIgbmV3SGVpZ2h0ID0gaGVpZ2h0KHRoaXMudGFyZ2V0KTsKCiAgICAgICAgICAgICAgICBjaGlsZHJlbiA9IGNoaWxkcmVuLmNvbmNhdCh0b05vZGVzKHRoaXMudGFyZ2V0LmNoaWxkcmVuKS5maWx0ZXIoZnVuY3Rpb24gKGVsKSB7IHJldHVybiAhaW5jbHVkZXMoY2hpbGRyZW4sIGVsKTsgfSkpOwoKICAgICAgICAgICAgICAgIHZhciBwcm9wc1RvID0gY2hpbGRyZW4ubWFwKGZ1bmN0aW9uIChlbCwgaSkgeyByZXR1cm4gZWwucGFyZW50Tm9kZSAmJiBpIGluIHByb3BzRnJvbQogICAgICAgICAgICAgICAgICAgICAgICA/IHByb3BzRnJvbVtpXQogICAgICAgICAgICAgICAgICAgICAgICA/IGlzVmlzaWJsZShlbCkKICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gZ2V0UG9zaXRpb25XaXRoTWFyZ2luKGVsKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgOiB7b3BhY2l0eTogMH0KICAgICAgICAgICAgICAgICAgICAgICAgOiB7b3BhY2l0eTogaXNWaXNpYmxlKGVsKSA/IDEgOiAwfQogICAgICAgICAgICAgICAgICAgICAgICA6IGZhbHNlOyB9CiAgICAgICAgICAgICAgICApOwoKICAgICAgICAgICAgICAgIHByb3BzRnJvbSA9IHByb3BzVG8ubWFwKGZ1bmN0aW9uIChwcm9wcywgaSkgewogICAgICAgICAgICAgICAgICAgIHZhciBmcm9tID0gY2hpbGRyZW5baV0ucGFyZW50Tm9kZSA9PT0gdGhpcyQxLnRhcmdldAogICAgICAgICAgICAgICAgICAgICAgICA/IHByb3BzRnJvbVtpXSB8fCBnZXRQcm9wcyhjaGlsZHJlbltpXSkKICAgICAgICAgICAgICAgICAgICAgICAgOiBmYWxzZTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGZyb20pIHsKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFwcm9wcykgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVsZXRlIGZyb20ub3BhY2l0eTsKICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICghKCdvcGFjaXR5JyBpbiBwcm9wcykpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBvcGFjaXR5ID0gZnJvbS5vcGFjaXR5OwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChvcGFjaXR5ICUgMSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3BzLm9wYWNpdHkgPSAxOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWxldGUgZnJvbS5vcGFjaXR5OwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICByZXR1cm4gZnJvbTsKICAgICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgICAgIGFkZENsYXNzKHRoaXMudGFyZ2V0LCB0YXJnZXRDbGFzcyk7CiAgICAgICAgICAgICAgICBjaGlsZHJlbi5mb3JFYWNoKGZ1bmN0aW9uIChlbCwgaSkgeyByZXR1cm4gcHJvcHNGcm9tW2ldICYmIGNzcyhlbCwgcHJvcHNGcm9tW2ldKTsgfSk7CiAgICAgICAgICAgICAgICBjc3ModGhpcy50YXJnZXQsICdoZ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Jyk7CgogICAgICAgIHJldHVybiBpc1Zpc2libGUoZWwpCiAgICAgICAgICAgID8gYXNzaWduKHsKICAgICAgICAgICAgICAgIGRpc3BsYXk6ICcnLAogICAgICAgICAgICAgICAgb3BhY2l0eTogb3BhY2l0eSA/IGNzcyhlbCwgJ29wYWNpdHknKSA6ICcwJywKICAgICAgICAgICAgICAgIHBvaW50ZXJFdmVudHM6ICdub25lJywKICAgICAgICAgICAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLAogICAgICAgICAgICAgICAgekluZGV4OiB6SW5kZXggPT09ICdhdXRvJyA/IGluZGV4KGVsKSA6IHpJbmRleAogICAgICAgICAgICB9LCBnZXRQb3NpdGlvbldpdGhNYXJnaW4oZWwpKQogICAgICAgICAgICA6IGZhbHNlOwogICAgfQoKICAgIGZ1bmN0aW9uIHJlc2V0KGVsKSB7CiAgICAgICAgY3NzKGVsLmNoaWxkcmVuLCB7CiAgICAgICAgICAgIGhlaWdodDogJycsCiAgICAgICAgICAgIGxlZnQ6ICcnLAogICAgICAgICAgICBvcGFjaXR5OiAnJywKICAgICAgICAgICAgcG9pbnRlckV2ZW50czogJycsCiAgICAgICAgICAgIHBvc2l0aW9uOiAnJywKICAgICAgICAgICAgdG9wOiAnJywKICAgICAgICAgICAgd2lkdGg6ICcnCiAgICAgICAgfSk7CiAgICAgICAgcmVtb3ZlQ2xhc3MoZWwsIHRhcmdldENsYXNzKTsKICAgICAgICBjc3MoZWwsICdoZWlnaHQnLCAnJyk7CiAgICB9CgogICAgZnVuY3Rpb24gZ2V0UG9zaXRpb25XaXRoTWFyZ2luKGVsKSB7CiAgICAgICAgdmFyIHJlZiA9IGVsLmdldEJvdW5kaW5nQ2xpZW50UmVjdCgpOwogICAgICAgIHZhciBoZWlnaHQgPSByZWYuaGVpZ2h0OwogICAgICAgIHZhciB3aWR0aCA9IHJlZi53aWR0aDsKICAgICAgICB2YXIgcmVmJDEgPSBwb3NpdGlvbihlbCk7CiAgICAgICAgdmFyIHRvcCA9IHJlZiQxLnRvcDsKICAgICAgICB2YXIgbGVmdCA9IHJlZiQxLmxlZnQ7CiAgICAgICAgdG9wICs9IHRvRmxvYXQoY3NzKGVsLCAnbWFyZ2luVG9wJykpOwoKICAgICAgICByZXR1cm4ge3RvcDogdG9wLCBsZWZ0OiBsZWZ0LCBoZWlnaHQ6IGhlaWdodCwgd2lkdGg6IHdpZHRofTsKICAgIH0KCiAgICB2YXIgc3R5bGU7CgogICAgZnVuY3Rpb24gYWRkU3R5bGUoKSB7CiAgICAgICAgaWYgKHN0eWxlKSB7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB9CiAgICAgICAgc3R5bGUgPSBhcHBlbmQoZG9jdW1lbnQuaGVhZCwgJzxzdHlsZT4nKS5zaGVldDsKICAgICAgICBzdHlsZS5pbnNlcnRSdWxlKAogICAgICAgICAgICAoIi4iICsgdGFyZ2V0Q2xhc3MgKyAiID4gKiB7XG4gICAgICAgICAgICBtYXJnaW4tdG9wOiAwICFpbXBvcnRhbnQ7XG4gICAgICAgICAgICB0cmFuc2Zvcm06IG5vbmUgIWltcG9ydGFudDtcbiAgICAgICAgfSIpLCAwCiAgICAgICAgKTsKICAgIH0KCiAgICB2YXIgRmlsdGVyID0gewoKICAgICAgICBtaXhpbnM6IFtBbmltYXRlXSwKCiAgICAgICAgYXJnczogJ3RhcmdldCcsCgogICAgICAgIHByb3BzOiB7CiAgICAgICAgICAgIHRhcmdldDogQm9vbGVhbiwKICAgICAgICAgICAgc2VsQWN0aXZlOiBCb29sZWFuCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICB0YXJnZXQ6IG51bGwsCiAgICAgICAgICAgIHNlbEFjdGl2ZTogZmFsc2UsCiAgICAgICAgICAgIGF0dHJJdGVtOiAndWstZmlsdGVyLWNvbnRyb2wnLAogICAgICAgICAgICBjbHM6ICd1ay1hY3RpdmUnLAogICAgICAgICAgICBhbmltYXRpb246IDI1MAogICAgICAgIH0sCgogICAgICAgIGNvbXB1dGVkOiB7CgogICAgICAgICAgICB0b2dnbGVzOiB7CgogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbihyZWYsICRlbCkgewogICAgICAgICAgICAgICAgICAgIHZhciBhdHRySXRlbSA9IHJlZi5hdHRySXRlbTsKCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICQkKCgiWyIgKyAodGhpcy5hdHRySXRlbSkgKyAiXSxbZGF0YS0iICsgKHRoaXMuYXR0ckl0ZW0pICsgIl0iKSwgJGVsKTsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgd2F0Y2g6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHRoaXMudXBkYXRlU3RhdGUoKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB0YXJnZXQ6IGZ1bmN0aW9uKHJlZiwgJGVsKSB7CiAgICAgICAgICAgICAgICB2YXIgdGFyZ2V0ID0gcmVmLnRhcmdldDsKCiAgICAgICAgICAgICAgICByZXR1cm4gJCh0YXJnZXQsICRlbCk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBjaGlsZHJlbjogewoKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRvTm9kZXModGhpcy50YXJnZXQgJiYgdGhpcy50YXJnZXQuY2hpbGRyZW4pOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICB3YXRjaDogZnVuY3Rpb24obGlzdCwgb2xkKSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKCFpc0VxdWFsTGlzdChsaXN0LCBvbGQpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudXBkYXRlU3RhdGUoKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiBbCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgbmFtZTogJ2NsaWNrJywKCiAgICAgICAgICAgICAgICBkZWxlZ2F0ZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICgiWyIgKyAodGhpcy5hdHRySXRlbSkgKyAiXSxbZGF0YS0iICsgKHRoaXMuYXR0ckl0ZW0pICsgIl0iKTsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24oZSkgewoKICAgICAgICAgICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5hcHBseShlLmN1cnJlbnQpOwoKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0KCiAgICAgICAgXSwKCiAgICAgICAgY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgoKICAgICAgICAgICAgdGhpcy51cGRhdGVTdGF0ZSgpOwoKICAgICAgICAgICAgaWYgKHRoaXMuc2VsQWN0aXZlICE9PSBmYWxzZSkgewogICAgICAgICAgICAgICAgdmFyIGFjdGl2ZXMgPSAkJCh0aGlzLnNlbEFjdGl2ZSwgdGhpcy4kZWwpOwogICAgICAgICAgICAgICAgdGhpcy50b2dnbGVzLmZvckVhY2goZnVuY3Rpb24gKGVsKSB7IHJldHVybiB0b2dnbGVDbGFzcyhlbCwgdGhpcyQxLmNscywgaW5jbHVkZXMoYWN0aXZlcywgZWwpKTsgfSk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgbWV0aG9kczogewoKICAgICAgICAgICAgYXBwbHk6IGZ1bmN0aW9uKGVsKSB7CiAgICAgICAgICAgICAgICB0aGlzLnNldFN0YXRlKG1lcmdlU3RhdGUoZWwsIHRoaXMuYXR0ckl0ZW0sIHRoaXMuZ2V0U3RhdGUoKSkpOwogICAgICAgICAgICB9LAoKICAgICAg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AgICAgICAgICAgICB2YXIgYXBwbHkgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICAgICAgICAgIHZhciBzZWxlY3RvciA9IGdldFNlbGVjdG9yKHN0YXRlKTsKCiAgICAgICAgICAgICAgICAgICAgY2hpbGRyZW4uZm9yRWFjaChmdW5jdGlvbiAoZWwpIHsgcmV0dXJuIGNzcyhlbCwgJ2Rpc3BsYXknLCBzZWxlY3RvciAmJiAhbWF0Y2hlcyhlbCwgc2VsZWN0b3IpID8gJ25vbmUnIDogJycpOyB9KTsKCiAgICAgICAgICAgICAgICAgICAgdmFyIHJlZiA9IHN0YXRlLnNvcnQ7CiAgICAgICAgICAgICAgICAgICAgdmFyIHNvcnQgPSByZWZbMF07CiAgICAgICAgICAgICAgICAgICAgdmFyIG9yZGVyID0gcmVmWzFdOwoKICAgICAgICAgICAgICAgICAgICBpZiAoc29ydCkgewogICAgICAgICAgICAgICAgICAgICAgICB2YXIgc29ydGVkID0gc29ydEl0ZW1zKGNoaWxkcmVuLCBzb3J0LCBvcmRlcik7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghaXNFcXVhbChzb3J0ZWQsIGNoaWxkcmVuKSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgc29ydGVkLmZvckVhY2goZnVuY3Rpb24gKGVsKSB7IHJldHVybiBhcHBlbmQodGhpcyQxLnRhcmdldCwgZWwpOyB9KTsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB9OwoKICAgICAgICAgICAgICAgIGlmIChhbmltYXRlKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5hbmltYXRlKGFwcGx5KS50aGVuKGZ1bmN0aW9uICgpIHsgcmV0dXJuIHRyaWdnZXIodGhpcyQxLiRlbCwgJ2FmdGVyRmlsdGVyJywgW3RoaXMkMV0pOyB9KTsKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgYXBwbHkoKTsKICAgICAgICAgICAgICAgICAgICB0cmlnZ2VyKHRoaXMuJGVsLCAnYWZ0ZXJGaWx0ZXInLCBbdGhpc10pOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHVwZGF0ZVN0YXRlOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKICAgICAgICAgICAgICAgIGZhc3Rkb20ud3JpdGUoZnVuY3Rpb24gKCkgeyByZXR1cm4gdGhpcyQxLnNldFN0YXRlKHRoaXMkMS5nZXRTdGF0ZSgpLCBmYWxzZSk7IH0pOwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICB9OwoKICAgIGZ1bmN0aW9uIGdldEZpbHRlcihlbCwgYXR0cikgewogICAgICAgIHJldHVybiBwYXJzZU9wdGlvbnMoZGF0YShlbCwgYXR0ciksIFsnZmlsdGVyJ10pOwogICAgfQoKICAgIGZ1bmN0aW9uIG1lcmdlU3RhdGUoZWwsIGF0dHIsIHN0YXRlKSB7CgogICAgICAgIHZhciBmaWx0ZXJCeSA9IGdldEZpbHRlcihlbCwgYXR0cik7CiAgICAgICAgdmFyIGZpbHRlciA9IGZpbHRlckJ5LmZpbHRlcjsKICAgICAgICB2YXIgZ3JvdXAgPSBmaWx0ZXJCeS5ncm91cDsKICAgICAgICB2YXIgc29ydCA9IGZpbHRlckJ5LnNvcnQ7CiAgICAgICAgdmFyIG9yZGVyID0gZmlsdGVyQnkub3JkZXI7IGlmICggb3JkZXIgPT09IHZvaWQgMCApIG9yZGVyID0gJ2FzYyc7CgogICAgICAgIGlmIChmaWx0ZXIgfHwgaXNVbmRlZmluZWQoc29ydCkpIHsKCiAgICAgICAgICAgIGlmIChncm91cCkgewoKICAgICAgICAgICAgICAgIGlmIChmaWx0ZXIpIHsKICAgICAgICAgICAgICAgICAgICBkZWxldGUgc3RhdGUuZmlsdGVyWycnXTsKICAgICAgICAgICAgICAgICAgICBzdGF0ZS5maWx0ZXJbZ3JvdXBdID0gZmlsdGVyOwogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICBkZWxldGUgc3RhdGUuZmlsdGVyW2dyb3VwXTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGlzRW1wdHkoc3RhdGUuZmlsdGVyKSB8fCAnJyBpbiBzdGF0ZS5maWx0ZXIpIHsKICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGUuZmlsdGVyID0geycnOiBmaWx0ZXIgfHwgJyd9OwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgc3RhdGUuZmlsdGVyID0geycnOiBmaWx0ZXIgfHwgJyd9OwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICAgICAgaWYgKCFpc1VuZGVmaW5lZChzb3J0KSkgewogICAgICAgICAgICBzdGF0ZS5zb3J0ID0gW3NvcnQsIG9yZGVyXTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBzdGF0ZTsKICAgIH0KCiAgICBmdW5jdGlvbiBtYXRjaEZpbHRlcihlbCwgYXR0ciwgcmVmKSB7CiAgICAgICAgdmFyIHN0YXRlRmlsdGVyID0gcmVmLmZpbHRlcjsgaWYgKCBzdGF0ZUZpbHRlciA9PT0gdm9pZCAwICkgc3RhdGVGaWx0ZXIgPSB7Jyc6ICcnfTsKICAgICAgICB2YXIgcmVmX3NvcnQgPSByZWYuc29ydDsKICAgICAgICB2YXIgc3RhdGVTb3J0ID0gcmVmX3NvcnRbMF07CiAgICAgICAgdmFyIHN0YXRlT3JkZXIgPSByZWZfc29ydFsxXTsKCgogICAgICAgIHZhciByZWYkMSA9IGdldEZpbHRlcihlbCwgYXR0cik7CiAgICAgICAgdmFyIGZpbHRlciA9IHJlZiQxLmZpbHRlcjsgaWYgKCBmaWx0ZXIgPT09IHZvaWQgMCApIGZpbHRlciA9ICcnOwogICAgIC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KICAgICAgICByZXR1cm4gYXNzaWduKFtdLCBub2Rlcykuc29ydChmdW5jdGlvbiAoYSwgYikgeyByZXR1cm4gZGF0YShhLCBzb3J0KS5sb2NhbGVDb21wYXJlKGRhdGEoYiwgc29ydCksIHVuZGVmaW5lZCwge251bWVyaWM6IHRydWV9KSAqIChvcmRlciA9PT0gJ2FzYycgfHwgLTEpOyB9KTsKICAgIH0KCiAgICB2YXIgQW5pbWF0aW9ucyA9IHsKCiAgICAgICAgc2xpZGU6IHsKCiAgICAgICAgICAgIHNob3c6IGZ1bmN0aW9uKGRpcikgewogICAgICAgICAgICAgICAgcmV0dXJuIFsKICAgICAgICAgICAgICAgICAgICB7dHJhbnNmb3JtOiB0cmFuc2xhdGUoZGlyICogLTEwMCl9LAogICAgICAgICAgICAgICAgICAgIHt0cmFuc2Zvcm06IHRyYW5zbGF0ZSgpfQogICAgICAgICAgICAgICAgXTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHBlcmNlbnQ6IGZ1bmN0aW9uKGN1cnJlbnQpIHsKICAgICAgICAgICAgICAgIHJldHVybiB0cmFuc2xhdGVkKGN1cnJlbnQpOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgdHJhbnNsYXRlOiBmdW5jdGlvbihwZXJjZW50LCBkaXIpIHsKICAgICAgICAgICAgICAgIHJldHVybiBbCiAgICAgICAgICAgICAgICAgICAge3RyYW5zZm9ybTogdHJhbnNsYXRlKGRpciAqIC0xMDAgKiBwZXJjZW50KX0sCiAgICAgICAgICAgICAgICAgICAge3RyYW5zZm9ybTogdHJhbnNsYXRlKGRpciAqIDEwMCAqICgxIC0gcGVyY2VudCkpfQogICAgICAgICAgICAgICAgXTsKICAgICAgICAgICAgfQoKICAgICAgICB9CgogICAgfTsKCiAgICBmdW5jdGlvbiB0cmFuc2xhdGVkKGVsKSB7CiAgICAgICAgcmV0dXJuIE1hdGguYWJzKGNzcyhlbCwgJ3RyYW5zZm9ybScpLnNwbGl0KCcsJylbNF0gLyBlbC5vZmZzZXRXaWR0aCkgfHwgMDsKICAgIH0KCiAgICBmdW5jdGlvbiB0cmFuc2xhdGUodmFsdWUsIHVuaXQpIHsKICAgICAgICBpZiAoIHZhbHVlID09PSB2b2lkIDAgKSB2YWx1ZSA9IDA7CiAgICAgICAgaWYgKCB1bml0ID09PSB2b2lkIDAgKSB1bml0ID0gJyUnOwoKICAgICAgICB2YWx1ZSArPSB2YWx1ZSA/IHVuaXQgOiAnJzsKICAgICAgICByZXR1cm4gaXNJRSA/ICgidHJhbnNsYXRlWCgiICsgdmFsdWUgKyAiKSIpIDogKCJ0cmFuc2xhdGUzZCgiICsgdmFsdWUgKyAiLCAwLCAwKSIpOyAvLyBjdXJyZW50bHkgbm90IHRyYW5zbGF0ZTNkIGluIElFLCB0cmFuc2xhdGUzZCB3aXRoaW4gdHJhbnNsYXRlM2QgZG9lcyBub3Qgd29yayB3aGlsZSB0cmFuc2l0aW9uaW5nCiAgICB9CgogICAgZnVuY3Rpb24gc2NhbGUzZCh2YWx1ZSkgewogICAgICAgIHJldHVybiAoInNjYWxlM2QoIiArIHZhbHVlICsgIiwgIiArIHZhbHVlICsgIiwgMSkiKTsKICAgIH0KCiAgICB2YXIgQW5pbWF0aW9ucyQxID0gYXNzaWduKHt9LCBBbmltYXRpb25zLCB7CgogICAgICAgIGZhZGU6IHsKCiAgICAgICAgICAgIHNob3c6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIFsKICAgICAgICAgICAgICAgICAgICB7b3BhY2l0eTogMH0sCiAgICAgICAgICAgICAgICAgICAge29wYWNpdHk6IDF9CiAgICAgICAgICAgICAgICBdOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgcGVyY2VudDogZnVuY3Rpb24oY3VycmVudCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDEgLSBjc3MoY3VycmVudCwgJ29wYWNpdHknKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHRyYW5zbGF0ZTogZnVuY3Rpb24ocGVyY2VudCkgewogICAgICAgICAgICAgICAgcmV0dXJuIFsKICAgICAgICAgICAgICAgICAgICB7b3BhY2l0eTogMSAtIHBlcmNlbnR9LAogICAgICAgICAgICAgICAgICAgIHtvcGFjaXR5OiBwZXJjZW50fQogICAgICAgICAgICAgICAgXTsKICAgICAgICAgICAgfQoKICAgICAgICB9LAoKICAgICAgICBzY2FsZTogewoKICAgICAgICAgICAgc2hvdzogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gWwogICAgICAgICAgICAgICAgICAgIHtvcGFjaXR5OiAwLCB0cmFuc2Zvcm06IHNjYWxlM2QoMSAtIC4yKX0sCiAgICAgICAgICAgICAgICAgICAge29wYWNpdHk6IDEsIHRyYW5zZm9ybTogc2NhbGUzZCgxKX0KICAgICAgICAgICAgICAgIF07CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBwZXJjZW50OiBmdW5jdGlvbihjdXJyZW50KSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMSAtIGNzcyhjdXJyZW50LCAnb3BhY2l0eScpOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgdHJhbnNsYXRlOiBmdW5jdGlvbihwZXJjZW50KSB7CiAgICAgICAgICAgICAgICByZXR1cm4gWwogICAgICAgICAgICAgICAgICAgIHtvcGFjaXR5OiAxIC0gcGVyY2VudCwgdHJhbnNmb3JtOiBzY2FsZTNkKDEgLSAuMiAqIHBlcmNlbnQpfSwKICAgICAgICAgICAgICAgICAgICB7b3BhY2l0eTogcGVyY2VudCwgdHJhbnNmb3JtOiBzY2FsZTNkKDEgLSAuMiArIC4yICogcGVyY2VudCl9CiAgICAgICAgICAgICAgICBdOwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICB9KTsKCiAgICBmdW5jdGlvbiBUcmFuc2l0aW9uZXIocHJldiwgbmV4dCwgZGlyLCByZWYpIHsKICAgICAgICB2YXIgYW5pbWF0aW9uID0gcmVmLmFuaW1hdGlvbjsKICAgICAgICB2YXIgZWFzaW5nID0gcmVmLmVhc2luZzsKCgogICAgICAgIHZhciBwZXJjZW50ID0gYW5pbWF0aW9uLnBlcmNlbnQ7CiAgICAgICAgdmFyIHRyYW5zbGF0ZSA9IGFuaW1hdGlvbi50cmFuc2xhdGU7CiAgICAgICAgdmFyIHNob3cgPSBhbmltYXRpb24uc2hvdzsgaWYgKCBzaG93ID09PSB2b2lkIDAgKSBzaG93ID0gbm9vcDsKICAgICAgICB2YXIgcHJvcHMgPSBzaG93KGRpcik7CiAgICAgICAgdmFyIGRlZmVycmVkID0gbmV3IERlZmVycmVkKCk7CgogICAgICAgIHJldHVybiB7CgogICAgICAgICAgICBkaXI6IGRpciwKCiAgICAgICAgICAgIHNob3c6IGZ1bmN0aW9uKGR1cmF0aW9uLCBwZXJjZW50LCBsaW5lYXIpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwogICAgICAgICAgICAgICAgaWYgKCBwZXJjZW50ID09PSB2b2lkIDAgKSBwZXJjZW50ID0gMDsKCgogICAgICAgICAgICAgICAgdmFyIHRpbWluZyA9IGxpbmVhciA/ICdsaW5lYXInIDogZWFzaW5nOwogICAgICAgICAgICAgICAgZHVyYXRpb24gLT0gTWF0aC5yb3VuZChkdXJhdGlvbiAqIGNsYW1wKHBlcmNlbnQsIC0xLCAxKSk7CgogICAgICAgICAgICAgICAgdGhpcy50cmFuc2xhdGUocGVyY2VudCk7CgogICAgICAgICAgICAgICAgdHJpZ2dlclVwZGF0ZShuZXh0LCAnaXRlbWluJywge3BlcmNlbnQ6IHBlcmNlbnQsIGR1cmF0aW9uOiBkdXJhdGlvbiwgdGltaW5nOiB0aW1pbmcsIGRpcjogZGlyfSk7CiAgICAgICAgICAgICAgICB0cmlnZ2VyVXBkYXRlKHByZXYsICdpdGVtb3V0Jywge3BlcmNlbnQ6IDEgLSBwZXJjZW50LCBkdXJhdGlvbjogZHVyYXRpb24sIHRpbWluZzogdGltaW5nLCBkaXI6IGRpcn0pOwoKICAgICAgICAgICAgICAgIFByb21pc2UuYWxsKFsKICAgICAgICAgICAgICAgICAgICBUcmFuc2l0aW9uLnN0YXJ0KG5leHQsIHByb3BzWzFdLCBkdXJhdGlvbiwgdGltaW5nKSwKICAgICAgICAgICAgICAgICAgICBUcmFuc2l0aW9uLnN0YXJ0KHByZXYsIHByb3BzWzBdLCBkdXJhdGlvbiwgdGltaW5nKQogICAgICAgICAgICAgICAgXSkudGhlbihmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcyQxLnJlc2V0KCk7CiAgICAgICAgICAgICAgICAgICAgZGVmZXJyZWQucmVzb2x2ZSgpOwogICAgICAgICAgICAgICAgfSwgbm9vcCk7CgogICAgICAgICAgICAgICAgcmV0dXJuIGRlZmVycmVkLnByb21pc2U7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBzdG9wOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHJldHVybiBUcmFuc2l0aW9uLnN0b3AoW25leHQsIHByZXZdKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGNhbmNlbDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICBUcmFuc2l0aW9uLmNhbmNlbChbbmV4dCwgcHJldl0pOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgcmVzZXQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBwcm9wc1swXSkgewogICAgICAgICAgICAgICAgICAgIGNzcyhbbmV4dCwgcHJldl0sIHByb3AsICcnKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGZvcndhcmQ6IGZ1bmN0aW9uKGR1cmF0aW9uLCBwZXJjZW50KSB7CiAgICAgICAgICAgICAgICBpZiAoIHBlcmNlbnQgPT09IHZvaWQgMCApIHBlcmNlbnQgPSB0aGlzLnBlcmNlbnQoKTsKCiAgICAgICAgICAgICAgICBUcmFuc2l0aW9uLmNhbmNlbChbbmV4dCwgcHJldl0pOwogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuc2hvdyhkdXJhdGlvbiwgcGVyY2VudCwgdHJ1ZSk7CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgdHJhbnNsYXRlOiBmdW5jdGlvbihwZXJjZW50KSB7CgogICAgICAgICAgICAgICAgdGhpcy5yZXNldCgpOwoKICAgICAgICAgICAgICAgIHZhciBwcm9wcyA9IHRyYW5zbGF0ZShwZXJjZW50LCBkaXIpOwogICAgICAgICAgICAgICAgY3NzKG5leHQsIHByb3BzWzFdKTsKICAgICAgICAgICAgICAgIGNzcyhwcmV2LCBwcm9wc1swXSk7CiAgICAgICAgICAgICAgICB0cmlnZ2VyVXBkYXRlKG5leHQsICdpdGVtdHJhbnNsYXRlaW4nLCB7cGVyY2VudDogcGVyY2VudCwgZGlyOiBkaXJ9KTsKICAgICAgICAgICAgICAgIHRyaWdnZXJVcGRhdGUocHJldiwgJ2l0ZW10cmFuc2xhdGVvdXQnLCB7cGVyY2VudDogMSAtIHBlcmNlbnQsIGRpcjogZGlyfSk7CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgcGVyY2VudDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gcGVyY2VudChwcmV2IHx8IG5leHQsIG5leHQsIGRpcik7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBnZXREaXN0YW5jZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gcHJldiAmJiBwcmV2Lm9mZnNldFdpZHRoOwogICAgICAgICAgICB9CgogICAgICAgIH07CgogICAgfQoKICAgIGZ1bmN0aW9uIHRyaWdnZXJVcGRhdGUoZWwsIHR5cGUsIGRhdGEpIHsKICAgICAgICB0cmlnZ2VyKGVsLCBjcmVhdGVFdmVudCh0eXBlLCBmYWxzZSwgZmFsc2UsIGRhdGEpKTsKICAgIH0KCiAgICB2YXIgU2xpZGVyQXV0b3BsYXkgPSB7CgogICAgICAgIHByb3BzOiB7CiAgICAgICAgICAgIGF1dG9wbGF5OiBCb29sZWFuLAogICAgICAgICAgICBhdXRvcGxheUludGVydmFsOiBOdW1iZXIsCiAgICAgICAgICAgIHBhdXNlT25Ib3ZlcjogQm9vbGVhbgogICAgICAgIH0sCgogICAgICAgIGRhdGE6IHsKICAgICAgICAgICAgYXV0b3BsYXk6IGZhbHNlLAogICAgICAgICAgICBhdXRvcGxheUludGVydmFsOiA3MDAwLAogICAgICAgICAgICBwYXVzZU9uSG92ZXI6IHRydWUKICAgICAgICB9LAoKICAgICAgICBjb25uZWN0ZWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICB0aGlzLmF1dG9wbGF5ICYmIHRoaXMuc3RhcnRBdXRvcGxheSgpOwogICAgICAgIH0sCgogICAgICAgIGRpc2Nvbm5lY3RlZDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIHRoaXMuc3RvcEF1dG9wbGF5KCk7CiAgICAgICAgfSwKCiAgICAgICAgdXBkYXRlOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgYXR0cih0aGlzLnNsaWRlcywgJ3RhYmluZGV4JywgJy0xJyk7CiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiBbCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgbmFtZTogJ3Zpc2liaWxpdHljaGFuZ2UnLAoKICAgICAgICAgICAgICAgIGVsOiBkb2N1bWVudCwKCiAgICAgICAgICAgICAgICBmaWx0ZXI6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmF1dG9wbGF5OwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICBpZiAoZG9jdW1lbnQuaGlkZGVuKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc3RvcEF1dG9wbGF5KCk7CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zdGFydEF1dG9wbGF5KCk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfQoKICAgICAgICBdLAoKICAgICAgICBtZXRob2RzOiB7CgogICAgICAgICAgICBzdGFydEF1dG9wbGF5OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgICAgICB0aGlzLnN0b3BBdXRvcGxheSgpOwoKICAgICAgICAgICAgICAgIHRoaXMuaW50ZXJ2YWwgPSBzZXRJbnRlcnZhbCgKICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiAoKSB7IHJldHVybiAoIXRoaXMkMS5kcmFnZ2FibGUgfHwgISQoJzpmb2N1cycsIHRoaXMkMS4kZWwpKQogICAgICAgICAgICAgICAgICAgICAgICAmJiAoIXRoaXMkMS5wYXVzZU9uSG92ZXIgfHwgIW1hdGNoZXModGhpcyQxLiRlbCwgJzpob3ZlcicpKQogICAgICAgICAgICAgICAgICAgICAgICAmJiAhdGhpcyQxLnN0YWNrLmxlbmd0aAogICAgICAgICAgICAgICAgICAgICAgICAmJiB0aGlzJDEuc2hvdygnbmV4dCcpOyB9LAogICAgICAgICAgICAgICAgICAgIHRoaXMuYXV0b3BsYXlJbnRlcnZhbAogICAgICAgICAgICAgICAgKTsKCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBzdG9wQXV0b3BsYXk6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgdGhpcy5pbnRlcnZhbCAmJiBjbGVhckludGVydmFsKHRoaXMuaW50ZXJ2YWwpOwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICB9OwoKICAgIHZhciBTbGlkZXJEcmFnID0gewoKICAgICAgICBwcm9wczogewogICAgICAgICAgICBkcmFnZ2FibGU6IEJvb2xlYW4KICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIGRyYWdnYWJsZTogdHJ1ZSwKICAgICAgICAgICAgdGhyZXNob2xkOiAxMAogICAgICAgIH0sCgogICAgICAgIGNyZWF0ZWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICBbJ3N0YXJ0JywgJ21vdmUnLCAnZW5kJ10uZm9yRWFjaChmdW5jdGlvbiAoa2V5KSB7CgogICAgICAgICAgICAgICAgdmFyIGZuID0gdGhpcyQxW2tleV07CiAgICAgICAgICAgICAgICB0aGlzJDFba2V5XSA9IGZ1bmN0aW9uIChlKSB7CgogICAgICAgICAgICAgICAgICAgIHZhciBwb3MgPSBnZXRFdmVudFBvcyhlKS54ICogKGlzUnRsID8gLTEgOiAxKTsKCiAgICAgICAgICAgICAgICAgICAgdGhpcyQxLnByZXZQb3MgPSBwb3MgIT09IHRoaXMkMS5wb3MgPyB0aGlzJDEucG9zIDogdGhpcyQxLnByZXZQb3M7CiAgICAgICAgICAgICAgICAgICAgdGhpcyQxLnBvcyA9IHBvczsKCiAgICAgICAgICAgICAgICAgICAgZm4oZSk7CiAgICAgICAgICAgICAgICB9OwoKICAgICAgICAgICAgfSk7CgogICAgICAgIH0sCgogICAgICAgIGV2ZW50czogWwoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIG5hbWU6IHBvaW50ZXJEb3duLAoKICAgICAgICAgICAgICAgIGRlbGVnYXRlOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5zZWxTbGlkZXM7CiAgICAgICAgICAgICAgICB9LAoKICAgICAgICAgICAgICAgIGhhbmRsZXI6IGZ1bmN0aW9uKGUpIHsKCiAgICAgICAgICAgICAgICAgICAgaWYgKCF0aGlzLmRyYWdnYWJsZQogICAgICAgICAgICAgICAgICAgICAgICB8fCAhaXNUb3VjaChlKSAmJiBoYXNUZXh0Tm9kZXNPbmx5KGUudGFyZ2V0KQogICAgICAgICAgICAgICAgICAgICAgICB8fCBlLmJ1dHRvbiA+IDAKICAgICAgICAgICAgICAgICAgICAgICAgfHwgdGhpcy5sZW5ndGggPCAyCiAgICAgICAgICAgICAgICAgICAgKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIHRoaXMuc3RhcnQoZSk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIC8vIFdvcmthcm91bmQgZm9yIGlPUyAxMSBidWc6IGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xODQyNTAKCiAgICAgICAgICAgICAgICBuYW1lOiAndG91Y2htb3ZlJywKICAgICAgICAgICAgICAgIHBhc3NpdmU6IGZhbHNlLAogICAgICAgICAgICAgICAgaGFuZGxlcjogJ21vdmUnLAogICAgICAgICAgICAgICAgZGVsZWdhdGU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLnNlbFNsaWRlczsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBuYW1lOiAnZHJhZ3N0YXJ0JywKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgIF0sCgogICAgICAgIG1ldGhvZHM6IHsKCiAgICAgICAgICAgIHN0YXJ0OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgICAgICB0aGlzLmRyYWcgPSB0aGlzLnBvczsKCiAgICAgICAgICAgICAgICBpZiAodGhpcy5fdHJhbnNpdGlvbmVyKSB7CgogICAgICAgICAgICAgICAgICAgIHRoaXMucGVyY2VudCA9IHRoaXMuX3RyYW5zaXRpb25lci5wZXJjZW50KCk7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5kcmFnICs9IHRoaXMuX3RyYW5zaXRpb25lci5nZXREaXN0YW5jZSgpICogdGhpcy5wZXJjZW50ICogdGhpcy5kaXI7CgogICAgICAgICAgICAgICAgICAgIHRoaXMuX3RyYW5zaXRpb25lci5jYW5jZWwoKTsKICAgICAgICAgICAgICAgICAgICB0aGlzLl90cmFuc2l0aW9uZXIudHJhbnNsYXRlKHRoaXMucGVyY2VudCk7CgogICAgICAgICAgICAgICAgICAgIHRoaXMuZHJhZ2dpbmcgPSB0cnVlOwoKICAgICAgICAgICAgICAgICAgICB0aGlzLnN0YWNrID0gW107CgogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLnByZXZJbmRleCA9IHRoaXMuaW5kZXg7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgLy8gU2VlIGFib3ZlIHdvcmthcm91bmQgbm90aWNlCiAgICAgICAgICAgICAgICB2YXIgb2ZmID0gcG9pbnRlck1vdmUgIT09ICd0b3VjaG1vdmUnCiAgICAgICAgICAgICAgICAgICAgPyBvbihkb2N1bWVudCwgcG9pbnRlck1vdmUsIHRoaXMubW92ZSwge3Bhc3NpdmU6IGZhbHNlfSkKICAgICAgICAgICAgICAgICAgICA6IG5vb3A7CiAgICAgICAgICAgICAgICB0aGlzLnVuYmluZE1vdmUgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgb2ZmKCk7CiAgICAgICAgICAgICAgICAgICAgdGhpcyQxLnVuYmluZE1vdmUgPSBudWxsOwogICAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgICAgIG9uKHdpbmRvdywgJ3Njcm9sbCcsIHRoaXMudW5iaW5kTW92ZSk7CiAgICAgICAgICAgICAgICBvbihkb2N1bWVudCwgcG9pbnRlclVwLCB0aGlzLmVuZCwgdHJ1ZSk7CgogICAgICAgICAgICAgICAgY3NzKHRoaXMubGlzdCwgJ3VzZXJTZWxlY3QnLCAnbm9uZScpOwoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIG1vdmU6IGZ1bmN0aW9uKGUpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgICAgICAvLyBTZWUgYWJvdmUgd29ya2Fyb3VuZCBub3RpY2UKICAgICAgICAgICAgICAgIGlmICghdGhpcy51bmJpbmRNb3ZlKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHZhciBkaXN0YW5jZSA9IHRoaXMucG9zIC0gdGhpcy5kcmFnOwoKICAgICAgICAgICAgICAgIGlmIChkaXN0YW5jZSA9PT0gMCB8fCB0aGlzLnByZXZQb3MgPT09IHRoaXMucG9zIHx8ICF0aGlzLmRyYWdnaW5nICYmIE1hdGguYWJzKGRpc3RhbmNlKSA8IHRoaXMudGhyZXNob2xkKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIGNzcyh0aGlzLmxpc3QsICdwb2ludGVyRXZlbnRzJywgJ25vbmUnKTsKCiAgICAgICAgICAgICAgICBlLmNhbmNlbGFibGUgJiYgZS5wcmV2ZW50RGVmYXVsdCgpOwoKICAgICAgICAgICAgICAgIHRoaXMuZHJhZ2dpbmcgPSB0cnVlOwogICAgICAgICAgICAgICAgdGhpcy5kaXIgPSAoZGlzdGFuY2UgPCAwID8gMSA6IC0xKTsKCiAgICAgICAgICAgICAgICB2YXIgcmVmID0gdGhpczsKICAgICAgICAgICAgICAgIHZhciBzbGlkZXMgPSByZWYuc2xpZGVzOwogICAgICAgICAgICAgICAgdmFyIHJlZiQxID0gdGhpczsKICAgICAgICAgICAgICAgIHZhciBwcmV2SW5kZXggPSByZWYkMS5wcmV2SW5kZXg7CiAgICAgICAgICAgICAgICB2YXIgZGlzID0gTWF0aC5hYnMoZGlzdGFuY2UpOwogICAgICAgICAgICAgICAgdmFyIG5leHRJbmRleCA9IHRoaXMuZ2V0SW5kZXgocHJldkluZGV4ICsgdGhpcy5kaXIsIHByZXZJbmRleCk7CiAgICAgICAgICAgICAgICB2YXIgd2lkdGggPSB0aGlzLl9nZXREaXN0YW5jZShwcmV2SW5kZXgsIG5leHRJbmRleCkgfHwgc2xpZGVzW3ByZXZJbmRleF0ub2Zmc2V0V2lkdGg7CgogICAgICAgICAgICAgICAgd2hpbGUgKG5leHRJbmRleCAhPT0gcHJldkluZGV4ICYmIGRpcyA+IHdpZHRoKSB7CgogICAgICAgICAgICAgICAgICAgIHRoaXMuZHJhZyAtPSB3aWR0aCAqIHRoaXMuZGlyOwoKICAgICAgICAgICAgICAgICAgICBwcmV2SW5kZXggPSBuZXh0SW5kZXg7CiAgICAgICAgICAgICAgICAgICAgZGlzIC09IHdpZHRoOwogICAgICAgICAgICAgICAgICAgIG5leHRJbmRleCA9IHRoaXMuZ2V0SW5kZXgocHJldkluZGV4ICsgdGhpcy5kaXIsIHByZXZJbmRleCk7CiAgICAgICAgICAgICAgICAgICAgd2lkdGggPSB0aGlzLl9nZXREaXN0YW5jZShwcmV2SW5kZXgsIG5leHRJbmRleCkgfHwgc2xpZGVzW3ByZXZJbmRleF0ub2Zmc2V0V2lkdGg7CgogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHRoaXMucGVyY2VudCA9IGRpcyAvIHdpZHRoOwoKICAgICAgICAgICAgICAgIHZhciBwcmV2ID0gc2xpZGVzW3ByZXZJbmRleF07CiAgICAgICAgICAgICAgICB2YXIgbmV4dCA9IHNsaWRlc1tuZXh0SW5kZXhdOwogICAgICAgICAgICAgICAgdmFyIGNoYW5nZWQgPSB0aGlzLmluZGV4ICE9PSBuZXh0SW5kZXg7CiAgICAgICAgICAgICAgICB2YXIgZWRnZSA9IHByZXZJbmRleCA9PT0gbmV4dEluZGV4OwoKICAgICAgICAgICAgICAgIHZhciBpdGVtU2hvd247CgogICAgICAgICAgICAgICAgW3RoaXMuaW5kZXgsIHRoaXMucHJldkluZGV4XS5maWx0ZXIoZnVuY3Rpb24gKGkpIHsgcmV0dXJuICFpbmNsdWRlcyhbbmV4dEluZGV4LCBwcmV2SW5kZXhdLCBpKTsgfSkuZm9yRWFjaChmdW5jdGlvbiAoaSkgewogICAgICAgICAgICAgICAgICAgIHRyaWdnZXIoc2xpZGVzW2ldLCAnaXRlbWhpZGRlbicsIFt0aGlzJDFdKTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGVkZ2UpIHsKICAgICAgICAgICAgICAgICAgICAgICAgaXRlbVNob3duID0gdHJ1ZTsKICAgICAgICAgICAgICAgICAgICAgICAgdGhpcyQxLnByZXZJbmRleCA9IHByZXZJbmRleDsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgfSk7CgogICAgICAgICAgICAgICAgaWYgKHRoaXMuaW5kZXggPT09IHByZXZJbmRleCAmJiB0aGlzLnByZXZJbmRleCAhPT0gcHJldkluZGV4IHx8IGl0ZW1TaG93bikgewogICAgICAgICAgICAgICAgICAgIHRyaWdnZXIoc2xpZGVzW3RoaXMuaW5kZXhdLCAnaXRlbXNob3duJywgW3RoaXNdKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBpZiAoY2hhbmdlZCkgewogICAgICAgICAgICAgICAgICAgIHRoaXMucHJldkluZGV4ID0gcHJldkluZGV4OwogICAgICAgICAgICAgICAgICAgIHRoaXMuaW5kZXggPSBuZXh0SW5kZXg7CgogICAgICAgICAgICAgICAgICAgICFlZGdlICYmIHRyaWdnZXIocHJldiwgJ2JlZm9yZWl0ZW1oaWRlJywgW3RoaXNdKTsKICAgICAgICAgICAgICAgICAgICB0cmlnZ2VyKG5leHQsICdiZWZvcmVpdGVtc2hvdycsIFt0aGlzXSk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdGhpcy5fdHJhbnNpdGlvbmVyID0gdGhpcy5fdHJhbnNsYXRlKE1hdGguYWJzKHRoaXMucGVyY2VudCksIHByZXYsICFlZGdlICYmIG5leHQpOwoKICAgICAgICAgICAgICAgIGlmIChjaGFuZ2VkKSB7CiAgICAgICAgICAgICAgICAgICAgIWVkZ2UgJiYgdHJpZ2dlcihwcmV2LCAnaXRlbWhpZGUnLCBbdGhpc10pOwogICAgICAgICAgICAgICAgICAgIHRyaWdnZXIobmV4dCwgJ2l0ZW1zaG93JywgW3RoaXNdKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBlbmQ6IGZ1bmN0aW9uKCkgewoKICAgICAgICAgICAgICAgIG9mZih3aW5kb3csICdzY3JvbGwnLCB0aGlzLnVuYmluZE1vdmUpOwogICAgICAgICAgICAgICAgdGhpcy51bmJpbmRNb3ZlICYmIHRoaXMudW5iaW5kTW92ZSgpOwogICAgICAgICAgICAgICAgb2ZmKGRvY3VtZW50LCBwb2ludGVyVXAsIHRoaXMuZW5kLCB0cnVlKTsKCiAgICAgICAgICAgICAgICBpZiAodGhpcy5kcmFnZ2luZykgewoKICAgICAgICAgICAgICAgICAgICB0aGlzLmRyYWdnaW5nID0gbnVsbDsKCiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuaW5kZXggPT09IHRoaXMucHJldkluZGV4KSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucGVyY2VudCA9IDEgLSB0aGlzLnBlcmNlbnQ7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZGlyICo9IC0xOwogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9zaG93KGZhbHNlLCB0aGlzLmluZGV4LCB0cnVlKTsKICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fdHJhbnNpdGlvbmVyID0gbnVsbDsKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewoKICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGRpckNoYW5nZSA9IChpc1J0bCA/IHRoaXMuZGlyICogKGlzUnRsID8gMSA6IC0xKSA6IHRoaXMuZGlyKSA8IDAgPT09IHRoaXMucHJldlBvcyA+IHRoaXMucG9zOwogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmluZGV4ID0gZGlyQ2hhbmdlID8gdGhpcy5pbmRleCA6IHRoaXMucHJldkluZGV4OwoKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGRpckNoYW5nZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5wZXJjZW50ID0gMSAtIHRoaXMucGVyY2VudDsKICAgICAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zaG93KHRoaXMuZGlyID4gMCAmJiAhZGlyQ2hhbmdlIHx8IHRoaXMuZGlyIDwgMCAmJiBkaXJDaGFuZ2UgPyAnbmV4dCcgOiAncHJldmlvdXMnLCB0cnVlKTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIGNzcyh0aGlzLmxpc3QsIHt1c2VyU2VsZWN0OiAnJywgcG9pbnRlckV2ZW50czogJyd9KTsKCiAgICAgICAgICAgICAgICB0aGlzLmRyYWcKICAgICAgICAgICAgICAgICAgICA9IHRoaXMucGVyY2VudAogICAgICAgICAgICAgICAgICAgID0gbnVsbDsKCiAgICAgICAgICAgIH0KCiAgICAgICAgfQoKICAgIH07CgogICAgZnVuY3Rpb24gaGFzVGV4dE5vZGVzT25seShlbCkgewogICAgICAgIHJldHVybiAhZWwuY2hpbGRyZW4ubGVuZ3RoICYmIGVsLmNoaWxkTm9kZXMubGVuZ3RoOwogICAgfQoKICAgIHZhciBTbGlkZXJOYXYgPSB7CgogICAgICAgIGRhdGE6IHsKICAgICAgICAgICAgc2VsTmF2OiBmYWxzZQogICAgICAgIH0sCgogICAgICAgIGNvbXB1dGVkOiB7CgogICAgICAgICAgICBuYXY6IGZ1bmN0aW9uKHJlZiwgJGVsKSB7CiAgICAgICAgICAgICAgICB2YXIgc2VsTmF2ID0gcmVmLnNlbE5hdjsKCiAgICAgICAgICAgICAgICByZXR1cm4gJChzZWxOYXYsICRlbCk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBzZWxOYXZJdGVtOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBhdHRySXRlbSA9IHJlZi5hdHRySXRlbTsKCiAgICAgICAgICAgICAgICByZXR1cm4gKCJbIiArIGF0dHJJdGVtICsgIl0sW2RhdGEtIiArIGF0dHJJdGVtICsgIl0iKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIG5hdkl0ZW1zOiBmdW5jdGlvbihfLCAkZWwpIHsKICAgICAgICAgICAgICAgIHJldHVybiAkJCh0aGlzLnNlbE5hdkl0ZW0sICRlbCk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgdXBkYXRlOiB7CgogICAgICAgICAgICB3cml0ZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICAgICAgaWYgKHRoaXMubmF2ICYmIHRoaXMubGVuZ3RoICE9PSB0aGlzLm5hdi5jaGlsZHJlbi5sZW5ndGgpIHsKICAgICAgICAgICAgICAgICAgICBodG1sKHRoaXMubmF2LCB0aGlzLnNsaWRlcy5tYXAoZnVuY3Rpb24gKF8sIGkpIHsgcmV0dXJuICgiPGxpICIgKyAodGhpcyQxLmF0dHJJdGVtKSArICI9XCIiICsgaSArICJcIj48YSBocmVmPVwiI1wiPjwvYT48L2xpPiIpOyB9KS5qb2luKCcnKSk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdG9nZ2xlQ2xhc3MoJCQodGhpcy5zZWxOYXZJdGVtLCB0aGlzLiRlbCkuY29uY2F0KHRoaXMubmF2KSwgJ3VrLWhpZGRlbicsICF0aGlzLm1heEluZGV4KTsKCiAgICAgICAgICAgICAgICB0aGlzLnVwZGF0ZU5hdigpOwoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGV2ZW50czogWydyZXNpemUnXQoKICAgICAgICB9LAoKICAgICAgICBldmVudHM6IFsKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAnY2xpY2snLAoKICAgICAgICAgICAgICAgIGRlbGVnYXRlOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5zZWxOYXZJdGVtOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpOwogICAgICAgICAgICAgICAgICAgIHRoaXMuc2hvdyhkYXRhKGUuY3VycmVudCwgdGhpcy5hdHRySXRlbSkpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAnaXRlbXNob3cnLAogICAgICAgICAgICAgICAgaGFuZGxlcjogJ3VwZGF0ZU5hdicKCiAgICAgICAgICAgIH0KCiAgICAgICAgXSwKCiAgICAgICAgbWV0aG9kczogewoKICAgICAgICAgICAgdXBkYXRlTmF2OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgICAgICB2YXIgaSA9IHRoaXMuZ2V0VmFsaWRJbmRleCgpOwogICAgICAgICAgICAgICAgdGhpcy5uYXZJdGVtcy5mb3JFYWNoKGZ1bmN0aW9uIChlbCkgewoKICAgICAgICAgICAgICAgICAgICB2YXIgY21kID0gZGF0YShlbCwgdGhpcyQxLmF0dHJJdGVtKTsKCiAgICAgICAgICAgICAgICAgICAgdG9nZ2xlQ2xhc3MoZWwsIHRoaXMkMS5jbHNBY3RpdmUsIHRvTnVtYmVyKGNtZCkgPT09IGkpOwogICAgICAgICAgICAgICAgICAgIHRvZ2dsZUNsYXNzKGVsLCAndWstaW52aXNpYmxlJywgdGhpcyQxLmZpbml0ZSAmJiAoY21kID09PSAncHJldmlvdXMnICYmIGkgPT09IDAgfHwgY21kID09PSAnbmV4dCcgJiYgaSA+PSB0aGlzJDEubWF4SW5kZXgpKTsKICAgICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgfQoKICAgICAgICB9CgogICAgfTsKCiAgICB2YXIgU2xpZGVyID0gewoKICAgICAgICBtaXhpbnM6IFtTbGlkZXJBdXRvcGxheSwgU2xpZGVyRHJhZywgU2xpZGVyTmF2XSwKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgY2xzQWN0aXZhdGVkOiBCb29sZWFuLAogICAgICAgICAgICBlYXNpbmc6IFN0cmluZywKICAgICAgICAgICAgaW5kZXg6IE51bWJlciwKICAgICAgICAgICAgZmluaXRlOiBCb29sZWFuLAogICAgICAgICAgICB2ZWxvY2l0eTogTnVtYmVyCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogZnVuY3Rpb24gKCkgeyByZXR1cm4gKHsKICAgICAgICAgICAgZWFzaW5nOiAnZWFzZScsCiAgICAgICAgICAgIGZpbml0ZTogZmFsc2UsCiAgICAgICAgICAgIHZlbG9jaXR5OiAxLAogICAgICAgICAgICBpbmRleDogMCwKICAgICAgICAgICAgcHJldkluZGV4OiAtMSwKICAgICAgICAgICAgc3RhY2s6IFtdLAogICAgICAgICAgICBwZXJjZW50OiAwLAogICAgICAgICAgICBjbHNBY3RpdmU6ICd1ay1hY3RpdmUnLAogICAgICAgICAgICBjbHNBY3RpdmF0ZWQ6IGZhbHNlLAogICAgICAgICAgICBUcmFuc2l0aW9uZXI6IGZhbHNlLAogICAgICAgICAgICB0cmFuc2l0aW9uT3B0aW9uczoge30KICAgICAgICB9KTsgfSwKCiAgICAgICAgY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdGhpcy5wcmV2SW5kZXggPSAtMTsKICAgICAgICAgICAgdGhpcy5pbmRleCA9IHRoaXMuZ2V0VmFsaWRJbmRleCh0aGlzLmluZGV4KTsKICAgICAgICAgICAgdGhpcy5zdGFjayA9IFtdOwogICAgICAgIH0sCgogICAgICAgIGRpc2Nvbm5lY3RlZDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIHJlbW92ZUNsYXNzKHRoaXMuc2xpZGVzLCB0aGlzLmNsc0FjdGl2ZSk7CiAgICAgICAgfSwKCiAgICAgICAgY29tcHV0ZWQ6IHsKCiAgICAgICAgICAgIGR1cmF0aW9uOiBmdW5jdGlvbihyZWYsICRlbCkgewogICAgICAgICAgICAgICAgdmFyIHZlbG9jaXR5ID0gcmVmLnZlbG9jaXR5OwoKICAgICAgICAgICAgICAgIHJldHVybiBzcGVlZFVwKCRlbC5vZmZzZXRXaWR0aCAvIHZlbG9jaXR5KTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGxpc3Q6IGZ1bmN0aW9uKHJlZiwgJGVsKSB7CiAgICAgICAgICAgICAgICB2YXIgc2VsTGlzdCA9IHJlZi5zZWxMaXN0OwoKICAgICAgICAgICAgICAgIHJldHVybiAkKHNlbExpc3QsICRlbCk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBtYXhJbmRleDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5sZW5ndGggLSAxOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgc2VsU2xpZGVzOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBzZWxMaXN0ID0gcmVmLnNlbExpc3Q7CgogICAgICAgICAgICAgICAgcmV0dXJuIChzZWxMaXN0ICsgIiA+ICoiKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHNsaWRlczogewoKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRvTm9kZXModGhpcy5saXN0LmNoaWxkcmVuKTsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgd2F0Y2g6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHRoaXMuJHJlc2V0KCk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgbGVuZ3RoOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLnNsaWRlcy5sZW5ndGg7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiB7CgogICAgICAgICAgICBpdGVtc2hvd246IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgdGhpcy4kdXBkYXRlKHRoaXMubGlzdCk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgbWV0aG9kczogewoKICAgICAgICAgICAgc2hvdzogZnVuY3Rpb24oaW5kZXgsIGZvcmNlKSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKICAgICAgICAgICAgICAgIGlmICggZm9yY2UgPT09IHZvaWQgMCApIGZvcmNlID0gZmFsc2U7CgoKICAgICAgICAgICAgICAgIGlmICh0aGlzLmRyYWdnaW5nIHx8ICF0aGlzLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB2YXIgcmVmID0gdGhpczsKICAgICAgICAgICAgICAgIHZhciBzdGFjayA9IHJlZi5zdGFjazsKICAgICAgICAgICAgICAgIHZhciBxdWV1ZUluZGV4ID0gZm9yY2UgPyAwIDogc3RhY2subGVuZ3RoOwogICAgICAgICAgICAgICAgdmFyIHJlc2V0ID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHN0YWNrLnNwbGljZShxdWV1ZUluZGV4LCAxKTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKHN0YWNrLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgICAgICB0aGlzJDEuc2hvdyhzdGFjay5zaGlmdCgpLCB0cnVlKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9OwoKICAgICAgICAgICAgICAgIHN0YWNrW2ZvcmNlID8gJ3Vuc2hpZnQnIDogJ3B1c2gnXShpbmRleCk7CgogICAgICAgICAgICAgICAgaWYgKCFmb3JjZSAmJiBzdGFjay5sZW5ndGggPiAxKSB7CgogICAgICAgICAgICAgICAgICAgIGlmIChzdGFjay5sZW5ndGggPT09IDIpIHsKICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fdHJhbnNpdGlvbmVyLmZvcndhcmQoTWF0aC5taW4odGhpcy5kdXJhdGlvbiwgMjAwKSk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdmFyIHByZXZJbmRleCA9IHRoaXMuaW5kZXg7CiAgICAgICAgICAgICAgICB2YXIgcHJldiA9IGhhc0NsYXNzKHRoaXMuc2xpZGVzLCB0aGlzLmNsc0FjdGl2ZSkgJiYgdGhpcy5zbGlkZXNbcHJldkluZGV4XTsKICAgICAgICAgICAgICAgIHZhciBuZXh0SW5kZXggPSB0aGlzLmdldEluZGV4KGluZGV4LCB0aGlzLmluZGV4KTsKICAgICAgICAgICAgICAgIHZhciBuZXh0ID0gdGhpcy5zbGlkZXNbbmV4dEluZGV4XTsKCiAgICAgICAgICAgICAgICBpZiAocHJldiA9PT0gbmV4dCkgewogICAgICAgICAgICAgICAgICAgIHJlc2V0KCk7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHRoaXMuZGlyID0gZ2V0RGlyZWN0aW9uKGluZGV4LCBwcmV2SW5kZXgpOwogICAgICAgICAgICAgICAgdGhpcy5wcmV2SW5kZXggPSBwcmV2SW5kZXg7CiAgICAgICAgICAgICAgICB0aGlzLmluZGV4ID0gbmV4dEluZGV4OwoKICAgICAgICAgICAgICAgIHByZXYgJiYgdHJpZ2dlcihwcmV2LCAnYmVmb3JlaXRlbWhpZGUnLCBbdGhpc10pOwogICAgICAgICAgICAgICAgaWYgKCF0cmlnZ2VyKG5leHQsICdiZWZvcmVpdGVtc2hvdycsIFt0aGlzLCBwcmV2XSkpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLmluZGV4ID0gdGhpcy5wcmV2SW5kZXg7CiAgICAgICAgICAgICAgICAgICAgcmVzZXQoKTsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdmFyIHByb21pc2UgPSB0aGlzLl9zaG93KHByZXYsIG5leHQsIGZvcmNlKS50aGVuKGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgICAgICAgICAgcHJldiAmJiB0cmlnZ2VyKHByZXYsICdpdGVtaGlkZGVuJywgW3RoaXMkMV0pOwogICAgICAgICAgICAgICAgICAgIHRyaWdnZXIobmV4dCwgJ2l0ZW1zaG93bicsIFt0aGlzJDFdKTsKCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKGZ1bmN0aW9uIChyZXNvbHZlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGZhc3Rkb20ud3JpdGUoZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhY2suc2hpZnQoKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChzdGFjay5sZW5ndGgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzJDEuc2hvdyhzdGFjay5zaGlmdCgpLCB0cnVlKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcyQxLl90cmFuc2l0aW9uZXIgPSBudWxsOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZSgpOwogICAgICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgICAgICBwcmV2ICYmIHRyaWdnZXIocHJldiwgJ2l0ZW1oaWRlJywgW3RoaXNdKTsKICAgICAgICAgICAgICAgIHRyaWdnZXIobmV4dCwgJ2l0ZW1zaG93JywgW3RoaXNdKTsKCiAgICAgICAgICAgICAgICByZXR1cm4gcHJvbWlzZTsKCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBnZXRJbmRleDogZnVuY3Rpb24oaW5kZXgsIHByZXYpIHsKICAgICAgICAgICAgICAgIGlmICggaW5kZXggPT09IHZvaWQgMCApIGluZGV4ID0gdGhpcy5pbmRleDsKICAgICAgICAgICAgICAgIGlmICggcHJldiA9PT0gdm9pZCAwICkgcHJldiA9IHRoaXMuaW5kZXg7CgogICAgICAgICAgICAgICAgcmV0dXJuIGNsYW1wKGdldEluZGV4KGluZGV4LCB0aGlzLnNsaWRlcywgcHJldiwgdGhpcy5maW5pdGUpLCAwLCB0aGlzLm1heEluZGV4KTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGdldFZhbGlkSW5kZXg6IGZ1bmN0aW9uKGluZGV4LCBwcmV2SW5kZXgpIHsKICAgICAgICAgICAgICAgIGlmICggaW5kZXggPT09IHZvaWQgMCApIGluZGV4ID0gdGhpcy5pbmRleDsKICAgICAgICAgICAgICAgIGlmICggcHJldkluZGV4ID09PSB2b2lkIDAgKSBwcmV2SW5kZXggPSB0aGlzLnByZXZJbmRleDsKCiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5nZXRJbmRleChpbmRleCwgcHJldkluZGV4KTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIF9zaG93OiBmdW5jdGlvbihwcmV2LCBuZXh0LCBmb3JjZSkgewoKICAgICAgICAgICAgICAgIHRoaXMuX3RyYW5zaXRpb25lciA9IHRoaXMuX2dldFRyYW5zaXRpb25lcigKICAgICAgICAgICAgICAgICAgICBwcmV2LAogICAgICAgICAgICAgICAgICAgIG5leHQsCiAgICAgICAgICAgICAgICAgICAgdGhpcy5kaXIsCiAgICAgICAgICAgICAgICAgICAgYXNzaWduKHsKICAgICAgICAgICAgICAgICAgICAgICAgZWFzaW5nOiBmb3JjZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBuZXh0Lm9mZnNldFdpZHRoIDwgNjAwCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyAnY3ViaWMtYmV6aWVyKDAuMjUsIDAuNDYsIDAuNDUsIDAuOTQpJyAvKiBlYXNlT3V0UXVhZCAqLwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogJ2N1YmljLWJlemllcigwLjE2NSwgMC44NCwgMC40NCwgMSknIC8qIGVhc2VPdXRRdWFydCAqLwogICAgICAgICAgICAgICAgICAgICAgICAgICAgOiB0aGlzLmVhc2luZwogICAgICAgICAgICAgICAgICAgIH0sIHRoaXMudHJhbnNpdGlvbk9wdGlvbnMpCiAgICAgICAgICAgICAgICApOwoKICAgICAgICAgICAgICAgIGlmICghZm9yY2UgJiYgIXByZXYpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLl90cmFuc2l0aW9uZXIudHJhbnNsYXRlKDEpOwogICAgICAgICAgICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB2YXIgcmVmID0gdGhpcy5zdGFjazsKICAgICAgICAgICAgICAgIHZhciBsZW5ndGggPSByZWYubGVuZ3RoOwogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuX3RyYW5zaXRpb25lcltsZW5ndGggPiAxID8gJ2ZvcndhcmQnIDogJ3Nob3cnXShsZW5ndGggPiAxID8gTWF0aC5taW4odGhpcy5kdXJhdGlvbiwgNzUgKyA3NSAvIChsZW5ndGggLSAxKSkgOiB0aGlzLmR1cmF0aW9uLCB0aGlzLnBlcmNlbnQpOwoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIF9nZXREaXN0YW5jZTogZnVuY3Rpb24ocHJldiwgbmV4dCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuX2dldFRyYW5zaXRpb25lcihwcmV2LCBwcmV2ICE9PSBuZXh0ICYmIG5leHQpLmdldERpc3RhbmNlKCk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBfdHJhbnNsYXRlOiBmdW5jdGlvbihwZXJjZW50LCBwcmV2LCBuZXh0KSB7CiAgICAgICAgICAgICAgICBpZiAoIHByZXYgPT09IHZvaWQgMCApIHByZXYgPSB0aGlzLnByZXZJbmRleDsKICAgICAgICAgICAgICAgIGlmICggbmV4dCA9PT0gdm9pZCAwICkgbmV4dCA9IHRoaXMuaW5kZXg7CgogICAgICAgICAgICAgICAgdmFyIHRyYW5zaXRpb25lciA9IHRoaXMuX2dldFRyYW5zaXRpb25lcihwcmV2ICE9PSBuZXh0ID8gcHJldiA6IGZhbHNlLCBuZXh0KTsKICAgICAgICAgICAgICAgIHRyYW5zaXRpb25lci50cmFuc2xhdGUocGVyY2VudCk7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJhbnNpdGlvbmVyOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgX2dldFRyYW5zaXRpb25lcjogZnVuY3Rpb24ocHJldiwgbmV4dCwgZGlyLCBvcHRpb25zKSB7CiAgICAgICAgICAgICAgICBpZiAoIHByZXYgPT09IHZvaWQgMCApIHByZXYgPSB0aGlzLnByZXZJbmRleDsKICAgICAgICAgICAgICAgIGlmICggbmV4dCA9PT0gdm9pZCAwICkgbmV4dCA9IHRoaXMuaW5kZXg7CiAgICAgICAgICAgICAgICBpZiAoIGRpciA9PT0gdm9pZCAwICkgZGlyID0gdGhpcy5kaXIgfHwgMTsKICAgICAgICAgICAgICAgIGlmICggb3B0aW9ucyA9PT0gdm9pZCAwICkgb3B0aW9ucyA9IHRoaXMudHJhbnNpdGlvbk9wdGlvbnM7CgogICAgICAgICAgICAgICAgcmV0dXJuIG5ldyB0aGlzLlRyYW5zaXRpb25lcigKICAgICAgICAgICAgICAgICAgICBpc051bWJlcihwcmV2KSA/IHRoaXMuc2xpZGVzW3ByZXZdIDogcHJldiwKICAgICAgICAgICAgICAgICAgICBpc051bWJlcihuZXh0KSA/IHRoaXMuc2xpZGVzW25leHRdIDogbmV4dCwKICAgICAgICAgICAgICAgICAgICBkaXIgKiAoaXNSdGwgPyAtMSA6IDEpLAogICAgICAgICAgICAgICAgICAgIG9wdGlvbnMKICAgICAgICAgICAgICAgICk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfQoKICAgIH07CgogICAgZnVuY3Rpb24gZ2V0RGlyZWN0aW9uKGluZGV4LCBwcmV2SW5kZXgpIHsKICAgICAgICByZXR1cm4gaW5kZXggPT09ICduZXh0JwogICAgICAgICAgICA/IDEKICAgICAgICAgICAgOiBpbmRleCA9PT0gJ3ByZXZpb3VzJwogICAgICAgICAgICAgICAgPyAtMQogICAgICAgICAgICAgICAgOiBpbmRleCA8IHByZXZJbmRleAogICAgICAgICAgICAgICAgICAgID8gLTEKICAgICAgICAgICAgICAgICAgICA6IDE7CiAgICB9CgogICAgZnVuY3Rpb24gc3BlZWRVcCh4KSB7CiAgICAgICAgcmV0dXJuIC41ICogeCArIDMwMDsgLy8gcGFyYWJvbGEgdGhyb3VnaCAoNDAwLDUwMDsgNjAwLDYwMDsgMTgwMCwxMjAwKQogICAgfQoKICAgIHZhciBTbGlkZXNob3cgPSB7CgogICAgICAgIG1peGluczogW1NsaWRlcl0sCgogICAgICAgIHByb3BzOiB7CiAgICAgICAgICAgIGFuaW1hdGlvbjogU3RyaW5nCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICBhbmltYXRpb246ICdzbGlkZScsCiAgICAgICAgICAgIGNsc0FjdGl2YXRlZDogJ3VrLXRyYW5zaXRpb24tYWN0aXZlJywKICAgICAgICAgICAgQW5pbWF0aW9uczogQW5pbWF0aW9ucywKICAgICAgICAgICAgVHJhbnNpdGlvbmVyOiBUcmFuc2l0aW9uZXIKICAgICAgICB9LAoKICAgICAgICBjb21wdXRlZDogewoKICAgICAgICAgICAgYW5pbWF0aW9uOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBhbmltYXRpb24gPSByZWYuYW5pbWF0aW9uOwogICAgICAgICAgICAgICAgdmFyIEFuaW1hdGlvbnMgPSByZWYuQW5pbWF0aW9uczsKCiAgICAgICAgICAgICAgICByZXR1cm4gYXNzaWduKGFuaW1hdGlvbiBpbiBBbmltYXRpb25zID8gQW5pbWF0aW9uc1thbmltYXRpb25dIDogQW5pbWF0aW9ucy5zbGlkZSwge25hbWU6IGFuaW1hdGlvbn0pOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgdHJhbnNpdGlvbk9wdGlvbnM6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHthbmltYXRpb246IHRoaXMuYW5pbWF0aW9ufTsKICAgICAgICAgICAgfQoKICAgICAgICB9LAoKICAgICAgICBldmVudHM6IHsKCiAgICAgICAgICAgICdpdGVtc2hvdyBpdGVtaGlkZSBpdGVtc2hvd24gaXRlbWhpZGRlbic6IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIHRhcmdldCA9IHJlZi50YXJnZXQ7CgogICAgICAgICAgICAgICAgdGhpcy4kdXBkYXRlKHRhcmdldCk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBiZWZvcmVpdGVtc2hvdzogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgdGFyZ2V0ID0gcmVmLnRhcmdldDsKCiAgICAgICAgICAgICAgICBhZGRDbGFzcyh0YXJnZXQsIHRoaXMuY2xzQWN0aXZlKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGl0ZW1zaG93bjogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgdGFyZ2V0ID0gcmVmLnRhcmdldDsKCiAgICAgICAgICAgICAgICBhZGRDbGFzcyh0YXJnZXQsIHRoaXMuY2xzQWN0aXZhdGVkKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGl0ZW1oaWRkZW46IGZ1bmN0aW9uKHJlZikgewogICAgICAgICAgICAgICAgdmFyIHRhcmdldCA9IHJlZi50YXJnZXQ7CgogICAgICAgICAgICAgICAgcmVtb3ZlQ2xhc3ModGFyZ2V0LCB0aGlzLmNsc0FjdGl2ZSwgdGhpcy5jbHNBY3RpdmF0ZWQpOwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICB9OwoKICAgIHZhciBsaWdodGJveFBhbmVsID0gewoKICAgICAgICBtaXhpbnM6IFtDb250YWluZXIsIE1vZGFsLCBUb2dnbGFibGUsIFNsaWRlc2hvd10sCgogICAgICAgIGZ1bmN0aW9uYWw6IHRydWUsCgogICAgICAgIHByb3BzOiB7CiAgICAgICAgICAgIGRlbGF5Q29udHJvbHM6IE51bWJlciwKICAgICAgICAgICAgcHJlbG9hZDogTnVtYmVyLAogICAgICAgICAgICB2aWRlb0F1dG9wbGF5OiBCb29sZWFuLAogICAgICAgICAgICB0ZW1wbGF0ZTogU3RyaW5nCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogZnVuY3Rpb24gKCkgeyByZXR1cm4gKHsKICAgICAgICAgICAgcHJlbG9hZDogMSwKICAgICAgICAgICAgdmlkZW9BdXRvcGxheTogZmFsc2UsCiAgICAgICAgICAgIGRlbGF5Q29udHJvbHM6IDMwMDAsCiAgICAgICAgICAgIGl0ZW1zOiBbXSwKICAgICAgICAgICAgY2xzOiAndWstb3BlbicsCiAgICAgICAgICAgIGNsc1BhZ2U6ICd1ay1saWdodGJveC1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oYW5kbGVyOiAnc2hvd0NvbnRyb2xzJwoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAnY2xpY2snLAoKICAgICAgICAgICAgICAgIHNlbGY6IHRydWUsCgogICAgICAgICAgICAgICAgZGVsZWdhdGU6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLnNlbFNsaWRlczsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24oZSkgewoKICAgICAgICAgICAgICAgICAgICBpZiAoZS5kZWZhdWx0UHJldmVudGVkKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIHRoaXMuaGlkZSgpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAnc2hvd24nLAoKICAgICAgICAgICAgICAgIHNlbGY6IHRydWUsCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5zaG93Q29udHJvbHMoKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgbmFtZTogJ2hpZGUnLAoKICAgICAgICAgICAgICAgIHNlbGY6IHRydWUsCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24oKSB7CgogICAgICAgICAgICAgICAgICAgIHRoaXMuaGlkZUNvbnRyb2xzKCk7CgogICAgICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzKHRoaXMuc2xpZGVzLCB0aGlzLmNsc0FjdGl2ZSk7CiAgICAgICAgICAgICAgICAgICAgVHJhbnNpdGlvbi5zdG9wKHRoaXMuc2xpZGVzKTsKCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgbmFtZTogJ2hpZGRlbicsCgogICAgICAgICAgICAgICAgc2VsZjogdHJ1ZSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLiRkZXN0cm95KHRydWUpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAna2V5dXAnLAoKICAgICAgICAgICAgICAgIGVsOiBkb2N1bWVudCwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlKSB7CgogICAgICAgICAgICAgICAgICAgIGlmICghdGhpcy5pc1RvZ2dsZWQodGhpcy4kZWwpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIHN3aXRjaCAoZS5rZXlDb2RlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgMzc6CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3coJ3ByZXZpb3VzJyk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAzOToKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc2hvdygnbmV4dCcpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIG5hbWU6ICdiZWZvcmVpdGVtc2hvdycsCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24oZSkgewoKICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5pc1RvZ2dsZWQoKSkgewogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICB0aGlzLmRyYWdnYWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7CgogICAgICAgICAgICAgICAgICAgIHRoaXMudG9nZ2xlTm93KHRoaXMuJGVsLCB0cnVlKTsKCiAgICAgICAgICAgICAgICAgICAgdGhpcy5hbmltYXRpb24gPSBBbmltYXRpb25zJDFbJ3NjYWxlJ107CiAgICAgICAgICAgICAgICAgICAgcmVtb3ZlQ2xhc3MoZS50YXJnZXQsIHRoaXMuY2xzQWN0aXZlKTsKICAgICAgICAgICAgICAgICAgICB0aGlzLnN0YWNrLnNwbGljZSgxLCAwLCB0aGlzLmluZGV4KTsKCiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIG5hbWU6ICdpdGVtc2hvdycsCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIHRhcmdldCA9IHJlZi50YXJnZXQ7CgoKICAgICAgICAgICAgICAgICAgICB2YXIgaSA9IGluZGV4KHRhcmdldCk7CiAgICAgICAgICAgICAgICAgICAgdmFyIHJlZiQxID0gdGhpcy5nZXRJdGVtKGkpOwogICAgICAgICAgICAgICAgICAgIHZhciBjYXB0aW9uID0gcmVmJDEuY2FwdGlvbjsKCiAgICAgICAgICAgICAgICAgICAgY3NzKHRoaXMuY2FwdGlvbiwgJ2Rpc3BsYXknLCBjYXB0aW9uID8gJycgOiAnbm9uZScpOwogICAgICAgICAgICAgICAgICAgIGh0bWwodGhpcy5jYXB0aW9uLCBjYXB0aW9uKTsKCiAgICAgICAgICAgICAgICAgICAgZm9yICh2YXIgaiA9IDA7IGogPD0gdGhpcy5wcmVsb2FkOyBqKyspIHsKICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5sb2FkSXRlbSh0aGlzLmdldEluZGV4KGkgKyBqKSk7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMubG9hZEl0ZW0odGhpcy5nZXRJbmRleChpIC0gaikpOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewoKICAgICAgICAgICAgICAgIG5hbWU6ICdpdGVtc2hvd24nLAoKICAgICAgICAgICAgICAgIGhhbmRsZXI6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgIHRoaXMuZHJhZ2dhYmxlID0gdGhpcy4kcHJvcHMuZHJhZ2dhYmxlOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICBuYW1lOiAnaXRlbWxvYWQnLAoKICAgICAgICAgICAgICAgIGhhbmRsZXI6IGZ1bmN0aW9uKF8sIGl0ZW0pIHsKICAgICAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICAgICAgICAgIHZhciBzb3VyY2UgPSBpdGVtLnNvdXJjZTsKICAgICAgICAgICAgICAgICAgICB2YXIgdHlwZSA9IGl0ZW0udHlwZTsKICAgICAgICAgICAgICAgICAgICB2YXIgYWx0ID0gaXRlbS5hbHQ7CgogICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0SXRlbShpdGVtLCAnPHNwYW4gdWstc3Bpbm5lcj48L3NwYW4+Jyk7CgogICAgICAgICAgICAgICAgICAgIGlmICghc291cmNlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIHZhciBtYXRjaGVzOwoKICAgICAgICAgICAgICAgICAgICAvLyBJbWFnZQogICAgICAgICAgICAgICAgICAgIGlmICh0eXBlID09PSAnaW1hZ2UnIHx8IHNvdXJjZS5tYXRjaCgvXC4oanAoZSk/Z3xwbmd8Z2lmfHN2Z3x3ZWJwKSgkfFw/KS9pKSkgewoKICAgICAgICAgICAgICAgICAgICAgICAgZ2V0SW1hZ2Uoc291cmNlKS50aGVuKAogICAgICAgICAgICAgICAgICAgICAgICAgICAgZnVuY3Rpb24gKGltZykgeyByZXR1cm4gdGhpcyQxLnNldEl0ZW0oaXRlbSwgKCI8aW1nIHdpZHRoPVwiIiArIChpbWcud2lkdGgpICsgIlwiIGhlaWdodD1cIiIgKyAoaW1nLmhlaWdodCkgKyAiXCIgc3JjPVwiIiArIHNvdXJjZSArICJcIiBhbHQ9XCIiICsgKGFsdCA/IGFsdCA6ICcnKSArICJcIj4iKSk7IH0sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiAoKSB7IHJldHVybiB0aGlzJDEuc2V0RXJyb3IoaXRlbSk7IH0KICAgICAgICAgICAgICAgICAgICAgICAgKTsKCiAgICAgICAgICAgICAgICAgICAgICAgIC8vIFZpZGVvCiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICh0eXBlID09PSAndmlkZW8nIHx8IHNvdXJjZS5tYXRjaCgvXC4obXA0fHdlYm18b2d2KSgkfFw/KS9pKSkgewoKICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHZpZGVvID0gJCgoIjx2aWRlbyBjb250cm9scyBwbGF5c2lubGluZSIgKyAoaXRlbS5wb3N0ZXIgPyAoIiBwb3N0ZXI9XCIiICsgKGl0ZW0ucG9zdGVyKSArICJcIiIpIDogJycpICsgIiB1ay12aWRlbz1cIiIgKyAodGhpcy52aWRlb0F1dG9wbGF5KSArICJcIj48L3ZpZGVvPiIpKTsKICAgICAgICAgICAgICAgICAgICAgICAgYXR0cih2aWRlbywgJ3NyYycsIHNvdXJjZSk7CgogICAgICAgICAgICAgICAgICAgICAgICBvbmNlKHZpZGVvLCAnZXJyb3IgbG9hZGVkbWV0YWRhdGEnLCBmdW5jdGlvbiAodHlwZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGUgPT09ICdlcnJvcicpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzJDEuc2V0RXJyb3IoaXRlbSk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHIodmlkZW8sIHt3aWR0aDogdmlkZW8udmlkZW9XaWR0aCwgaGVpZ2h0OiB2aWRlby52aWRlb0hlaWdodH0pOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMkMS5zZXRJdGVtKGl0ZW0sIHZpZGVvKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgICAgfSk7CgogICAgICAgICAgICAgICAgICAgICAgICAvLyBJZnJhbWUKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHR5cGUgPT09ICdpZnJhbWUnIHx8IHNvdXJjZS5tYXRjaCgvXC4oaHRtbHxwaHApKCR8XD8pL2kpKSB7CgogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNldEl0ZW0oaXRlbSwgKCI8aWZyYW1lIGNsYXNzPVwidWstbGlnaHRib3gtaWZyYW1lXCIgc3JjPVwiIiArIHNvdXJjZSArICJcIiBmcmFtZWJvcmRlcj1cIjBcIiBhbGxvd2Z1bGxzY3JlZW4+PC9pZnJhbWU+IikpOwoKICAgICAgICAgICAgICAgICAgICAgICAgLy8gWW91VHViZQogICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoKG1hdGNoZXMgPSBzb3VyY2UubWF0Y2goL1wvXC8uKj95b3V0dWJlKC1ub2Nvb2tpZSk/XC5bYS16XStcL3dhdGNoXD92PShbXiZcc10rKS8pIHx8IHNvdXJjZS5tYXRjaCgvKCl5b3V0dVwuYmVcLyguKikvKSkpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBpZCA9IG1hdGNoZXNbMl07CiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBzZXRJZnJhbWUgPSBmdW5jdGlvbiAod2lkdGgsIGhlaWdodCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCB3aWR0aCA9PT0gdm9pZCAwICkgd2lkdGggPSA2NDA7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIGhlaWdodCA9PT0gdm9pZCAwICkgaGVpZ2h0ID0gNDUwOwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzJDEuc2V0SXRlbShpdGVtLCBnZXRJZnJhbWUoKCJodHRwczovL3d3dy55b3V0dWJlIiArIChtYXRjaGVzWzFdIHx8ICcnKSArICIuY29tL2VtYmVkLyIgKyBpZCksIHdpZHRoLCBoZWlnaHQsIHRoaXMkMS52aWRlb0F1dG9wbGF5KSk7CiAgICAgICAgICAgICAgICAgICAgICAgIH07CgogICAgICAgICAgICAgICAgICAgICAgICBnZXRJbWFnZSgoImh0dHBzOi8vaW1nLnlvdXR1YmUuY29tL3ZpLyIgKyBpZCArICIvbWF4cmVzZGVmYXVsdC5qcGciKSkudGhlbigKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uIChyZWYpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgd2lkdGggPSByZWYud2lkdGg7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGhlaWdodCA9IHJlZi5oZWlnaHQ7CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIFlvdVR1YmUgZGVmYXVsdCA0MDQgdGh1bWIsIGZhbGwgYmFjayB0byBsb3cgcmVzb2x1dGlvbgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh3aWR0aCA9PT0gMTIwICYmIGhlaWdodCA9PT0gOTApIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2V0SW1hZ2UoKCJodHRwczovL2ltZy55b3V0dWJlLmNvbS92aS8iICsgaWQgKyAiLzAuanBnIikpLnRoZW4oCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiAocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHdpZHRoID0gcmVmLndpZHRoOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBoZWlnaHQgPSByZWYuaGVpZ2h0OwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gc2V0SWZyYW1lKHdpZHRoLCBoZWlnaHQpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0SWZyYW1lCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0SWZyYW1lKHdpZHRoLCBoZWlnaHQpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRJZnJhbWUKICAgICAgICAgICAgICAgICAgICAgICAgKTsKCiAgICAgICAgICAgICAgICAgICAgICAgIC8vIFZpbWVvCiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICgobWF0Y2hlcyA9IHNvdXJjZS5tYXRjaCgvKFwvXC8uKj8pdmltZW9cLlthLXpdK1wvKFswLTldKykuKj8vKSkpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgIGFqYXgoKCJodHRwczovL3ZpbWVvLmNvbS9hcGkvb2VtYmVkLmpzb24/bWF4d2lkdGg9MTkyMCZ1cmw9IiArIChlbmNvZGVVUkkoc291cmNlKSkpLCB7cmVzcG9uc2VUeXBlOiAnanNvbicsIHdpdGhDcmVkZW50aWFsczogZmFsc2V9KQogICAgICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4oCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZnVuY3Rpb24gKHJlZikgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgcmVmX3Jlc3BvbnNlID0gcmVmLnJlc3BvbnNlOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgaGVpZ2h0ID0gcmVmX3Jlc3BvbnNlLmhlaWdodDsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHdpZHRoID0gcmVmX3Jlc3BvbnNlLndpZHRoOwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMkMS5zZXRJdGVtKGl0ZW0sIGdldElmcmFtZSgoImh0dHBzOi8vcGxheWVyLnZpbWVvLmNvbS92aWRlby8iICsgKG1hdGNoZXNbMl0pKSwgd2lkdGgsIGhlaWdodCwgdGhpcyQxLnZpZGVvQXV0b3BsYXkpKTsKICAgICAgICAgICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiAoKSB7IHJldHVybiB0aGlzJDEuc2V0RXJyb3IoaXRlbSk7IH0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7CgogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9CgogICAgICAgIF0sCgogICAgICAgIG1ldGhvZHM6IHsKCiAgICAgICAgICAgIGxvYWRJdGVtOiBmdW5jdGlvbihpbmRleCkgewogICAgICAgICAgICAgICAgaWYgKCBpbmRleCA9PT0gdm9pZCAwICkgaW5kZXggPSB0aGlzLmluZGV4OwoKCiAgICAgICAgICAgICAgICB2YXIgaXRlbSA9IHRoaXMuZ2V0SXRlbShpbmRleCk7CgogICAgICAgICAgICAgICAgaWYgKGl0ZW0uY29udGVudCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB0cmlnZ2VyKHRoaXMuJGVsLCAnaXRlbWxvYWQnLCBbaXRlbV0pOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgZ2V0SXRlbTogZnVuY3Rpb24oaW5kZXgpIHsKICAgICAgICAgICAgICAgIGlmICggaW5kZXggPT09IHZvaWQgMCApIGluZGV4ID0gdGhpcy5pbmRleDsKCiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5pdGVtc1tpbmRleF0gfHwge307CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBzZXRJdGVtOiBmdW5jdGlvbihpdGVtLCBjb250ZW50KSB7CiAgICAgICAgICAgICAgICBhc3NpZ24oaXRlbSwge2NvbnRlbnQ6IGNvbnRlbnR9KTsKICAgICAgICAgICAgICAgIHZhciBlbCA9IGh0bWwodGhpcy5zbGlkZXNbdGhpcy5pdGVtcy5pbmRleE9mKGl0ZW0pXSwgY29udGVudCk7CiAgICAgICAgICAgICAgICB0cmlnZ2VyKHRoaXMuJGVsLCAnaXRlbWxvYWRlZCcsIFt0aGlzLCBlbF0pOwogICAgICAgICAgICAgICAgdGhpcy4kdXBkYXRlKGVsKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHNldEVycm9yOiBmdW5jdGlvbihpdGVtKSB7CiAgICAgICAgICAgICAgICB0aGlzLnNldEl0ZW0oaXRlbSwgJzxzcGFuIHVrLWljb249Imljb246IGJvbHQ7IHJhdGlvOiAyIj48L3NwYW4+Jyk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBzaG93Q29udHJvbHM6IGZ1bmN0aW9uKCkgewoKICAgICAgICAgICAgICAgIGNsZWFyVGltZW91dCh0aGlzLmNvbnRyb2xzVGltZXIpOwogICAgICAgICAgICAgICAgdGhpcy5jb250cm9sc1RpbWVyID0gc2V0VGltZW91dCh0aGlzLmhpZGVDb250cm9sc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AgICAgIHJldHVybiAkJCh0b2dnbGUsICRlbCk7CiAgICAgICAgICAgICAgICB9LAoKICAgICAgICAgICAgICAgIHdhdGNoOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLmhpZGUoKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBpdGVtczogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdW5pcXVlQnkodGhpcy50b2dnbGVzLm1hcCh0b0l0ZW0pLCAnc291cmNlJyk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgZGlzY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdGhpcy5oaWRlKCk7CiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiBbCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgbmFtZTogJ2NsaWNrJywKCiAgICAgICAgICAgICAgICBkZWxlZ2F0ZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICgodGhpcy50b2dnbGUpICsgIjpub3QoLnVrLWRpc2FibGVkKSIpOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpOwogICAgICAgICAgICAgICAgICAgIHZhciBzcmMgPSBkYXRhKGUuY3VycmVudCwgJ2hyZWYnKTsKICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3coZmluZEluZGV4KHRoaXMuaXRlbXMsIGZ1bmN0aW9uIChyZWYpIHsKICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHNvdXJjZSA9IHJlZi5zb3VyY2U7CgogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gc291cmNlID09PSBzcmM7CiAgICAgICAgICAgICAgICAgICAgfSkpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfQoKICAgICAgICBdLAoKICAgICAgICBtZXRob2RzOiB7CgogICAgICAgICAgICBzaG93OiBmdW5jdGlvbihpbmRleCkgewogICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgoKICAgICAgICAgICAgICAgIHRoaXMucGFuZWwgPSB0aGlzLnBhbmVsIHx8IHRoaXMuJGNyZWF0ZSgnbGlnaHRib3hQYW5lbCcsIGFzc2lnbih7fSwgdGhpcy4kcHJvcHMsIHtpdGVtczogdGhpcy5pdGVtc30pKTsKCiAgICAgICAgICAgICAgICBvbih0aGlzLnBhbmVsLiRlbCwgJ2hpZGRlbicsIGZ1bmN0aW9uICgpIHsgcmV0dXJuIHRoaXMkMS5wYW5lbCA9IGZhbHNlOyB9KTsKCiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5wYW5lbC5zaG93KGluZGV4KTsKCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBoaWRlOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5wYW5lbCAmJiB0aGlzLnBhbmVsLmhpZGUoKTsKCiAgICAgICAgICAgIH0KCiAgICAgICAgfQoKICAgIH07CgogICAgZnVuY3Rpb24gaW5zdGFsbCQyKFVJa2l0LCBMaWdodGJveCkgewoKICAgICAgICBpZiAoIVVJa2l0LmxpZ2h0Ym94UGFuZWwpIHsKICAgICAgICAgICAgVUlraXQuY29tcG9uZW50KCdsaWdodGJveFBhbmVsJywgbGlnaHRib3hQYW5lbCk7CiAgICAgICAgfQoKICAgICAgICBhc3NpZ24oCiAgICAgICAgICAgIExpZ2h0Ym94LnByb3BzLAogICAgICAgICAgICBVSWtpdC5jb21wb25lbnQoJ2xpZ2h0Ym94UGFuZWwnKS5vcHRpb25zLnByb3BzCiAgICAgICAgKTsKCiAgICB9CgogICAgZnVuY3Rpb24gdG9JdGVtKGVsKSB7CiAgICAgICAgcmV0dXJuIFsnaHJlZicsICdjYXB0aW9uJywgJ3R5cGUnLCAncG9zdGVyJywgJ2FsdCddLnJlZHVjZShmdW5jdGlvbiAob2JqLCBhdHRyKSB7CiAgICAgICAgICAgIG9ialthdHRyID09PSAnaHJlZicgPyAnc291cmNlJyA6IGF0dHJdID0gZGF0YShlbCwgYXR0cik7CiAgICAgICAgICAgIHJldHVybiBvYmo7CiAgICAgICAgfSwge30pOwogICAgfQoKICAgIHZhciBvYmo7CgogICAgdmFyIGNvbnRhaW5lcnMgPSB7fTsKCiAgICB2YXIgTm90aWZpY2F0aW9uID0gewoKICAgICAgICBmdW5jdGlvbmFsOiB0cnVlLAoKICAgICAgICBhcmdzOiBbJ21lc3NhZ2UnLCAnc3RhdHVzJ10sCgogICAgICAgIGRhdGE6IHsKICAgICAgICAgICAgbWVzc2FnZTogJycsCiAgICAgICAgICAgIHN0YXR1czogJycsCiAgICAgICAgICAgIHRpbWVvdXQ6IDUwMDAsCiAgICAgICAgICAgIGdyb3VwOiBudWxsLAogICAgICAgICAgICBwb3M6ICd0b3AtY2VudGVyJywKICAgICAgICAgICAgY2xzQ2xvc2U6ICd1ay1ub3RpZmljYXRpb24tY2xvc2UnLAogICAgICAgICAgICBjbHNNc2c6ICd1ay1ub3RpZmljYXRpb24tbWVzc2FnZScKICAgICAgICB9LAoKICAgICAgICBpbnN0YWxsOiBpbnN0YWxsJDMsCgogICAgICAgIGNvbXB1dGVkOiB7CgogICAgICAgICAgICBtYXJnaW5Qcm9wOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBwb3MgPSByZWYucG9zOwoKICAgICAgICAgICAgICAgIHJldHVybiAoIm1hcmdpbiIgKyAoc3RhcnRzV2l0aChwb3MsICd0b3AnKSA/ICdUb3AnIDogJ0JvdHRvbScpKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHN0YXJ0UHJvcHM6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgdmFyIG9iajsKCiAgICAgICAgICAgICAgICByZXR1cm4gKCBvYmogPSB7b3BhY2l0eTogMH0sIG9ialt0aGlzLm1hcmdpblByb3BdID0gLXRoaXMuJGVsLm9mZnNldEhlaWdodCwgb2JqICk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgY3JlYXRlZDogZnVuY3Rpb24oKSB7CgogICAgICAgICAgICBpZiAoIWNvbnRhaW5lcnNbdGhpcy5wb3NdKSB7CiAgICAgICAgICAgICAgICBjb250YWluZXJzW3RoaXMucG9zXSA9IGFwcGVuZCh0aGlzLiRjb250YWluZXIsICgiPGRpdiBjbGFzcz1cInVrLW5vdGlmaWNhdGlvbiB1ay1ub3RpZmljYXRpb24tIiArICh0aGlzLnBvcykgKyAiXCI+PC9kaXY+IikpOwogICAgICAgICAgICB9CgogICAgICAgICAgICB2YXIgY29udGFpbmVyID0gY3NzKGNvbnRhaW5lcnNbdGhpcy5wb3NdLCAnZGlzcGxheScsICdibG9jaycpOwoKICAgICAgICAgICAgdGhpcy4kbW91bnQoYXBwZW5kKGNvbnRhaW5lciwKICAgICAgICAgICAgICAgICgiPGRpdiBjbGFzcz1cIiIgKyAodGhpcy5jbHNNc2cpICsgKHRoaXMuc3RhdHVzID8gKCIgIiArICh0aGlzLmNsc01zZykgKyAiLSIgKyAodGhpcy5zdGF0dXMpKSA6ICcnKSArICJcIj4gPGEgaHJlZj1cIiNcIiBjbGFzcz1cIiIgKyAodGhpcy5jbHNDbG9zZSkgKyAiXCIgZGF0YS11ay1jbG9zZT48L2E+IDxkaXY+IiArICh0aGlzLm1lc3NhZ2UpICsgIjwvZGl2PiA8L2Rpdj4iKQogICAgICAgICAgICApKTsKCiAgICAgICAgfSwKCiAgICAgICAgY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CiAgICAgICAgICAgIHZhciBvYmo7CgoKICAgICAgICAgICAgdmFyIG1hcmdpbiA9IHRvRmxvYXQoY3NzKHRoaXMuJGVsLCB0aGlzLm1hcmdpblByb3ApKTsKICAgICAgICAgICAgVHJhbnNpdGlvbi5zdGFydCgKICAgICAgICAgICAgICAgIGNzcyh0aGlzLiRlbCwgdGhpcy5zdGFydFByb3BzKSwKICAgICAgICAgICAgICAgICggb2JqID0ge29wYWNpdHk6IDF9LCBvYmpbdGhpcy5tYXJnaW5Qcm9wXSA9IG1hcmdpbiwgb2JqICkKICAgICAgICAgICAgKS50aGVuKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIGlmICh0aGlzJDEudGltZW91dCkgewogICAgICAgICAgICAgICAgICAgIHRoaXMkMS50aW1lciA9IHNldFRpbWVvdXQodGhpcyQxLmNsb3NlLCB0aGlzJDEudGltZW91dCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICB9LAoKICAgICAgICBldmVudHM6ICggb2JqID0gewoKICAgICAgICAgICAgY2xpY2s6IGZ1bmN0aW9uKGUpIHsKICAgICAgICAgICAgICAgIGlmIChjbG9zZXN0KGUudGFyZ2V0LCAnYVtocmVmPSIjIl0sYVtocmVmPSIiXScpKSB7CiAgICAgICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgdGhpcy5jbG9zZSgpOwogICAgICAgICAgICB9CgogICAgICAgIH0sIG9ialtwb2ludGVyRW50ZXJdID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgaWYgKHRoaXMudGltZXIpIHsKICAgICAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQodGhpcy50aW1lcik7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sIG9ialtwb2ludGVyTGVhdmVdID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgaWYgKHRoaXMudGltZW91dCkgewogICAgICAgICAgICAgICAgICAgIHRoaXMudGltZXIgPSBzZXRUaW1lb3V0KHRoaXMuY2xvc2UsIHRoaXMudGltZW91dCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sIG9iaiApLAoKICAgICAgICBtZXRob2RzOiB7CgogICAgICAgICAgICBjbG9zZTogZnVuY3Rpb24oaW1tZWRpYXRlKSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICAgICAgdmFyIHJlbW92ZUZuID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgICAgICAgICB0cmlnZ2VyKHRoaXMkMS4kZWwsICdjbG9zZScsIFt0aGlzJDFdKTsKICAgICAgICAgICAgICAgICAgICByZW1vdmUodGhpcyQxLiRlbCk7CgogICAgICAgICAgICAgICAgICAgIGlmICghY29udGFpbmVyc1t0aGlzJDEucG9zXS5jaGlsZHJlbi5sZW5ndGgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgY3NzKGNvbnRhaW5lcnNbdGhpcyQxLnBvc10sICdkaXNwbGF5JywgJ25vbmUnKTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgfTsKCiAgICAgICAgICAgICAgICBpZiAodGhpcy50aW1lcikgewogICAgICAgICAgICAgICAgICAgIGNsZWFyVGltZW91dCh0aGlzLnRpbWVyKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBpZiAoaW1tZWRpYXRlKSB7CiAgICAgICAgICAgICAgICAgICAgcmVtb3ZlRm4oKTsKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgVHJhbnNpdGlvbi5zdGFydCh0aGlzLiRlbCwgdGhpcy5zdGFydFByb3BzKS50aGVuKHJlbW92ZUZuKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICB9CgogICAgfTsKCiAgICBmdW5jdGlvbiBpbnN0YWxsJDMoVUlraXQpIHsKICAgICAgICBVSWtpdC5ub3RpZmljYXRpb24uY2xvc2VBbGwgPSBmdW5jdGlvbiAoZ3JvdXAsIGltbWVkaWF0ZSkgewogICAgICAgICAgICBhcHBseShkb2N1bWVudC5ib2R5LCBmdW5jdGlvbiAoZWwpIHsKICAgICAgICAgICAgICAgIHZhciBub3RpZmljYXRpb24gPSBVSWtpdC5nZXRDb21wb25lbnQoZWwsICdub3RpZmljYXRpb24nKTsKICAgICAgICAgICAgICAgIGlmIChub3RpZmljYXRpb24gJiYgKCFncm91cCB8fCBncm91cCA9PT0gbm90aWZpY2F0aW9uLmdyb3VwKSkgewogICAgICAgICAgICAgICAgICAgIG5vdGlmaWNhdGlvbi5jbG9zZShpbW1lZGlhdGUpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICB9OwogICAgfQoKICAgIHZhciBwcm9wcyA9IFsneCcsICd5JywgJ2JneCcsICdiZ3knLCAncm90YXRlJywgJ3NjYWxlJywgJ2NvbG9yJywgJ2JhY2tncm91bmRDb2xvcicsICdib3JkZXJDb2xvcicsICdvcGFjaXR5JywgJ2JsdXInLCAnaHVlJywgJ2dyYXlzY2FsZScsICdpbnZlcnQnLCAnc2F0dXJhdGUnLCAnc2VwaWEnLCAnZm9wYWNpdHknLCAnc3Ryb2tlJ107CgogICAgdmFyIFBhcmFsbGF4ID0gewoKICAgICAgICBtaXhpbnM6IFtNZWRpYV0sCgogICAgICAgIHByb3BzOiBwcm9wcy5yZWR1Y2UoZnVuY3Rpb24gKHByb3BzLCBwcm9wKSB7CiAgICAgICAgICAgIHByb3BzW3Byb3BdID0gJ2xpc3QnOwogICAgICAgICAgICByZXR1cm4gcHJvcHM7CiAgICAgICAgfSwge30pLAoKICAgICAgICBkYXRhOiBwcm9wcy5yZWR1Y2UoZnVuY3Rpb24gKGRhdGEsIHByb3ApIHsKICAgICAgICAgICAgZGF0YVtwcm9wXSA9IHVuZGVmaW5lZDsKICAgICAgICAgICAgcmV0dXJuIGRhdGE7CiAgICAgICAgfSwge30pLAoKICAgICAgICBjb21wdXRlZDogewoKICAgICAgICAgICAgcHJvcHM6IGZ1bmN0aW9uKHByb3BlcnRpZXMsICRlbCkgewogICAgICAgICAgICAgICAgdmFyIHRoaXMkMSA9IHRoaXM7CgoKICAgICAgICAgICAgICAgIHJldHVybiBwcm9wcy5yZWR1Y2UoZnVuY3Rpb24gKHByb3BzLCBwcm9wKSB7CgogICAgICAgICAgICAgICAgICAgIGlmIChpc1VuZGVmaW5lZChwcm9wZXJ0aWVzW3Byb3BdKSkgewogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcHJvcHM7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICB2YXIgaXNDb2xvciA9IHByb3AubWF0Y2goL2NvbG9yL2kpOwogICAgICAgICAgICAgICAgICAgIHZhciBpc0Nzc1Byb3AgPSBpc0NvbG9yIHx8IHByb3AgPT09ICdvcGFjaXR5JzsKCiAgICAgICAgICAgICAgICAgICAgdmFyIHBvcywgYmdQb3MsIGRpZmY7CiAgICAgICAgICAgICAgICAgICAgdmFyIHN0ZXBzID0gcHJvcGVydGllc1twcm9wXS5zbGljZSgwKTsKCiAgICAgICAgICAgICAgICAgICAgaWYgKGlzQ3NzUHJvcCkgewogICAgICAgICAgICAgICAgICAgICAgICBjc3MoJGVsLCBwcm9wLCAnJyk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICBpZiAoc3RlcHMubGVuZ3RoIDwgMikgewogICAgICAgICAgICAgICAgICAgICAgICBzdGVwcy51bnNoaWZ0KChwcm9wID09PSAnc2NhbGUnCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA/IDEKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogaXNDc3NQcm9wCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBjc3MoJGVsLCBwcm9wKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogMCkgfHwgMCk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICB2YXIgdW5pdCA9IGdldFVuaXQoc3RlcHMpOwoKICAgICAgICAgICAgICAgICAgICBpZiAoaXNDb2xvcikgewoKICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHJlZiA9ICRlbC5zdHlsZTsKICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGNvbG9yID0gcmVmLmNvbG9yOwogICAgICAgICAgICAgICAgICAgICAgICBzdGVwcyA9IHN0ZXBzLm1hcChmdW5jdGlvbiAoc3RlcCkgeyByZXR1cm4gcGFyc2VDb2xvcigkZWwsIHN0ZXApOyB9KTsKICAgICAgICAgICAgICAgICAgICAgICAgJGVsLnN0eWxlLmNvbG9yID0gY29sb3I7CgogICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoc3RhcnRzV2l0aChwcm9wLCAnYmcnKSkgewoKICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGF0dHIgPSBwcm9wID09PSAnYmd5JyA/ICdoZWlnaHQnIDogJ3dpZHRoJzsKICAgICAgICAgICAgICAgICAgICAgICAgc3RlcHMgPSBzdGVwcy5tYXAoZnVuY3Rpb24gKHN0ZXApIHsgcmV0dXJuIHRvUHgoc3RlcCwgYXR0ciwgdGhpcyQxLiRlbCk7IH0pOwoKICAgICAgICAgICAgICAgICAgICAgICAgY3NzKCRlbCwgKCJiYWNrZ3JvdW5kLXBvc2l0aW9uLSIgKyAocHJvcFsyXSkpLCAnJyk7CiAgICAgICAgICAgICAgICAgICAgICAgIGJnUG9zID0gY3NzKCRlbCwgJ2JhY2tncm91bmRQb3NpdGlvbicpLnNwbGl0KCcgJylbcHJvcFsyXSA9PT0gJ3gnID8gMCA6IDFdOyAvLyBJRSAxMSBjYW4ndCByZWFkIGJhY2tncm91bmQtcG9zaXRpb24tW3h8eV0KCiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzJDEuY292ZXJzKSB7CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIG1pbiA9IE1hdGgubWluLmFwcGx5KE1hdGgsIHN0ZXBzKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBtYXggPSBNYXRoLm1heC5hcHBseShNYXRoLCBzdGVwcyk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgZG93biA9IHN0ZXBzLmluZGV4T2YobWluKSA8IHN0ZXBzLmluZGV4T2YobWF4KTsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkaWZmID0gbWF4IC0gbWluOwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0ZXBzID0gc3RlcHMubWFwKGZ1bmN0aW9uIChzdGVwKSB7IHJldHVybiBzdGVwIC0gKGRvd24gPyBtaW4gOiBtYXgpOyB9KTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBvcyA9IChkb3duID8gLWRpZmYgOiAwKSArICJweCI7CgogICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBvcyA9IGJnUG9zOwoKICAgICAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewoKICAgICAgICAgICAgICAgICAgICAgICAgc3RlcHMgPSBzdGVwcy5tYXAodG9GbG9hdCk7CgogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgaWYgKHByb3AgPT09ICdzdHJva2UnKSB7CgogICAgICAgICAgICAgICAgICAgICAgICBpZiAoIXN0ZXBzLnNvbWUoZnVuY3Rpb24gKHN0ZXApIHsgcmV0dXJuIHN0ZXA7IH0pKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcHJvcHM7CiAgICAgICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBsZW5ndGggPSBnZXRNYXhQYXRoTGVuZ3RoKHRoaXMkMS4kZWwpOwogICAgICAgICAgICAgICAgICAgICAgICBjc3MoJGVsLCAnc3Ryb2tlRGFzaGFycmF5JywgbGVuZ3RoKTsKCiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh1bml0ID09PSAnJScpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0ZXBzID0gc3RlcHMubWFwKGZ1bmN0aW9uIChzdGVwKSB7IHJldHVybiBzdGVwICogbGVuZ3RoIC8gMTAwOyB9KTsKICAgICAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICAgICAgc3RlcHMgPSBzdGVwcy5yZXZlcnNlKCk7CgogICAgICAgICAgICAgICAgICAgICAgICBwcm9wID0gJ3N0cm9rZURhc2hvZmZzZXQnOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgcHJvcHNbcHJvcF0gPSB7c3RlcHM6IHN0ZXBzLCB1bml0OiB1bml0LCBwb3M6IHBvcywgYmdQb3M6IGJnUG9zLCBkaWZmOiBkaWZmfTsKCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHByb3BzOwoKICAgICAgICAgICAgICAgIH0sIHt9KTsKCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBiZ1Byb3BzOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKICAgICAgICAgICAgICAgIHJldHVybiBbJ2JneCcsICdiZ3knXS5maWx0ZXIoZnVuY3Rpb24gKGJnKSB7IHJldHVybiBiZyBpbiB0aGlzJDEucHJvcHM7IH0pOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgY292ZXJzOiBmdW5jdGlvbihfLCAkZWwpIHsKICAgICAgICAgICAgICAgIHJldHVybiBjb3ZlcnMoJGVsKTsKICAgICAgICAgICAgfQoKICAgICAgICB9LAoKICAgICAgICBkaXNjb25uZWN0ZWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICBkZWxldGUgdGhpcy5faW1hZ2U7CiAgICAgICAgfSwKCiAgICAgICAgdXBkYXRlOiB7CgogICAgICAgICAgICByZWFkOiBmdW5jdGlvbihkYXRhKSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICAgICAgZGF0YS5hY3RpdmUgPSB0aGlzLm1hdGNoTWVkaWE7CgogICAgICAgICAgICAgICAgaWYgKCFkYXRhLmFjdGl2ZSkgewogICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBpZiAoIWRhdGEuaW1hZ2UgJiYgdGhpcy5jb3ZlcnMgJiYgdGhpcy5iZ1Byb3BzLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgIHZhciBzcmMgPSBjc3ModGhpcy4kZWwsICdiYWNrZ3JvdW5kSW1hZ2UnKS5yZXBsYWNlKC9ebm9uZXx1cmxcKFsiJ10/KC4rPylbIiddP1wpJC8sICckMScpOwoKICAgICAgICAgICAgICAgICAgICBpZiAoc3JjKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBpbWcgPSBuZXcgSW1hZ2UoKTsKICAgICAgICAgICAgICAgICAgICAgICAgaW1nLnNyYyA9IHNyYzsKICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5pbWFnZSA9IGltZzsKCiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghaW1nLm5hdHVyYWxXaWR0aCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgaW1nLm9ubG9hZCA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIHRoaXMkMS4kZW1pdCgpOyB9OwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB2YXIgaW1hZ2UgPSBkYXRhLmltYWdlOwoKICAgICAgICAgICAgICAgIGlmICghaW1hZ2UgfHwgIWltYWdlLm5hdHVyYWxXaWR0aCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB2YXIgZGltRWwgPSB7CiAgICAgICAgICAgICAgICAgICAgd2lkdGg6IHRoaXMuJGVsLm9mZnNldFdpZHRoLAogICAgICAgICAgICAgICAgICAgIGhlaWdodDogdGhpcy4kZWwub2Zmc2V0SGVpZ2h0CiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICAgICAgdmFyIGRpbUltYWdlID0gewogICAgICAgICAgICAgICAgICAgIHdpZHRoOiBpbWFnZS5uYXR1cmFsV2lkdGgsCiAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiBpbWFnZS5uYXR1cmFsSGVpZ2h0CiAgICAgICAgICAgICAgICB9OwoKICAgICAgICAgICAgICAgIHZhciBkaW0gPSBEaW1lbnNpb25zLmNvdmVyKGRpbUltYWdlLCBkaW1FbCk7CgogICAgICAgICAgICAgICAgdGhpcy5iZ1Byb3BzLmZvckVhY2goZnVuY3Rpb24gKHByb3ApIHsKCiAgICAgICAgICAgICAgICAgICAgdmFyIHJlZiA9IHRoaXMkMS5wcm9wc1twcm9wXTsKICAgICAgICAgICAgICAgICAgICB2YXIgZGlmZiA9IHJlZi5kaWZmOwogICAgICAgICAgICAgICAgICAgIHZhciBiZ1BvcyA9IHJlZi5iZ1BvczsKICAgICAgICAgICAgICAgICAgICB2YXIgc3RlcHMgPSByZWYuc3RlcHM7CiAgICAgICAgICAgICAgICAgICAgdmFyIGF0dHIgPSBwcm9wID09PSAnYmd5JyA/ICdoZWlnaHQnIDogJ3dpZHRoJzsKICAgICAgICAgICAgICAgICAgICB2YXIgc3BhbiA9IGRpbVthdHRyXSAtIGRpbUVsW2F0dHJdOwoKICAgICAgICAgICAgICAgICAgICBpZiAoc3BhbiA8IGRpZmYpIHsKICAgICAgICAgICAgICAgICAgICAgICAgZGltRWxbYXR0cl0gPSBkaW1bYXR0cl0gKyBkaWZmIC0gc3BhbjsKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHNwYW4gPiBkaWZmKSB7CgogICAgICAgICAgICAgICAgICAgICAgICB2YXIgcG9zUGVyY2VudGFnZSA9IGRpbUVsW2F0dHJdIC8gdG9QeChiZ1BvcywgYXR0ciwgdGhpcyQxLiRlbCk7CgogICAgICAgICAgICAgICAgICAgICAgICBpZiAocG9zUGVyY2VudGFnZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcyQxLnByb3BzW3Byb3BdLnN0ZXBzID0gc3RlcHMubWFwKGZ1bmN0aW9uIChzdGVwKSB7IHJldHVybiBzdGVwIC0gKHNwYW4gLSBkaWZmKSAvIHBvc1BlcmNlbnRhZ2U7IH0pOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICBkaW0gPSBEaW1lbnNpb25zLmNvdmVyKGRpbUltYWdlLCBkaW1FbCk7CiAgICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgICAgICBkYXRhLmRpbSA9IGRpbTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHdyaXRlOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBkaW0gPSByZWYuZGltOwogICAgICAgICAgICAgICAgdmFyIGFjdGl2ZSA9IHJlZi5hY3RpdmU7CgoKICAgICAgICAgICAgICAgIGlmICghYWN0aXZlKSB7CiAgICAgICAgICAgICAgICAgICAgY3NzKHRoaXMuJGVsLCB7YmFja2dyb3VuZFNpemU6ICcnLCBiYWNrZ3JvdW5kUmVwZWF0OiAnJ30pOwogICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBkaW0gJiYgY3NzKHRoaXMuJGVsLCB7CiAgICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZFNpemU6ICgoZGltLndpZHRoKSArICJweCAiICsgKGRpbS5oZWlnaHQpICsgInB4IiksCiAgICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZFJlcGVhdDogJ25vLXJlcGVhdCcKICAgICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGV2ZW50czogWydyZXNpemUnXQoKICAgICAgICB9LAoKICAgICAgICBtZXRob2RzOiB7CgogICAgICAgICAgICByZXNldDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCiAgICAgICAgICAgICAgICBlYWNoKHRoaXMuZ2V0Q3NzKDApLCBmdW5jdGlvbiAoXywgcHJvcCkgeyByZXR1cm4gY3NzKHRoaXMkMS4kZWwsIHByb3AsICcnKTsgfSk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBnZXRDc3M6IGZ1bmN0aW9uKHBlcmNlbnQpIHsKCiAgICAgICAgICAgICAgICB2YXIgcmVmID0gdGhpczsKICAgICAgICAgICAgICAgIHZhciBwcm9wcyA9IHJlZi5wcm9wczsKICAgICAgICAgICAgICAgIHJldHVybiBPYmplY3Qua2V5cyhwcm9wcykucmVkdWNlKGZ1bmN0aW9uIChjc3MsIHByb3ApIHsKCiAgICAgICAgICAgICAgICAgICAgdmFyIHJlZiA9IHByb3BzW3Byb3BdOwogICAgICAgICAgICAgICAgICAgIHZhciBzdGVwcyA9IHJlZi5zdGVwczsKICAgICAgICAgICAgICAgICAgICB2YXIgdW5pdCA9IHJlZi51bml0OwogICAgICAgICAgICAgICAgICAgIHZhciBwb3MgPSByZWYucG9zOwogICAgICAgICAgICAgICAgICAgIHZhciB2YWx1ZSA9IGdldFZhbHVlKHN0ZXBzLCBwZXJjZW50KTsKCiAgICAgICAgICAgICAgICAgICAgc3dpdGNoIChwcm9wKSB7CgogICAgICAgICAgICAgICAgICAgICAgICAvLyB0cmFuc2Zvcm1zCiAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgJ3gnOgogICAgICAgICAgICAgICAgICAgICAgICBjYXNlICd5JzogewogICAgICAgICAgICAgICAgICAgICAgICAgICAgdW5pdCA9IHVuaXQgfHwgJ3B4JzsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNzcy50cmFuc2Zvcm0gKz0gIiB0cmFuc2xhdGUiICsgKHVjZmlyc3QocHJvcCkpICsgIigiICsgKHRvRmxvYXQodmFsdWUpLnRvRml4ZWQodW5pdCA9PT0gJ3B4JyA/IDAgOiAyKSkgKyB1bml0ICsgIikiOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAncm90YXRlJzoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVuaXQgPSB1bml0IHx8ICdkZWcnOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgY3NzLnRyYW5zZm9ybSArPSAiIHJvdGF0ZSgiICsgKHZhbHVlICsgdW5pdCkgKyAiKSI7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAnc2NhbGUnOgogICAgICAgICAgICAgICAgICAgICAgICAgICAgY3NzLnRyYW5zZm9ybSArPSAiIHNjYWxlKCIgKyB2YWx1ZSArICIpIjsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwoKICAgICAgICAgICAgICAgICAgICAgICAgLy8gYmcgaW1hZ2UKICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAnYmd5JzoKICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAnYmd4JzoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNzc1soImJhY2tncm91bmQtcG9zaXRpb24tIiArIChwcm9wWzJdKSldID0gImNhbGMoIiArIHBvcyArICIgKyAiICsgdmFsdWUgKyAicHgpIjsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwoKICAgICAgICAgICAgICAgICAgICAgICAgLy8gY29sb3IKICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAnY29sb3InOgogICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdiYWNrZ3JvdW5kQ29sb3InOgogICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdib3JkZXJDb2xvcic6IHsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgcmVmJDEgPSBnZXRTdGVwKHN0ZXBzLCBwZXJjZW50KTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBzdGFydCA9IHJlZiQxWzBdOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGVuZCA9IHJlZiQxWzFdOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHAgPSByZWYkMVsyXTsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjc3NbcHJvcF0gPSAicmdiYSgiICsgKHN0YXJ0Lm1hcChmdW5jdGlvbiAodmFsdWUsIGkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWUgPSB2YWx1ZSArIHAgKiAoZW5kW2ldIC0gdmFsdWUpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gaSA9PT0gMyA/IHRvRmxvYXQodmFsdWUpIDogcGFyc2VJbnQodmFsdWUsIDEwKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KS5qb2luKCcsJykpICsgIikiOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgICAgLy8gQ1NTIEZpbHRlcgogICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdibHVyJzoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVuaXQgPSB1bml0IHx8ICdweCc7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjc3MuZmlsdGVyICs9ICIgYmx1cigiICsgKHZhbHVlICsgdW5pdCkgKyAiKSI7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAnaHVlJzoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVuaXQgPSB1bml0IHx8ICdkZWcnOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgY3NzLmZpbHRlciArPSAiIGh1ZS1yb3RhdGUoIiArICh2YWx1ZSArIHVuaXQpICsgIikiOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgJ2ZvcGFjaXR5JzoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVuaXQgPSB1bml0IHx8ICclJzsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNzcy5maWx0ZXIgKz0gIiBvcGFjaXR5KCIgKyAodmFsdWUgKyB1bml0KSArICIpIjsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdncmF5c2NhbGUnOgogICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdpbnZlcnQnOgogICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdzYXR1cmF0ZSc6CiAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgJ3NlcGlhJzoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVuaXQgPSB1bml0IHx8ICclJzsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNzcy5maWx0ZXIgKz0gIiAiICsgcHJvcCArICIoIiArICh2YWx1ZSArIHVuaXQpICsgIikiOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjc3NbcHJvcF0gPSB2YWx1ZTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIHJldHVybiBjc3M7CgogICAgICAgICAgICAgICAgfSwge3RyYW5zZm9ybTogJycsIGZpbHRlcjogJyd9KTsKCiAgICAgICAgICAgIH0KCiAgICAgICAgfQoKICAgIH07CgogICAgZnVuY3Rpb24gcGFyc2VDb2xvcihlbCwgY29sb3IpIHsKICAgICAgICByZXR1cm4gY3NzKGNzcyhlbCwgJ2NvbG9yJywgY29sb3IpLCAnY29sb3InKQogICAgICAgICAgICAuc3BsaXQoL1soKSxdL2cpCiAgICAgICAgICAgIC5zbGljZSgxLCAtMSkKICAgICAgICAgICAgLmNvbmNhdCgxKQogICAgICAgICAgICAuc2xpY2UoMCwgNCkKICAgICAgICAgICAgLm1hcCh0b0Zsb2F0KTsKICAgIH0KCiAgICBmdW5jdGlvbiBnZXRTdGVwKHN0ZXBzLCBwZXJjZW50KSB7CiAgICAgICAgdmFyIGNvdW50ID0gc3RlcHMubGVuZ3RoIC0gMTsKICAgICAgICB2YXIgaW5kZXggPSBNYXRoLm1pbihNYXRoLmZsb29yKGNvdW50ICogcGVyY2VudCksIGNvdW50IC0gMSk7CiAgICAgICAgdmFyIHN0ZXAgPSBzdGVwcy5zbGljZShpbmRleCwgaW5kZXggKyAyKTsKCiAgICAgICAgc3RlcC5wdXNoKHBlcmNlbnQgPT09IDEgPyAxIDogcGVyY2VudCAlICgxIC8gY291bnQpICogY291bnQpOwoKICAgICAgICByZXR1cm4gc3RlcDsKICAgIH0KCiAgICBmdW5jdGlvbiBnZXRWYWx1ZShzdGVwcywgcGVyY2VudCwgZGlnaXRzKSB7CiAgICAgICAgaWYgKCBkaWdpdHMgPT09IHZvaWQgMCApIGRpZ2l0cyA9IDI7CgogICAgICAgIHZhciByZWYgPSBnZXRTdGVwKHN0ZXBzLCBwZXJjZW50KTsKICAgICAgICB2YXIgc3RhcnQgPSByZWZbMF07CiAgICAgICAgdmFyIGVuZCA9IHJlZlsxXTsKICAgICAgICB2YXIgcCA9IHJlZlsyXTsKICAgICAgICByZXR1cm4gKGlzTnVtYmVyKHN0YXJ0KQogICAgICAgICAgICA/IHN0YXJ0ICsgTWF0aC5hYnMoc3RhcnQgLSBlbmQpICogcCAqIChzdGFydCA8IGVuZCA/IDEgOiAtMSkKICAgICAgICAgICAgOiArZW5kCiAgICAgICAgKS50b0ZpeGVkKGRpZ2l0cyk7CiAgICB9CgogICAgZnVuY3Rpb24gZ2V0VW5pdChzdGVwcykgewogICAgICAgIHJldHVybiBzdGVwcy5yZWR1Y2UoZnVuY3Rpb24gKHVuaXQsIHN0ZXApIHsgcmV0dXJuIGlzU3RyaW5nKHN0ZXApICYmIHN0ZXAucmVwbGFjZSgvLXxcZC9nLCAnJykudHJpbSgpIHx8IHVuaXQ7IH0sICcnKTsKICAgIH0KCiAgICBmdW5jdGlvbiBjb3ZlcnMoZWwpIHsKICAgICAgICB2YXIgcmVmID0gZWwuc3R5bGU7CiAgICAgICAgdmFyIGJhY2tncm91bmRTaXplID0gcmVmLmJhY2tncm91bmRTaXplOwogICAgICAgIHZhciBjb3ZlcnMgPSBjc3MoY3NzKGVsLCAnYmFja2dyb3VuZFNpemUnLCAnJyksICdiYWNrZ3JvdW5kU2l6ZScpID09PSAnY292ZXInOwogICAgICAgIGVsLnN0eWxlLmJhY2tncm91bmRTaXplID0gYmFja2dyb3VuZFNpemU7CiAgICAgICAgcmV0dXJuIGNvdmVyczsKICAgIH0KCiAgICB2YXIgUGFyYWxsYXgkMSA9IHsKCiAgICAgICAgbWl4aW5zOiBbUGFyYWxsYXhdLAoKICAgICAgICBwcm9wczogewogICAgICAgICAgICB0YXJnZXQ6IFN0cmluZywKICAgICAgICAgICAgdmlld3BvcnQ6IE51bWJlciwKICAgICAgICAgICAgZWFzaW5nOiBOdW1iZXIKICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIHRhcmdldDogZmFsc2UsCiAgICAgICAgICAgIHZpZXdwb3J0OiAxLAogICAgICAgICAgICBlYXNpbmc6IDEKICAgICAgICB9LAoKICAgICAgICBjb21wdXRlZDogewoKICAgICAgICAgICAgdGFyZ2V0OiBmdW5jdGlvbihyZWYsICRlbCkgewogICAgICAgICAgICAgICAgdmFyIHRhcmdldCA9IHJlZi50YXJnZXQ7CgogICAgICAgICAgICAgICAgcmV0dXJuIGdldE9mZnNldEVsZW1lbnQodGFyZ2V0ICYmIHF1ZXJ5KHRhcmdldCwgJGVsKSB8fCAkZWwpOwogICAgICAgICAgICB9CgogICAgICAgIH0sCgogICAgICAgIHVwZGF0ZTogewoKICAgICAgICAgICAgcmVhZDogZnVuY3Rpb24ocmVmLCB0eXBlKSB7CiAgICAgICAgICAgICAgICB2YXIgcGVyY2VudCA9IHJlZi5wZXJjZW50OwogICAgICAgICAgICAgICAgdmFyIGFjdGl2ZSA9IHJlZi5hY3RpdmU7CgoKICAgICAgICAgICAgICAgIGlmICh0eXBlICE9PSAnc2Nyb2xsJykgewogICAgICAgICAgICAgICAgICAgIHBlcmNlbnQgPSBmYWxzZTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBpZiAoIWFjdGl2ZSkgewogICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB2YXIgcHJldiA9IHBlcmNlbnQ7CiAgICAgICAgICAgICAgICBwZXJjZW50ID0gZWFzZSQxKHNjcm9sbGVkT3Zlcih0aGlzLnRhcmdldCkgLyAodGhpcy52aWV3cG9ydCB8fCAxKSwgdGhpcy5lYXNpbmcpOwoKICAgICAgICAgICAgICAgIHJldHVybiB7CiAgICAgICAgICAgICAgICAgICAgcGVyY2VudDogcGVyY2VudCwKICAgICAgICAgICAgICAgICAgICBzdHlsZTogcHJldiAhPT0gcGVyY2VudCA/IHRoaXMuZ2V0Q3NzKHBlcmNlbnQpIDogZmFsc2UKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB3cml0ZTogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgc3R5bGUgPSByZWYuc3R5bGU7CiAgICAgICAgICAgICAgICB2YXIgYWN0aXZlID0gcmVmLmFjdGl2ZTsKCgogICAgICAgICAgICAgICAgaWYgKCFhY3RpdmUpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLnJlc2V0KCk7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHN0eWxlICYmIGNzcyh0aGlzLiRlbCwgc3R5bGUpOwoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGV2ZW50czogWydzY3JvbGwnLCAncmVzaXplJ10KICAgICAgICB9CgogICAgfTsKCiAgICBmdW5jdGlvbiBlYXNlJDEocGVyY2VudCwgZWFzaW5nKSB7CiAgICAgICAgcmV0dXJuIGNsYW1wKHBlcmNlbnQgKiAoMSAtIChlYXNpbmcgLSBlYXNpbmcgKiBwZXJjZW50KSkpOwogICAgfQoKICAgIC8vIFNWRyBlbGVtZW50cyBkbyBub3QgaW5oZXJpdCBmcm9tIEhUTUxFbGVtZW50CiAgICBmdW5jdGlvbiBnZXRPZmZzZXRFbGVtZW50KGVsKSB7CiAgICAgICAgcmV0dXJuIGVsCiAgICAgICAgICAgID8gJ29mZnNldFRvcCcgaW4gZWwKICAgICAgICAgICAgICAgID8gZWwKICAgICAgICAgICAgICAgIDogZ2V0T2Zmc2V0RWxlbWVudChlbC5wYXJlbnROb2RlKQogICAgICAgICAgICA6IGRvY3VtZW50LmJvZHk7CiAgICB9CgogICAgdmFyIFNsaWRlclJlYWN0aXZlID0gewoKICAgICAgICB1cGRhdGU6IHsKCiAgICAgICAgICAgIHdyaXRlOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgICAgICBpZiAodGhpcy5zdGFjay5sZW5ndGggfHwgdGhpcy5kcmFnZ2luZykgewogICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB2YXIgaW5kZXggPSB0aGlzLmdldFZhbGlkSW5kZXgodGhpcy5pbmRleCk7CgogICAgICAgICAgICAgICAgaWYgKCF+dGhpcy5wcmV2SW5kZXggfHwgdGhpcy5pbmRleCAhPT0gaW5kZXgpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3coaW5kZXgpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGV2ZW50czogWydyZXNpemUnXQoKICAgICAgICB9CgogICAgfTsKCiAgICBmdW5jdGlvbiBUcmFuc2l0aW9uZXIkMSAocHJldiwgbmV4dCwgZGlyLCByZWYpIHsKICAgICAgICB2YXIgY2VudGVyID0gcmVmLmNlbnRlcjsKICAgICAgICB2YXIgZWFzaW5nID0gcmVmLmVhc2luZzsKICAgICAgICB2YXIgbGlzdCA9IHJlZi5saXN0OwoKCiAgICAgICAgdmFyIGRlZmVycmVkID0gbmV3IERlZmVycmVkKCk7CgogICAgICAgIHZhciBmcm9tID0gcHJldgogICAgICAgICAgICA/IGdldExlZnQocHJldiwgbGlzdCwgY2VudGVyKQogICAgICAgICAgICA6IGdldExlZnQobmV4dCwgbGlzdCwgY2VudGVyKSArIGJvdW5kcyhuZXh0KS53aWR0aCAqIGRpcjsKICAgICAgICB2YXIgdG8gPSBuZXh0CiAgICAgICAgICAgID8gZ2V0TGVmdChuZXh0LCBsaXN0LCBjZW50ZXIpCiAgICAgICAgICAgIDogZnJvbSArIGJvdW5kcyhwcmV2KS53aWR0aCAqIGRpciAqIChpc1J0bCA/IC0xIDogMSk7CgogICAgICAgIHJldHVybiB7CgogICAgICAgICAgICBkaXI6IGRpciwKCiAgICAgICAgICAgIHNob3c6IGZ1bmN0aW9uKGR1cmF0aW9uLCBwZXJjZW50LCBsaW5lYXIpIHsKICAgICAgICAgICAgICAgIGlmICggcGVyY2VudCA9PT0gdm9pZCAwICkgcGVyY2VudCA9IDA7CgoKICAgICAgICAgICAgICAgIHZhciB0aW1pbmcgPSBsaW5lYXIgPyAnbGluZWFyJyA6IGVhc2luZzsKICAgICAgICAgICAgICAgIGR1cmF0aW9uIC09IE1hdGgucm91bmQoZHVyYXRpb24gKiBjbGFtcChwZXJjZW50LCAtMSwgMSkpOwoKICAgICAgICAgICAgICAgIHRoaXMudHJhbnNsYXRlKHBlcmNlbnQpOwoKICAgICAgICAgICAgICAgIHByZXYgJiYgdGhpcy51cGRhdGVUcmFuc2xhdGVzKCk7CiAgICAgICAgICAgICAgICBwZXJjZW50ID0gcHJldiA/IHBlcmNlbnQgOiBjbGFtcChwZXJjZW50LCAwLCAxKTsKICAgICAgICAgICAgICAgIHRyaWdnZXJVcGRhdGUkMSh0aGlzLmdldEl0ZW1JbigpLCAnaXRlbWluJywge3BlcmNlbnQ6IHBlcmNlbnQsIGR1cmF0aW9uOiBkdXJhdGlvbiwgdGltaW5nOiB0aW1pbmcsIGRpcjogZGlyfSk7CiAgICAgICAgICAgICAgICBwcmV2ICYmIHRyaWdnZXJVcGRhdGUkMSh0aGlzLmdldEl0ZW1Jbih0cnVlKSwgJ2l0ZW1vdXQnLCB7cGVyY2VudDogMSAtIHBlcmNlbnQsIGR1cmF0aW9uOiBkdXJhdGlvbiwgdGltaW5nOiB0aW1pbmcsIGRpcjogZGlyfSk7CgogICAgICAgICAgICAgICAgVHJhbnNpdGlvbgogICAgICAgICAgICAgICAgICAgIC5zdGFydChsaXN0LCB7dHJhbnNmb3JtOiB0cmFuc2xhdGUoLXRvICogKGlzUnRsID8gLTEgOiAxKSwgJ3B4Jyl9LCBkdXJhdGlvbiwgdGltaW5nKQogICAgICAgICAgICAgICAgICAgIC50aGVuKGRlZmVycmVkLnJlc29sdmUsIG5vb3ApOwoKICAgICAgICAgICAgICAgIHJldHVybiBkZWZlcnJlZC5wcm9taXNlOwoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHN0b3A6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIFRyYW5zaXRpb24uc3RvcChsaXN0KTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGNhbmNlbDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICBUcmFuc2l0aW9uLmNhbmNlbChsaXN0KTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHJlc2V0OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIGNzcyhsaXN0LCAndHJhbnNmb3JtJywgJycpOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgZm9yd2FyZDogZnVuY3Rpb24oZHVyYXRpb24sIHBlcmNlbnQpIHsKICAgICAgICAgICAgICAgIGlmICggcGVyY2VudCA9PT0gdm9pZCAwICkgcGVyY2VudCA9IHRoaXMucGVyY2VudCgpOwoKICAgICAgICAgICAgICAgIFRyYW5zaXRpb24uY2FuY2VsKGxpc3QpOwogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuc2hvdyhkdXJhdGlvbiwgcGVyY2VudCwgdHJ1ZSk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB0cmFuc2xhdGU6IGZ1bmN0aW9uKHBlcmNlbnQpIHsKCiAgICAgICAgICAgICAgICB2YXIgZGlzdGFuY2UgPSB0aGlzLmdldERpc3RhbmNlKCkgKiBkaXIgKiAoaXNSdGwgPyAtMSA6IDEpOwoKICAgICAgICAgICAgICAgIGNzcyhsaXN0LCAndHJhbnNmb3JtJywgdHJhbnNsYXRlKGNsYW1wKAogICAgICAgICAgICAgICAgICAgIC10byArIChkaXN0YW5jZSAtIGRpc3RhbmNlICogcGVyY2VudCksCiAgICAgICAgICAgICAgICAgICAgLWdldFdpZHRoKGxpc3QpLAogICAgICAgICAgICAgICAgICAgIGJvdW5kcyhsaXN0KS53aWR0aAogICAgICAgICAgICAgICAgKSAqIChpc1J0bCA/IC0xIDogMSksICdweCcpKTsKCiAgICAgICAgICAgICAgICB0aGlzLnVwZGF0ZVRyYW5zbGF0ZXMoKTsKCiAgICAgICAgICAgICAgICBpZiAocHJldikgewogICAgICAgICAgICAgICAgICAgIHBlcmNlbnQgPSBjbGFtcChwZXJjZW50LCAtMSwgMSk7CiAgICAgICAgICAgICAgICAgICAgdHJpZ2dlclVwZGF0ZSQxKHRoaXMuZ2V0SXRlbUluKCksICdpdGVtdHJhbnNsYXRlaW4nLCB7cGVyY2VudDogcGVyY2VudCwgZGlyOiBkaXJ9KTsKICAgICAgICAgICAgICAgICAgICB0cmlnZ2VyVXBkYXRlJDEodGhpcy5nZXRJdGVtSW4odHJ1ZSksICdpdGVtdHJhbnNsYXRlb3V0Jywge3BlcmNlbnQ6IDEgLSBwZXJjZW50LCBkaXI6IGRpcn0pOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHBlcmNlbnQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIE1hdGguYWJzKChjc3MobGlzdCwgJ3RyYW5zZm9ybScpLnNwbGl0KCcsJylbNF0gKiAoaXNSdGwgPyAtMSA6IDEpICsgZnJvbSkgLyAodG8gLSBmcm9tKSk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBnZXREaXN0YW5jZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gTWF0aC5hYnModG8gLSBmcm9tKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGdldEl0ZW1JbjogZnVuY3Rpb24ob3V0KSB7CiAgICAgICAgICAgICAgICBpZiAoIG91dCA9PT0gdm9pZCAwICkgb3V0ID0gZmFsc2U7CgoKICAgICAgICAgICAgICAgIHZhciBhY3RpdmVzID0gdGhpcy5nZXRBY3RpdmVzKCk7CiAgICAgICAgICAgICAgICB2YXIgYWxsID0gc29ydEJ5KHNsaWRlcyhsaXN0KSwgJ29mZnNldExlZnQnKTsKICAgICAgICAgICAgICAgIHZhciBpID0gaW5kZXgoYWxsLCBhY3RpdmVzW2RpciAqIChvdXQgPyAtMSA6IDEpID4gMCA/IGFjdGl2ZXMubGVuZ3RoIC0gMSA6IDBdKTsKCiAgICAgICAgICAgICAgICByZXR1cm4gfmkgJiYgYWxsW2kgKyAocHJldiAmJiAhb3V0ID8gZGlyIDogMCldOwoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGdldEFjdGl2ZXM6IGZ1bmN0aW9uKCkgewoKICAgICAgICAgICAgICAgIHZhciBsZWZ0ID0gZ2V0TGVmdChwcmV2IHx8IG5leHQsIGxpc3QsIGNlbnRlcik7CgogICAgICAgICAgICAgICAgcmV0dXJuIHNvcnRCeShzbGlkZXMobGlzdCkuZmlsdGVyKGZ1bmN0aW9uIChzbGlkZSkgewogICAgICAgICAgICAgICAgICAgIHZhciBzbGlkZUxlZnQgPSBnZXRFbExlZnQoc2xpZGUsIGxpc3QpOwogICAgICAgICAgICAgICAgICAgIHJldHVybiBzbGlkZUxlZnQgPj0gbGVmdCAmJiBzbGlkZUxlZnQgKyBib3VuZHMoc2xpZGUpLndpZHRoIDw9IGJvdW5kcyhsaXN0KS53aWR0aCArIGxlZnQ7CiAgICAgICAgICAgICAgICB9KSwgJ29mZnNldExlZnQnKTsKCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB1cGRhdGVUcmFuc2xhdGVzOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgICAgICB2YXIgYWN0aXZlcyA9IHRoaXMuZ2V0QWN0aXZlcygpOwoKICAgICAgICAgICAgICAgIHNsaWRlcyhsaXN0KS5mb3JFYWNoKGZ1bmN0aW9uIChzbGlkZSkgewogICAgICAgICAgICAgICAgICAgIHZhciBpc0FjdGl2ZSA9IGluY2x1ZGVzKGFjdGl2ZXMsIHNsaWRlKTsKCiAgICAgICAgICAgICAgICAgICAgdHJpZ2dlclVwZGF0ZSQxKHNsaWRlLCAoIml0ZW10cmFuc2xhdGUiICsgKGlzQWN0aXZlID8gJ2luJyA6ICdvdXQnKSksIHsKICAgICAgICAgICAgICAgICAgICAgICAgcGVyY2VudDogaXNBY3RpdmUgPyAxIDogMCwKICAgICAgICAgICAgICAgICAgICAgICAgZGlyOiBzbGlkZS5vZmZzZXRMZWZ0IDw9IG5leHQub2Zmc2V0TGVmdCA/IDEgOiAtMQogICAgICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfTsKCiAgICB9CgogICAgZnVuY3Rpb24gZ2V0TGVmd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sKICAgICAgICByZXR1cm4gZWwuZ2V0Qm91bmRpbmdDbGllbnRSZWN0KCk7CiAgICB9CgogICAgZnVuY3Rpb24gdHJpZ2dlclVwZGF0ZSQxKGVsLCB0eXBlLCBkYXRhKSB7CiAgICAgICAgdHJpZ2dlcihlbCwgY3JlYXRlRXZlbnQodHlwZSwgZmFsc2UsIGZhbHNlLCBkYXRhKSk7CiAgICB9CgogICAgZnVuY3Rpb24gc2xpZGVzKGxpc3QpIHsKICAgICAgICByZXR1cm4gdG9Ob2RlcyhsaXN0LmNoaWxkcmVuKTsKICAgIH0KCiAgICB2YXIgU2xpZGVyJDEgPSB7CgogICAgICAgIG1peGluczogW0NsYXNzLCBTbGlkZXIsIFNsaWRlclJlYWN0aXZlXSwKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgY2VudGVyOiBCb29sZWFuLAogICAgICAgICAgICBzZXRzOiBCb29sZWFuCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICBjZW50ZXI6IGZhbHNlLAogICAgICAgICAgICBzZXRzOiBmYWxzZSwKICAgICAgICAgICAgYXR0ckl0ZW06ICd1ay1zbGlkZXItaXRlbScsCiAgICAgICAgICAgIHNlbExpc3Q6ICcudWstc2xpZGVyLWl0ZW1zJywKICAgICAgICAgICAgc2VsTmF2OiAnLnVrLXNsaWRlci1uYXYnLAogICAgICAgICAgICBjbHNDb250YWluZXI6ICd1ay1zbGlkZXItY29udGFpbmVyJywKICAgICAgICAgICAgVHJhbnNpdGlvbmVyOiBUcmFuc2l0aW9uZXIkMQogICAgICAgIH0sCgogICAgICAgIGNvbXB1dGVkOiB7CgogICAgICAgICAgICBhdmdXaWR0aDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZ2V0V2lkdGgodGhpcy5saXN0KSAvIHRoaXMubGVuZ3RoOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgZmluaXRlOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgIHZhciBmaW5pdGUgPSByZWYuZmluaXRlOwoKICAgICAgICAgICAgICAgIHJldHVybiBmaW5pdGUgfHwgZ2V0V2lkdGgodGhpcy5saXN0KSA8IGJvdW5kcyh0aGlzLmxpc3QpLndpZHRoICsgZ2V0TWF4V2lkdGgodGhpcy5saXN0KSArIHRoaXMuY2VudGVyOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgbWF4SW5kZXg6IGZ1bmN0aW9uKCkgewoKICAgICAgICAgICAgICAgIGlmICghdGhpcy5maW5pdGUgfHwgdGhpcy5jZW50ZXIgJiYgIXRoaXMuc2V0cykgewogICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmxlbmd0aCAtIDE7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgaWYgKHRoaXMuY2VudGVyKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGxhc3QodGhpcy5zZXRzKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBjc3ModGhpcy5zbGlkZXMsICdvcmRlcicsICcnKTsKCiAgICAgICAgICAgICAgICB2YXIgbWF4ID0gZ2V0TWF4KHRoaXMubGlzdCk7CiAgICAgICAgICAgICAgICB2YXIgaSA9IHRoaXMubGVuZ3RoOwoKICAgICAgICAgICAgICAgIHdoaWxlIChpLS0pIHsKICAgICAgICAgICAgICAgICAgICBpZiAoZ2V0RWxMZWZ0KHRoaXMubGlzdC5jaGlsZHJlbltpXSwgdGhpcy5saXN0KSA8IG1heCkgewogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gTWF0aC5taW4oaSArIDEsIHRoaXMubGVuZ3RoIC0gMSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgc2V0czogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKICAgICAgICAgICAgICAgIHZhciBzZXRzID0gcmVmLnNldHM7CgoKICAgICAgICAgICAgICAgIHZhciB3aWR0aCA9IGJvdW5kcyh0aGlzLmxpc3QpLndpZHRoIC8gKHRoaXMuY2VudGVyID8gMiA6IDEpOwoKICAgICAgICAgICAgICAgIHZhciBsZWZ0ID0gMDsKICAgICAgICAgICAgICAgIHZhciBsZWZ0Q2VudGVyID0gd2lkdGg7CiAgICAgICAgICAgICAgICB2YXIgc2xpZGVMZWZ0ID0gMDsKCiAgICAgICAgICAgICAgICBzZXRzID0gc2V0cyAmJiB0aGlzLnNsaWRlcy5yZWR1Y2UoZnVuY3Rpb24gKHNldHMsIHNsaWRlLCBpKSB7CgogICAgICAgICAgICAgICAgICAgIHZhciByZWYgPSBib3VuZHMoc2xpZGUpOwogICAgICAgICAgICAgICAgICAgIHZhciBzbGlkZVdpZHRoID0gcmVmLndpZHRoOwogICAgICAgICAgICAgICAgICAgIHZhciBzbGlkZVJpZ2h0ID0gc2xpZGVMZWZ0ICsgc2xpZGVXaWR0aDsKCiAgICAgICAgICAgICAgICAgICAgaWYgKHNsaWRlUmlnaHQgPiBsZWZ0KSB7CgogICAgICAgICAgICAgICAgICAgICAgICBpZiAoIXRoaXMkMS5jZW50ZXIgJiYgaSA+IHRoaXMkMS5tYXhJbmRleCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgaSA9IHRoaXMkMS5tYXhJbmRleDsKICAgICAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFpbmNsdWRlcyhzZXRzLCBpKSkgewoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBjbXAgPSB0aGlzJDEuc2xpZGVzW2kgKyAxXTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzJDEuY2VudGVyICYmIGNtcCAmJiBzbGlkZVdpZHRoIDwgbGVmdENlbnRlciAtIGJvdW5kcyhjbXApLndpZHRoIC8gMikgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxlZnRDZW50ZXIgLT0gc2xpZGVXaWR0aDsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGVmdENlbnRlciA9IHdpZHRoOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNldHMucHVzaChpKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZWZ0ID0gc2xpZGVMZWZ0ICsgd2lkdGggKyAodGhpcyQxLmNlbnRlciA/IHNsaWRlV2lkdGggLyAyIDogMCk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICBzbGlkZUxlZnQgKz0gc2xpZGVXaWR0aDsKCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHNldHM7CgogICAgICAgICAgICAgICAgfSwgW10pOwoKICAgICAgICAgICAgICAgIHJldHVybiAhaXNFbXB0eShzZXRzKSAmJiBzZXRzOwoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHRyYW5zaXRpb25PcHRpb25zOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHJldHVybiB7CiAgICAgICAgICAgICAgICAgICAgY2VudGVyOiB0aGlzLmNlbnRlciwKICAgICAgICAgICAgICAgICAgICBsaXN0OiB0aGlzLmxpc3QKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgY29ubmVjdGVkOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdG9nZ2xlQ2xhc3ModGhpcy4kZWwsIHRoaXMuY2xzQ29udGFpbmVyLCAhJCgoIi4iICsgKHRoaXMuY2xzQ29udGFpbmVyKSksIHRoaXMuJGVsKSk7CiAgICAgICAgfSwKCiAgICAgICAgdXBkYXRlOiB7CgogICAgICAgICAgICB3cml0ZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICAgICAgJCQoKCJbIiArICh0aGlzLmF0dHJJdGVtKSArICJdLFtkYXRhLSIgKyAodGhpcy5hdHRySXRlbSkgKyAiXSIpLCB0aGlzLiRlbCkuZm9yRWFjaChmdW5jdGlvbiAoZWwpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgaW5kZXggPSBkYXRhKGVsLCB0aGlzJDEuYXR0ckl0ZW0pOwogICAgICAgICAgICAgICAgICAgIHRoaXMkMS5tYXhJbmRleCAmJiB0b2dnbGVDbGFzcyhlbCwgJ3VrLWhpZGRlbicsIGlzTnVtZXJpYyhpbmRleCkgJiYgKHRoaXMkMS5zZXRzICYmICFpbmNsdWRlcyh0aGlzJDEuc2V0cywgdG9GbG9hdChpbmRleCkpIHx8IGluZGV4ID4gdGhpcyQxLm1heEluZGV4KSk7CiAgICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgICAgICBpZiAoIXRoaXMuZHJhZ2dpbmcgJiYgIXRoaXMuc3RhY2subGVuZ3RoKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5fZ2V0VHJhbnNpdGlvbmVyKCkudHJhbnNsYXRlKDEpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGV2ZW50czogWydyZXNpemUnXQoKICAgICAgICB9LAoKICAgICAgICBldmVudHM6IHsKCiAgICAgICAgICAgIGJlZm9yZWl0ZW1zaG93OiBmdW5jdGlvbihlKSB7CgogICAgICAgICAgICAgICAgaWYgKCF0aGlzLmRyYWdnaW5nICYmIHRoaXMuc2V0cyAmJiB0aGlzLnN0YWNrLmxlbmd0aCA8IDIgJiYgIWluY2x1ZGVzKHRoaXMuc2V0cywgdGhpcy5pbmRleCkpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLmluZGV4ID0gdGhpcy5nZXRWYWxpZEluZGV4KCk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdmFyIGRpZmYgPSBNYXRoLmFicygKICAgICAgICAgICAgICAgICAgICB0aGlzLmluZGV4CiAgICAgICAgICAgICAgICAgICAgLSB0aGlzLnByZXZJbmRleAogICAgICAgICAgICAgICAgICAgICsgKHRoaXMuZGlyID4gMCAmJiB0aGlzLmluZGV4IDwgdGhpcy5wcmV2SW5kZXggfHwgdGhpcy5kaXIgPCAwICYmIHRoaXMuaW5kZXggPiB0aGlzLnByZXZJbmRleCA/ICh0aGlzLm1heEluZGV4ICsgMSkgKiB0aGlzLmRpciA6IDApCiAgICAgICAgICAgICAgICApOwoKICAgICAgICAgICAgICAgIGlmICghdGhpcy5kcmFnZ2luZyAmJiBkaWZmID4gMSkgewoKICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGRpZmY7IGkrKykgewogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnN0YWNrLnNwbGljZSgxLCAwLCB0aGlzLmRpciA+IDAgPyAnbmV4dCcgOiAncHJldmlvdXMnKTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdGhpcy5kdXJhdGlvbiA9IHNwZWVkVXAodGhpcy5hdmdXaWR0aCAvIHRoaXMudmVsb2NpdHkpCiAgICAgICAgICAgICAgICAgICAgKiAoYm91bmRzKAogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmRpciA8IDAgfHwgIXRoaXMuc2xpZGVzW3RoaXMucHJldkluZGV4XQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPyB0aGlzLnNsaWRlc1t0aGlzLmluZGV4XQogICAgICAgICAgICAgICAgICAgICAgICAgICAgOiB0aGlzLnNsaWRlc1t0aGlzLnByZXZJbmRleF0KICAgICAgICAgICAgICAgICAg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gICAgICAgICAgICAgIGNzcyh0aGlzLnNsaWRlcywgJ29yZGVyJywgJycpOwoKICAgICAgICAgICAgICAgIGlmICh0aGlzLmZpbml0ZSkgewogICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB2YXIgaW5kZXggPSB0aGlzLmRpciA+IDAgJiYgdGhpcy5zbGlkZXNbdGhpcy5wcmV2SW5kZXhdID8gdGhpcy5wcmV2SW5kZXggOiB0aGlzLmluZGV4OwoKICAgICAgICAgICAgICAgIHRoaXMuc2xpZGVzLmZvckVhY2goZnVuY3Rpb24gKHNsaWRlLCBpKSB7IHJldHVybiBjc3Moc2xpZGUsICdvcmRlcicsIHRoaXMkMS5kaXIgPiAwICYmIGkgPCBpbmRleAogICAgICAgICAgICAgICAgICAgICAgICA/IDEKICAgICAgICAgICAgICAgICAgICAgICAgOiB0aGlzJDEuZGlyIDwgMCAmJiBpID49IHRoaXMkMS5pbmRleAogICAgICAgICAgICAgICAgICAgICAgICAgICAgPyAtMQogICAgICAgICAgICAgICAgICAgICAgICAgICAgOiAnJwogICAgICAgICAgICAgICAgICAgICk7IH0KICAgICAgICAgICAgICAgICk7CgogICAgICAgICAgICAgICAgaWYgKCF0aGlzLmNlbnRlcikgewogICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB2YXIgbmV4dCA9IHRoaXMuc2xpZGVzW2luZGV4XTsKICAgICAgICAgICAgICAgIHZhciB3aWR0aCA9IGJvdW5kcyh0aGlzLmxpc3QpLndpZHRoIC8gMiAtIGJvdW5kcyhuZXh0KS53aWR0aCAvIDI7CiAgICAgICAgICAgICAgICB2YXIgaiA9IDA7CgogICAgICAgICAgICAgICAgd2hpbGUgKHdpZHRoID4gMCkgewogICAgICAgICAgICAgICAgICAgIHZhciBzbGlkZUluZGV4ID0gdGhpcy5nZXRJbmRleCgtLWogKyBpbmRleCwgaW5kZXgpOwogICAgICAgICAgICAgICAgICAgIHZhciBzbGlkZSA9IHRoaXMuc2xpZGVzW3NsaWRlSW5kZXhdOwoKICAgICAgICAgICAgICAgICAgICBjc3Moc2xpZGUsICdvcmRlcicsIHNsaWRlSW5kZXggPiBpbmRleCA/IC0yIDogLTEpOwogICAgICAgICAgICAgICAgICAgIHdpZHRoIC09IGJvdW5kcyhzbGlkZSkud2lkdGg7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgZ2V0VmFsaWRJbmRleDogZnVuY3Rpb24oaW5kZXgsIHByZXZJbmRleCkgewogICAgICAgICAgICAgICAgaWYgKCBpbmRleCA9PT0gdm9pZCAwICkgaW5kZXggPSB0aGlzLmluZGV4OwogICAgICAgICAgICAgICAgaWYgKCBwcmV2SW5kZXggPT09IHZvaWQgMCApIHByZXZJbmRleCA9IHRoaXMucHJldkluZGV4OwoKCiAgICAgICAgICAgICAgICBpbmRleCA9IHRoaXMuZ2V0SW5kZXgoaW5kZXgsIHByZXZJbmRleCk7CgogICAgICAgICAgICAgICAgaWYgKCF0aGlzLnNldHMpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gaW5kZXg7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdmFyIHByZXY7CgogICAgICAgICAgICAgICAgZG8gewoKICAgICAgICAgICAgICAgICAgICBpZiAoaW5jbHVkZXModGhpcy5zZXRzLCBpbmRleCkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGluZGV4OwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgcHJldiA9IGluZGV4OwogICAgICAgICAgICAgICAgICAgIGluZGV4ID0gdGhpcy5nZXRJbmRleChpbmRleCArIHRoaXMuZGlyLCBwcmV2SW5kZXgpOwoKICAgICAgICAgICAgICAgIH0gd2hpbGUgKGluZGV4ICE9PSBwcmV2KTsKCiAgICAgICAgICAgICAgICByZXR1cm4gaW5kZXg7CiAgICAgICAgICAgIH0KCiAgICAgICAgfQoKICAgIH07CgogICAgdmFyIFNsaWRlc2hvd1BhcmFsbGF4ID0gewoKICAgICAgICBtaXhpbnM6IFtQYXJhbGxheF0sCgogICAgICAgIGRhdGE6IHsKICAgICAgICAgICAgc2VsSXRlbTogJyFsaScKICAgICAgICB9LAoKICAgICAgICBjb21wdXRlZDogewoKICAgICAgICAgICAgaXRlbTogZnVuY3Rpb24ocmVmLCAkZWwpIHsKICAgICAgICAgICAgICAgIHZhciBzZWxJdGVtID0gcmVmLnNlbEl0ZW07CgogICAgICAgICAgICAgICAgcmV0dXJuIHF1ZXJ5KHNlbEl0ZW0sICRlbCk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiBbCgogICAgICAgICAgICB7CgogICAgICAgICAgICAgICAgbmFtZTogJ2l0ZW1zaG93bicsCgogICAgICAgICAgICAgICAgc2VsZjogdHJ1ZSwKCiAgICAgICAgICAgICAgICBlbDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuaXRlbTsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgY3NzKHRoaXMuJGVsLCB0aGlzLmdldENzcyguNSkpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIG5hbWU6ICdpdGVtaW4gaXRlbW91dCcsCgogICAgICAgICAgICAgICAgc2VsZjogdHJ1ZSwKCiAgICAgICAgICAgICAgICBlbDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuaXRlbTsKICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgaGFuZGxlcjogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIHR5cGUgPSByZWYudHlwZTsKICAgICAgICAgICAgICAgICAgICB2YXIgcmVmX2RldGFpbCA9IHJlZi5kZXRhaWw7CiAgICAgICAgICAgICAgICAgICAgdmFyIHBlcmNlbnQgPSByZWZfZGV0YWlsLnBlcmNlbnQ7CiAgICAgICAgICAgICAgICAgICAgdmFyIGR1cmF0aW9uID0gcmVmX2RldGFpbC5kdXJhdGlvbjsKICAgICAgICAgICAgICAgICAgICB2YXIgdGltaW5nID0gcmVmX2RldGFpbC50aW1pbmc7CiAgICAgICAgICAgICAgICAgICAgdmFyIGRpciA9IHJlZl9kZXRhaWwuZGlyOwoKCiAgICAgICAgICAgICAgICAgICAgVHJhbnNpdGlvbi5jYW5jZWwodGhpcy4kZWwpOwogICAgICAgICAgICAgICAgICAgIGNzcyh0aGlzLiRlbCwgdGhpcy5nZXRDc3MoZ2V0Q3VycmVudCh0eXBlLCBkaXIsIHBlcmNlbnQpKSk7CgogICAgICAgICAgICAgICAgICAgIFRyYW5zaXRpb24uc3RhcnQodGhpcy4kZWwsIHRoaXMuZ2V0Q3NzKGlzSW4odHlwZSkKICAgICAgICAgICAgICAgICAgICAgICAgPyAuNQogICAgICAgICAgICAgICAgICAgICAgICA6IGRpciA+IDAKICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gMQogICAgICAgICAgICAgICAgICAgICAgICAgICAgOiAwCiAgICAgICAgICAgICAgICAgICAgKSwgZHVyYXRpb24sIHRpbWluZykuY2F0Y2gobm9vcCk7CgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgbmFtZTogJ3RyYW5zaXRpb25jYW5jZWxlZCB0cmFuc2l0aW9uZW5kJywKCiAgICAgICAgICAgICAgICBzZWxmOiB0cnVlLAoKICAgICAgICAgICAgICAgIGVsOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5pdGVtOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICBUcmFuc2l0aW9uLmNhbmNlbCh0aGlzLiRlbCk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgbmFtZTogJ2l0ZW10cmFuc2xhdGVpbiBpdGVtdHJhbnNsYXRlb3V0JywKCiAgICAgICAgICAgICAgICBzZWxmOiB0cnVlLAoKICAgICAgICAgICAgICAgIGVsOiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5pdGVtOwogICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICBoYW5kbGVyOiBmdW5jdGlvbihyZWYpIHsKICAgICAgICAgICAgICAgICAgICB2YXIgdHlwZSA9IHJlZi50eXBlOwogICAgICAgICAgICAgICAgICAgIHZhciByZWZfZGV0YWlsID0gcmVmLmRldGFpbDsKICAgICAgICAgICAgICAgICAgICB2YXIgcGVyY2VudCA9IHJlZl9kZXRhaWwucGVyY2VudDsKICAgICAgICAgICAgICAgICAgICB2YXIgZGlyID0gcmVmX2RldGFpbC5kaXI7CgogICAgICAgICAgICAgICAgICAgIFRyYW5zaXRpb24uY2FuY2VsKHRoaXMuJGVsKTsKICAgICAgICAgICAgICAgICAgICBjc3ModGhpcy4kZWwsIHRoaXMuZ2V0Q3NzKGdldEN1cnJlbnQodHlwZSwgZGlyLCBwZXJjZW50KSkpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgIF0KCiAgICB9OwoKICAgIGZ1bmN0aW9uIGlzSW4odHlwZSkgewogICAgICAgIHJldHVybiBlbmRzV2l0aCh0eXBlLCAnaW4nKTsKICAgIH0KCiAgICBmdW5jdGlvbiBnZXRDdXJyZW50KHR5cGUsIGRpciwgcGVyY2VudCkgewoKICAgICAgICBwZXJjZW50IC89IDI7CgogICAgICAgIHJldHVybiAhaXNJbih0eXBlKQogICAgICAgICAgICA/IGRpciA8IDAKICAgICAgICAgICAgICAgID8gcGVyY2VudAogICAgICAgICAgICAgICAgOiAxIC0gcGVyY2VudAogICAgICAgICAgICA6IGRpciA8IDAKICAgICAgICAgICAgICAgID8gMSAtIHBlcmNlbnQKICAgICAgICAgICAgICAgIDogcGVyY2VudDsKICAgIH0KCiAgICB2YXIgQW5pbWF0aW9ucyQyID0gYXNzaWduKHt9LCBBbmltYXRpb25zLCB7CgogICAgICAgIGZhZGU6IHsKCiAgICAgICAgICAgIHNob3c6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIFsKICAgICAgICAgICAgICAgICAgICB7b3BhY2l0eTogMCwgekluZGV4OiAwfSwKICAgICAgICAgICAgICAgICAgICB7ekluZGV4OiAtMX0KICAgICAgICAgICAgICAgIF07CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBwZXJjZW50OiBmdW5jdGlvbihjdXJyZW50KSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMSAtIGNzcyhjdXJyZW50LCAnb3BhY2l0eScpOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgdHJhbnNsYXRlOiBmdW5jdGlvbihwZXJjZW50KSB7CiAgICAgICAgICAgICAgICByZXR1cm4gWwogICAgICAgICAgICAgICAgICAgIHtvcGFjaXR5OiAxIC0gcGVyY2VudCwgekluZGV4OiAwfSwKICAgICAgICAgICAgICAgICAgICB7ekluZGV4OiAtMX0KICAgICAgICAgICAgICAgIF07CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgc2NhbGU6IHsKCiAgICAgICAgICAgIHNob3c6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIFsKICAgICAgICAgICAgICAgICAgICB7b3BhY2l0eTogMCwgdHJhbnNmb3JtOiBzY2FsZTNkKDEgKyAuNSksIHpJbmRleDogMH0sCiAgICAgICAgICAgICAgICAgICAge3pJbmRleDogLTF9CiAgICAgICAgICAgICAgICBdOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgcGVyY2VudDogZnVuY3Rpb24oY3VycmVudCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDEgLSBjc3MoY3VycmVudCwgJ29wYWNpdHknKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHRyYW5zbGF0ZTogZnVuY3Rpb24ocGVyY2VudCkgewogICAgICAgICAgICAgICAgcmV0dXJuIFsKICAgICAgICAgICAgICAgICAgICB7b3BhY2l0eTogMSAtIHBlcmNlbnQsIHRyYW5zZm9ybTogc2NhbGUzZCgxICsgLjUgKiBwZXJjZW50KSwgekluZGV4OiAwfSwKICAgICAgICAgICAgICAgICAgICB7ekluZGV4OiAtMX0KICAgICAgICAgICAgICAgIF07CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgcHVsbDogewoKICAgICAgICAgICAgc2hvdzogZnVuY3Rpb24oZGlyKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZGlyIDwgMAogICAgICAgICAgICAgICAgICAgID8gWwogICAgICAgICAgICAgICAgICAgICAgICB7dHJhbnNmb3JtOiB0cmFuc2xhdGUoMzApLCB6SW5kZXg6IC0xfSwKICAgICAgICAgICAgICAgICAgICAgICAge3RyYW5zZm9ybTogdHJhbnNsYXRlKCksIHpJbmRleDogMH0KICAgICAgICAgICAgICAgICAgICBdCiAgICAgICAgICAgICAgICAgICAgOiBbCiAgICAgICAgICAgICAgICAgICAgICAgIHt0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtMTAwKSwgekluZGV4OiAwfSwKICAgICAgICAgICAgICAgICAgICAgICAge3RyYW5zZm9ybTogdHJhbnNsYXRlKCksIHpJbmRleDogLTF9CiAgICAgICAgICAgICAgICAgICAgXTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHBlcmNlbnQ6IGZ1bmN0aW9uKGN1cnJlbnQsIG5leHQsIGRpcikgewogICAgICAgICAgICAgICAgcmV0dXJuIGRpciA8IDAKICAgICAgICAgICAgICAgICAgICA/IDEgLSB0cmFuc2xhdGVkKG5leHQpCiAgICAgICAgICAgICAgICAgICAgOiB0cmFuc2xhdGVkKGN1cnJlbnQpOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgdHJhbnNsYXRlOiBmdW5jdGlvbihwZXJjZW50LCBkaXIpIHsKICAgICAgICAgICAgICAgIHJldHVybiBkaXIgPCAwCiAgICAgICAgICAgICAgICAgICAgPyBbCiAgICAgICAgICAgICAgICAgICAgICAgIHt0cmFuc2Zvcm06IHRyYW5zbGF0ZSgzMCAqIHBlcmNlbnQpLCB6SW5kZXg6IC0xfSwKICAgICAgICAgICAgICAgICAgICAgICAge3RyYW5zZm9ybTogdHJhbnNsYXRlKC0xMDAgKiAoMSAtIHBlcmNlbnQpKSwgekluZGV4OiAwfQogICAgICAgICAgICAgICAgICAgIF0KICAgICAgICAgICAgICAgICAgICA6IFsKICAgICAgICAgICAgICAgICAgICAgICAge3RyYW5zZm9ybTogdHJhbnNsYXRlKC1wZXJjZW50ICogMTAwKSwgekluZGV4OiAwfSwKICAgICAgICAgICAgICAgICAgICAgICAge3RyYW5zZm9ybTogdHJhbnNsYXRlKDMwICogKDEgLSBwZXJjZW50KSksIHpJbmRleDogLTF9CiAgICAgICAgICAgICAgICAgICAgXTsKICAgICAgICAgICAgfQoKICAgICAgICB9LAoKICAgICAgICBwdXNoOiB7CgogICAgICAgICAgICBzaG93OiBmdW5jdGlvbihkaXIpIHsKICAgICAgICAgICAgICAgIHJldHVybiBkaXIgPCAwCiAgICAgICAgICAgICAgICAgICAgPyBbCiAgICAgICAgICAgICAgICAgICAgICAgIHt0cmFuc2Zvcm06IHRyYW5zbGF0ZSgxMDApLCB6SW5kZXg6IDB9LAogICAgICAgICAgICAgICAgICAgICAgICB7dHJhbnNmb3JtOiB0cmFuc2xhdGUoKSwgekluZGV4OiAtMX0KICAgICAgICAgICAgICAgICAgICBdCiAgICAgICAgICAgICAgICAgICAgOiBbCiAgICAgICAgICAgICAgICAgICAgICAgIHt0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtMzApLCB6SW5kZXg6IC0xfSwKICAgICAgICAgICAgICAgICAgICAgICAge3RyYW5zZm9ybTogdHJhbnNsYXRlKCksIHpJbmRleDogMH0KICAgICAgICAgICAgICAgICAgICBdOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgcGVyY2VudDogZnVuY3Rpb24oY3VycmVudCwgbmV4dCwgZGlyKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZGlyID4gMAogICAgICAgICAgICAgICAgICAgID8gMSAtIHRyYW5zbGF0ZWQobmV4dCkKICAgICAgICAgICAgICAgICAgICA6IHRyYW5zbGF0ZWQoY3VycmVudCk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB0cmFuc2xhdGU6IGZ1bmN0aW9uKHBlcmNlbnQsIGRpcikgewogICAgICAgICAgICAgICAgcmV0dXJuIGRpciA8IDAKICAgICAgICAgICAgICAgICAgICA/IFsKICAgICAgICAgICAgICAgICAgICAgICAge3RyYW5zZm9ybTogdHJhbnNsYXRlKHBlcmNlbnQgKiAxMDApLCB6SW5kZXg6IDB9LAogICAgICAgICAgICAgICAgICAgICAgICB7dHJhbnNmb3JtOiB0cmFuc2xhdGUoLTMwICogKDEgLSBwZXJjZW50KSksIHpJbmRleDogLTF9CiAgICAgICAgICAgICAgICAgICAgXQogICAgICAgICAgICAgICAgICAgIDogWwogICAgICAgICAgICAgICAgICAgICAgICB7dHJhbnNmb3JtOiB0cmFuc2xhdGUoLTMwICogcGVyY2VudCksIHpJbmRleDogLTF9LAogICAgICAgICAgICAgICAgICAgICAgICB7dHJhbnNmb3JtOiB0cmFuc2xhdGUoMTAwICogKDEgLSBwZXJjZW50KSksIHpJbmRleDogMH0KICAgICAgICAgICAgICAgICAgICBdOwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICB9KTsKCiAgICB2YXIgU2xpZGVzaG93JDEgPSB7CgogICAgICAgIG1peGluczogW0NsYXNzLCBTbGlkZXNob3csIFNsaWRlclJlYWN0aXZlXSwKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgcmF0aW86IFN0cmluZywKICAgICAgICAgICAgbWluSGVpZ2h0OiBOdW1iZXIsCiAgICAgICAgICAgIG1heEhlaWdodDogTnVtYmVyCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICByYXRpbzogJzE2OjknLAogICAgICAgICAgICBtaW5IZWlnaHQ6IGZhbHNlLAogICAgICAgICAgICBtYXhIZWlnaHQ6IGZhbHNlLAogICAgICAgICAgICBzZWxMaXN0OiAnLnVrLXNsaWRlc2hvdy1pdGVtcycsCiAgICAgICAgICAgIGF0dHJJdGVtOiAndWstc2xpZGVzaG93LWl0ZW0nLAogICAgICAgICAgICBzZWxOYXY6ICcudWstc2xpZGVzaG93LW5hdicsCiAgICAgICAgICAgIEFuaW1hdGlvbnM6IEFuaW1hdGlvbnMkMgogICAgICAgIH0sCgogICAgICAgIHVwZGF0ZTogewoKICAgICAgICAgICAgcmVhZDogZnVuY3Rpb24oKSB7CgogICAgICAgICAgICAgICAgdmFyIHJlZiA9IHRoaXMucmF0aW8uc3BsaXQoJzonKS5tYXAoTnVtYmVyKTsKICAgICAgICAgICAgICAgIHZhciB3aWR0aCA9IHJlZlswXTsKICAgICAgICAgICAgICAgIHZhciBoZWlnaHQgPSByZWZbMV07CgogICAgICAgICAgICAgICAgaGVpZ2h0ID0gaGVpZ2h0ICogdGhpcy5saXN0Lm9mZnNldFdpZHRoIC8gd2lkdGggfHwgMDsKCiAgICAgICAgICAgICAgICBpZiAodGhpcy5taW5IZWlnaHQpIHsKICAgICAgICAgICAgICAgICAgICBoZWlnaHQgPSBNYXRoLm1heCh0aGlzLm1pbkhlaWdodCwgaGVpZ2h0KTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBpZiAodGhpcy5tYXhIZWlnaHQpIHsKICAgICAgICAgICAgICAgICAgICBoZWlnaHQgPSBNYXRoLm1pbih0aGlzLm1heEhlaWdodCwgaGVpZ2h0KTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICByZXR1cm4ge2hlaWdodDogaGVpZ2h0IC0gYm94TW9kZWxBZGp1c3QodGhpcy5saXN0LCAnY29udGVudC1ib3gnKX07CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICB3cml0ZTogZnVuY3Rpb24ocmVmKSB7CiAgICAgICAgICAgICAgICB2YXIgaGVpZ2h0ID0gcmVmLmhlaWdodDsKCiAgICAgICAgICAgICAgICBoZWlnaHQgPiAwICYmIGNzcyh0aGlzLmxpc3QsICdtaW5IZWlnaHQnLCBoZWlnaHQpOwogICAgICAgICAgICB9LAoKICAgICAgICAgICAgZXZlbnRzOiBbJ3Jlc2l6ZSddCgogICAgICAgIH0KCiAgICB9OwoKICAgIHZhciBTb3J0YWJsZSA9IHsKCiAgICAgICAgbWl4aW5zOiBbQ2xhc3MsIEFuaW1hdGVdLAoKICAgICAgICBwcm9wczogewogICAgICAgICAgICBncm91cDogU3RyaW5nLAogICAgICAgICAgICB0aHJlc2hvbGQ6IE51bWJlciwKICAgICAgICAgICAgY2xzSXRlbTogU3RyaW5nLAogICAgICAgICAgICBjbHNQbGFjZWhvbGRlcjogU3RyaW5nLAogICAgICAgICAgICBjbHNEcmFnOiBTdHJpbmcsCiAgICAgICAgICAgIGNsc0RyYWdTdGF0ZTogU3RyaW5nLAogICAgICAgICAgICBjbHNCYXNlOiBTdHJpbmcsCiAgICAgICAgICAgIGNsc05vRHJhZzogU3RyaW5nLAogICAgICAgICAgICBjbHNFbXB0eTogU3RyaW5nLAogICAgICAgICAgICBjbHNDdXN0b206IFN0cmluZywKICAgICAgICAgICAgaGFuZGxlOiBTdHJpbmcKICAgICAgICB9LAoKICAgICAgICBkYXRhOiB7CiAgICAgICAgICAgIGdyb3VwOiBmYWxzZSwKICAgICAgICAgICAgdGhyZXNob2xkOiA1LAogICAgICAgICAgICBjbHNJdGVtOiAndWstc29ydGFibGUtaXRlbScsCiAgICAgICAgICAgIGNsc1BsYWNlaG9sZGVyOiAndWstc29ydGFibGUtcGxhY2Vob2xkZXInLAogICAgICAgICAgICBjbHNEcmFnOiAndWstc29ydGFibGUtZHJhZycsCiAgICAgICAgICAgIGNsc0RyYWdTdGF0ZTogJ3VrLWRyYWcnLAogICAgICAgICAgICBjbHNCYXNlOiAndWstc29ydGFibGUnLAogICAgICAgICAgICBjbHNOb0RyYWc6ICd1ay1zb3J0YWJsZS1ub2RyYWcnLAogICAgICAgICAgICBjbHNFbXB0eTogJ3VrLXNvcnRhYmxlLWVtcHR5JywKICAgICAgICAgICAgY2xzQ3VzdG9tOiAnJywKICAgICAgICAgICAgaGFuZGxlOiBmYWxzZQogICAgICAgIH0sCgogICAgICAgIGNyZWF0ZWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCiAgICAgICAgICAgIFsnaW5pdCcsICdzdGFydCcsICdtb3ZlJywgJ2VuZCddLmZvckVhY2goZnVuY3Rpb24gKGtleSkgewogICAgICAgICAgICAgICAgdmFyIGZuID0gdGhpcyQxW2tleV07CiAgICAgICAgICAgICAgICB0aGlzJDFba2V5XSA9IGZ1bmN0aW9uIChlKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcyQxLnNjcm9sbFkgPSB3aW5kb3cucGFnZVlPZmZzZXQ7CiAgICAgICAgICAgICAgICAgICAgdmFyIHJlZiA9IGdldEV2ZW50UG9zKGUsICdwYWdlJyk7CiAgICAgICAgICAgICAgICAgICAgdmFyIHggPSByZWYueDsKICAgICAgICAgICAgICAgICAgICB2YXIgeSA9IHJlZi55OwogICAgICAgICAgICAgICAgICAgIHRoaXMkMS5wb3MgPSB7eDogeCwgeTogeX07CgogICAgICAgICAgICAgICAgICAgIGZuKGUpOwogICAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgfSk7CiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiB7CgogICAgICAgICAgICBuYW1lOiBwb2ludGVyRG93biwKICAgICAgICAgICAgcGFzc2l2ZTogZmFsc2UsCiAgICAgICAgICAgIGhhbmRsZXI6ICdpbml0JwoKICAgICAgICB9LAoKICAgICAgICB1cGRhdGU6IHsKCiAgICAgICAgICAgIHdyaXRlOiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgICAgICBpZiAodGhpcy5jbHNFbXB0eSkgewogICAgICAgICAgICAgICAgICAgIHRvZ2dsZUNsYXNzKHRoaXMuJGVsLCB0aGlzLmNsc0VtcHR5LCBpc0VtcHR5KHRoaXMuJGVsLmNoaWxkcmVuKSk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgY3NzKHRoaXMuaGFuZGxlID8gJCQodGhpcy5oYW5kbGUsIHRoaXMuJGVsKSA6IHRoaXMuJGVsLmNoaWxkcmVuLCB7dG91Y2hBY3Rpb246ICdub25lJywgdXNlclNlbGVjdDogJ25vbmUnfSk7CgogICAgICAgICAgICAgICAgaWYgKHRoaXMuZHJhZykgewoKICAgICAgICAgICAgICAgICAgICAvLyBjbGFtcCB0byB2aWV3cG9ydAogICAgICAgICAgICAgICAgICAgIHZhciByZWYgPSBvZmZzZXQod2luZG93KTsKICAgICAgICAgICAgICAgICAgICB2YXIgcmlnaHQgPSByZWYucmlnaHQ7CiAgICAgICAgICAgICAgICAgICAgdmFyIGJvdHRvbSA9IHJlZi5ib3R0b207CiAgICAgICAgICAgICAgICAgICAgb2Zmc2V0KHRoaXMuZHJhZywgewogICAgICAgICAgICAgICAgICAgICAgICB0b3A6IGNsYW1wKHRoaXMucG9zLnkgKyB0aGlzLm9yaWdpbi50b3AsIDAsIGJvdHRvbSAtIHRoaXMuZHJhZy5vZmZzZXRIZWlnaHQpLAogICAgICAgICAgICAgICAgICAgICAgICBsZWZ0OiBjbGFtcCh0aGlzLnBvcy54ICsgdGhpcy5vcmlnaW4ubGVmdCwgMCwgcmlnaHQgLSB0aGlzLmRyYWcub2Zmc2V0V2lkdGgpCiAgICAgICAgICAgICAgICAgICAgfSk7CgogICAgICAgICAgICAgICAgICAgIHRyYWNrU2Nyb2xsKHRoaXMucG9zKTsKCiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9CgogICAgICAgIH0sCgogICAgICAgIG1ldGhvZHM6IHsKCiAgICAgICAgICAgIGluaXQ6IGZ1bmN0aW9uKGUpIHsKCiAgICAgICAgICAgICAgICB2YXIgdGFyZ2V0ID0gZS50YXJnZXQ7CiAgICAgICAgICAgICAgICB2YXIgYnV0dG9uID0gZS5idXR0b247CiAgICAgICAgICAgICAgICB2YXIgZGVmYXVsdFByZXZlbnRlZCA9IGUuZGVmYXVsdFByZXZlbnRlZDsKICAgICAgICAgICAgICAgIHZhciByZWYgPSB0b05vZGVzKHRoaXMuJGVsLmNoaWxkcmVuKS5maWx0ZXIoZnVuY3Rpb24gKGVsKSB7IHJldHVybiB3aXRoaW4odGFyZ2V0LCBlbCk7IH0pOwogICAgICAgICAgICAgICAgdmFyIHBsYWNlaG9sZGVyID0gcmVmWzBdOwoKICAgICAgICAgICAgICAgIGlmICghcGxhY2Vob2xkZXIKICAgICAgICAgICAgICAgICAgICB8fCBkZWZhdWx0UHJldmVudGVkCiAgICAgICAgICAgICAgICAgICAgfHwgYnV0dG9uID4gMAogICAgICAgICAgICAgICAgICAgIHx8IGlzSW5wdXQodGFyZ2V0KQogICAgICAgICAgICAgICAgICAgIHx8IHdpdGhpbih0YXJnZXQsICgiLiIgKyAodGhpcy5jbHNOb0RyYWcpKSkKICAgICAgICAgICAgICAgICAgICB8fCB0aGlzLmhhbmRsZSAmJiAhd2l0aGluKHRhcmdldCwgdGhpcy5oYW5kbGUpCiAgICAgICAgICAgICAgICApIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpOwoKICAgICAgICAgICAgICAgIHRoaXMudG91Y2hlZCA9IFt0aGlzXTsKICAgICAgICAgICAgICAgIHRoaXMucGxhY2Vob2xkZXIgPSBwbGFjZWhvbGRlcjsKICAgICAgICAgICAgICAgIHRoaXMub3JpZ2luID0gYXNzaWduKHt0YXJnZXQ6IHRhcmdldCwgaW5kZXg6IGluZGV4KHBsYWNlaG9sZGVyKX0sIHRoaXMucG9zKTsKCiAgICAgICAgICAgICAgICBvbihkb2N1bWVudCwgcG9pbnRlck1vdmUsIHRoaXMubW92ZSk7CiAgICAgICAgICAgICAgICBvbihkb2N1bWVudCwgcG9pbnRlclVwLCB0aGlzLmVuZCk7CiAgICAgICAgICAgICAgICBvbih3aW5kb3csICdzY3JvbGwnLCB0aGlzLnNjcm9sbCk7CgogICAgICAgICAgICAgICAgaWYgKCF0aGlzLnRocmVzaG9sZCkgewogICAgICAgICAgICAgICAgICAgIHRoaXMuc3RhcnQoZSk7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9LAoKICAgICAgICAgICAgc3RhcnQ6IGZ1bmN0aW9uKGUpIHsKCiAgICAgICAgICAgICAgICB0aGlzLmRyYWcgPSBhcHBlbmQodGhpcy4kY29udGFpbmVyLCB0aGlzLnBsYWNlaG9sZGVyLm91dGVySFRNTC5yZXBsYWNlKC9ePGxpL2ksICc8ZGl2JykucmVwbGFjZSgvbGk+JC9pLCAnZGl2PicpKTsKCiAgICAgICAgICAgICAgICBjc3ModGhpcy5kcmFnLCBhc3NpZ24oewogICAgICAgICAgICAgICAgICAgIGJveFNpemluZzogJ2JvcmRlci1ib3gnLAogICAgICAgICAgICAgICAgICAgIHdpZHRoOiB0aGlzLnBsYWNlaG9sZGVyLm9mZnNldFdpZHRoLAogICAgICAgICAgICAgICAgICAgIGhlaWdodDogdGhpcy5wbGFjZWhvbGRlci5vZmZzZXRIZWlnaHQsCiAgICAgICAgICAgICAgICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nCiAgICAgICAgICAgICAgICB9LCBjc3ModGhpcy5wbGFjZWhvbGRlciwgWydwYWRkaW5nTGVmdCcsICdwYWRkaW5nUm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gKCF0aGlzLmRyYWcpIHsKCiAgICAgICAgICAgICAgICAgICAgaWYgKE1hdGguYWJzKHRoaXMucG9zLnggLSB0aGlzLm9yaWdpbi54KSA+IHRoaXMudGhyZXNob2xkIHx8IE1hdGguYWJzKHRoaXMucG9zLnkgLSB0aGlzLm9yaWdpbi55KSA+IHRoaXMudGhyZXNob2xkKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc3RhcnQoZSk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdGhpcy4kZW1pdCgpOwoKICAgICAgICAgICAgICAgIHZhciB0YXJnZXQgPSBlLnR5cGUgPT09ICdtb3VzZW1vdmUnID8gZS50YXJnZXQgOiBkb2N1bWVudC5lbGVtZW50RnJvbVBvaW50KHRoaXMucG9zLnggLSB3aW5kb3cucGFnZVhPZmZzZXQsIHRoaXMucG9zLnkgLSB3aW5kb3cucGFnZVlPZmZzZXQpOwoKICAgICAgICAgICAgICAgIHZhciBzb3J0YWJsZSA9IHRoaXMuZ2V0U29ydGFibGUodGFyZ2V0KTsKICAgICAgICAgICAgICAgIHZhciBwcmV2aW91cyA9IHRoaXMuZ2V0U29ydGFibGUodGhpcy5wbGFjZWhvbGRlcik7CiAgICAgICAgICAgICAgICB2YXIgbW92ZSA9IHNvcnRhYmxlICE9PSBwcmV2aW91czsKCiAgICAgICAgICAgICAgICBpZiAoIXNvcnRhYmxlIHx8IHdpdGhpbih0YXJnZXQsIHRoaXMucGxhY2Vob2xkZXIpIHx8IG1vdmUgJiYgKCFzb3J0YWJsZS5ncm91cCB8fCBzb3J0YWJsZS5ncm91cCAhPT0gcHJldmlvdXMuZ3JvdXApKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHRhcmdldCA9IHNvcnRhYmxlLiRlbCA9PT0gdGFyZ2V0LnBhcmVudE5vZGUgJiYgdGFyZ2V0IHx8IHRvTm9kZXMoc29ydGFibGUuJGVsLmNoaWxkcmVuKS5maWx0ZXIoZnVuY3Rpb24gKGVsZW1lbnQpIHsgcmV0dXJuIHdpdGhpbih0YXJnZXQsIGVsZW1lbnQpOyB9KVswXTsKCiAgICAgICAgICAgICAgICBpZiAobW92ZSkgewogICAgICAgICAgICAgICAgICAgIHByZXZpb3VzLnJlbW92ZSh0aGlzLnBsYWNlaG9sZGVyKTsKICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoIXRhcmdldCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBzb3J0YWJsZS5pbnNlcnQodGhpcy5wbGFjZWhvbGRlciwgdGFyZ2V0KTsKCiAgICAgICAgICAgICAgICBpZiAoIWluY2x1ZGVzKHRoaXMudG91Y2hlZCwgc29ydGFibGUpKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcy50b3VjaGVkLnB1c2goc29ydGFibGUpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGVuZDogZnVuY3Rpb24oZSkgewoKICAgICAgICAgICAgICAgIG9mZihkb2N1bWVudCwgcG9pbnRlck1vdmUsIHRoaXMubW92ZSk7CiAgICAgICAgICAgICAgICBvZmYoZG9jdW1lbnQsIHBvaW50ZXJVcCwgdGhpcy5lbmQpOwogICAgICAgICAgICAgICAgb2ZmKHdpbmRvdywgJ3Njcm9sbCcsIHRoaXMuc2Nyb2xsKTsKCiAgICAgICAgICAgICAgICBpZiAoIXRoaXMuZHJhZykgewogICAgICAgICAgICAgICAgICAgIGlmIChlLnR5cGUgPT09ICd0b3VjaGVuZCcpIHsKICAgICAgICAgICAgICAgICAgICAgICAgZS50YXJnZXQuY2xpY2soKTsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB1bnRyYWNrU2Nyb2xsKCk7CgogICAgICAgICAgICAgICAgdmFyIHNvcnRhYmxlID0gdGhpcy5nZXRTb3J0YWJsZSh0aGlzLnBsYWNlaG9sZGVyKTsKCiAgICAgICAgICAgICAgICBpZiAodGhpcyA9PT0gc29ydGFibGUpIHsKICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5vcmlnaW4uaW5kZXggIT09IGluZGV4KHRoaXMucGxhY2Vob2xkZXIpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRyaWdnZXIodGhpcy4kZWwsICdtb3ZlZCcsIFt0aGlzLCB0aGlzLnBsYWNlaG9sZGVyXSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICB0cmlnZ2VyKHNvcnRhYmxlLiRlbCwgJ2FkZGVkJywgW3NvcnRhYmxlLCB0aGlzLnBsYWNlaG9sZGVyXSk7CiAgICAgICAgICAgICAgICAgICAgdHJpZ2dlcih0aGlzLiRlbCwgJ3JlbW92ZWQnLCBbdGhpcywgdGhpcy5wbGFjZWhvbGRlcl0pOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHRyaWdnZXIodGhpcy4kZWwsICdzdG9wJywgW3RoaXMsIHRoaXMucGxhY2Vob2xkZXJdKTsKCiAgICAgICAgICAgICAgICByZW1vdmUodGhpcy5kcmFnKTsKICAgICAgICAgICAgICAgIHRoaXMuZHJhZyA9IG51bGw7CgogICAgICAgICAgICAgICAgdmFyIGNsYXNzZXMgPSB0aGlzLnRvdWNoZWQubWFwKGZ1bmN0aW9uIChzb3J0YWJsZSkgeyByZXR1cm4gKChzb3J0YWJsZS5jbHNQbGFjZWhvbGRlcikgKyAiICIgKyAoc29ydGFibGUuY2xzSXRlbSkpOyB9KS5qb2luKCcgJyk7CiAgICAgICAgICAgICAgICB0aGlzLnRvdWNoZWQuZm9yRWFjaChmdW5jdGlvbiAoc29ydGFibGUpIHsgcmV0dXJuIHJlbW92ZUNsYXNzKHNvcnRhYmxlLiRlbC5jaGlsZHJlbiwgY2xhc3Nlcyk7IH0pOwoKICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzKGRvY3VtZW50LmRvY3VtZW50RWxlbWVudCwgdGhpcy5jbHNEcmFnU3RhdGUpOwoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIHNjcm9sbDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICB2YXIgc2Nyb2xsID0gd2luZG93LnBhZ2VZT2Zmc2V0OwogICAgICAgICAgICAgICAgaWYgKHNjcm9sbCAhPT0gdGhpcy5zY3JvbGxZKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5wb3MueSArPSBzY3JvbGwgLSB0aGlzLnNjcm9sbFk7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5zY3JvbGxZID0gc2Nyb2xsOwogICAgICAgICAgICAgICAgICAgIHRoaXMuJGVtaXQoKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGluc2VydDogZnVuY3Rpb24oZWxlbWVudCwgdGFyZ2V0KSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICAgICAgYWRkQ2xhc3ModGhpcy4kZWwuY2hpbGRyZW4sIHRoaXMuY2xzSXRlbSk7CgogICAgICAgICAgICAgICAgdmFyIGluc2VydCA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgICAgICAgICAgaWYgKHRhcmdldCkgewoKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCF3aXRoaW4oZWxlbWVudCwgdGhpcyQxLiRlbCkgfHwgaXNQcmVkZWNlc3NvcihlbGVtZW50LCB0YXJnZXQpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBiZWZvcmUodGFyZ2V0LCBlbGVtZW50KTsKICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFmdGVyKHRhcmdldCwgZWxlbWVudCk7CiAgICAgICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgYXBwZW5kKHRoaXMkMS4kZWwsIGVsZW1lbnQpOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB9OwoKICAgICAgICAgICAgICAgIGlmICh0aGlzLmFuaW1hdGlvbikgewogICAgICAgICAgICAgICAgICAgIHRoaXMuYW5pbWF0ZShpbnNlcnQpOwogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICBpbnNlcnQoKTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICByZW1vdmU6IGZ1bmN0aW9uKGVsZW1lbnQpIHsKCiAgICAgICAgICAgICAgICBpZiAoIXdpdGhpbihlbGVtZW50LCB0aGlzLiRlbCkpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgY3NzKHRoaXMuaGFuZGxlID8gJCQodGhpcy5oYW5kbGUsIGVsZW1lbnQpIDogZWxlbWVudCwge3RvdWNoQWN0aW9uOiAnJywgdXNlclNlbGVjdDogJyd9KTsKCiAgICAgICAgICAgICAgICBpZiAodGhpcy5hbmltYXRpb24pIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLmFuaW1hdGUoZnVuY3Rpb24gKCkgeyByZXR1cm4gcmVtb3ZlKGVsZW1lbnQpOyB9KTsKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgcmVtb3ZlKGVsZW1lbnQpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGdldFNvcnRhYmxlOiBmdW5jdGlvbihlbGVtZW50KSB7CiAgICAgICAgICA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ICAgICAgICAgdmFyIHRvcCA9IHJlZi50b3A7CiAgICAgICAgICAgIHZhciBib3R0b20gPSByZWYuYm90dG9tOwoKICAgICAgICAgICAgaWYgKHRvcCA8IHkgJiYgdG9wICsgMzAgPiB5KSB7CiAgICAgICAgICAgICAgICBzY3JvbGwgLT0gNTsKICAgICAgICAgICAgfSBlbHNlIGlmIChib3R0b20gPiB5ICYmIGJvdHRvbSAtIDIwIDwgeSkgewogICAgICAgICAgICAgICAgc2Nyb2xsICs9IDU7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIGlmIChzY3JvbGwgPiAwICYmIHNjcm9sbCA8IHNjcm9sbEhlaWdodCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRyYWNrVGltZXIgPSBzZXRUaW1lb3V0KGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICBzY3JvbGxUb3Aoc2Nyb2xsRWwsIHNjcm9sbCk7CiAgICAgICAgICAgICAgICAgICAgdHJhY2tTY3JvbGwoe3g6IHgsIHk6IHl9KTsKICAgICAgICAgICAgICAgIH0sIDEwKTsKICAgICAgICAgICAgfQoKICAgICAgICB9KTsKCiAgICB9CgogICAgZnVuY3Rpb24gdW50cmFja1Njcm9sbCgpIHsKICAgICAgICBjbGVhclRpbWVvdXQodHJhY2tUaW1lcik7CiAgICB9CgogICAgdmFyIG92ZXJmbG93UmUgPSAvYXV0b3xzY3JvbGwvOwoKICAgIGZ1bmN0aW9uIHNjcm9sbFBhcmVudHMoZWxlbWVudCkgewogICAgICAgIHZhciBzY3JvbGxFbCA9IGdldFNjcm9sbGluZ0VsZW1lbnQoKTsKICAgICAgICByZXR1cm4gcGFyZW50cyQxKGVsZW1lbnQsIGZ1bmN0aW9uIChwYXJlbnQpIHsgcmV0dXJuIHBhcmVudCA9PT0gc2Nyb2xsRWwgfHwgb3ZlcmZsb3dSZS50ZXN0KGNzcyhwYXJlbnQsICdvdmVyZmxvdycpKTsgfSk7CiAgICB9CgogICAgZnVuY3Rpb24gcGFyZW50cyQxKGVsZW1lbnQsIGZuKSB7CiAgICAgICAgdmFyIHBhcmVudHMgPSBbXTsKICAgICAgICBkbyB7CiAgICAgICAgICAgIGlmIChmbihlbGVtZW50KSkgewogICAgICAgICAgICAgICAgcGFyZW50cy51bnNoaWZ0KGVsZW1lbnQpOwogICAgICAgICAgICB9CiAgICAgICAgfSB3aGlsZSAoZWxlbWVudCAmJiAoZWxlbWVudCA9IGVsZW1lbnQucGFyZW50RWxlbWVudCkpOwogICAgICAgIHJldHVybiBwYXJlbnRzOwogICAgfQoKICAgIGZ1bmN0aW9uIGdldFNjcm9sbGluZ0VsZW1lbnQoKSB7CiAgICAgICAgcmV0dXJuIGRvY3VtZW50LnNjcm9sbGluZ0VsZW1lbnQgfHwgZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50OwogICAgfQoKICAgIHZhciBvYmokMTsKCiAgICB2YXIgYWN0aXZlcyA9IFtdOwoKICAgIHZhciBUb29sdGlwID0gewoKICAgICAgICBtaXhpbnM6IFtDb250YWluZXIsIFRvZ2dsYWJsZSwgUG9zaXRpb25dLAoKICAgICAgICBhcmdzOiAndGl0bGUnLAoKICAgICAgICBwcm9wczogewogICAgICAgICAgICBkZWxheTogTnVtYmVyLAogICAgICAgICAgICB0aXRsZTogU3RyaW5nCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICBwb3M6ICd0b3AnLAogICAgICAgICAgICB0aXRsZTogJycsCiAgICAgICAgICAgIGRlbGF5OiAwLAogICAgICAgICAgICBhbmltYXRpb246IFsndWstYW5pbWF0aW9uLXNjYWxlLXVwJ10sCiAgICAgICAgICAgIGR1cmF0aW9uOiAxMDAsCiAgICAgICAgICAgIGNsczogJ3VrLWFjdGl2ZScsCiAgICAgICAgICAgIGNsc1BvczogJ3VrLXRvb2x0aXAnCiAgICAgICAgfSwKCiAgICAgICAgYmVmb3JlQ29ubmVjdDogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIHRoaXMuX2hhc1RpdGxlID0gaGFzQXR0cih0aGlzLiRlbCwgJ3RpdGxlJyk7CiAgICAgICAgICAgIGF0dHIodGhpcy4kZWwsIHt0aXRsZTogJycsICdhcmlhLWV4cGFuZGVkJzogZmFsc2V9KTsKICAgICAgICB9LAoKICAgICAgICBkaXNjb25uZWN0ZWQ6IGZ1bmN0aW9uKCkgewogICAgICAgICAgICB0aGlzLmhpZGUoKTsKICAgICAgICAgICAgYXR0cih0aGlzLiRlbCwge3RpdGxlOiB0aGlzLl9oYXNUaXRsZSA/IHRoaXMudGl0bGUgOiBudWxsLCAnYXJpYS1leHBhbmRlZCc6IG51bGx9KTsKICAgICAgICB9LAoKICAgICAgICBtZXRob2RzOiB7CgogICAgICAgICAgICBzaG93OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHZhciB0aGlzJDEgPSB0aGlzOwoKCiAgICAgICAgICAgICAgICBpZiAodGhpcy5pc0FjdGl2ZSgpIHx8ICF0aGlzLnRpdGxlKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIGFjdGl2ZXMuZm9yRWFjaChmdW5jdGlvbiAoYWN0aXZlKSB7IHJldHVybiBhY3RpdmUuaGlkZSgpOyB9KTsKICAgICAgICAgICAgICAgIGFjdGl2ZXMucHVzaCh0aGlzKTsKCiAgICAgICAgICAgICAgICB0aGlzLl91bmJpbmQgPSBvbihkb2N1bWVudCwgcG9pbnRlclVwLCBmdW5jdGlvbiAoZSkgeyByZXR1cm4gIXdpdGhpbihlLnRhcmdldCwgdGhpcyQxLiRlbCkgJiYgdGhpcyQxLmhpZGUoKTsgfSk7CgogICAgICAgICAgICAgICAgY2xlYXJUaW1lb3V0KHRoaXMuc2hvd1RpbWVyKTsKICAgICAgICAgICAgICAgIHRoaXMuc2hvd1RpbWVyID0gc2V0VGltZW91dChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcyQxLl9zaG93KCk7CiAgICAgICAgICAgICAgICAgICAgdGhpcyQxLmhpZGVUaW1lciA9IHNldEludGVydmFsKGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghaXNWaXNpYmxlKHRoaXMkMS4kZWwpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzJDEuaGlkZSgpOwogICAgICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgICAgIH0sIDE1MCk7CiAgICAgICAgICAgICAgICB9LCB0aGlzLmRlbGF5KTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGhpZGU6IGZ1bmN0aW9uKCkgewoKICAgICAgICAgICAgICAgIGlmICghdGhpcy5pc0FjdGl2ZSgpIHx8IG1hdGNoZXModGhpcy4kZWwsICdpbnB1dDpmb2N1cycpKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIGFjdGl2ZXMuc3BsaWNlKGFjdGl2ZXMuaW5kZXhPZih0aGlzKSwgMSk7CgogICAgICAgICAgICAgICAgY2xlYXJUaW1lb3V0KHRoaXMuc2hvd1RpbWVyKTsKICAgICAgICAgICAgICAgIGNsZWFySW50ZXJ2YWwodGhpcy5oaWRlVGltZXIpOwogICAgICAgICAgICAgICAgYXR0cih0aGlzLiRlbCwgJ2FyaWEtZXhwYW5kZWQnLCBmYWxzZSk7CiAgICAgICAgICAgICAgICB0aGlzLnRvZ2dsZUVsZW1lbnQodGhpcy50b29sdGlwLCBmYWxzZSk7CiAgICAgICAgICAgICAgICB0aGlzLnRvb2x0aXAgJiYgcmVtb3ZlKHRoaXMudG9vbHRpcCk7CiAgICAgICAgICAgICAgICB0aGlzLnRvb2x0aXAgPSBmYWxzZTsKICAgICAgICAgICAgICAgIHRoaXMuX3VuYmluZCgpOwoKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIF9zaG93OiBmdW5jdGlvbigpIHsKCiAgICAgICAgICAgICAgICB0aGlzLnRvb2x0aXAgPSBhcHBlbmQodGhpcy5jb250YWluZXIsCiAgICAgICAgICAgICAgICAgICAgKCI8ZGl2IGNsYXNzPVwiIiArICh0aGlzLmNsc1BvcykgKyAiXCIgYXJpYS1leHBhbmRlZD1cInRydWVcIiBhcmlhLWhpZGRlbj4gPGRpdiBjbGFzcz1cIiIgKyAodGhpcy5jbHNQb3MpICsgIi1pbm5lclwiPiIgKyAodGhpcy50aXRsZSkgKyAiPC9kaXY+IDwvZGl2PiIpCiAgICAgICAgICAgICAgICApOwoKICAgICAgICAgICAgICAgIHRoaXMucG9zaXRpb25BdCh0aGlzLnRvb2x0aXAsIHRoaXMuJGVsKTsKCiAgICAgICAgICAgICAgICB0aGlzLm9yaWdpbiA9IHRoaXMuZ2V0QXhpcygpID09PSAneScKICAgICAgICAgICAgICAgICAgICA/ICgoZmxpcFBvc2l0aW9uKHRoaXMuZGlyKSkgKyAiLSIgKyAodGhpcy5hbGlnbikpCiAgICAgICAgICAgICAgICAgICAgOiAoKHRoaXMuYWxpZ24pICsgIi0iICsgKGZsaXBQb3NpdGlvbih0aGlzLmRpcikpKTsKCiAgICAgICAgICAgICAgICB0aGlzLnRvZ2dsZUVsZW1lbnQodGhpcy50b29sdGlwLCB0cnVlKTsKCiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBpc0FjdGl2ZTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gaW5jbHVkZXMoYWN0aXZlcywgdGhpcyk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiAoIG9iaiQxID0gewoKICAgICAgICAgICAgZm9jdXM6ICdzaG93JywKICAgICAgICAgICAgYmx1cjogJ2hpZGUnCgogICAgICAgIH0sIG9iaiQxWyhwb2ludGVyRW50ZXIgKyAiICIgKyBwb2ludGVyTGVhdmUpXSA9IGZ1bmN0aW9uIChlKSB7CiAgICAgICAgICAgICAgICBpZiAoaXNUb3VjaChlKSkgewogICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGUudHlwZSA9PT0gcG9pbnRlckVudGVyCiAgICAgICAgICAgICAgICAgICAgPyB0aGlzLnNob3coKQogICAgICAgICAgICAgICAgICAgIDogdGhpcy5oaWRlKCk7CiAgICAgICAgICAgIH0sIG9iaiQxW3BvaW50ZXJEb3duXSA9IGZ1bmN0aW9uIChlKSB7CiAgICAgICAgICAgICAgICBpZiAoIWlzVG91Y2goZSkpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB0aGlzLmlzQWN0aXZlKCkKICAgICAgICAgICAgICAgICAgICA/IHRoaXMuaGlkZSgpCiAgICAgICAgICAgICAgICAgICAgOiB0aGlzLnNob3coKTsKICAgICAgICAgICAgfSwgb2JqJDEgKQoKICAgIH07CgogICAgdmFyIFVwbG9hZCA9IHsKCiAgICAgICAgcHJvcHM6IHsKICAgICAgICAgICAgYWxsb3c6IFN0cmluZywKICAgICAgICAgICAgY2xzRHJhZ292ZXI6IFN0cmluZywKICAgICAgICAgICAgY29uY3VycmVudDogTnVtYmVyLAogICAgICAgICAgICBtYXhTaXplOiBOdW1iZXIsCiAgICAgICAgICAgIG1ldGhvZDogU3RyaW5nLAogICAgICAgICAgICBtaW1lOiBTdHJpbmcsCiAgICAgICAgICAgIG1zZ0ludmFsaWRNaW1lOiBTdHJpbmcsCiAgICAgICAgICAgIG1zZ0ludmFsaWROYW1lOiBTdHJpbmcsCiAgICAgICAgICAgIG1zZ0ludmFsaWRTaXplOiBTdHJpbmcsCiAgICAgICAgICAgIG11bHRpcGxlOiBCb29sZWFuLAogICAgICAgICAgICBuYW1lOiBTdHJpbmcsCiAgICAgICAgICAgIHBhcmFtczogT2JqZWN0LAogICAgICAgICAgICB0eXBlOiBTdHJpbmcsCiAgICAgICAgICAgIHVybDogU3RyaW5nCiAgICAgICAgfSwKCiAgICAgICAgZGF0YTogewogICAgICAgICAgICBhbGxvdzogZmFsc2UsCiAgICAgICAgICAgIGNsc0RyYWdvdmVyOiAndWstZHJhZ292ZXInLAogICAgICAgICAgICBjb25jdXJyZW50OiAxLAogICAgICAgICAgICBtYXhTaXplOiAwLAogICAgICAgICAgICBtZXRob2Q6ICdQT1NUJywKICAgICAgICAgICAgbWltZTogZmFsc2UsCiAgICAgICAgICAgIG1zZ0ludmFsaWRNaW1lOiAnSW52YWxpZCBGaWxlIFR5cGU6ICVzJywKICAgICAgICAgICAgbXNnSW52YWxpZE5hbWU6ICdJbnZhbGlkIEZpbGUgTmFtZTogJXMnLAogICAgICAgICAgICBtc2dJbnZhbGlkU2l6ZTogJ0ludmFsaWQgRmlsZSBTaXplOiAlcyBLaWxvYnl0ZXMgTWF4JywKICAgICAgICAgICAgbXVsdGlwbGU6IGZhbHNlLAogICAgICAgICAgICBuYW1lOiAnZmlsZXNbXScsCiAgICAgICAgICAgIHBhcmFtczoge30sCiAgICAgICAgICAgIHR5cGU6ICcnLAogICAgICAgICAgICB1cmw6ICcnLAogICAgICAgICAgICBhYm9ydDogbm9vcCwKICAgICAgICAgICAgYmVmb3JlQWxsOiBub29wLAogICAgICAgICAgICBiZWZvcmVTZW5kOiBub29wLAogICAgICAgICAgICBjb21wbGV0ZTogbm9vcCwKICAgICAgICAgICAgY29tcGxldGVBbGw6IG5vb3AsCiAgICAgICAgICAgIGVycm9yOiBub29wLAogICAgICAgICAgICBmYWlsOiBub29wLAogICAgICAgICAgICBsb2FkOiBub29wLAogICAgICAgICAgICBsb2FkRW5kOiBub29wLAogICAgICAgICAgICBsb2FkU3RhcnQ6IG5vb3AsCiAgICAgICAgICAgIHByb2dyZXNzOiBub29wCiAgICAgICAgfSwKCiAgICAgICAgZXZlbnRzOiB7CgogICAgICAgICAgICBjaGFuZ2U6IGZ1bmN0aW9uKGUpIHsKCiAgICAgICAgICAgICAgICBpZiAoIW1hdGNoZXMoZS50YXJnZXQsICdpbnB1dFt0eXBlPSJmaWxlIl0nKSkgewogICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7CgogICAgICAgICAgICAgICAgaWYgKGUudGFyZ2V0LmZpbGVzKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcy51cGxvYWQoZS50YXJnZXQuZmlsZXMpOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIGUudGFyZ2V0LnZhbHVlID0gJyc7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBkcm9wOiBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgICAgICBzdG9wKGUpOwoKICAgICAgICAgICAgICAgIHZhciB0cmFuc2ZlciA9IGUuZGF0YVRyYW5zZmVyOwoKICAgICAgICAgICAgICAgIGlmICghdHJhbnNmZXIgfHwgIXRyYW5zZmVyLmZpbGVzKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzKHRoaXMuJGVsLCB0aGlzLmNsc0RyYWdvdmVyKTsKCiAgICAgICAgICAgICAgICB0aGlzLnVwbG9hZCh0cmFuc2Zlci5maWxlcyk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBkcmFnZW50ZXI6IGZ1bmN0aW9uKGUpIHsKICAgICAgICAgICAgICAgIHN0b3AoZSk7CiAgICAgICAgICAgIH0sCgogICAgICAgICAgICBkcmFnb3ZlcjogZnVuY3Rpb24oZSkgewogICAgICAgICAgICAgICAgc3RvcChlKTsKICAgICAgICAgICAgICAgIGFkZENsYXNzKHRoaXMuJGVsLCB0aGlzLmNsc0RyYWdvdmVyKTsKICAgICAgICAgICAgfSwKCiAgICAgICAgICAgIGRyYWdsZWF2ZTogZnVuY3Rpb24oZSkgewogICAgICAgICAgICAgICAgc3RvcChlKTsKICAgICAgICAgICAgICAgIHJlbW92ZUNsYXNzKHRoaXMuJGVsLCB0aGlzLmNsc0RyYWdvdmVyKTsKICAgICAgICAgICAgfQoKICAgICAgICB9LAoKICAgICAgICBtZXRob2RzOiB7CgogICAgICAgICAgICB1cGxvYWQ6IGZ1bmN0aW9uKGZpbGVzKSB7CiAgICAgICAgICAgICAgICB2YXIgdGhpcyQxID0gdGhpczsKCgogICAgICAgICAgICAgICAgaWYgKCFmaWxlcy5sZW5ndGgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgdHJpZ2dlcih0aGlzLiRlbCwgJ3VwbG9hZCcsIFtmaWxlc10pOwoKICAgICAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZmlsZXMubGVuZ3RoOyBpKyspIHsKCiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMubWF4U2l6ZSAmJiB0aGlzLm1heFNpemUgKiAxMDAwIDwgZmlsZXNbaV0uc2l6ZSkgewogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmZhaWwodGhpcy5tc2dJbnZhbGlkU2l6ZS5yZXBsYWNlKCclcycsIHRoaXMubWF4U2l6ZSkpOwogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5hbGxvdyAmJiAhbWF0Y2gkMSh0aGlzLmFsbG93LCBmaWxlc1tpXS5uYW1lKSkgewogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmZhaWwodGhpcy5tc2dJbnZhbGlkTmFtZS5yZXBsYWNlKCclcycsIHRoaXMuYWxsb3cpKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMubWltZSAmJiAhbWF0Y2gkMSh0aGlzLm1pbWUsIGZpbGVzW2ldLnR5cGUpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZmFpbCh0aGlzLm1zZ0ludmFsaWRNaW1lLnJlcGxhY2UoJyVzJywgdGhpcy5taW1lKSk7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIGlmICghdGhpcy5tdWx0aXBsZSkgewogICAgICAgICAgICAgICAgICAgIGZpbGVzID0gW2ZpbGVzWzBdXTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB0aGlzLmJlZm9yZUFsbCh0aGlzLCBmaWxlcyk7CgogICAgICAgICAgICAgICAgdmFyIGNodW5rcyA9IGNodW5rKGZpbGVzLCB0aGlzLmNvbmN1cnJlbnQpOwogICAgICAgICAgICAgICAgdmFyIHVwbG9hZCA9IGZ1bmN0aW9uIChmaWxlcykgewoKICAgICAgICAgICAgICAgICAgICB2YXIgZGF0YSA9IG5ldyBGb3JtRGF0YSgpOwoKICAgICAgICAgICAgICAgICAgICBmaWxlcy5mb3JFYWNoKGZ1bmN0aW9uIChmaWxlKSB7IHJldHVybiBkYXRhLmFwcGVuZCh0aGlzJDEubmFtZSwgZmlsZSk7IH0pOwoKICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gdGhpcyQxLnBhcmFtcykgewogICAgICAgICAgICAgICAgICAgICAgICBkYXRhLmFwcGVuZChrZXksIHRoaXMkMS5wYXJhbXNba2V5XSk7CiAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICBhamF4KHRoaXMkMS51cmwsIHsKICAgICAgICAgICAgICAgICAgICAgICAgZGF0YTogZGF0YSwKICAgICAgICAgICAgICAgICAgICAgICAgbWV0aG9kOiB0aGlzJDEubWV0aG9kLAogICAgICAgICAgICAgICAgICAgICAgICByZXNwb25zZVR5cGU6IHRoaXMkMS50eXBlLAogICAgICAgICAgICAgICAgICAgICAgICBiZWZvcmVTZW5kOiBmdW5jdGlvbiAoZW52KSB7CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHhociA9IGVudi54aHI7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB4aHIudXBsb2FkICYmIG9uKHhoci51cGxvYWQsICdwcm9ncmVzcycsIHRoaXMkMS5wcm9ncmVzcyk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbJ2xvYWRTdGFydCcsICdsb2FkJywgJ2xvYWRFbmQnLCAnYWJvcnQnXS5mb3JFYWNoKGZ1bmN0aW9uICh0eXBlKSB7IHJldHVybiBvbih4aHIsIHR5cGUudG9Mb3dlckNhc2UoKSwgdGhpcyQxW3R5cGVdKTsgfQogICAgICAgICAgICAgICAgICAgICAgICAgICAgKTsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzJDEuYmVmb3JlU2VuZChlbnYpOwoKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIH0pLnRoZW4oCiAgICAgICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uICh4aHIpIHsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzJDEuY29tcGxldGUoeGhyKTsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoY2h1bmtzLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVwbG9hZChjaHVua3Muc2hpZnQoKSk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMkMS5jb21wbGV0ZUFsbCh4aHIpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgICAgICAgICAgZnVuY3Rpb24gKGUpIHsgcmV0dXJuIHRoaXMkMS5lcnJvcihlKTsgfQogICAgICAgICAgICAgICAgICAgICk7CgogICAgICAgICAgICAgICAgfTsKCiAgICAgICAgICAgICAgICB1cGxvYWQoY2h1bmtzLnNoaWZ0KCkpOwoKICAgICAgICAgICAgfQoKICAgICAgICB9CgogICAgfTsKCiAgICBmdW5jdGlvbiBtYXRjaCQxKHBhdHRlcm4sIHBhdGgpIHsKICAgICAgICByZXR1cm4gcGF0aC5tYXRjaChuZXcgUmVnRXhwKCgiXiIgKyAocGF0dGVybi5yZXBsYWNlKC9cLy9nLCAnXFwvJykucmVwbGFjZSgvXCpcKi9nLCAnKFxcL1teXFwvXSspKicpLnJlcGxhY2UoL1wqL2csICdbXlxcL10rJykucmVwbGFjZSgvKCg/IVxcKSlcPy9nLCAnJDEuJykpICsgIiQiKSwgJ2knKSk7CiAgICB9CgogICAgZnVuY3Rpb24gY2h1bmsoZmlsZXMsIHNpemUpIHsKICAgICAgICB2YXIgY2h1bmtzID0gW107CiAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBmaWxlcy5sZW5ndGg7IGkgKz0gc2l6ZSkgewogICAgICAgICAgICB2YXIgY2h1bmsgPSBbXTsKICAgICAgICAgICAgZm9yICh2YXIgaiA9IDA7IGogPCBzaXplOyBqKyspIHsKICAgICAgICAgICAgICAgIGNodW5rLnB1c2goZmlsZXNbaSArIGpdKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBjaHVua3MucHVzaChjaHVuayk7CiAgICAgICAgfQogICAgICAgIHJldHVybiBjaHVua3M7CiAgICB9CgogICAgZnVuY3Rpb24gc3RvcChlKSB7CiAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpOwogICAgICAgIGUuc3RvcFByb3BhZ2F0aW9uKCk7CiAgICB9CgogICAgVUlraXQuY29tcG9uZW50KCdjb3VudGRvd24nLCBDb3VudGRvd24pOwogICAgVUlraXQuY29tcG9uZW50KCdmaWx0ZXInLCBGaWx0ZXIpOwogICAgVUlraXQuY29tcG9uZW50KCdsaWdodGJveCcsIExpZ2h0Ym94KTsKICAgIFVJa2l0LmNvbXBvbmVudCgnbGlnaHR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9uZW50KCJpbWciLExpKSxwci5jb21wb25lbnQoImxlYWRlciIsSmkpLHByLmNvbXBvbmVudCgibWFyZ2luIixtaSkscHIuY29tcG9uZW50KCJtb2RhbCIsbnIpLHByLmNvbXBvbmVudCgibmF2IixpcikscHIuY29tcG9uZW50KCJuYXZiYXIiLHJyKSxwci5jb21wb25lbnQoIm9mZmNhbnZhcyIsb3IpLHByLmNvbXBvbmVudCgib3ZlcmZsb3dBdXRvIixhcikscHIuY29tcG9uZW50KCJyZXNwb25zaXZlIixocikscHIuY29tcG9uZW50KCJzY3JvbGwiLGNyKSxwci5jb21wb25lbnQoInNjcm9sbHNweSIsdXIpLHByLmNvbXBvbmVudCgic2Nyb2xsc3B5TmF2IixscikscHIuY29tcG9uZW50KCJzdGlja3kiLGRyKSxwci5jb21wb25lbnQoInN2ZyIsU2kpLHByLmNvbXBvbmVudCgic3dpdGNoZXIiLG1yKSxwci5jb21wb25lbnQoInRhYiIsZ3IpLHByLmNvbXBvbmVudCgidG9nZ2xlIix2cikscHIuY29tcG9uZW50KCJ2aWRlbyIsYWkpLHByLmNvbXBvbmVudCgiY2xvc2UiLFBpKSxwci5jb21wb25lbnQoIm1hcmtlciIsRGkpLHByLmNvbXBvbmVudCgibmF2YmFyVG9nZ2xlSWNvbiIsRGkpLHByLmNvbXBvbmVudCgib3ZlcmxheUljb24iLERpKSxwci5jb21wb25lbnQoInBhZ2luYXRpb25OZXh0IixEaSkscHIuY29tcG9uZW50KCJwYWdpbmF0aW9uUHJldmlvdXMiLERpKSxwci5jb21wb25lbnQoInNlYXJjaEljb24iLEJpKSxwci5jb21wb25lbnQoInNsaWRlbmF2TmV4dCIsemkpLHByLmNvbXBvbmVudCgic2xpZGVuYXZQcmV2aW91cyIsemkpLHByLmNvbXBvbmVudCgic3Bpbm5lciIsSGkpLHByLmNvbXBvbmVudCgidG90b3AiLERpKSxwci51c2Uob2kpO3ZhciB3cj17bWl4aW5zOltlaV0scHJvcHM6e2RhdGU6U3RyaW5nL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yIGU9dC50YXJnZXQsbj10LmF0dHJpYnV0ZU5hbWU7aWYoImhyZWYiPT09bilyZXR1cm4hMDt2YXIgaT1IbihuKTtpZighKGkmJmkgaW4gcG8pKXJldHVybjtpZihydChlLG4pKXJldHVybiBwb1tpXShlKSwhMDt2YXIgcj1wby5nZXRDb21wb25lbnQoZSxpKTtpZihyKXJldHVybiByLiRkZXN0cm95KCksITB9KHQpKSYmcG8udXBkYXRlKGUpfWZ1bmN0aW9uIElvKHQsZSl7aWYoMT09PXQubm9kZVR5cGUmJiFydCh0LCJ1ay1uby1ib290IikpZm9yKGUodCksdD10LmZpcnN0RWxlbWVudENoaWxkO3Q7KXt2YXIgbj10Lm5leHRFbGVtZW50U2libGluZztJbyh0LGUpLHQ9bn19cmV0dXJuIExuLmNvbXBvbmVudCgiY291bnRkb3duIix3ciksTG4uY29tcG9uZW50KCJmaWx0ZXIiLFNyKSxMbi5jb21wb25lbnQoImxpZ2h0Ym94IixGciksTG4uY29tcG9uZW50KCJsaWdodGJveFBhbmVsIixQciksTG4uY29tcG9uZW50KCJub3RpZmljYXRpb24iLFZyKSxMbi5jb21wb25lbnQoInBhcmFsbGF4IixVciksTG4uY29tcG9uZW50KCJzbGlkZXIiLG5vKSxMbi5jb21wb25lbnQoInNsaWRlclBhcmFsbGF4IixpbyksTG4uY29tcG9uZW50KCJzbGlkZXNob3ciLGhvKSxMbi5jb21wb25lbnQoInNsaWRlc2hvd1BhcmFsbGF4IixpbyksTG4uY29tcG9uZW50KCJzb3J0YWJsZSIsY28pLExuLmNvbXBvbmVudCgidG9vbHRpcCIsd28pLExuLmNvbXBvbmVudCgidXBsb2FkIixibyksbW89KHBvPUxuKS5jb25uZWN0LGdvPXBvLmRpc2Nvbm5lY3QsIk11dGF0aW9uT2JzZXJ2ZXIiaW4gd2luZG93JiYoZG9jdW1lbnQuYm9keT9rbi5yZWFkKGtvKTpuZXcgTXV0YXRpb25PYnNlcnZlcihmdW5jdGlvbigpe2RvY3VtZW50LmJv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N0aW9uKCkgewogICAgICAgIHNlbGYu0YHQvtGF0YDQsNC90LjRgtGM0JLRi9Cx0YDQsNC90L3Ri9C50JzQvtC00YPQu9GMKCk7CiAgICAgICAgc2VsZi7RgdC+0YXRgNCw0L3QuNGC0YzQktGB0ZEoKTsKICAgIH07CiAgICAKICAgIHRoaXMu0YHQutCw0YfQsNGC0YwgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgi0YHRgNC10LTQsC3RgdC60LDRh9Cw0YLRjCIpOwogICAgdGhpcy7RgdC60LDRh9Cw0YLRjC5vbmNsaWNrID0gZnVuY3Rpb24oKSB7CiAgICAgICAgc2VsZi7RgdC60LDRh9Cw0YLRjNCk0LDQudC7KCk7CiAgICB9Owp9OwoKLy8g0KPRgdGC0LDQvdC+0LLQutCwCi8vIEluc3RhbGxhdGlvbgppZiAod2luZG93LmxvY2F0aW9uLnNlYXJjaCA9PSAiPzAiKQp7CiAgICBuZXcg0KHRgNC10LTQsCgpOwp9", {"status":true} ], @@ -90,7 +125,7 @@ var murom = муром; [ "муром.оповещения_1.0.0", "LyoKICoKICog0J/QtdGA0LXQvdCw0L/RgNCw0LLQu9C10L3QuNC1INGD0LLQtdC00L7QvNC70LXQvdC40Lkg0LjQtyBDKysg0LIgSlMKICoKICovCtC80YPRgNC+0Lwu0LzQuNGA0JPQvtGC0L7QsiA9IG5ldyDQo9Cy0LXQtNC+0LzQuNGC0LXQu9GMKCk7CgpmdW5jdGlvbiBNaXIoKSB7IH0Kd2luZG93Lm1pciA9IG5ldyBNaXIoKTsKTWlyLnByb3RvdHlwZS5nb3RvdiA9IGZ1bmN0aW9uKCkKewogICAg0LzRg9GA0L7QvC7QvNC40YDQk9C+0YLQvtCyLtGD0LLQtdC00L7QvNC40YLRjCgpOwp9Ck1pci5wcm90b3R5cGUuaXpyZWsgPSBmdW5jdGlvbihrZXkpCnsKICAgIGlmIChrZXkgPT0gIm1vdXNlLnBvc2l0aW9uIikKICAgIHsKICAgICAgICBtdXJvbS5tb3VzZS5wb3NpdGlvbkNoYW5nZWQucmVwb3J0KCk7CiAgICAgICAgcmV0dXJuOwogICAgfQogICAgaWYgKGtleSA9PSAibW91c2UucHJlc3NlZEJ1dHRvbnMiKQogICAgewogICAgICAgIG11cm9tLm1vdXNlLnByZXNzZWRCdXR0b25zQ2hhbmdlZC5yZXBvcnQoKTsKICAgICAgICByZXR1cm47CiAgICB9CiAgICBpZiAoa2V5ID09ICJ3aW5kb3cuc2l6ZSIpCiAgICB7CiAgICAgICAgbXVyb20ud2luZG93LnNpemVDaGFuZ2VkLnJlcG9ydCgpOwogICAgICAgIHJldHVybjsKICAgIH0KfQ==", -{} +{"status":true} ], @@ -115,45 +150,59 @@ var murom = муром; ], +[ +"муром.редактор.шрифт-22", +"ZnVuY3Rpb24g0LfQsNC00LDRgtGM0KDQsNC30LzQtdGA0KjRgNC40YTRgtCw0KDQtdC00LDQutGC0L7RgNGDKCkKewogICAgaWYgKNC80YPRgNC+0Lwu0YDQtdC00LDQutGC0L7RgCkKICAgIHsKICAgICAgICDQvNGD0YDQvtC8LtGA0LXQtNCw0LrRgtC+0YAuc2V0Rm9udFNpemUoIjIycHgiKTsKICAgIH0KfQoK0LrQvtCz0LTQsCjQvNGD0YDQvtC8LtC/0YPRgdC6LCDQt9Cw0LTQsNGC0YzQoNCw0LfQvNC10YDQqNGA0LjRhNGC0LDQoNC10LTQsNC60YLQvtGA0YMpOw==", +{"status":true} +], + + [ "режим", -"Ly8KLy8g0J7Qn9Cg0JXQlNCV0JvQldCd0JjQlSDQoNCV0JbQmNCc0JAKLy8gTU9ERSBJREVOVElGSUNBVElPTgovLwoK0LzRg9GA0L7QvC7RgNC10LbQuNC80J/RgNC+0YHQvNC+0YLRgNCwID0gbmV3INCj0LLQtdC00L7QvNC40YLQtdC70YwoKTsKT2JqZWN0LmRlZmluZVByb3BlcnR5KG11cm9tLCAibW9kZVByZXZpZXciLCB7CiAgICBnZXQ6IGZ1bmN0aW9uKCkKICAgIHsKICAgICAgICByZXR1cm4g0LzRg9GA0L7QvC7RgNC10LbQuNC80J/RgNC+0YHQvNC+0YLRgNCwOwogICAgfQp9KTsK0LzRg9GA0L7QvC7RgNC10LbQuNC80KDQtdC00LDQutGC0L7RgNCwID0gbmV3INCj0LLQtdC00L7QvNC40YLQtdC70YwoKTsKT2JqZWN0LmRlZmluZVByb3BlcnR5KG11cm9tLCAibW9kZUVkaXRvciIsIHsKICAgIGdldDogZnVuY3Rpb24oKQogICAgewogICAgICAgIHJldHVybiDQvNGD0YDQvtC8LtGA0LXQttC40LzQoNC10LTQsNC60YLQvtGA0LA7CiAgICB9Cn0pOwoKZnVuY3Rpb24g0L7Qv9GA0LXQtNC10LvQuNGC0YzQoNC10LbQuNC8KCkKewogICAgLy8g0KDQtdC20LjQvCDQtNC70Y8g0LLQtdGA0YHQuNC5IDEuMC54INC4IDEuMS54LgogICAgaWYgKCJtb2RlIiBpbiDQvNGD0YDQvtC8LtCw0YDQs9GD0LzQtdC90YLRiykKICAgIHsKICAgICAgICB2YXIg0LfQvdCw0YfQtdC90LjQtSA9INC80YPRgNC+0Lwu0LDRgNCz0YPQvNC10L3RgtGLWyJtb2RlIl07CiAgICAgICAgaWYgKNC30L3QsNGH0LXQvdC40LUgPT0gInByZXZpZXciKQogICAgICAgIHsKICAgICAgICAgICAg0LzRg9GA0L7QvC7RgNC10LbQuNC80J/RgNC+0YHQvNC+0YLRgNCwLtGD0LLQtdC00L7QvNC40YLRjCgpOwogICAgICAgIH0KICAgICAgICBlbHNlCiAgICAgICAgewogICAgICAgICAgICDQvNGD0YDQvtC8LtGA0LXQttC40LzQoNC10LTQsNC60YLQvtGA0LAu0YPQstC10LTQvtC80LjRgtGMKCk7CiAgICAgICAgfQogICAgfQogICAgLy8g0KDQtdC20LjQvCDQv9GA0L7RgdC80L7RgtGA0LAg0LTQu9GPINCy0LXRgNGB0LjQuSAxLjIueC4KICAgIGVsc2UgaWYgKAogICAgICAgICgi0L/RgNC+0YHQvNC+0YLRgCI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C30LjRgtGM0KDQtdC30YPQu9GM0YLQsNGC0JLQvtCS0LXRgdGM0K3QutGA0LDQvTsKfQoKLy8g0KPRgdGC0LDQvdC+0LLQutCwCi8vIEluc3RhbGxhdGlvbiAKCmlmICh3aW5kb3cubG9jYXRpb24uc2VhcmNoID09ICI/MCIpCnsKICAgINGB0L7Qt9C00LDRgtGM0J/RgNC+0YHQvNC+0YLRgNCU0LvRj9Cg0LXQtNCw0LrRgtC+0YDQsCgpOwp9CmVsc2UKewogICAg0YHQvtC30LTQsNGC0YzQrdC60YDQsNC90J/RgNC+0YHQvNC+0YLRgNCwKCk7Cn0=", {"status":true} ], [ -"муром.редактор.шрифт-22", -"ZnVuY3Rpb24g0LfQsNC00LDRgtGM0KDQsNC30LzQtdGA0KjRgNC40YTRgtCw0KDQtdC00LDQutGC0L7RgNGDKCkKewogICAgaWYgKNC80YPRgNC+0Lwu0YDQtdC00LDQutGC0L7RgCkKICAgIHsKICAgICAgICDQvNGD0YDQvtC8LtGA0LXQtNCw0LrRgtC+0YAuc2V0Rm9udFNpemUoIjIycHgiKTsKICAgIH0KfQoK0L/RgNC4KNC80YPRgNC+0Lwu0L/Rg9GB0LosINC30LDQtNCw0YLRjNCg0LDQt9C80LXRgNCo0YDQuNGE0YLQsNCg0LXQtNCw0LrRgtC+0YDRgyk7", -{} +"СобытияРеакции_1.0.0", +"ZnVuY3Rpb24g0KHQvtCx0YvRgtC40Y/QoNC10LDQutGG0LjQuCgpIHsgfQoKLyoKICoKICog0KDQsNC30L7QsdGA0LDRgtGMINGB0L7QsdGL0YLQuNGPINC4INGA0LXQsNC60YbQuNC4LCDQstGL0YDQsNC20LXQvdC90YvQtSDQsiDRgtC10LrRgdGC0LUKICogUGFyc2UgZXZlbnRzIGFuZCByZWFjdGlvbnMgcmVwcmVzZW50ZWQgYXMgdGV4dAogKgogKi8K0KHQvtCx0YvRgtC40Y/QoNC10LDQutGG0LjQuC5wcm90b3R5cGUu0YDQsNC30L7QsdGA0LDRgtGMID0gZnVuY3Rpb24o0LzQuNGALCDRgtC10LrRgdGC0J/QvtGB0LvQtdC00L7QstCw0YLQtdC70YzQvdC+0YHRgtC4KQp7CiAgICB2YXIg0YHQvtC+0YLQstC10YLRgdGC0LLQuNGPID0gdGhpcy7RgdC+0LHRi9GC0LjRj9Cg0LXQsNC60YbQuNC4KNGC0LXQutGB0YLQn9C+0YHQu9C10LTQvtCy0LDRgtC10LvRjNC90L7RgdGC0LgpOwogICAgZm9yICh2YXIg0YHQvtCx0YvRgtC40LUgaW4g0YHQvtC+0YLQstC10YLRgdGC0LLQuNGPKQogICAgewogICAgICAgIC8vY29uc29sZS5sb2coItCh0L7Qt9C00LDQvdC40LUg0YHQvtCx0YvRgtC40Y86ICciICsg0YHQvtCx0YvRgtC40LUgKyAiJyIpOwogICAgICAgINC80LjRgC7RgdC+0LHRi9GC0LjRj1vRgdC+0LHRi9GC0LjQtV0gPSBuZXcg0KPQstC10LTQvtC80LjRgtC10LvRjCgpOwogICAgICAgIHZhciDRgNC10LDQutGG0LjQuCA9INGB0L7QvtGC0LLQtdGC0YHRgtCy0LjRj1vRgdC+0LHRi9GC0LjQtV07CiAgICAgICAgZm9yICh2YXIg0L3QvtC80LXRgCBpbiDRgNC10LDQutGG0LjQuCkKICAgICAgICB7CiAgICAgICAgICAgIHZhciDRgNC10LDQutGG0LjRjyA9INGA0LXQsNC60YbQuNC4W9C90L7QvNC10YBdOwogICAgICAgICAgICAvL2NvbnNvbGUubG9nKCLQodC+0LfQtNCw0L3QuNC1INGA0LXQsNC60YbQuNC4OiAnIiArINGA0LXQsNC60YbQuNGPICsgIiciKTsKICAgICAgICAgICAgdmFyINC60LvQsNGB0YEgPSBldmFsKNGA0LXQsNC60YbQuNGPKTsKICAgICAgICAgICAgY29uc3Qg0Y3QutC30LXQvNC/0LvRj9GAID0gbmV3INC60LvQsNGB0YEo0LzQuNGAKTsKICAgICAgICAgICAg0LzQuNGALtGB0L7QsdGL0YLQuNGPW9GB0L7QsdGL0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gICBjb250aW51ZTsKICAgICAgICB9CiAgICAgICAgdmFyINC40LzRjyA9INGN0LvQtdC80LXQvdGCLnRyaW0oKTsKICAgICAgICAvLyDQodC+0LHRi9GC0LjQtS4KICAgICAgICBpZiAo0LjQvNGPID09INGN0LvQtdC80LXQvdGCKQogICAgICAgIHsKICAgICAgICAgICAgaWYgKCEo0LjQvNGPIGluINGB0L7QvtGC0LLQtdGC0YHRgtCy0LjQtSkpCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgINC40LzRj9Ch0L7QsdGL0YLQuNGPID0g0LjQvNGPOwogICAgICAgICAgICAgICAg0YHQvtC+0YLQstC10YLRgdGC0LLQuNC1W9C40LzRj10gPSBbXTsKICAgICAgICAgICAgfQogICAgICAgICAgICBlbHNlCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIGNvbnNvbGUud2Fybigi0J/QvtCy0YLQvtGA0L3QviDQvtCx0L3QsNGA0YPQttC10L3QviDRgdC+0LHRi9GC0LjQtSAnIiArINC40LzRjyArICInIik7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgLy8g0KDQtdCw0LrRhtC40Y8uCiAgICAgICAgZWxzZQogICAgICAgIHsKICAgICAgICAgICAgdmFyINC90LDQt9Cy0LDQvdC40LUgPSB0aGlzLtC40LzRj9Ck0YPQvdC60YbQuNC40JjQt9Cg0LXQsNC60YbQuNC4KNC40LzRjyk7CiAgICAgICAgICAgINGB0L7QvtGC0LLQtdGC0YHRgtCy0LjQtVvQuNC80Y/QodC+0LHRi9GC0LjRj10ucHVzaCjQvdCw0LfQstCw0L3QuNC1KTsKICAgICAgICB9CiAgICB9CiAgICAKICAgIHJldHVybiDRgdC+0L7RgtCy0LXRgtGB0YLQstC40LU7Cn07CgovKgogKgogKiDQktCd0KPQotCg0JXQndCd0JXQlQogKiDQn9GA0LXQvtCx0YDQsNC30L7QstCw0YLRjCDQuNC80Y8g0YDQtdCw0LrRhtC40Lgg0LIg0L3QsNC30LLQsNC90LjQtSDRhNGD0L3QutGG0LjQuAogKiBJTlRFUk5BTAogKiBDb252ZXJ0IHJlYWN0aW9uIG5hbWUgdG8gZnVuY3Rpb24gbmFtZQogKgogKi8K0KHQvtCx0YvRgtC40Y/QoNC10LDQutGG0LjQuC5wcm90b3R5cGUu0LjQvNGP0KTRg9C90LrRhtC40LjQmNC30KDQtdCw0LrRhtC40LggPSBmdW5jdGlvbijRgNC10LDQutGG0LjRjykKewogICAgdmFyINC40LzRjyA9ICIiOwogICAgCiAgICB2YXIg0YfQsNGB0YLQuCA9INGA0LXQsNC60YbQuNGPLnNwbGl0KCIgIik7CiAgICBmb3IgKHZhciDQvdC+0LzQtdGAIGluINGH0LDRgdGC0LgpCiAgICB7CiAgICAgICAgdmFyINGH0LDRgdGC0YwgPSDRh9Cw0YHRgtC4W9C90L7QvNC10YBdOwogICAgICAgINC40LzRjyArPSDRh9Cw0YHRgtGMLmNoYXJBdCgwKS50b1VwcGVyQ2FzZSgpICsg0YfQsNGB0YLRjC5zbGljZSgxKTsKICAgIH0KICAgIAogICAgcmV0dXJuINC40LzRjzsKfTs=", +{"status":true} ], [ -"мж.иср.функции", -"LyoKICoKICog0JTQvtCx0LDQstC40YLRjCDRjdC60YDQsNC9INGBINC/0YDQtdC00L7RgdGC0LDQstC70LXQvdC90YvQvNC4IEhUTUwg0LggQ1NTCiAqIEFkZCBhIHNjcmVlbiB3aXRoIHByb3ZpZGVkIEhUTUwgYW5kIENTUwogKgogKi8KZnVuY3Rpb24g0LTQvtCx0LDQstC40YLRjNCt0LrRgNCw0L0o0LjQvNGPLCBodG1sLCBjc3MpCnsKICAgIHZhciDRjdC60YDQsNC9ID0g0YHQvtC30LTQsNGC0YzQrdC60YDQsNC9KNC40LzRjyk7CiAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKNGN0LrRgNCw0L0pOwogICAg0Y3QutGA0LDQvS5pbm5lckhUTUwgPSBodG1sOwoKICAgIHZhciDQstC40LQgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJzdHlsZSIpOwogICAgZG9jdW1lbnQuaGVhZC5hcHBlbmRDaGlsZCjQstC40LQpOwogICAg0LLQuNC0LmlubmVySFRNTCA9IGNzczsKCiAgICByZXR1cm4g0Y3QutGA0LDQvTsKfQp2YXIgYWRkU2NyZWVuID0g0LTQvtCx0LDQstC40YLRjNCt0LrRgNCw0L07CgovKgogKgogKiDQn9C+0LvRg9GH0LjRgtGMINGN0LvQtdC80LXQvdGCIEhUTUwg0L/QviBpZAogKiBHZXQgSFRNTCBlbGVtZW50IGJ5IGlkCiAqCiAqLwpmdW5jdGlvbiDRjdC7KGlkKQp7CiAgICByZXR1cm4gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoaWQpOwp9CnZhciBlbCA9INGN0Ls7", -{} +"СписокРаскладок_1.0.0", +"ZnVuY3Rpb24g0KHQv9C40YHQvtC60KDQsNGB0LrQu9Cw0LTQvtC6KNC40LzRjykKewogICAgdGhpcy7Qt9Cw0LTQsNGC0YwgPSBmdW5jdGlvbijRjdC70LXQvNC10L3RgtGLKQogICAgewogICAgICAgIGZvciAodmFyINC90L7QvNC10YAgaW4g0Y3Qu9C10LzQtdC90YLRiykKICAgICAgICB7CiAgICAgICAgICAgIHZhciDRjSA9INGN0LvQtdC80LXQvdGC0Ytb0L3QvtC80LXRgF07CiAgICAgICAgICAgIHRoaXMu0LTQvtCx0LDQstC40YLRjCjRjVswXSwg0Y1bMV0pOwogICAgICAgIH0KICAgIH07CiAgICB0aGlzLtC00L7QsdCw0LLQuNGC0YwgPSBmdW5jdGlvbijQuNC80Y8sINC+0L/QuNGB0LDQvdC40LUpCiAgICB7CiAgICAgICAgdmFyINC90L7QvNC10YAgPSB0aGlzLtC60L7Qu9Cy0L47CiAgICAgICAgdmFyIGh0bWwgPQpgCjxkaXYgY2xhc3M9InVrLWNhcmQgdWstY2FyZC1kZWZhdWx0IHVrLWNhcmQtaG92ZXIgdWstY2FyZC1ib2R5IiBkYXRhLWlk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CnsKICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgIGJvdHRvbTogMWVtOwogICAgbGVmdDogMWVtOwp9CmA7CiAgICAgICAg0LTQvtCx0LDQstC40YLRjNCt0LrRgNCw0L0oItC+0YHQvdC+0LLQvdC+0LkiLCBodG1sLCBjc3MpOwogICAgICAgIHZhciBzZWxmID0gdGhpczsKICAgICAgICAkKCIj0L7RgdC90L7QstC90L7QuS3RgNCw0YHQutC70LDQtNC60LgiKS5jbGljayhmdW5jdGlvbihlKSB7CiAgICAgICAgICAgIHNlbGYu0LzQuNGALtGB0L7QsdGL0YLQuNGPWyLQv9C10YDQtdC60LvRjtGH0LjRgtGMINGA0LDRgdC60LvQsNC00LrQuCJdLtGD0LLQtdC00L7QvNC40YLRjCgpOwogICAgICAgIH0pOwogICAgfTsKfQoKLy8gLy8gLy8gLy8KCmZ1bmN0aW9uINCS0YvQstC10YHRgtC40J/RgNC+0YHRgtC+0KLQtdC60YHRgijQvNC40YApCnsKICAgIHRoaXMu0LjRgdC/0L7Qu9C90LjRgtGMID0gZnVuY3Rpb24oKQogICAgewogICAgICAgIGNvbnNvbGUubG9nKCLQn9GA0L7RgdGC0L4g0YLQtdC60YHRgiIsIG5ldyBEYXRlKCkpOwogICAgfTsKfQ==", +{"status":true} ], [ -"мж.иср.экран.основной", -"dmFyINC/0L7QutCw0LfQsNGC0YzQndCw0YHRgtGA0L7QudC60LggPSBuZXcg0KPQstC10LTQvtC80LjRgtC10LvRjCgpOwp2YXIgc2hvd1NldHRpbmdzID0g0L/QvtC60LDQt9Cw0YLRjNCd0LDRgdGC0YDQvtC50LrQuDsKCmZ1bmN0aW9uINGB0L7Qt9C00LDRgtGM0K3QutGA0LDQvdCe0YHQvdC+0LLQvdC+0LkoKQp7CiAgICB2YXIgaHRtbCA9CmAKPHA+0J7RgdC90L7QstC90L7QuTwvcD4KCjxhIGlkPSLQvNC2LdC+0YHQvdC+0LLQvdC+0Lkt0L3QsNGB0YLRgNC+0LnQutC4IiBjbGFzcz0idWstaWNvbi1idXR0b24iIHVrLWljb249ImNvZyI+PC9hPgpgOwogICAgdmFyIGNzcyA9CmAKI9C80LYt0L7RgdC90L7QstC90L7QuS3QvdCw0YHRgtGA0L7QudC60LgKewogICAgcG9zaXRpb246IGFic29sdXRlOwogICAgYm90dG9tOiAxZW07CiAgICBsZWZ0OiAxZW07Cn0KYDsKICAgIAogICAg0LTQvtCx0LDQstC40YLRjNCt0LrRgNCw0L0oItC80LYt0L7RgdC90L7QstC90L7QuSIsIGh0bWwsIGNzcyk7CiAgICDRjdC7KCLQvNC2LdC+0YHQvdC+0LLQvdC+0Lkt0L3QsNGB0YLRgNC+0LnQutC4Iikub25jbGljayA9IGZ1bmN0aW9uKCl7CiAgICAgICAg0L/QvtC60LDQt9Cw0YLRjNCd0LDRgdGC0YDQvtC50LrQuC7Rg9Cy0LXQtNC+0LzQuNGC0YwoKTsKICAgIH07Cn0KdmFyIGNyZWF0ZVNjcmVlbk1haW4gPSDRgdC+0LfQtNCw0YLRjNCt0LrRgNCw0L3QntGB0L3QvtCy0L3QvtC5OwoK0L/RgNC4KNC80YPRgNC+0Lwu0YDQtdC20LjQvNCf0YDQvtGB0LzQvtGC0YDQsCwg0YHQvtC30LTQsNGC0YzQrdC60YDQsNC90J7RgdC90L7QstC90L7QuSk7", +"последовательность", +"0L3QsNGH0LDQu9C+CiAgICDQtNC+0LHQsNCy0LjRgtGMINGN0LrRgNCw0L0g0L7RgdC90L7QstC90L7QuQogICAg0LTQvtCx0LDQstC40YLRjCDRjdC60YDQsNC9INGA0LDRgdC60LvQsNC00L7QugogICAg0LTQvtCx0LDQstC40YLRjCDQstGB0YLRgNC+0LXQvdC90YvQtSDRgNCw0YHQutC70LDQtNC60LgK0L/QtdGA0LXQutC70Y7Rh9C40YLRjCDRgNCw0YHQutC70LDQtNC60LgKICAgINC/0LXRgNC10LrQu9GO0YfQuNGC0Ywg0Y3QutGA0LDQvSDRgNCw0YHQutC70LDQtNC+0Lo=", +{"status":false} +], + + +[ +"пуск", +"0LrQvtCz0LTQsCjQvNGD0YDQvtC8LtC80LjRgNCT0L7RgtC+0LIsINC/0YPRgdC6KTsKCmZ1bmN0aW9uINC/0YPRgdC6KCkKewogICAgdmFyINC/NjQgPSDQnNCe0JQu0LzQvtC00YPQu9GMKCLQv9C+0YHQu9C10LTQvtCy0LDRgtC10LvRjNC90L7RgdGC0YwiKS5jb2RlNjQ7CiAgICB2YXIg0L/QvtGB0LvQtdC00L7QstCw0YLQtdC70YzQvdC+0YHRgtGMID0g0LzRg9GA0L7QvC5hdG9iKNC/NjQpOwogICAgCiAgICB2YXIg0LzQuNGAID0gewogICAgICAgICLQvdCw0YHRgtGA0L7QudC60LgiOiB7fSwKICAgICAgICAi0YHQvtCx0YvRgtC40Y8iOiB7fSwKICAgICAgICAi0YHQvtGB0YLQvtGP0L3QuNC1Ijoge30sCiAgICB9OwogICAgdmFyINGB0L7QsdGL0YLQuNGP0KDQtdCw0LrRhtC40LggPSBuZXcg0KHQvtCx0YvRgtC40Y/QoNC10LDQutGG0LjQuCgpOwogICAg0YHQvtCx0YvRgtC40Y/QoNC10LDQutGG0LjQuC7RgNCw0LfQvtCx0YDQsNGC0Ywo0LzQuNGALCDQv9C+0YHQu9C10LTQvtCy0LDRgtC10LvRjNC90L7RgdGC0YwpOwogICAgLy8g0J3QsNGH0LDRgtGMLgogICAg0LzQuNGALtGB0L7QsdGL0YLQuNGPWyLQvdCw0YfQsNC70L4iXS7Rg9Cy0LXQtNC+0LzQuNGC0YwoKTsKfQ==", {"status":true} ], [ -"мж.иср.экран.настройки", -"dmFyINGB0LrRgNGL0YLRjNCd0LDRgdGC0YDQvtC50LrQuCA9IG5ldyDQo9Cy0LXQtNC+0LzQuNGC0LXQu9GMKCk7CnZhciBoaWRlU2V0dGluZ3MgPSDRgdC60YDRi9GC0YzQndCw0YHRgtGA0L7QudC60Lg7CgpmdW5jdGlvbiDRgdC+0LfQtNCw0YLRjNCt0LrRgNCw0L3QndCw0YHRgtGA0L7QtdC6KCkKewogICAgICAgIHZhciBodG1sID0KYAo8cD7QndCw0YHRgtGA0L7QudC60Lg8L3A+CjxkaXYgY2xhc3M9InVrLWNvbnRhaW5lciI+CiAgICA8dWwgY2xhc3M9InVrLWNoaWxkLXdpZHRoLWV4cGFuZCIgdWstdGFiPgogICAgICAgIDxsaSBjbGFzcz0idWstYWN0aXZlIj48YT7QoNCw0YHQutC70LDQtNC60LA8L2E+PC9saT4KICAgICAgICA8bGk+PGE+0KLQtdC80LA8L2E+PC9saT4KICAgIDwvdWw+CiAgICA8dWwgY2xhc3M9InVrLXN3aXRjaGVyIHVrLW1hcmdpbiI+CiAgICAgICAgPGxpPgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJ1ay1wYW5lbCB1ay1wYW5lbC1zY3JvbGxhYmxlIHVrLXdpZHRoLTEtMyI+CiAgICAgICAgICAgICAgICA8dWwgY2xhc3M9InVrLWxpc3QiPgogICAgICAgICAgICAgICAgICAgIDxsaT7QoNCw0YHQutC70LDQtNC60LAtMTwvbGk+CiAgICAgICAgICAgICAgICAgICAgPGxpPtCg0LDRgdC60LvQsNC00LrQsC0yPC9saT4KICAgICAgICAgICAgICAgICAgICA8bGk+0KDQsNGB0LrQu9Cw0LTQutCwLTM8L2xpPgogICAgICAgICAgICAgICAgICAgIDxsaT7QoNCw0YHQutC70LDQtNC60LAtNDwvbGk+CiAgICAgICAgICAgICAgICAgICAgPGxpPtCg0LDRgdC60LvQsNC00LrQsC01PC9saT4KICAgICAgICAgICAgICAgICAgICA8bGk+0KDQsNGB0LrQu9Cw0LTQutCwLTY8L2xpPgogICAgICAgICAgICAgICAgICAgIDxsaT7QoNCw0YHQutC70LDQtNC60LAtNzwvbGk+CiAgICAgICAgICAgICAgICAgICAgPGxpPtCg0LDRgdC60LvQsNC00LrQsC04PC9saT4KICAgICAgICAgICAgICAgIDwvdWw+CiAgICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvbGk+CiAgICAgICAgPGx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1mYWRlIiwgInVrLWFuaW1hdGlvbi1mYXN0Iik7Cn0KCmZ1bmN0aW9uINGB0LrRgNGL0YLRjNCt0LrRgNCw0L3QndCw0YHRgtGA0L7QtdC6KCkKewogICAgdmFyINGN0LrRgNCw0L0gPSDRjdC7KCLQvNC2LdC90LDRgdGC0YDQvtC50LrQuCIpOwogICAg0Y3QutGA0LDQvS5jbGFzc05hbWUgPSAiIjsKICAgINGN0LrRgNCw0L0uaGlkZGVuID0gdHJ1ZTsKfQoK0L/RgNC4KNC/0L7QutCw0LfQsNGC0YzQndCw0YHRgtGA0L7QudC60LgsINC/0L7QutCw0LfQsNGC0YzQrdC60YDQsNC90J3QsNGB0YLRgNC+0LXQuik7CtC/0YDQuCjRgdC60YDRi9GC0YzQndCw0YHRgtGA0L7QudC60LgsINGB0LrRgNGL0YLRjNCt0LrRgNCw0L3QndCw0YHRgtGA0L7QtdC6KTsKCtC/0YDQuCjQvNGD0YDQvtC8LtGA0LXQttC40LzQn9GA0L7RgdC80L7RgtGA0LAsINGB0L7Qt9C00LDRgtGM0K3QutGA0LDQvdCd0LDRgdGC0YDQvtC10LopOw==", -{} +"встроенные раскладки", +"", +{"status":false} ], ]; diff --git a/модули/mj.ide.splash_2.0.0.js b/модули/mj.ide.splash_2.0.0.js new file mode 100644 index 0000000..b2b187e --- /dev/null +++ b/модули/mj.ide.splash_2.0.0.js @@ -0,0 +1,58 @@ +function showSplash() +{ + var html = +` +
+
+

Маджонг

+ 2.0.0 +

Среда разработки

+
+
+`; + var css = +` +#mj-splash-title +{ + font: bold 4em serif; +} +#mj-splash-body +{ + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + pointer-events: none; +} +#mj-splash +{ + opacity: 1; + background-color: white; + animation: mj-splash-fade-out 1s ease; + animation-fill-mode: forwards; +} +@keyframes mj-splash-fade-out +{ + 0% + { + opacity: 1; + } + 60% + { + opacity: 1; + } + 100% + { + opacity: 0; + } +} +`; + + var screen = addScreen("mj-splash", html, css); + screen.onanimationend = function(){ + document.body.removeChild(screen); + }; +} +var показатьЗаставку = showSplash; + +when(murom.modeEditor, showSplash); diff --git a/модули/мж.иср.экран.настройки.js b/модули/мж.иср.экран.настройки.js new file mode 100644 index 0000000..075856b --- /dev/null +++ b/модули/мж.иср.экран.настройки.js @@ -0,0 +1,96 @@ +var скрытьНастройки = new Уведомитель(); +var hideSettings = скрытьНастройки; + +function создатьЭкранНастроек() +{ + var html = +` +

Настройки

+
+ + +
+ + +`; + var css = +` +#мж-настройки +{ + background-color: white; +} +#мж-настройки-скрыть +{ + position: absolute; + left: 1.5em; + bottom: 1.5em; +} +#мж-настройки-раскладки +{ + height: 50%; +} +`; + + var экран = добавитьЭкран("мж-настройки", html, css); + экран.hidden = true; + var скрыть = эл("мж-настройки-скрыть").onclick = function(){ + скрытьНастройки.уведомить(); + }; +} + +function показатьЭкранНастроек() +{ + var экран = эл("мж-настройки"); + экран.hidden = false; + экран.classList.add("uk-animation-fade", "uk-animation-fast"); +} + +function скрытьЭкранНастроек() +{ + var экран = эл("мж-настройки"); + экран.className = ""; + экран.hidden = true; +} + +при(показатьНастройки, показатьЭкранНастроек); +при(скрытьНастройки, скрытьЭкранНастроек); + +при(муром.режимПросмотра, создатьЭкранНастроек); diff --git a/модули/мж.иср.экран.основной.js b/модули/мж.иср.экран.основной.js new file mode 100644 index 0000000..bdc58b8 --- /dev/null +++ b/модули/мж.иср.экран.основной.js @@ -0,0 +1,29 @@ +var показатьНастройки = new Уведомитель(); +var showSettings = показатьНастройки; + +function создатьЭкранОсновной() +{ + var html = +` +

Основной

+ + +`; + var css = +` +#мж-основной-настройки +{ + position: absolute; + bottom: 1em; + left: 1em; +} +`; + + добавитьЭкран("мж-основной", html, css); + эл("мж-основной-настройки").onclick = function(){ + показатьНастройки.уведомить(); + }; +} +var createScreenMain = создатьЭкранОсновной; + +при(муром.режимПросмотра, создатьЭкранОсновной);