Advertisement
xiaomianao666

邀您一起看:道长验证码通杀

Jun 16th, 2022
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥道长验证码通杀@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJcIixcImxpc3RUb0NsZWFyQXNzb2NpYXRlZEZLXCI6W10sXCJsaXN0VG9DbGVhclNlbGZGS1wiOltdLFwicGFnZUxpc3RcIjpbe1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIui3s+mqjOivgVwiLFwicGF0aFwiOlwieWFuemhlbmdcIixcInJ1bGVcIjpcImZ1bmN0aW9uIOiOt+WPlmNrKHNldCl7XFxuICAgIHZhciBja3BhdGg9J2hpa2VyOi8vZmlsZXMvY2FjaGUvY29va2llLmpzb24nO1xcbiAgICB2YXIgb2xkY2s9ZmV0Y2goY2twYXRoKXx8J3t9JztcXG4vL2xvZygn5pen55qEY29va2llOicrb2xkY2spO1xcbiAgICBvbGRjaz1KU09OLnBhcnNlKG9sZGNrKTtcXG4gICAgcmV0dXJuIG9sZGNrW3NldF18fCcnXFxufVxcbmZ1bmN0aW9uIOazqOWFpemqjOivgeeggeivhuWIqyhpZCxzZXQsZXh0cmEpe1xcbiAgICAvLyBpZD1pZHx8Jy50bmNvZGUnO1xcbiAgICBpZD1pZHx8Jyc7XFxuICAgIHNldD1zZXR8fCd5em1fY29va2llJztcXG4gICAgZXh0cmE9ZXh0cmF8fHt9O1xcbiAgICBpZih0eXBlb2YobG9nKT09XFxcInVuZGVmaWVuZFxcXCIpe1xcbiAgICAgICAgbG9nPWZ5X2JyaWRnZV9hcHAubG9nO1xcbiAgICB9XFxuICAgIHZhciBqcz0kLnRvU3RyaW5nKChpZCxzZXQsZXh0cmEpPT57XFxuICAgICAgICBldmFsKGZ5X2JyaWRnZV9hcHAuZ2V0SW50ZXJuYWxKcygpKTtcXG4gICAgICAgIC8vZmJhLmxvZygn6L+b5YWleDXlpITnkIbkuK0nKTtcXG4gICAgICAgIC8vZmJhLmxvZyhmYmEuZ2V0VmFyKCdkcuS+nei1licpKTtcXG4gICAgICAgIHZhciBja3BhdGg9J2hpa2VyOi8vZmlsZXMvY2FjaGUvY29va2llLmpzb24nO1xcbiAgICAgICAgZnVuY3Rpb24gY29va2llU2V0KCl7XFxuICAgICAgICAgICAgLy8gZmJhLmxvZygn6Ieq5YqoY29va2ll6K6+572uOicgKyBzZXQgKyAnPT4nICsgZG9jdW1lbnQuY29va2llKTtcXG4gICAgICAgICAgICAvL0pTT04uc3RyaW5naWZ5XFxuICAgICAgICAgICAgLy9KU09OLnBhcnNlXFxuICAgICAgICAgICAgdmFyIG9sZGNrID0gcmVxdWVzdChja3BhdGgpIHx8ICd7fSc7XFxuICAgICAgICAgICAgZmJhLmxvZygn5pen55qEY29va2llOicgKyBvbGRjayk7XFxuICAgICAgICAgICAgb2xkY2sgPSBKU09OLnBhcnNlKG9sZGNrKTtcXG4gICAgICAgICAgICBvbGRja1tzZXRdID0gZG9jdW1lbnQuY29va2llO1xcbiAgICAgICAgICAgIGZiYS5wdXRWYXIoc2V0LCBkb2N1bWVudC5jb29raWUpO1xcbiAgICAgICAgICAgIHZhciBuZXdDayA9IEpTT04uc3RyaW5naWZ5KG9sZGNrKTtcXG4gICAgICAgICAgICBmYmEud3JpdGVGaWxlKGNrcGF0aCwgbmV3Q2spO1xcbiAgICAgICAgICAgIGZiYS5sb2coJ+aWsOeahGNvb2tpZTonICsgbmV3Q2spO1xcbiAgICAgICAgfVxcbiAgICAgICAgaWYoaWQpIHsgLy/loavkuoZpZOeahOivnVxcbiAgICAgICAgICAgIHZhciBidG4gPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdidXR0b24nKTtcXG4gICAgICAgICAgICBsZXQgY3NzID0gZXh0cmEu5qC35byPIHx8ICdib3JkZXItcmFkaXVzOjIwcHg7d2lkdGg6YXV0bztoZWlnaHQ6MjBweDsnO1xcbiAgICAgICAgICAgIGJ0bi5zZXRBdHRyaWJ1dGUoJ3N0eWxlJywgY3NzKTtcXG4gICAgICAgICAgICBidG4uc2V0QXR0cmlidXRlKCdpZCcsICdidG4xJyk7XFxuICAgICAgICAgICAgbGV0IHRleHQgPSBleHRyYS7mloflrZcgfHwgJ+WujOaIkOW5tui/lOWbnumHjeivlSc7XFxuICAgICAgICAgICAgYnRuLmlubmVyVGV4dCA9IHRleHQ7XFxuICAgICAgICAgICAgYnRuLm9uY2xpY2sgPSBmdW5jdGlvbiAoKSB7XFxuICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICBmYmEubG9nKCfmiYvliqjngrnlh7tjb29raWXorr7nva46JyArIHNldCArICc9PicgKyBkb2N1bWVudC5jb29raWUpO1xcbiAgICAgICAgICAgICAgICAgICAgY29va2llU2V0KCk7XFxuICAgICAgICAgICAgICAgICAgICBpZiAoY29uZmlybSgn5bey6K6+572u5b2T5YmN6aG1Y29va2ll77yM6L+U5Zue5p+l55yL5pCc57Si57uT5p6c44CC6L+U5Zue5ZCO6ZyA6KaB5omL5Yqo5LiL5ouJ5Yi35paw77yB77yB77yBJykpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBmYmEucGFyc2VMYXp5UnVsZSgnaGlrZXI6Ly9lbXB0eUBsYXp5UnVsZT0uanM6YmFjaygpJyk7XFxuICAgICAgICAgICAgICAgICAgICB9XFxuXFxuICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHtcXG4gICAgICAgICAgICAgICAgICAgIGFsZXJ0KGUubWVzc2FnZSlcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB2YXIgbWFpbiA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3IoaWQpO1xcbiAgICAgICAgICAgIG1haW4uYXBwZW5kQ2hpbGQoYnRuKTtcXG4gICAgICAgIH1lbHNley8v5rKh5aGr5bCx6Ieq5Yqo5rOo5YWl77yM5Yi35paw6YO9566XXFxuICAgICAgICAgICAgaWYoZG9jdW1lbnQuY29va2llKSB7Ly/lpoLmnpzmnIljb29raWVcXG4gICAgICAgICAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAgICAgICAgIGZiYS5sb2coJ+iHquWKqGNvb2tpZeiuvue9rjonICsgc2V0ICsgJz0+JyArIGRvY3VtZW50LmNvb2tpZSk7XFxuICAgICAgICAgICAgICAgICAgICBjb29raWVTZXQoKTtcXG4gICAgICAgICAgICAgICAgfSBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAgICAgYWxlcnQoZS5tZXNzYWdlKVxcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfVxcbiAgICB9LGlkLHNldCxleHRyYSk7XFxuICAgIHJldHVybiBqc1xcbn1cXG5cXG5mdW5jdGlvbiDpgZPplb/pqozor4HnoIEodGl0bGUsbXl1cmwsaWQsc2V0LGV4dHJhKXtcXG5cXG4gICAgaWYoZ2V0VmFyKHNldCwnJykmJiFnZXRNeVZhcignY29va2llJykpe1xcbiAgICAgICAgcHV0TXlWYXIoJ2Nvb2tpZScsZ2V0VmFyKHNldCwnJykpO1xcbiAgICAgICAgcmVmcmVzaFBhZ2UodHJ1ZSk7XFxuICAgICAgICByZXR1cm47XFxuICAgIH1cXG5cXG4vL+W/heWhq+mTvuaOpe+8jGlk77yMY29va2ll5ZCN56ewXFxuICAgIGV4dHJhPWV4dHJhfHxmYWxzZTtcXG4gICAgdGl0bGU9dGl0bGV8fCfnvZHnq5nop6blj5HkuobkurrmnLrpqozor4HvvIzngrnmraTlpITnkIYnO1xcbiAgICAvKlxcbiAgICB2YXIgdXJsPSQoKS5sYXp5UnVsZSgodGl0bGUsTVlfVVJMLGlkLHNldCxleHRyYSzms6jlhaXpqozor4HnoIHor4bliKspPT57XFxuICAgIGlmKGdldFZhcihzZXQsJycpJiYhZ2V0TXlWYXIoJ2Nvb2tpZScpKXtcXG4gICAgcHV0TXlWYXIoJ2Nvb2tpZScsZ2V0VmFyKHNldCwnJykpO1xcbiAgICByZWZyZXNoUGFnZSh0cnVlKTtcXG4gICAgcmV0dXJuJ2hpa2VyOi8vZW1wdHknO1xcbiAgICB9XFxuICAgIHJldHVybiAkKE1ZX1VSTCkucnVsZSgo5rOo5YWl6aqM6K+B56CB6K+G5YirLGlkLHNldCxleHRyYSk9PntcXG4gICAgICAgICAgICAgICAgLy9sb2codHlwZW9mKOazqOWFpemqjOivgeeggeivhuWIqykpXFxuICAgICAgICAgICAgICAgIGxldCBkPVtdO1xcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgY29sX3R5cGU6IFxcXCJ4NV93ZWJ2aWV3X3NpbmdsZVxcXCIsXFxuICAgICAgICAgICAgICAgICB1cmw6IE1ZX1VSTCxcXG4gICAgICAgICAgICAgICAgIGRlc2M6IFxcXCJmbG9hdCYmMTAwJVxcXCIsXFxuICAgICAgICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICAgICBjYW5CYWNrOiB0cnVlLFxcbiAgICAgICAgICAgICAgICAgICBqczrms6jlhaXpqozor4HnoIHor4bliKsoaWQsc2V0LGV4dHJhKVxcbiAgICAgICAgICAgICAgICAgIH19KTtcXG4gICAgICAgICAgICAgICAgc2V0UmVzdWx0KGQpO1xcbiAgICAgICAgICB9LOazqOWFpemqjOivgeeggeivhuWIqyxpZCxzZXQsZXh0cmEpO1xcblxcbiAgICB9LHRpdGxlLE1ZX1VSTCxpZCxzZXQsZXh0cmEs5rOo5YWl6aqM6K+B56CB6K+G5YirKTtcXG4gICAgKi9cXG4vL2xvZygn5b6F5rOo5YWlOicrTVlfVVJMKTtcXG4gICAgdmFyIHVybD0kKG15dXJsKS5ydWxlKCjms6jlhaXpqozor4HnoIHor4bliKssaWQsc2V0LGV4dHJhKT0+e1xcbiAgICAgICAgLy9sb2codHlwZW9mKOazqOWFpemqjOivgeeggeivhuWIqykpXFxuICAgICAgICBpbnB1dD1NWV9VUkw7XFxuICAgICAgICByZXF1aXJlKGdldFZhcignZHLkvp3otZYnKSk7XFxuICAgICAgICAvL2xvZygn5rOo5YWl5LqGOicrTVlfVVJMKTtcXG4gICAgICAgIHZhciBvbGRjaz3ojrflj5ZjayhzZXQpO1xcbiAgICAgICAgc2V0UGFnZVRpdGxlKCfpgZPplb/pqozor4HnoIHpgJrmnYAnKTtcXG4gICAgICAgIGFkZExpc3RlbmVyKCdvbkNsb3NlJywgJC50b1N0cmluZygoc2V0LG9sZGNrLOiOt+WPlmNrKT0+e1xcbiAgICAgICAgICAgIC8vIHJlZnJlc2hQYWdlKGZhbHNlKTsgLy/ov5Tlm57oh6rliqjliLfmlrDkvb/orr7nva7nlJ/mlYhcXG4gICAgICAgICAgICBsb2coJ+mAgOWHuuS6humAmuadgOeVjOmdoizml6fnmoRjb29raWXkuLo6JytvbGRjayk7XFxuICAgICAgICAgICAgbGV0IG5ld2NrPeiOt+WPlmNrKHNldCk7XFxuICAgICAgICAgICAgbG9nKCfmlrDnmoRjb29raWXkuLo6JytuZXdjayk7XFxuICAgICAgICAgICAgaWYoIW5ld2NrKXtcXG4gICAgICAgICAgICAgICAgbGV0IGVycm9yPSfmnKrojrflj5Zjb29raWXvvIzpqozor4HlpLHotKXvvIEnO1xcbiAgICAgICAgICAgICAgICBsb2coZXJyb3IpO1xcbiAgICAgICAgICAgICAgICAvL3NldEVycm9yKGVycm9yKTtcXG4gICAgICAgICAgICAgICAgLy90aHJvdyBlcnJvcjtcXG4gICAgICAgICAgICB9ZWxzZSBpZihvbGRjaz09PW5ld2NrKXtcXG4gICAgICAgICAgICAgICAgbG9nKCdjb29raWXmnKrmm7TmlrDvvIzpqozor4Hlj6/og73mnKrpgJrov4cnKTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICB9LHNldCxvbGRjayzojrflj5ZjaykpO1xcbiAgICAgICAgbGV0IGQ9W107XFxuICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgIGNvbF90eXBlOiBcXFwieDVfd2Vidmlld19zaW5nbGVcXFwiLFxcbiAgICAgICAgICAgIHVybDogaW5wdXQsXFxuICAgICAgICAgICAgZGVzYzogXFxcImZsb2F0JiYxMDAlXFxcIixcXG4gICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICBjYW5CYWNrOiB0cnVlLFxcbiAgICAgICAgICAgICAgICBqczrms6jlhaXpqozor4HnoIHor4bliKsoaWQsc2V0LGV4dHJhKVxcbiAgICAgICAgICAgIH19KTtcXG4gICAgICAgIHNldFJlc3VsdChkKTtcXG4gICAgfSzms6jlhaXpqozor4HnoIHor4bliKssaWQsc2V0LGV4dHJhKTtcXG4gICAgbGV0IGQ9W107XFxuICAgIGQucHVzaCh7XFxuICAgICAgICB0aXRsZTp0aXRsZSxcXG4gICAgICAgIGNvbF90eXBlOid0ZXh0XzEnLFxcbiAgICAgICAgdXJsOnVybCxcXG4gICAgfSk7XFxuICAgIHNldFJlc3VsdChkKTtcXG4gICAgLy8gJCgpLmI2NCgpLnJ1bGUoKSAg5Y+v5Lul5a6e546w5ZyobGF6eVJ1bGXph4zov5Tlm55ydWxlXFxufVwifV0sXCJzYXZlZFwiOmZhbHNlLFwidGl0bGVcIjpcIuS7k+W6ky7oh6rliqjmjaLln5/lkI1cIixcInZlcnNpb25cIjowLFwidXJsXCI6XCJodHRwOi8vOTYxY2sudXMvL3ZvZHR5cGUvOS0xLmh0bWw7Z2V0O1VURi04O3tVc2VyLUFnZW50QE1vemlsbGEvNS4wIChMaW51eO+8m++8myBBbmRyb2lkIDEx77yb77ybIE1pIDEwIFBybyk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ICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAgICAgYWxlcnQoZS5tZXNzYWdlKTtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIH07XFxuICAgICAgICAgICAgdmFyIG1haW4gPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKGlkKTtcXG4gICAgICAgICAgICBtYWluLmFwcGVuZENoaWxkKGJ0bik7XFxuICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgIGlmIChkb2N1bWVudC5jb29raWUpIHtcXG4gICAgICAgICAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAgICAgICAgIGZiYS5sb2coXFxcIlxcXFx1ODFlYVxcXFx1NTJhOGNvb2tpZVxcXFx1OGJiZVxcXFx1N2Y2ZTpcXFwiICsgc2V0ICsgXFxcIj0+XFxcIiArIGRvY3VtZW50LmNvb2tpZSk7XFxuICAgICAgICAgICAgICAgICAgICBjb29raWVTZXQoKTtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAgICAgYWxlcnQoZS5tZXNzYWdlKTtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH1cXG4gICAgfVxcbiAgICAsIGlkLCBzZXQsIGV4dHJhKTtcXG4gICAgcmV0dXJuIGpzO1xcbn1cXG4sXFxcIlxcXCIsXFxcImNvb2tpZS5zZWt1XFxcIixmYWxzZSlcIixcImdyb3VwXCI6XCLnpo/liKlcIixcInVhXCI6XCJtb2JpbGVcIixcInByZVJ1bGVcIjpcImV2YWxQcml2YXRlSlMoJ0pEZFNQTmk3aks4dXJPUXUxcXkvU3lOeXBiM0ZnVGpDSC81b0pzN05sem5PVGVqc082Wk1yS3lKemRMdk5ySWRmVG9hcHdobmY0anU0M09WWCt1bU5xUk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tzZXRdID0gZG9jdW1lbnQuY29va2llO1xcXFxuICAgICAgICAgICAgZmJhLnB1dFZhcihzZXQsIGRvY3VtZW50LmNvb2tpZSk7XFxcXG4gICAgICAgICAgICB2YXIgbmV3Q2sgPSBKU09OLnN0cmluZ2lmeShvbGRjayk7XFxcXG4gICAgICAgICAgICBmYmEud3JpdGVGaWxlKGNrcGF0aCwgbmV3Q2spO1xcXFxuICAgICAgICAgICAgZmJhLmxvZygn5paw55qEY29va2llOicgKyBuZXdDayk7XFxcXG4gICAgICAgIH1cXFxcbiAgICAgICAgaWYoaWQpIHsgLy/loavkuoZpZOeahOivnVxcXFxuICAgICAgICAgICAgdmFyIGJ0biA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2J1dHRvbicpO1xcXFxuICAgICAgICAgICAgbGV0IGNzcyA9IGV4dHJhLuagt+W8jyB8fCAnYm9yZGVyLXJhZGl1czoyMHB4O3dpZHRoOmF1dG87aGVpZ2h0OjIwcHg7JztcXFxcbiAgICAgICAgICAgIGJ0bi5zZXRBdHRyaWJ1dGUoJ3N0eWxlJywgY3NzKTtcXFxcbiAgICAgICAgICAgIGJ0bi5zZXRBdHRyaWJ1dGUoJ2lkJywgJ2J0bjEnKTtcXFxcbiAgICAgICAgICAgIGxldCB0ZXh0ID0gZXh0cmEu5paH5a2XIHx8ICflrozmiJDlubbov5Tlm57ph43or5UnO1xcXFxuICAgICAgICAgICAgYnRuLmlubmVyVGV4dCA9IHRleHQ7XFxcXG4gICAgICAgICAgICBidG4ub25jbGljayA9IGZ1bmN0aW9uICgpIHtcXFxcbiAgICAgICAgICAgICAgICB0cnkge1xcXFxuICAgICAgICAgICAgICAgICAgICBmYmEubG9nKCfmiYvliqjngrnlh7tjb29raWXorr7nva46JyArIHNldCArICc9PicgKyBkb2N1bWVudC5jb29raWUpO1xcXFxuICAgICAgICAgICAgICAgICAgICBjb29raWVTZXQoKTtcXFxcbiAgICAgICAgICAgICAgICAgICAgaWYgKGNvbmZpcm0oJ+W3suiuvue9ruW9k+WJjemhtWNvb2tpZe+8jOi/lOWbnuafpeeci+aQnOe0oue7k+aenOOAgui/lOWbnuWQjumcgOimgeaJi+WKqOS4i+aLieWIt+aWsO+8ge+8ge+8gScpKSB7XFxcXG4gICAgICAgICAgICAgICAgICAgICAgICBmYmEucGFyc2VMYXp5UnVsZSgnaGlrZXI6Ly9lbXB0eUBsYXp5UnVsZT0uanM6YmFjaygpJyk7XFxcXG4gICAgICAgICAgICAgICAgICAgIH1cXFxcblxcXFxuICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHtcXFxcbiAgICAgICAgICAgICAgICAgICAgYWxlcnQoZS5tZXNzYWdlKVxcXFxuICAgICAgICAgICAgICAgIH1cXFxcbiAgICAgICAgICAgIH1cXFxcbiAgICAgICAgICAgIHZhciBtYWluID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcihpZCk7XFxcXG4gICAgICAgICAgICBtYWluLmFwcGVuZENoaWxkKGJ0bik7XFxcXG4gICAgICAgIH1lbHNley8v5rKh5aGr5bCx6Ieq5Yqo5rOo5YWl77yM5Yi35paw6YO9566XXFxcXG4gICAgICAgICAgICBpZihkb2N1bWVudC5jb29raWUpIHsvL+WmguaenOaciWNvb2tpZVxcXFxuICAgICAgICAgICAgICAgIHRyeSB7XFxcXG4gICAgICAgICAgICAgICAgICAgIGZiYS5sb2coJ+iHquWKqGNvb2tpZeiuvue9rjonICsgc2V0ICsgJz0+JyArIGRvY3VtZW50LmNvb2tpZSk7XFxcXG4gICAgICAgICAgICAgICAgICAgIGNvb2tpZVNldCgpO1xcXFxuICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHtcXFxcbiAgICAgICAgICAgICAgICAgICAgYWxlcnQoZS5tZXNzYWdlKVxcXFxuICAgICAgICAgICAgICAgIH1cXFxcbiAgICAgICAgICAgIH1cXFxcbiAgICAgICAgfVxcXFxuICAgIH0saWQsc2V0LGV4dHJhKTtcXFxcbiAgICByZXR1cm4ganNc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XQsb2xkY2ss6I635Y+WY2spPT57XFxcXG4gICAgICAgICAgICAvLyByZWZyZXNoUGFnZShmYWxzZSk7IC8v6L+U5Zue6Ieq5Yqo5Yi35paw5L2/6K6+572u55Sf5pWIXFxcXG4gICAgICAgICAgICBsb2coJ+mAgOWHuuS6humAmuadgOeVjOmdoizml6fnmoRjb29raWXkuLo6JytvbGRjayk7XFxcXG4gICAgICAgICAgICBsZXQgbmV3Y2s96I635Y+WY2soc2V0KTtcXFxcbiAgICAgICAgICAgIGxvZygn5paw55qEY29va2ll5Li6OicrbmV3Y2spO1xcXFxuICAgICAgICAgICAgaWYoIW5ld2NrKXtcXFxcbiAgICAgICAgICAgICAgICBsZXQgZXJyb3I9J+acquiOt+WPlmNvb2tpZe+8jOmqjOivgeWksei0pe+8gSc7XFxcXG4gICAgICAgICAgICAgICAgbG9nKGVycm9yKTtcXFxcbiAgICAgICAgICAgICAgICAvL3NldEVycm9yKGVycm9yKTtcXFxcbiAgICAgICAgICAgICAgICAvL3Rocm93IGVycm9yO1xcXFxuICAgICAgICAgICAgfWVsc2UgaWYob2xkY2s9PT1uZXdjayl7XFxcXG4gICAgICAgICAgICAgICAgbG9nKCdjb29raWXmnKrmm7TmlrDvvIzpqozor4Hlj6/og73mnKrpgJrov4cnKTtcXFxcbiAgICAgICAgICAgIH1cXFxcbiAgICAgICAgfSxzZXQsb2xkY2ss6I635Y+WY2spKTtcXFxcbiAgICAgICAgbGV0IGQ9W107XFxcXG4gICAgICAgIGQucHVzaCh7XFxcXG4gICAgICAgICAgICBjb2xfdHlwZTogXFxcXFxcXCJ4NV93ZWJ2aWV3X3NpbmdsZVxcXFxcXFwiLFxcXFxuICAgICAgICAgICAgdXJsOiBpbnB1dCxcXFxcbiAgICAgICAgICAgIGRlc2M6IFxcXFxcXFwiZmxvYXQmJjEwMCVcXFxcXFxcIixcXFxcbiAgICAgICAgICAgIGV4dHJhOiB7XFxcXG4gICAgICAgICAgICAgICAgY2FuQmFjazogdHJ1ZSxcXFxcbiAgICAgICAgICAgICAgICBqczrms6jlhaXpqozor4HnoIHor4bliKsoaWQsc2V0LGV4dHJhKVxcXFxuICAgICAgICAgICAgfX0pO1xcXFxuICAgICAgICBzZXRSZXN1bHQoZCk7XFxcXG4gICAgfSzms6jlhaXpqozor4HnoIHor4bliKssaWQsc2V0LGV4dHJhKTtcXFxcbiAgICBsZXQgZD1bXTtcXFxcbiAgICBkLnB1c2goe1xcXFxuICAgICAgICB0aXRsZTp0aXRsZSxcXFxcbiAgICAgICAgY29sX3R5cGU6J3RleHRfMScsXFxcXG4gICAgICAgIHVybDp1cmwsXFxcXG4gICAgfSk7XFxcXG4gICAgc2V0UmVzdWx0KGQpO1xcXFxuICAgIC8vICQoKS5iNjQoKS5ydWxlKCkgIOWPr+S7peWunueOsOWcqGxhenlSdWxl6YeM6L+U5ZuecnVsZVxcXFxufVxcXCJ9XVwifSIsInRpdGxlIjoi6YGT6ZW/6aqM6K+B56CB6YCa5p2AIn0=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement