1 line
6.7 KiB
JavaScript
1 line
6.7 KiB
JavaScript
dmFyIHJ1bGUgPSB7CiAgICB0aXRsZTogJ+S4gOabsuiCneiCoOaWrScsCiAgICBob3N0OiAnaHR0cHM6Ly9mbHkuZGFvcmFuLnR2JywKICAgIHVybDogJy9BUElfUk9QL3NlYXJjaC9hbGJ1bS9zY3JlZW4nLAogICAgaGVhZGVyczogewogICAgICAgICdVc2VyLUFnZW50JzogJ29raHR0cC8zLjEyLjEwJywKICAgICAgICAnQ29ubmVjdGlvbic6ICdLZWVwLUFsaXZlJywKICAgICAgICAnQWNjZXB0LUVuY29kaW5nJzogJ2d6aXAnLAogICAgICAgICdtZDUnOiAnU2t2eXJXcUs5UUhUZENUMTJSaHh1bmp4K1d3TVRlOXk0S3dnZUFTRkRoYllhYlJTUHNrUjBRPT0nLAogICAgICAgICdDb250ZW50LVR5cGUnOiAnYXBwbGljYXRpb24vanNvbjsgY2hhcnNldD1VVEYtOCcsCiAgICAgICAgJ0Nvb2tpZSc6ICdKU0VTU0lPTklEPTQxQUJBNzZFNkQ0NUE0NEQ2NDE5QjNGMjZBMDg1MUVEJwogICAgfSwKICAgIGNsYXNzX25hbWU6ICfosavliacm6buE5qKF5oiPJui2iuWJpybkuqzliacm6K+E5YmnJuabsuWJpyblnaDlrZAm56em6IWUJuays+WMl+aihuWtkCbmva7liacm57Kk5YmnJuayquWJpybkuozlpLnlvKYm5piG5puyJuays+WNl+eQtOS5pibmt67liacm5Y2V5bymJuilv+enpuaIjyblqbrliacm5LiK5YWa5qKG5a2QJueZveWtl+aIjybmsrPljZflpKfpvJPkuaYm6LaK6LCDJua7h+WJpyblpKrlurfpgZPmg4Um5rCR5peP6Z+z5LmQJuaJrOWJpyblhbbku5Ym5puy6Im65pma5LyaJuS6jOS6uuWPsCbljJfot6/mooblrZAm5b2p6LCDJuS5kOiFlCbogIHlubTlpKflraYm5ZCV5YmnJuWkqea0peaXtuiwgybmiI/mm7Im5p+z55C05oiPJuS6rOmfteWkp+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gICAgICAgICAgIm5vZGVDb2RlIjogIjAwMTAwMCIsCiAgICAgICAgICAgICJwcm9qZWN0IjogImx5aHhjeCIsCiAgICAgICAgICAgICJweCI6IDIsCiAgICAgICAgICAgICJyZXNDb2RlIjogY29kZSwKICAgICAgICAgICAgInVzZXJJZCI6ICJkNGIyOTU5NWI2ZmU3NjRlMDkwNzhhMGRhZDczNTJmZiIKICAgICAgICB9KTsKICAgICAgICBsZXQgaHRtbCA9IHBvc3QoJ2h0dHBzOi8vZmx5LmRhb3Jhbi50di9BUElfUk9QL3BsYXkvZ2V0L3BsYXl1cmwnLCB7aGVhZGVyczogcnVsZS5oZWFkZXJzLCBib2R5OiBkYXRhfSk7CiAgICAgICAgbG9nKGh0bWwpCiAgICAgICAgbGV0IHVybCA9IEpTT04ucGFyc2UoaHRtbCkucGxheVVybHMuaGQ7CiAgICAgICAgaW5wdXQgPSB7dXJsOiB1cmwsIHBhcnNlOiAwfQoKICAgIH0pLAogICAg5LiA57qnOiAkanMudG9TdHJpbmcoKCkgPT4gewogICAgICAgIGxldCBkID0gW107CiAgICAgICAgbGV0IHRpZCA9IE1ZX0NBVEUKICAgICAgICBsZXQgcGcgPSBNWV9QQUdFCiAgICAgICAgbGV0IGRhdGEgPSBKU09OLnN0cmluZ2lmeSh7CiAgICAgICAgICAgICJjdXIiOiBwZywKICAgICAgICAgICAgImZyZWUiOiAwLC8vMCDlhajpg6jvvIwxIOWFjei0ue+8jDLvvIzkvJrlkZgKICAgICAgICAgICAgIm9yZGVyYnkiOiAiaG90IiwKICAgICAgICAgICAgInBhZ2VTaXplIjogMzAwMCwKICAgICAgICAgICAgInJlc1R5cGUiOiAxLAogICAgICAgICAgICAic2VjdCI6IHRpZCwKICAgICAgICAgICAgInRhZ0lkIjogMCwKICAgICAgICAgICAgInVzZXJJZCI6ICJkNGIyOTU5NWI2ZmU3NjRlMDkwNzhhMGRhZDczNTJmZiIsCiAgICAgICAgICAgICJjaGFubmVsIjogIm9wcG8iLAogICAgICAgICAgICAiaXRlbSI6ICJ5OSIsCiAgICAgICAgICAgICJub2RlQ29kZSI6ICIwMDEwMDAiLAogICAgICAgICAgICAicHJvamVjdCI6ICJseWh4Y3giCiAgICAgICAgfSk7CiAgICAgICAgbGV0IGh0bWwgPSBwb3N0KGlucHV0LCB7aGVhZGVyczogcnVsZS5oZWFkZXJzLCBib2R5OiBkYXRhfSk7CiAgICAgICAgbG9nKGh0bWwpCiAgICAgICAgbGV0IGxpc3QgPSBKU09OLnBhcnNlKGh0bWwpLnBiLmRhdGFMaXN0OwogICAgICAgIGxpc3QuZm9yRWFjaChpdCA9PiB7CiAgICAgICAgICAgIGxldCBpZCA9ICdodHRwczovL3poZXNoaXlpdGFpb2ppYWxpYW5qaWUuY29tPycgKyBpdC5jb2RlCiAgICAgICAgICAgIGQucHVzaCh7CiAgICAgICAgICAgICAgICB1cmw6IGlkLAogICAgICAgICAgICAgICAgdGl0bGU6IGl0Lm5hbWUsCiAgICAgICAgICAgICAgICBpbWc6ICdodHRwczovL2ltZzAuYmFpZHUuY29tL2l0L3U9NDA3OTQwNTg0OCwzODA2NTA3ODEwJmZtPTI1MyZmbXQ9YXV0byZhcHA9MTM4JmY9SlBFRz93PTUwMCZoPTc1MCcsCiAgICAgICAgICAgICAgICBkZXNjOiBpdC5kZXMsCiAgICAgICAgICAgIH0pCiAgICAgICAgfSkKICAgICAgICBzZXRSZXN1bHQoZCk7CiAgICB9KSwKICAgIOS6jOe6pzogJGpzLnRvU3RyaW5nKCgpID0+IHsKICAgICAgICBsZXQgdXJscyA9IFtdOwogICAgICAgIGxldCBjb2RlID0gaW5wdXQuc3BsaXQoJz8nKVsxXTsKICAgICAgICBsZXQgZGF0YSA9IEpTT04uc3RyaW5naWZ5KHsKICAgICAgICAgICAgImFsYnVtQ29kZSI6IGNvZGUsCiAgICAgICAgICAgICJjdXIiOiAxLAogICAgICAgICAgICAicGFnZVNpemUiOiAxMDAsCiAgICAgICAgICAgICJ1c2VySWQiOiAiZDRiMjk1OTViNmZlNzY0ZTA5MDc4YTBkYWQ3MzUyZmYiLAogICAgICAgICAgICAiY2hhbm5lbCI6ICJvcHBvIiwKICAgICAgICAgICAgIml0ZW0iOiAieTkiLAogICAgICAgICAgICAibm9kZUNvZGUiOiAiMDAxMDAwIiwKICAgICAgICAgICAgInByb2plY3QiOiAibHloeGN4IgogICAgICAgIH0pOwogICAgICAgIGxldCBodG1sID0gcG9zdCgnaHR0cHM6Ly9mbHkuZGFvcmFuLnR2L0FQSV9ST1AvYWxidW0vcmVzL2xpc3QnLCB7aGVhZGVyczogcnVsZS5oZWFkZXJzLCBib2R5OiBkYXRhfSk7CiAgICAgICAgbG9nKGh0bWwpCiAgICAgICAgbGV0IGxpc3QgPSBKU09OLnBhcnNlKGh0bWwpLnBiLmRhdGFMaXN0OwogICAgICAgIGxpc3QuZm9yRWFjaChpdCA9PiB7CiAgICAgICAgICAgIHVybHMucHVzaChpdC5uYW1lICsgJyQnICsgJ2h0dHBzOi8vemhlc2hpeWl0YWlvamlhbGlhbmppZS5jb20/JyArIGl0LmNvZGUpOwogICAgICAgIH0pCiAgICAgICAgVk9EID0gewogICAgICAgICAgICB2b2RfcGljOiAnaHR0cHM6Ly9pbWcwLmJhaWR1LmNvbS9pdC91PTQwNzk0MDU4NDgsMzgwNjUwNzgxMCZmbT0yNTMmZm10PWF1dG8mYXBwPTEzOCZmPUpQRUc/dz01MDAmaD03NTAnLAogICAgICAgICAgICB2b2RfcGxheV9mcm9tOiAn55CD55CD5ZWmJywKICAgICAgICAgICAgdm9kX3BsYXlfdXJsOiB1cmxzLmpvaW4oJyMnKQogICAgICAgIH07CiAgICB9KSwKCiAgICDmkJzntKI6ICRqcy50b1N0cmluZygoKSA9PiB7CiAgICAgICAgbGV0IGQgPSBbXQogICAgICAgIGxldCBwZyA9IE1ZX1BBR0UKICAgICAgICBsZXQga2V5ID0gS0VZCiAgICAgICAgbGV0IGRhdGEgPSBKU09OLnN0cmluZ2lmeSh7CiAgICAgICAgICAgICJjdXIiOiAxLAogICAgICAgICAgICAiZnJlZSI6IDAsCiAgICAgICAgICAgICJrZXl3b3JkIjoga2V5LAogICAgICAgICAgICAibm9kZUNvZGUiOiAiMDAxMDAwIiwKICAgICAgICAgICAgIm9yZGVyYnkiOiAiaG90IiwKICAgICAgICAgICAgInBhZ2VTaXplIjogMjAwLAogICAgICAgICAgICAicHJvamVjdCI6ICJseWh4Y3giLAogICAgICAgICAgICAicHgiOiAyLAogICAgICAgICAgICAic2VjdCI6IFtdLAogICAgICAgICAgICAidXNlcklkIjogImQ0YjI5NTk1YjZmZTc2NGUwOTA3OGEwZGFkNzM1MmZmIgogICAgICAgIH0pOwogICAgICAgIGxldCBodG1sID0gcG9zdChpbnB1dCwge2hlYWRlcnM6IHJ1bGUuaGVhZGVycywgYm9keTogZGF0YX0pOwogICAgICAgIGxvZyhodG1sKQogICAgICAgIGxldCBsaXN0ID0gSlNPTi5wYXJzZShodG1sKS5wYi5kYXRhTGlzdDsKICAgICAgICBsaXN0LmZvckVhY2goaXQgPT4gewogICAgICAgICAgICBsZXQgaWQgPSAnaHR0cHM6Ly96aGVzaGl5aXRhaW9qaWFsaWFuamllLmNvbT8nICsgaXQuY29kZQogICAgICAgICAgICBkLnB1c2goewogICAgICAgICAgICAgICAgdXJsOiBpZCwKICAgICAgICAgICAgICAgIHRpdGxlOiBpdC5uYW1lLAogICAgICAgICAgICAgICAgaW1nOiAnaHR0cHM6Ly9pbWcwLmJhaWR1LmNvbS9pdC91PTQwNzk0MDU4NDgsMzgwNjUwNzgxMCZmbT0yNTMmZm10PWF1dG8mYXBwPTEzOCZmPUpQRUc/dz01MDAmaD03NTAnLAogICAgICAgICAgICAgICAgZGVzYzogaXQuZGVzLAogICAgICAgICAgICB9KQogICAgICAgIH0pCiAgICAgICAgc2V0UmVzdWx0KGQpOwogICAgfSksCiAgICBkb3VibGU6IGZhbHNlLCAvLyDmjqjojZDlhoXlrrnmmK/lkKblj4zlsYLlrpoKICAgIHNlYXJjaFVybDogJy9BUElfUk9QL3NlYXJjaC9hbGJ1bS9saXN0JywKfQ== |