Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@低端影视🐹@eyJmaXJzdEhlYWRlciI6ImNsYXNzIiwibGFzdF9jaGFwdGVyX3J1bGUiOiJqczpNWV9VUkwgPSBNWV9VUkwuc3BsaXQoJyMjJylbMV07XG52YXIgaHRtbCA9IGZldGNoUEMoTVlfVVJMKTtcbnZhciBsYXN0ID0gSlNPTi5wYXJzZShwZGZoKGh0bWwsJ2JvZHkmJi53cC1wbGF5bGlzdC1zY3JpcHQmJkh0bWwnKSkudHJhY2tzLnBvcCgpLmNhcHRpb247XG5zZXRSZXN1bHQobGFzdCk7IiwidGl0bGUiOiLkvY7nq6/lvbHop4bwn5C5IiwiYXV0aG9yIjoiZHkyMDIwIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjaHR0cHM6Ly9kZHlzLnByby8jI2Z5cGFnZSIsInZlcnNpb24iOjIwMjMwNjEyLCJjb2xfdHlwZSI6Im1vdmllXzMiLCJjbGFzc19uYW1lIjoiIiwidHlwZSI6InZpZGVvIiwiY2xhc3NfdXJsIjoiIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG5NWV9VUkwgPSBNWV9VUkwuc3BsaXQoJyMjJylbMV07XG52YXIgZCA9IFtdO1xuY29uc3Qg5YiG57G76aKc6ImyID0gJ0ZGNjY5OSc7XG5jb25zdCDlpKfnsbvlrprkvY0gPSAnYm9keSYmI3ByaW1hcnktbWVudSc7XG5jb25zdCDmi7zmjqXliIbnsbsgPSAnYm9keSYmI3ByaW1hcnktbWVudSYmdWxbcm9sZV06bm90KDptYXRjaGVzKOermemVvykpJztcbmNvbnN0IOWwj+exu+WumuS9jV/kuLsgPSAnYm9keSYmYTptYXRjaGVzKOaJgOaciee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ICcwJyA/IHN0cm9uZygn4oioJywgJzIyOTk3NycpIDogc3Ryb25nKCfiiKcnLCAnQ0MwMDMzJyksXG4gICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKCjnroDku4spID0+IHtcbiAgICAgICAgcmMoJ2h0dHBzOi8vZ2l0ZWUuY29tL21pc3R5d2F0ZXIvaGlrZXJfaW5mby9yYXcvbWFzdGVyL2YnLCAyNCk7XG4gICAgICAgIHZhciBpbnRybyA9IGdldE15VmFyKCdpbnRybycsICcwJyk7XG4gICAgICAgIGlmIChpbnRybyA9PSAnMCcpIHtcbiAgICAgICAgICAgIHVwZGF0ZUl0ZW0oJ2ludHJvJywge1xuICAgICAgICAgICAgICAgIHRpdGxlOiBzc1Io566A5LuLLCAnOTk2NkFBJyksXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdyaWNoX3RleHQnXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHVwZGF0ZUl0ZW0oJ19pbnRybycsIHtcbiAgICAgICAgICAgICAgICB0aXRsZTogc3Ryb25nKCfiiKcnLCAnQ0MwMDMzJyksXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHB1dE15VmFyKCdpbnRybycsICcxJyk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB1cGRhdGVJdGVtKCdpbnRybycsIHtcbiAgICAgICAgICAgICAgICB0aXRsZTogc3Mo566A5LuLLCAnOTk2NkFBJykuc2xpY2UoMCwgMTAwKSArICfigKYnLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF8xJ1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB1cGRhdGVJdGVtKCdfaW50cm8nLCB7XG4gICAgICAgICAgICAgICAgdGl0bGU6IHN0cm9uZygn4oioJywgJzIyOTk3NycpXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHB1dE15VmFyKCdpbnRybycsICcwJyk7XG4gICAgICAgIH1cbiAgICAg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GVJdGVtKCdzaHNvcnQnLCB7XG4gICAgICAgICAgICAgICAgdGl0bGU6IGdldE15VmFyKCdzaHNvcnQnLCAnMCcpID09ICcxJyA/IHN0cm9uZygn6YCG5bqPJywgJ0NDMDAzMycpIDogc3Ryb25nKCfmraPluo8nLCAnMjI5OTc3JylcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgZXZhbChnZXRNeVZhcigndXBkYXRlTGlzdCcpKTtcbiAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/liIfmjaLmjpLluo/miJDlip8nO1xuICAgICAgICB9KSxcbiAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJyxcbiAgICAgICAgZXh0cmE6IHtcbiAgICAgICAgICAgIGlkOiAnc2hzb3J0J1xuICAgICAgICB9XG4gICAgfSk7XG4gICAgZm9yICh2YXIgaSA9IDA7IGkgPCB0YWJzLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICB0aXRsZTogZ2V0TXlWYXIoTVlfVVJMLCAnMCcpID09IGkgPyBzdHJvbmcodGFic1tpXSwgJ2Y2NzI4MCcpIDogdGFic1tpXSxcbiAgICAgICAgICAgIHVybDogJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgoaSkgPT4ge1xuICAgICAgICAgICAgICAgIHJjKCdodHRwczovL2dpdGVlLmNvbS9taXN0eXdhdGVyL2hpa2VyX2luZm8vcmF3L21hc3Rlci9mJywgMjQpO1xuICAgICAgICAgICAgICAgIHB1dE15VmFyKE1ZX1VSTCwgaSk7XG4gICAgICAgICAgICAgICAgdmFyIHRhYnMgPSBzdG9yYWdlMC5nZXRNeVZhcigndGFicycpO1xuICAgICAgICAgICAgICAgIHZhciBsaXN0cyA9IHN0b3JhZ2UwLmdldE15VmFyKCdsaXN0cycpO1xuICAgICAgICAgICAgICAgIGZvciAodmFyIGsgaW4gdGFicykge1xuICAgICAgICAgICAgICAgICAgICB1cGRhdGVJdGVtKCd0YWJzJyArIGssIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBrID09IGkgPyBzdHJvbmcodGFic1trXSwgJ2Y2NzI4MCcpIDogdGFic1trXVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgdmFyIF9saXN0ID0gZ2V0TXlWYXIoJ3Noc29ydCcsICcwJykgPT0gJzAnID8gbGlzdHNbaV0gOiBsaXN0c1tpXS5yZXZlcnNlKCk7XG4gICAgICAgICAgICAgICAgZXZhbChnZXRNeVZhcigndXBkYXRlTGlzdCcpKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknO1xuICAgICAgICAgICAgfSwgaSksXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxuICAgICAgICAgICAgZXh0cmE6IHtcbiAgICAgICAgICAgICAgICBpZDogJ3RhYnMnICsgaVxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG59XG5cbmZ1bmN0aW9uIHNldExpc3RzKGxpc3RzKSB7XG4gICAgdmFyIGluZGV4ID0gZ2V0TXlWYXIoTVlfVVJMLCAnMCcpO1xuICAgIHZhciBfbGlzdCA9IGdldE15VmFyKCdzaHNvcnQnLCAnMCcpID09ICcwJyA/IGxpc3RzW2luZGV4XSA6IGxpc3RzW2luZGV4XS5yZXZlcnNlKCk7XG4gICAgZm9yICh2YXIgayBpbiBfbGlzdCkge1xuICAgICAgICBldmFsKCdkLnB1c2goJyArIGdldE15VmFyKCdsaXN0c1B1c2gnKSArICcpOycpO1xuICAgIH1cbiAgICBjbGVhck15VmFyKCdjdHlwZScpO1xuICAgIGlmIChfbGlzdC5sZW5ndGggPD0gNCkge1xuICAgICAgICBldmFsKG1ibGFuayg0KSk7XG4gICAgfSBlbHNlIGlmIChfbGlzdC5sZW5ndGggPD0gOCkge1xuICAgICAgICBldmFsKG1ibGFuaygzKSk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k7XFxuICAgICAgICB9XFxuICAgICAgICBpZiAoaW5kZXggPT09IDApIHtcXG4gICAgICAgICAgICBzdWJfY2F0ZWdvcmllcy5mb3JFYWNoKChpdGVtLCBrZXkpID0+IHtcXG4gICAgICAgICAgICAgICAgbGV0IHRpdGxlID0gcGRmaChpdGVtLCDliIbnsbvmoIfpopgpO1xcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGtleS50b1N0cmluZygpID09PSBjYXRlX3RlbXBbaW5kZXhdID8gc3Ryb25nKHRpdGxlLCDliIbnsbvpopzoibIpIDogdGl0bGUsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6ICQocGQoaXRlbSwg5YiG57G76ZO+5o6lKSArICcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChwYXJhbXMpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgbmV3X2NhdGUgPSBbXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICBwYXJhbXMuY2F0ZV90ZW1wLmZvckVhY2goKGNhdGUsIGluZGV4KSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ld19jYXRlLnB1c2goaW5kZXggPT09IDAgPyBwYXJhbXMua2V5LnRvU3RyaW5nKCkgOiAnMCcpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoJ3QnLCBKU09OLnN0cmluZ2lmeShuZXdfY2F0ZSkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKCd1cmwnLCBpbnB1dCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UodHJ1ZSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcXG4gICAgICAgICAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBjYXRlX3RlbXA6IGNhdGVfdGVtcCxcXG4gICAgICAgICAgICAgICAgICAgICAgICBrZXk6IGtleSxcXG4gICAgICAgICAgICAgICAgICAgICAgICBwYWdlOiBNWV9QQUdFLFxcbiAgICAgICAgICAgICAgICAgICAgfSksXFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2JsYW5rX2Jsb2NrJ1xcbiAgICAgICAgICAgIH0pO1xcbiAgICAgICAgfSBlbHNlIGlmIChmb2xkID09PSAnMScpIHtcXG4gICAgICAgICAgICBzdWJfY2F0ZWdvcmllcy5mb3JFYWNoKChpdGVtLCBrZXkpID0+IHtcXG4gICAgICAgICAgICAgICAgbGV0IHRpdGxlID0gcGRmaChpdGVtLCDliIbnsbvmoIfpopgpO1xcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGtleS50b1N0cmluZygpID09PSBjYXRlX3RlbXBbaW5kZXhdID8gc3Ryb25nKHRpdGxlLCDliIbnsbvpopzoibIpIDogdGl0bGUsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6ICQocGQoaXRlbSwg5YiG57G76ZO+5o6lKSArICcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChwYXJhbXMpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBwYXJhbXMuY2F0ZV90ZW1wW3BhcmFtcy5pbmRleF0gPSBwYXJhbXMua2V5LnRvU3RyaW5nKCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoJ3QnLCBKU09OLnN0cmluZ2lmeShwYXJhbXMuY2F0ZV90ZW1wKSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoJ3VybCcsIGlucHV0KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSh0cnVlKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknO1xcbiAgICAgICAgICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhdGVfdGVtcDogY2F0ZV90ZW1wLFxcbiAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4OiBpbmRleCxcXG4gICAgICAgICAgICAgICAgICAgICAgICBrZXk6IGtleSxcXG4gICAgICAgICAgICAgICAgICAgICAgICBwYWdlOiBNWV9QQUdFLFxcbiAgICAgICAgICAgICAgICAgICAgfSksXFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2JsYW5rX2Jsb2NrJ1xcbiAgICAgICAgICAgIH0pO1xcbiAgICAgICAgfVxcbiAgICB9KTtcXG59XCJ9LHtcImNvbF90eXBlXCI6XCJtb3ZpZV8zXCIsXCJuYW1lXCI6XCLkurrmnLrpqozor4FcIixcInBhdGhcIjpcIuS6uuacuumqjOivgVwiLFwicnVsZVwiOlwianM6aWYgKC/pqozor4EvLnRlc3QoaHRtbCkpIHtcXG4gICAgZC5wdXNoKHtcXG4gICAgICAgIHRpdGxlOiAn5Lq65py66aqM6K+BJyxcXG4gICAgICAgIHVybDogJCgnaGlrZXI6Ly9lbXB0eScpLnJ1bGUoKE1ZX1VSTCkgPT4ge1xcbiAgICAgICAgICAgIHZhciBkID0gW107XFxuICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICd4NV93ZWJ2aWV3X3NpbmdsZScsXFxuICAgICAgICAgICAgICAgIHVybDogTVlfVVJMLFxcbiAgICAgICAgICAgICAgICBkZXNjOiAnbGlzdCYmc2NyZWVuJyxcXG4gICAgICAgICAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICAgICAgICAgIHVhOiBNT0JJTEVfVUEsXFxuICAgICAgICAgICAgICAgICAgICBzaG93UHJvZ3Jlc3M6IGZhbHNlLFxcbiAgICAgICAgICAgICAgICAgICAganM6ICQudG9TdHJpbmcoKHUpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiBjaGVjaygpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGZiYS5nZXRWYXIoJ2NrJykpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgbm9kZXMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcucGFnZScpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgY28gPSBmYmEuZ2V0Q29va2llKHUpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAobm9kZXMgJiYgbm9kZXMubGVuZ3RoID4gMCAmJiBjbykge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy9mYmEubG9nKCdjbzo6Ojo6OicgKyBjbyk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmYmEucHV0VmFyKCdjaycsIGNvKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZiYS5wYXJzZUxhenlSdWxlKCQkJCgpLmxhenlSdWxlKCgpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiYWNrKCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KGNoZWNrLCA1MDApO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgIGNoZWNrKCk7XFxuICAgICAgICAgICAgICAgICAgICB9LCBNWV9VUkwpXFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICByZXR1cm4gc2V0UmVzdWx0KGQpO1xcbiAgICAgICAgfSwgTVlfVVJMKSxcXG4gICAgICAgIGNvbF90eXBlOiAndGV4dF8xJ1xcbiAgICB9KTtcXG59XCJ9XSIsImljb24iOiJodHRwczovL2FwaS54aW5hYy5uZXQvaWNvbi8/dXJsPWh0dHBzOi8vZGR5cy5wcm8vIiwicHJveHkiOiIifQ==
Add Comment
Please, Sign In to add comment