Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@搜书君@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5pCc5Lmm5ZCbIiwiYXV0aG9yIjoiIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjIiwidmVyc2lvbiI6MjQsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbnZhciBkID0gW107XG5sZXQgaWQgPSBEYXRlLm5vdygpICsgTVlfUlVMRS50aXRsZTtcblxuZnVuY3Rpb24gbWVtKGlucHV0KSB7XG4gICAgbGV0IGhpc3RvcnkgPSBzdG9yYWdlMC5nZXRJdGVtKFwic2VhcmNoSGlzdG9yeVwiLCBbXSk7XG4gICAgbGV0IGlpID0gaGlzdG9yeS5pbmRleE9mKGlucHV0KTtcbiAgICBpZiAoaWkgPiAtMSkge1xuICAgICAgICBoaXN0b3J5LnNwbGljZShpaSwgMSk7XG4gICAgfVxuICAgIGlmIChoaXN0b3J5Lmxlbmd0aCA+IDIwKSB7XG4gICAgICAgIGhpc3Rvcnkuc3BsaWNlKGhpc3RvcnkubGVuZ3RoIC0gMSwgMSk7XG4gICAgfVxuICAgIGhpc3RvcnkudW5zaGlmdChpbnB1dCk7XG4gICAgc3RvcmFnZTAuc2V0SXRlbShcInNlYXJjaEhpc3RvcnlcIiwgaGlzdG9yeSk7XG59XG5kLnB1c2goe1xuICAgIHRpdGxlOiBcIuaQnOe0olwiLFxuICAgIHVybDogJC50b1N0cmluZygobWVtKSA9PiB7XG4gICAgICAgIHB1dE15VmFyKFwia2V5XCIsI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gICAgICAgIGlkOiBpZCArIFwiOmtleTpcIiArIGtleSxcbiAgICAgICAgICAgIGNsczogaWQgKyBcIjprZXlcIixcbiAgICAgICAgICAgIGxvbmdDbGljazogW3tcbiAgICAgICAgICAgICAgICB0aXRsZTogXCLliKDpmaTlhbPplK7or406XCIgKyBrZXksXG4gICAgICAgICAgICAgICAganM6ICQudG9TdHJpbmcoKGlkLCBrZXksIGkpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IGhpc3RvcnkgPSBzdG9yYWdlMC5nZXRJdGVtKFwic2VhcmNoSGlzdG9yeVwiLCBbXSk7XG4gICAgICAgICAgICAgICAgICAgIGhpc3Rvcnkuc3BsaWNlKGksIDEpO1xuICAgICAgICAgICAgICAgICAgICBzdG9yYWdlMC5zZXRJdGVtKFwic2VhcmNoSGlzdG9yeVwiLCBoaXN0b3J5KTtcbiAgICAgICAgICAgICAgICAgICAgZGVsZXRlSXRlbShpZCArIFwiOmtleTpcIiArIGtleSk7XG4gICAgICAgICAgICAgICAgICAgIC8vdG9hc3QoKTtcbiAgICAgICAgICAgICAgICB9LCBpZCwga2V5LCBpKVxuICAgICAgICAgICAgfSwge1xuICAgICAgICAgICAgICAgIHRpdGxlOiBcIua4heepuuiusOW9lVwiLFxuICAgICAgICAgICAgICAgIGpzOiAkLnRvU3RyaW5nKChpZCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gJChcIuehruWumua4hemZpOWFqOmDqOaQnOe0ouiusOW9le+8n1wiKS5jb25maXJtKChpZCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xlYXJJdGVtKFwic2VhcmNoSGlzdG9yeVwiKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRlbGV0ZUl0ZW1CeUNscyhpZCArIFwiOmtleVwiKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGFkZEl0ZW1BZnRlcihpZCArIFwiOnNlYXJjaEhpc3RvcnlcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiBcInRleHRfY2VudGVyXzFcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmw6IFwiaGlrZXI6Ly9lbXB0eVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBcIuKAnOKAnOKAneKAnVwiICsgXCJ+fn7ku4DkuYjpg73msqHmnInlk6Z+fn5cIi5mb250Y29sb3IoXCJHcmF5XCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGV4dHJhOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsczogaWQgKyBcIjprZXlcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICB9LCBpZClcbiAgICAgICAgICAgICAgICB9LCBpZCksXG4gICAgICAgICAgICB9XVxuICAgICAgICB9XG4gICAgfSk7XG4gICAgaSsrO1xufVxuaWYgKGhpc3RvcnkubGVuZ3RoID09PSAwKSB7XG4gICAgZC5wdXNoKHtcbiAgICAgICAgY29sX3R5cGU6IFwidGV4dF9jZW50ZXJfMVwiLFxuICAgICAgICB1cmw6IFwiaGlrZXI6Ly9lbXB0eVwiLFxuICAgICAgICB0aXRsZTogXCLigJzigJzigJ3igJ1cIiArIFwifn5+5LuA5LmI6YO95rKh5pyJ5ZOmfn5+XCIuZm9udGNvbG9yKFwiR3JheVwiKSxcbiAgICAgICAgZXh0cmE6IHtcbiAgICAgICAgICAgIGNsczogaWQgKyBcIjprZXlcIlxuICAgICAgICB9XG4gICAgfSk7XG59XG5kLnB1c2goe1xuICAgIGNvbF90eXBlOiAnbGluZScsXG4gICAgZXh0cmE6IHtcbiAgICAgICAgaWQ6ICd5cGotbCdcbiAgICB9XG59KTtcbnNldFJlc3VsdChkKTsiLCJzZWFyY2hfdXJsIjoiIiwiZ3JvdXAiOiLikaXkuabnsY3mloflrZciLCJzZWFyY2hGaW5kIj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HV0LnN0YXJ0c1dpdGgob3JpZ2luKSAmJiBpbnB1dC5zdGFydHNXaXRoKFxcXCJodHRwXFxcIikpIHtcXG4gICAgICAgICAgICBsb2coaW5wdXQpO1xcbiAgICAgICAgICAgIGlmKG9yaWdpbi5pbmNsdWRlcyhcXFwiYmFpZHUuY29tXFxcIikpe1xcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIHJldHVybiAkLnRvU3RyaW5nKCh1cmwsIHJ1bGUpID0+IHtcXG4gICAgICAgICAgICAgICAgZnlfYnJpZGdlX2FwcC5vcGVuKEpTT04uc3RyaW5naWZ5KHtcXG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOiBcXFwi6K+m5oOFXFxcIixcXG4gICAgICAgICAgICAgICAgICAgIHVybDogXFxcImhpa2VyOi8vcGFnZS95c2Z4P3J1bGU9XFxcIiArIHJ1bGUgKyBcXFwiJnI9XFxcIiArIHJ1bGUgKyBcXFwiIyNcXFwiICsgdXJsLFxcbiAgICAgICAgICAgICAgICB9KSlcXG4gICAgICAgICAgICB9LCBpbnB1dCwgcnVsZSlcXG4gICAgICAgIH0gZWxzZSBpZiAoIWlucHV0LnN0YXJ0c1dpdGgoXFxcImh0dHBcXFwiKSkge1xcbiAgICAgICAgICAgIGxvZyhpbnB1dCk7XFxuICAgICAgICAgICAgLy/og73llKTotbdBUFDnmoTnmb3lkI3ljZVcXG4gICAgICAgICAgICBsZXQgd2hpdGUgPSBbXFxuICAgICAgICAgICAgICAgIFxcXCJxa2xpbmtcXFwiLFxcbiAgICAgICAgICAgICAgICBcXFwiYmRuZXRkaXNrXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcInh1bmxlaWFwcFxcXCIsXFxuICAgICAgICAgICAgICAgIFxcXCJzbWFydGRyaXZlXFxcIixcXG4gICAgICAgICAgICAgICAgXFxcImppYW5waWFuXFxcIlxcbiAgICAgICAgICAgIF07XFxuICAgICAgICAgICAg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9XFxuICAgIH0gY2F0Y2ggKGUpIHtcXG4gICAgICAgIGZ5X2JyaWRnZV9hcHAubG9nKGUudG9TdHJpbmcoKSk7XFxuICAgIH1cXG59KTtcXG5kLnB1c2goe1xcbiAgICB0aXRsZTogXFxcIlxcXCIsXFxuICAgIHVybDogTVlfVVJMLnNwbGl0KFxcXCIjI1xcXCIpWzFdLFxcbiAgICBjb2xfdHlwZTogXFxcIng1X3dlYnZpZXdfc2luZ2xlXFxcIixcXG4gICAgZGVzYzogXFxcIjEwMCUmJmZsb2F0XFxcIixcXG4gICAgcGljX3VybDogXFxcIlxcXCIsXFxuICAgIGV4dHJhOiB7XFxuICAgICAgICB1cmxJbnRlcmNlcHRvcjogaXRlLFxcbiAgICAgICAganM6IGpzLFxcbiAgICAgICAgY2FuQmFjazogdHJ1ZSxcXG4gICAgICAgIGJsb2NrUnVsZXM6IFtcXFwiLmdpZlxcXCIsIFxcXCIvYWQvXFxcIiwgXFxcIi9hZHMvXFxcIiwgXFxcImdvb2dsZVxcXCIsIFxcXCIvc2gvdG8vXFxcIiwgXFxcIi5HSUZcXFwiXVxcbiAgICB9XFxufSk7XFxuXFxuc2V0UmVzdWx0KGQpO1wifV0iLCJpY29uIjoiIiwicHJveHkiOiIifQ==
Add Comment
Please, Sign In to add comment