Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@期刊杂志♢@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5pyf5YiK5p2C5b+X4pmiIiwiYXV0aG9yIjoiSm9rZXIiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IiwidmVyc2lvbiI6MiwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJvdGhlciIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxuYWRkTGlzdGVuZXIoJ29uQ2xvc2UnLCAkLnRvU3RyaW5nKCgpID0+IHtcbiAgICBkZWxldGVGaWxlKFwiZGF0YTFcIik7XG4gICAgZGVsZXRlRmlsZShcImRhdGEyXCIpO1xufSkpO1xubGV0IGQgPSBbXTtcbmxldCBub3cgPSBnZXRJdGVtKCdub3cnLCAn5o6o6I2Q5pyf5YiKJyk7XG5sZXQgYXJyID0gWyfmjqjojZDmnJ/liIonLCAn5pyf5YiK5aSn5YWoJywgJ+aKpee6uOWIl+ihqCcsICfmlLbol48nXTtcbmZvciAobGV0IGl0IG9mIGFycikge1xuICAgIGQucHVzaCh7XG4gICAgICAgIHRpdGxlOiBub3cgPT0gaXQgPyAn4oCc4oCc4oCd4oCdJyArIGl0LmZvbnRjb2xvcigncmVkJykgOiBpdCxcbiAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJyxcbiAgICAgICAgdXJsOiAkKCcnKS5sYXp5UnVsZSgoaXQpID0+IHtcbiAgICAgICAgICAgIHNldEl0ZW0oXCJub3dcIiwgaXQpO1xuICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiA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iBxa19saXN0KSB7XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBpdC50aXRsZSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfNCcsXG4gICAgICAgICAgICAgICAgdXJsOiAnaGlrZXI6Ly9lbXB0eSMnICsgaXQudGl0bGVcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgICAgbGV0IGJ6X2xpc3QgPSBkYXRhLmRhdGFfbGlzdC5iel9saXN0O1xuICAgICAgICBmb3IgKGxldCBpdCBvZiBiel9saXN0KSB7XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBpdC50aXRsZSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzMnLFxuICAgICAgICAgICAgICAgIGltZzogaXQuaW1nLFxuICAgICAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vZW1wdHkjbm9Mb2FkaW5nI0BsYXp5UnVsZT0uanM6XCJ4NTovLycgKyBpdC5ocmVmICsgJ1wiJ1xuICAgICAgICAgICAgfSlcbiAgICAgICAgfVxuICAgIH1cbn0gZWxzZSBpZiAobm93ID09ICfmlLbol48nKSB7XG4gICAgbGV0IGNvbGxlY3Rpb24gPSBKU09OLnBhcnNlKHJlYWRGaWxlKCdjb2xsZWN0aW9uJykgfHwgJ3t9Jyk7XG4gICAgZm9yIChsZXQgaSBpbiBjb2xsZWN0aW9uKSB7XG4gICAgICAgIGxldCBpdCA9IGNvbGxlY3Rpb25baV07XG4gICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICB0aXRsZTogaSxcbiAgICAgICAgICAgIGNvbF90eXBlOiAnbW92aWVfMycsXG4gICAgICAgICAgICBpbWc6IGl0LmltZyxcbiAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vcGFnZS9xaz9uYW1lPScgKyBpICsgJyZpbWc9JyArIGl0LmltZyxcbiAg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9Mb2FkaW5kIycpLmxhenlSdWxlKChpdGVtKSA9PiB7XFxuICAgICAgICAgICAgICAgIGlmIChnZXRWYXIoJ2l0ZW0nLCAnJykgPT0gaXRlbSkge1xcbiAgICAgICAgICAgICAgICAgICAgY2xlYXJWYXIoJ2l0ZW0nKTtcXG4gICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKGZhbHNlKTtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/lt7LmlLbotbcgJyArIGl0ZW07XFxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICBwdXRWYXIoJ2l0ZW0nLCBpdGVtKTtcXG4gICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKGZhbHNlKTtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/lt7LlsZXlvIAgJyArIGl0ZW07XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB9LCBpdGVtKSxcXG4gICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICBsaW5lVmlzaWJsZTogZmFsc2VcXG4gICAgICAgICAgICB9XFxuICAgICAgICB9KVxcblxcbiAgICAgICAgaWYgKG5vd0l0ZW0gJiYgbm93SXRlbSA9PSBpdGVtKSB7XFxuICAgICAgICAgICAgZGF0YV9saXN0LmRhdGFfbGlzdC5tbFtub3dJdGVtXS5mb3JFYWNoKGUgPT4ge1xcbiAgICAgICAgICAgICAgICBsZXQgaW5kZXggPSBzdGFyLmluZGV4T2YoZS50aXRsZSk7XFxuICAgICAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgICAgICB0aXRsZTogJ+KAnOKAnOKAneKAnTxzbWFsbD4nICsgZS50aXRsZSArICc8L3NtYWxsPicsXFxuICAgICAgICAgICAgICAgICAgICBkZXNjOiAn4oCc4oCc4oCd4oCdPHNtYWxsPicgKyBlLmludHJvICsgJzwvc21hbGw+Jy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aXRsZSArICcmaW5kZXg9JyArIChpbmRleCArIDEpLFxcbiAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICBocmVmOiBocmVmLFxcbiAgICAgICAgICAgIGxpbmVWaXNpYmxlOiBmYWxzZVxcbiAgICAgICAgfVxcbiAgICB9KVxcbn1cXG5mb3IgKGxldCBpID0gMDsgaSA8IDEwOyBpKyspIHtcXG4gICAgZC5wdXNoKHtcXG4gICAgICAgIGNvbF90eXBlOiAnYmxhbmtfYmxvY2snXFxuICAgIH0pXFxufVxcbnNldFJlc3VsdChkKTtcIn1dIiwiaWNvbiI6Imh0dHBzOi8vd3d3LmxpZnZlcy5jb20vZmF2aWNvbi5pY28iLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment