Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@阿里token@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6Zi/6YeMdG9rZW4iLCJhdXRob3IiOiLpppnpm4Xmg4UiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IiwidmVyc2lvbiI6MSwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJ0b29sIiwiY2xhc3NfdXJsIjoiIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG52YXIgZCA9IFtdO1xuZC5wdXNoKHtcbiAgICB0aXRsZTogXCLim4XvuI/ngrnmiJHojrflj5Z0b2tlblwiLFxuICAgIHVybDogJChcImhpa2VyOi8vZW1wdHkjIyNub1JlY29yZEhpc3RvcnkjI25vSGlzdG9yeSNcIikucnVsZSgoKSA9PiB7XG4gICAgICAgIGxldCBkID0gW107XG4gICAgICAgIGxldCB1cmwgPSAnaHR0cHM6Ly93d3cuYWxpeXVuZHJpdmUuY29tL3NpZ24nXG4gICAgICAgIGxldCBqcyA9ICQudG9TdHJpbmcoKCkgPT4ge1xuICAgICAgICAgICAgY29uc3QgdG9rZW5GdW5jdGlvbiA9IGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgICAgIHZhciBzdG9yID0gXCJcIjtcbiAgICAgICAgICAgICAgICBpZiAobG9jYWxTdG9yYWdlLmdldEl0ZW0oJ3Rva2VuJykgIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICBzdG9yID0gbG9jYWxTdG9yYWdlLmdldEl0ZW0oXCJ0b2tlblwiKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBzdG9yID0gc2Vzc2lvblN0b3JhZ2UuZ2V0SXRlbShcInRva2VuXCIpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB2YXIgdG9rZW4gPSBKU09OLnBhcnNlKHN0b3IpO1xuICAgICAgICAgICAgICAgIGlmICh0b2tlbiAmJiB0b2tlbi51c2VyX2lkKSB7XG4gICAgICAgICAgICAgICAgICAgIGxldCBhbGlzdGZpbGUgPSBcImhpa2VyOi8vZmlsZXMvcnVsZXMveHlxL215YWxpdG9rZW4udHh0XCI7XG4gICAgICAgICAgICAgICAgICAgIGxldCB0b2tlbmRhdGEgPSB0b2tlbi5yZWZyZXNoX3Rva2VuO1xuICAgICAgICAgICAgICAgICAgICAvL2ZiYS5sb2codG9rZW5kYXRhKTtcbiAgICAgICAgICAgICAgICAgICAgZnlfYnJpZGdlX2FwcC53cml0ZUZpbGUoYWxpc3RmaWxlLCB0b2tlbmRhdGEpO1xuICAgICAgICAgICAgICAgICAgICBsb2NhbFN0b3JhZ2UuY2xlYXIoKTtcbiAgICAgICAgICAgICAgICAgICAgYWxlcnQoJ1RPS0VO6I635Y+W5oiQ5Yqf77yM6L+U5Zue5ZCO5Yi35paw6aG16Z2i77yBJyk7XG4gICAgICAgICAgICAgICAgICAgIGZ5X2JyaWRnZV9hcHAucGFyc2VMYXp5UnVsZShgaGlrZXI6Ly9lbXB0eUBsYXp5UnVsZT0uanM6cmVmcmVzaFg1V2ViVmlldygnJyk7YCk7XG4gICAgICAgICAgICAgICAgICAgIGZ5X2JyaWRnZV9hcHAuYmFjaygpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdG9rZW5fdGltZXIoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB2YXIgdG9rZW5fdGltZXIgPSBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KHRva2VuRnVuY3Rpb24sIDUwMClcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICB0b2tlbkZ1bmN0aW9uKCk7XG4gICAgICAgIH0pXG4gICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICB1cmw6IHVybCxcbiAgICAgICAgICAgIGNvbF90eXBlOiAneDVfd2Vidmlld19zaW5nbGUnLFxuICAgICAgICAgICAgZGVzYzogJzEwMCUmJmZsb2F0JyxcbiAgICAgICAgICAgIGV4dHJhOiB7XG4gICAgICAgICAgICAgICAgY2FuQmFjazogdHJ1ZSxcbiAgICAgICAgICAgICAgICB1YTogUENfVUEsXG4gICAgICAgICAgICAgICAganM6IGpzXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgICAgIHNldFJlc3VsdChkKTtcbiAgICB9KSxcbiAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnXG59KTtcbmlmIChmaWxlRXhpc3QoXCJoaWtlcjovL2ZpbGVzL3J1bGVzL3h5cS9teWFsaXRva2VuLnR4dFwiKSkge1xuICAgIGxldCBteWRlZnRvayA9IGZldGNoKFwiaGlrZXI6Ly9maWxlcy9ydWxlcy94eXEvbXlhbGl0b2tlbi50eHRcIiwge30pO1xuICAgIGQucHVzaCh7XG4gICAgICAgIHRpdGxlOiBteWRlZnRvayxcbiAgICAgICAgdXJsOiAkKG15ZGVmdG9rKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gJ2NvcHk6Ly8nICsgaW5wdXRcbiAgICAgICAgfSksXG4gICAgICAgIGNvbF90eXBlOiBcInRleHRfMVwiLFxuICAgICAgICBkZXNjOiBcIlwiLFxuICAgICAgICBwaWNfdXJsOiBcIlwiXG4gICAgfSwge1xuICAgICAgICB0aXRsZTogJ1Rva2Vu5bGe5LqO56eB5a+G5L+h5oGv77yM6K+35LiN6KaB5oiq5Zu+5pys6aG15LiN5omT56CB5oiW55u05o6l5oqKVG9rZW7liIbkuq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nJyk7XG4gICAgICAgIGlmIChyZWZ0b2tlbi5zdGFydHNXaXRoKCdodHRwJykpIHtcbiAgICAgICAgICAgIHJlZnRva2VuID0gZmV0Y2gocmVmdG9rZW4sIHtcbiAgICAgICAgICAgICAgICBoZWFkZXJzOiB7XG4gICAgICAgICAgICAgICAgICAgICdVc2VyLUFnZW50JzogJ29raHR0cC8zLjEyLjExJ1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICAgIGlmIChyZWZ0b2tlbiA9PSAnJykge1xuICAgICAgICAgICAgcmV0dXJuICd0b2FzdDovL3Rva2Vu5Li656m677yBJztcbiAgICAgICAgfSBlbHNlIGlmIChyZWZ0b2tlbi5sZW5ndGggIT0gMzIpIHtcbiAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly90b2tlbuS4jeato+ehru+8gSc7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB2YXIgcmVmcmVzaCA9IGZldGNoKCdodHRwczovL2F1dGguYWxpeXVuZHJpdmUuY29tL3YyL2FjY291bnQvdG9rZW4nLCB7XG4gICAgICAgICAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgICAgICAgICAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL2pzb24nLFxuICAgICAgICAgICAgICAgICAgICAnVXNlci1BZ2VudCc6IFBDX1VBLFxuICAgICAgICAgICAgICAgICAgICAnUmVmZXJlcic6ICdodHRwczovL3d3dy5hbGl5dW5kcml2ZS5jb20vJ1xuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgYm9keTogJ3tcInJlZnJlc2hfdG9rZW5cIjpcIicgKyByZWZ0b2tlbiArICdcIixcImdyYW50X3R5cGVcIjpcInJlZnJlc2hfdG9rZW5cIn0nLFxuICAgICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHB1dE15VmFyKCdyZXN1bHR0b2snLCByZWZyZXNoKTtcbiAgICAgICAgICAgIHB1dE15VmFyKCdhbGl0b2tlbicsIEpTT04ucGFyc2UocmVmcmVzaCkucmVmcmVzaF90b2tlbik7XG4gICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xuICAgICAgICAgICAgXG4gICAgICAgICAgICBcbiAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSdcbiAgICAgICAgfVxuXG4gICAgfSksXG4gICAgY29sX3R5cGU6IFwiZmxleF9idXR0b25cIixcbiAgICBkZXNjOiBcIlwiLFxuICAgIHBpY191cmw6IFwiXCJcbn0pO1xuXG5pZiAoZ2V0TXlWYXIoJ3Jlc3VsdHRvaycsICcnKS5pbmNsdWRlcygnXCJyZWZyZXNoX3Rva2VuXCInKSkge1xuICAgIHZhciB0b2tlbmpzb24gPSBKU09OLnBhcnNlKGdldE15VmFyKCdyZXN1bHR0b2snLCAne30nKSk7XG4gICAgbGV0IHRva2VuZGF0YSA9IHRva2VuanNvbi5yZWZyZXNoX3Rva2VuO1xuXG5cbiAgICBkLnB1c2goe1xuICAgICAgICB0aXRsZTogJ+KAnOKAnOKAneKAnTxiPjxmb250IGNvbG9yPVwiIzAwMDAwMFwiPvCfk4PlpI3liLY8L2ZvbnQ+PC9iPicsXG4gICAgICAgIHVybDogJCgnaGlrZXI6Ly9lbXB0eScpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgICAgIHJldHVybiAnY29weTovLycgKyBnZXRNeVZhcigncmVzdWx0dG9rJywgJycpXG4gICAgICAgIH0pLFxuICAgICAgICBjb2xfdHlwZTogXCJmbGV4X2J1dHRvblwiLFxuICAgICAgICBkZXNjOiBcIlwiLFxuICAgICAgICBwaWNfdXJsOiBcIlwiXG4gICAgfSwge1xuICAgICAgICB0aXRsZTogJ+KAnOKAnOKAneKAnTxmb250IGNvbG9yPVwiIzEzQjYxQlwiPuKWkCDmjqjpgIFUb2tlbuKeoFRWQm94PC9mb250PicsXG4gICAgICAgIHVybDogJCgnaGlrZXI6Ly9lbXB0eScpLmxhenlSdWxlKCh0b2tlbmRhdGEpID0+IHtcbiAgICAgICAgICAgIC8vcmV0dXJuICdjb3B5Oi8vJyArIGdldE15VmFyKCdyZXN1bHR0b2snLCAnJylcbiAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9wYWdlL3B1c2g/cHVzaHVybD0nICsgZW5jb2RlVVJJQ29tcG9uZW50KCdhbGl0b2tlbkAnICsgdG9rZW5kYXRhKTtcbiAgICAgICAgfSwgdG9rZW5kYXRhKSxcbiAgICAgICAgY29sX3R5cGU6IFwiZmxleF9idXR0b25cIixcbiAgICAgICAgZGVzYzogXCJcIixcbiAgICAgICAgcGljX3VybDogXCJcIlxuICAgIH0gLyp7XG4gICAgICAgIHRpdGxlOiAn5o6o5b2x6KeG5LuT6K6+572uVG9rZW4nLFxuICAgICAgICB1cmw6ICQoJ2hpa2VyOi8vZW1wdHknKS5sYXp5UnVsZSgodG9rZW5kYXRhKSA9PiB7XG4gICAgICAgICAgICAvL3JldHVybiAnY29weTovLycgKyBnZXRNeVZhcigncmVzdWx0dG9rJywgJycpXG4gICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vcGFnZS9wdXNoP3B1c2h1cmw9JyArIGVuY29kZVVSSUNvbXBvbmVudCgndG9rZW5AJyArIHRva2VuZGF0YSk7XG4gICAgICAgIH0sIHRva2VuZGF0YSksXG4gICAgICAgIGNvbF90eXBlOiBcInRleHRfMlwiLFxuICAgICAgICBkZXNjOiBcIlwiLFxuICAgICAgICBwaWNfdXJsOiBcIlwiXG4gICAgfSovKTtcblxuXG4gICAgZC5wdXNoKHtcbiAgICAgICAgdGl0bGU6ICflvZPliY3nlKjmiLfvvJonICsgdG9rZW5qc29uLm5pY2tfbmFtZSArICcgJyArIHRva2VuanNvbi51c2VyX25hbWUsXG4gICAgICAgIHVybDogJ2hpa2VyOi8vZW1wdHknLFxuICAgICAgICBjb2xfdHlwZTogXCJhdmF0YXJcIix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