Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@聚影@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6IGa5b2xIiwiYXV0aG9yIjoiIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSIsInZlcnNpb24iOjksImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbmxldCBsb2FjbGNvZGUgPSBcImhpa2VyOi8vZmlsZXMvZGF0YS9cIitNWV9SVUxFLnRpdGxlK1wiL2NvZGUvU3JjSnV5aW5nLmpzXCI7XG5pZihjb25maWcu5L6d6LWWIHx8IGZpbGVFeGlzdChsb2FjbGNvZGUpKXtcbiAgICB0cnl7XG4gICAgICAgIHJlcXVpcmUoY29uZmlnLuS+nei1lik7XG4gICAgICAgIHlpamkoKTtcbiAgICB9Y2F0Y2goZSl7XG4gICAgICAgIGxvZyhlLm1lc3NhZ2UpO1xuICAgICAgICB0b2FzdChlLm1lc3NhZ2UpO1xuICAgICAgICBjb25maXJtKHtcbiAgICAgICAgICAgIHRpdGxlOifkvp3otZblnLDlnYDliqDovb3lpLHotKUnLCBcbiAgICAgICAgICAgIGNvbnRlbnQ6J+aYr+WQpumHjeaWsOiOt+WPluS+nei1lu+8nycgKyAoZmlsZUV4aXN0KGxvYWNsY29kZSk/J1xcbuWPlua2iOWPr+WIh+S4uuacrOWcsOS+nei1luW6kyc6JycpLCBcbiAgICAgICAgICAgIGNvbmZpcm06JC50b1N0cmluZygoKT0+e1xuICAgICAgICAgICAgICAgIGNsZWFySXRlbSgn5L6d6LWWJyk7XG4gICAgICAgICAgICAgICAgaW5pdENvbmZpZyh75L6d6LWWOicnfSk7XG4gICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoZmFsc2UpO1xuICAgICAgICAgICAgICAgIHRvYXN0KCflgb/or5XliLfmlrDkvp3otZblnLDlnYAnKTtcbiAgICAgICAgICAgIH0pLCBcbiAgICAgICAgICAgIGNhbmNlbDokLnRvU3RyaW5nKChsb2FjbGNvZGUpPT57XG4gICAgICAgICAgICAgICAgaWYoZmlsZUV4aXN0KGxvYWNsY29kZSkpe1xuICAgICAgICAgICAgICAgICAgICBjb25maXJtKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiflj5HnjrDmnKzlnLDkvp3otZblupMnLCBcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRlbnQ6J+aYr+WQpuWIh+aNoui1sOacrOWcsOS+nei1luW6k++8nycsIFxuICAgICAgICAgICAgICAgICAgICAgICAgY29uZmlybTokLnRvU3RyaW5nKChsb2FjbGNvZGUpPT57XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0SXRlbSgn5pys5Zyw5L6d6LWW5bqTJywnMScpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluaXRDb25maWcoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICDkvp3otZY6IGxvYWNsY29kZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICB9LGxvYWNsY29kZSksIFxuICAgICAgICAgICAgICAgICAgICAgICAgY2FuY2VsOiQudG9TdHJpbmcoKCk9PntcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0b2FzdCgn6YeN6L+b5oiW5o2i572R5YaN6K+V5LiA5qyhJyk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sbG9hY2xjb2RlKVxuICAgICAgICB9KVxuICA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5mdW5jdGlvbiBwcm94eVBhZ2UoKSB7XFxuICAgIHNldFBhZ2VUaXRsZSgn5ZCv5Yqo5Luj55CG566h55CGJyk7XFxuICAgIGxldCBkID0gW107XFxuICAgIGQucHVzaCh7XFxuICAgICAgICB0aXRsZTogZ2V0cHJveHkoKS5sZW5ndGg9PTA/J+mcgOimgWdpdGh1YuS7o+eQhuadpeiOt+WPluS7o+egge+8jOeCueWHu+adpeS4quS+i+WtkCc6J+mAieaLqeS7o+eggeW6k+iOt+WPluaWueW8jycsXFxuICAgICAgICBkZXNjOiAn5pyJ5Luj55CG77yaJyArIHByb3h5bGlzdC5sZW5ndGggKyAn77yM5pyJ5pWI55qE77yaJyArIGdldHByb3h5KCkubGVuZ3RoLFxcbiAgICAgICAgdXJsOiBnZXRwcm94eSgpLmxlbmd0aD09MD8kKFxcXCIjbm9Mb2FkaW5nI1xcXCIpLmxhenlSdWxlKCgpID0+IHtcXG4gICAgICAgICAgICBldmFsKHJjKCdodHRwczovL3Jhdy5naXRjb2RlLmNvbS9zcmM0ODU5Nzk2Mi9qdXlpbmcvcmF3L21hc3Rlci9wbHVnaW5zL2docHJveHkuanMnLDI0KSk7XFxuICAgICAgICAgICAgbGV0IGdocHJveHkgPSBnZXRwcm94eShwcm94eXMpO1xcbiAgICAgICAgICAgIGlmKGdocHJveHkpe1xcbiAgICAgICAgICAgICAgICBwdXRNeVZhcignZ2V0X2docHJveHknLGdocHJveHkpO1xcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZShmYWxzZSk7XFxuICAgICAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/mnaXkuobvvIzngrnmt7vliqDlkKcnO1xcbiAgICAgICAgICAgIH1lbHNle1xcbiAgICAgICAgICAgICAgICByZXR1cm4gJ3RvYXN0Oi8v5omL5bel5aGr5YaZ5aaC77yaaHR0cHM6Ly9naHByb3h5Lm5ldC8nO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH0pOiQoWyfmlrnlvI/kuIDvvJroh6rliqjojrflj5bku6PnoIHlupMnLCfmlrnlvI/kuozvvJrmiYvlt6XmjIflrprku6PnoIHlupMnLCfmlrnlvI/kuInvvJrkuIvovb3mnKzlnLDku6PnoIHlupMnXSwgMSwgJ+aMh+WumuiBmuW9seS7o+eggeiOt+WPluaWueW8jycpLnNlbGVjdCgoKSA9PiB7XFxuICAgICAgICAgICAgaWYoTVlfSU5ERVg9PTApe1xcbiAgICAgICAgICAgICAgICByZXR1cm4gXFxcInRvYXN0Oi8v5re75Yqg5a6M5pyJ5pWI55qEZ2l0aHVi5Yqg6YCf5Luj55CG5ZCO6L+U5Zue5Yi35pawXFxcIjtcXG4gICAgICAgICAgICB9ZWxzZSBpZihNWV9JTkRFWD09MCl7XFxuICAgICAgICAgICAgICAgIHJldHVybiAkKGdldEl0ZW0oJ+S+nei1licsICcnKSwgXFxcIuaMh+WumuiBmuW9seS7o+eggeS7k+WcsOWdgFxcXCIpLmlucHV0KCgpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgIGlucHV0ID0gaW5wdXQucmVwbGFjZSgvXFxcXHMrL2csICcnKTtcXG4gICAgICAgICAgICAgICAgICAgIGlmKCFpbnB1dC5zdGFydHNXaXRoKCdodHRwJykpe1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidG9hc3Q6Ly/ovpPlhaXmnInor69cXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgc2V0SXRlbSgn5L6d6LWWJywgaW5wdXQpO1xcbiAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidG9hc3Q6Ly/lt7Lorr7nva5cXFwiO1xcbiAgICAgICAgICAgICAgICB9KVxcbiAgICAgICAgICAgIH1lbHNle1xcbiAgICAgICAgICAgICAgICB0b2FzdChcXFwi6L+b5YWl5LiL6L296ZO+5o6l77yM5a+85YWl5a6M5oiQ5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GlucHV0KTtcXG4gICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xcbiAgICAgICAgICAgIHJldHVybiBcXFwiaGlrZXI6Ly9lbXB0eVxcXCI7XFxuICAgICAgICB9KSxcXG4gICAgICAgIGV4dHJhOiB7XFxuICAgICAgICAgICAgZGVmYXVsdFZhbHVlOiBnZXRNeVZhcignZ2V0X2docHJveHknLCcnKSxcXG4gICAgICAgICAgICB0aXRsZVZpc2libGU6IHRydWVcXG4gICAgICAgIH1cXG4gICAgfSk7XFxuICAgIGQucHVzaCh7XFxuICAgICAgICBjb2xfdHlwZTogXFxcImxpbmVcXFwiXFxuICAgIH0pO1xcbiAgICBwcm94eWxpc3QucmV2ZXJzZSgpO1xcbiAgICBwcm94eWxpc3QuZm9yRWFjaChpdCA9PiB7XFxuICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgIHRpdGxlOiBpdC5zdG9wID8gJ+KAmOKAmOKAmeKAmTxmb250IGNvbG9yPVxcXCIjZjIwYzAwXFxcIj4nICsgaXQudXJsICsgJzwvZm9udD4nIDogaXQudXJsLFxcbiAgICAgICAgICAgIHVybDogJChbaXQuc3RvcCA/IFxcXCLlkK/nlKhcXFwiIDogXFxcIuWBnOeUqFxcXCIsIFxcXCLliKDpmaRcXFwiLCBcXFwi5aSN5Yi2XFxcIixcXFwi5qOA5rWLXFxcIl0sIDEsIFxcXCJcXFwiKS5zZWxlY3QoKHVybCkgPT4ge1xcbiAgICAgICAgICAgICAgICBpZiAoaW5wdXQgPT0gXFxcIuWQr+eUqFxcXCIpIHtcXG4gICAgICAgICAgICAgICAgICAgICQucmVxdWlyZSgnZ2hwcm94eScpLnNldHByb3h5KHVybCwgMSk7XFxuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoaW5wdXQgPT0gXFxcIuWBnOeUqFxcXCIpIHtcXG4gICAgICAgICAgICAgICAgICAgICQucmVxdWlyZSgnZ2hwcm94eScpLnNldHByb3h5KHVybCwgMCk7XFxuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoaW5wdXQgPT0gXFxcIuWIoOmZpFxcXCIpIHtcXG4gICAgICAgICAgICAgICAgICAgICQucmVxdWlyZSgnZ2hwcm94eScpLnNldHByb3h5KHVybCwgMik7XFxuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoaW5wdXQgPT0gXFxcIuWkjeWItlxcXCIpIHtcXG4gICAgICAgICAgICAgICAgICAgIGNvcHkodXJsKTtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwiaGlrZXI6Ly9lbXB0eVxcXCI7XFxuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoaW5wdXQgPT0gXFxcIuajgOa1i1xcXCIpIHtcXG4gICAgICAgICAgICAgICAgICAgIGV2YWwocmMoJ2h0dHBzOi8vcmF3LmdpdGNvZGUuY29tL3NyYzQ4NTk3OTYyL2p1eWluZy9yYXcvbWFzdGVyL3BsdWdpbnMvZ2hwcm94eS5qcycsMjQpKTtcXG4gICAgICAgICAgICAgICAgICAgIGxldCBnaHByb3h5ID0gZ2V0cHJveHkoW3VybF0pO1xcbiAgICAgICAgICAgICAgICAgICAgaWYoZ2hwcm94eSl7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICd0b2FzdDovL+aIkOWKnyc7XFxuICAgICAgICAgICAgICAgICAgICB9ZWxzZXtcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ3RvYXN0Oi8v5aSx6LSlJztcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZShmYWxzZSk7XFxuICAgICAgICAgICAgICAgIHJldHVybiBcXFwiaGlrZXI6Ly9lbXB0eVxcXCI7XFxuICAgICAgICAgICAgfSwgaXQudXJsKSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogXFxcInRleHRfMVxcXCIsXFxuICAgICAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICAgIC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