Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@星影@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5pif5b2xIiwiYXV0aG9yIjoiemV0YWxwaGEiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyNodHRwczovL3d3dy54eTEwODAubmV0L3ZvZHNob3cvMS0tLS0tLS0tZnlwYWdlLS0tLyIsInZlcnNpb24iOjAsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbnZhciBkID0gW107XG5NWV9VUkwgPSBNWV9VUkwucmVwbGFjZSgnaGlrZXI6Ly9lbXB0eSMjJywgJycpO1xuZXZhbChKU09OLnBhcnNlKHJlcXVlc3QoJ2hpa2VyOi8vcGFnZS9jcmVhdGU/cnVsZT3OsScpKS5ydWxlKVxuXG5jb25zdCBwYWdlID0gTVlfUEFHRTtcblxubGV0IHRydWVfdXJsID0gZ2V0VHJ1ZWxpbmsoTVlfUlVMRS51cmwsIE1ZX1VSTCwgcGFnZSk7XG5cblxubG9nKHRydWVfdXJsKVxuXG52YXIgZ2V0UmFuZ2VDb2xvcnMgPSBmdW5jdGlvbigpIHvCoMKgwqDCoMKgwqDCoFxuICAgIHJldHVybiAnIycgKyAoJzAwMDAwJyArIChNYXRoLnJhbmRvbSgpICogMHgxMDAwMDAwIDw8IDApLnRvU3RyaW5nKDE2KSkuc3Vic3RyKC02KTvCoMKgwqDCoMKgXG59XG4vL+WKqOaAgeWIhuexu+WumuS5iSBcbnZhciDlpKfnsbvlrprkvY0gPSAnLmhlYWQtbW9yZSYmYTpub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0ZXIoKFtrXSkgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBrLmluY2x1ZGVzKCd3c1NlY3JldCcpXG4gICAgICAgICAgICB9KS5tYXAoKFtrLCB2XSkgPT4ge1xuICAgICAgICAgICAgICAgIHZhciB2YWx1ZSA9IE9iamVjdC5lbnRyaWVzKHYpLm1hcCgoW2ssIHZdKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBrICsgJ0AnICsgdjtcbiAgICAgICAgICAgICAgICB9KS5qb2luKCcmJicpXG4gICAgICAgICAgICAgICAgcmV0dXJuIGsgKyAnOnsnICsgdmFsdWUgKyAnfSdcbiAgICAgICAgICAgIH0pWzBdXG4gICAgICAgICAgICByZXR1cm4gd3NzXG4gICAgICAgIH1cbiAgICAgICAgdmFyIHVybCA9IGd1cmwoZGF0YSk7XG4gICAgICAgIHVybCArICcjaXNWaWRlbz10cnVlIydcblxuICAgICAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkoe1xuICAgICAgICAgICAgdXJsczogW3VybF0sXG4gICAgICAgIH0pXG5cbiAgICB9LCBpdC5ocmVmKTtcblxuICAgIHZhciB1cmx4ID0gXCJ3ZWJSdWxlOi8vXCIgKyBpdC5ocmVmICsgXCJAXCIgKyBfd2ViO1xuICAgIHJldHVybiB1cmx4XG59KVxuXG52YXIgcGFyc2VSdWxlID0ge1xuICAgIGxpc3Q6ICdsaXN0JywgLy/nu5/kuIBpdGVtXG4gICAgdGl0bGU6ICdpdGVtLnZvZF9uYW1lJyxcbiAgICBkZXNjOiAnaXRlbS52b2RfcmVtYXJrcycsXG4gICAgaW1nOiAnaXRlbS52b2RfcGljJyxcbiAgICB1cmw6IFwiTVlfSE9NRSsnL3ZvZGRldGFpbC8nICsgaXRlbS52b2RfaWRcIixcbiAgICBjb2xfdHlwZTogJ21vdmllXzNfbWFycXVlZScsXG4gICAgcmVmOiAnQFJlZmVyZXI9JyxcbiAgICBpbXQ6IHRydWUsXG59XG5cblxudmFyIHB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H0pLm1hdGNoKC9yIHBsYXllcl8uKj89KC4qPyk8LylbMV0pXG4gICAgICAgIHZhciB1cmwgPSBodG1sLnVybFxuICAgICAgICBpZiAoaHRtbC5lbmNyeXB0ID09ICcxJykge1xuICAgICAgICAgICAgdXJsID0gdW5lc2NhcGUodXJsKTtcbiAgICAgICAgfSBlbHNlIGlmIChodG1sLmVuY3J5cHQgPT0gJzInKSB7XG4gICAgICAgICAgICB1cmwgPSB1bmVzY2FwZShiYXNlNjREZWNvZGUodXJsKSk7XG4gICAgICAgIH1cbiAgICAgICAgbG9nKHVybClcbiAgICAgICAgaWYgKC9tM3U4fG1wNC8udGVzdCh1cmwpKSB7XG4gICAgICAgICAgICByZXR1cm4gdXJsXG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB2YXIgdSA9ICdodHRwczovL29vLmNjeDE3OC5jb20vP3VybD0nICsgdW5lc2NhcGUodXJsKTtcbiAgICAgICAgICAgIHZhciB4dXJsID0gZXhlY3V0ZVdlYlJ1bGUodSwgJC50b1N0cmluZygoKSA9PiB7XG4gICAgICAgICAgICAgICAgdmFyIHZpZGVvID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcigndmlkZW8nKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gdmlkZW8uZ2V0QXR0cmlidXRlKCdzcmMnKVxuICAgICAgICAgICAgfSksIHtcbiAgICAgICAgICAgICAgICBibG9ja1J1bGVzOiBbJyoubTN1OCddLFxuICAgICAgICAgICAgICAgIHRpbWVvdXQ6IDYwMDAsXG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgbG9nKHgudXJsLnN0YXJ0c1dpdGgoJ2Jsb2I6JykpXG4gICAgICAgICAgICBpZiAoeHVybCA9PSAnJyAmJiB4LnVybC5zdGFydHNXaXRoKCdibG9iOicpKSB7XG4gICAgICAgICAgICAgICAgaWYgKGlzb2ZmaWNpYWwodXJsKSkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gJC5yZXF1aXJlKFwiaGlrZXI6Ly9wYWdlL211bFBhcnNlP3J1bGU96YWN572u5Yqp5omLXCIpLm11bFBhcnNlKHVybCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiAndmlkZW86Ly8nICsgdTtcbiAgICAgICAgICAgICAgICAvL3JldHVybiAndG9hc3Q6Ly/op6PmnpDotoXml7bvvIzor7flsJ3or5Xph43or5XmiJbnoa7orqTnvZHpobXog73lkKbmkq3mlL4nXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4geHVybCArICd7UmVmZXJlckAnICsgaW5wdXQgKyAnfScgKyAnaXNWaWRlbz10cnVlIyc7XG4gICAgICAgIH1cbiAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgIHJldHVybiBcInZpZGVvOi8vXCIgKyBpbnB1dFxuICAgIH1cblxufSlcblxudmFyIGxhenkgPSAkKCcnKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgdHJ5IHtcbiAgICAgICAgdmFyIGh0bWwgPSBKU09OLnBhcnNlKHJlcXVlc3QoaW5wdXQsIHtcbiAgICAgICAgICAgIGhlYWRlcnM6IHtcbiAgICAgICAgICAgICAgICBBY2NlcHQ6ICd0ZXh0L2h0bWwsYXBwbGljYXRpb24veGh0bWwreG1sLGFwcGxpY2F0aW9uL3htbDtxPTAuOSxpbWFnZS93ZWJwLGltYWdlL2FwbmcsKi8qO3E9MC44LGFwcGxpY2F0aW9uL3NpZ25lZC1leGNoYW5nZTt2PWIzO3E9MC45J1xuICAgICAgICAgICAgfVxuICAgICAgICB9KS5tYXRjaCgvciBwbGF5ZXJfLio/PSguKj8pPC8pWzFdKVxuICAgICAgICB2YXIgdXJsID0gaHRtbC51cmxcbiAgICAgICAgaWYgKGh0bWwuZW5jcnlwdCA9PSAnMScpIHtcbiAgICAgICAgICAgIHVybCA9IHVuZXNjYXBlKHVybCk7XG4gICAgICAgIH0gZWxzZSBpZiAoaHRtbC5lbmNyeXB0ID09ICcyJykge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J+ajgOa1i+WIsOe8uuWwkeWwj+eoi+W6jyzor7flr7zlhaUhJyxcbiAgICAgICAgY29uZmlybTogKCkgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIFwicnVsZTovLzVyVzM2WmlVNktlRzU1V001WTJWNktlRTVZaVo2SzZpNlppRjc3K2xhRzl0WlY5emRXTHZ2NlhPc1VCQWFIUjBjRG92TDJocGEyVnlMbTV2YTJsaExuQnlaWE56TDJocGEyVnlkV3hsTDNKMWJHVnNhWE4wTG1wemIyNC9hV1E5TmpReE55WmtaV0oxWnoxMGNuVmxcIlxuICAgICAgICB9XG4gICAgfSlcbn0gZWxzZSB7XG4gICAgaWYgKHJlcXVlc3QoJ2hpa2VyOi8vaG9tZUDOsScpID09ICdudWxsJykge1xuICAgICAgICBjb25maXJtKHtcbiAgICAgICAgICAgIHRpdGxlOiAn5L6d6LWW5qOA5rWLJyxcbiAgICAgICAgICAgIGNvbnRlbnQ6ICfmo4DmtYvliLDnvLrlsJHlsI/nqIvluo8s6K+35a+85YWlIScsXG4gICAgICAgICAgICBjb25maXJtOiAoKSA9PiB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFwi5rW36ZiU6KeG55WM6aaW6aG16aKR6YGT6KeE5YiZ44CQzrHjgJHvv6Vob21lX3J1bGVfdXJs77+laHR0cDovL2hpa2VyLm5va2lhLnByZXNzL2hpa2VydWxlL3J1bGVsaXN0Lmpzb24/aWQ9NjQxN1wiXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgfVxufSIsInBhZ2VzIjoiW10iLCJpY29uIjoiaHR0cHM6Ly9pLmltZ3RnLmNvbS8yMDIzLzA2LzA1L081b3ZXYS5wbmciLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment