Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@性用社APP@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5oCn55So56S+QVBQIiwiYXV0aG9yIjoiIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjZnlwYWdlIiwidmVyc2lvbiI6MCwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJvdGhlciIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxudmFyIGQgPSBbXTtcbmlmIChNWV9QQUdFID09IDEpIHtcbiAgICBkLnB1c2goe1xuICAgICAgICBkZXNjOiBcIuaQnOS9oOaDs+imgeeahC4uLlwiLFxuICAgICAgICB0aXRsZTogXCLwn5SNXCIsXG4gICAgICAgIHVybDogJ2hpa2VyOi8vZW1wdHlmeXBhZ2Ujbm9IaXN0b3J5IyNub1JlY29yZEhpc3RvcnkjJyArIGBAcnVsZT1qczooXG4oKSA9PiB7XG4gICAgICAgICAgICByZXF1aXJlKCdoaWtlcjovL3BhZ2Uvc2VhcmNoJyk7XG4gICAgICAgIH1cbikoKWAsXG4gICAgICAgIGNvbF90eXBlOiBcImljb25fMV9zZWFyY2hcIlxuICAgIH0pO1xufVxuXG5pZiAoIWZpbGVFeGlzdCgneGluZ19mZW5sZWkudHh0JykpIHtcbiAgICB2YXIgZGF0YSA9IEpTT04ucGFyc2UoZmV0Y2goJ2h0dHBzOi8vYXBwLmNtbWh0LnRvcC95c2NvbmZpZzM5LnBocCcpKTtcbiAgICB2YXIgYXBpID0gZGF0YS5hcGk7IC8vbG9nKGFwaSk7XG4gICAgc2F2ZUZpbGUoJ3hpbmdfY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BpbmRleCkgPT4ge1xuICAgICAgICAgICAgICAgIHB1dFZhcignYXBpLmluZGV4JywgaW5kZXgpO1xuICAgICAgICAgICAgICAgIHB1dFZhcignYXBpLm16JywgbXopO1xuICAgICAgICAgICAgICAgIHB1dFZhcignYXBpLmR6JywgZHopO1xuICAgICAgICAgICAgICAgIGNsZWFyVmFyKCdmZW5sZWkuaW5kZXgnKTtcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZShmYWxzZSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcbiAgICAgICAgICAgIH0sIGxpc3QubXosIGxpc3QuZHosIGluZGV4KSxcbiAgICAgICAgICAgIGNvbF90eXBlOiAnc2Nyb2xsX2J1dHRvbicsXG4gICAgICAgIH0pO1xuICAgIH0pO1xuICAgIGZlbmxlaVtnZXRWYXIoJ2FwaS5pbmRleCcsICcxMicpXS5mb3JFYWNoKGZ1bmN0aW9uKGxpc3QsIGluZGV4LCBkYXRhKSB7XG4gICAgICAgIHZhciB1cmwgPSBhcGlbZ2V0VmFyKCdhcGkuaW5kZXgnLCAnMTInKV0uZHogKyAnP3Q9JyArIGxpc3QgKyAnJnA9MSZzaj0xJztcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiBpbmRleCA9PSBnZXRWYXIoJ2ZlbmxlaS5pbmRleCcsICcwJykgPyAn4oCY4oCY4oCZ4oCZPHN0cm9uZz48Zm9udCBjb2xvcj0gXCIjMzM5OTY2XCI+JyArIGxpc3QgKyAnPC9mb250Pjwvc3Ryb25nPicgOiBsaXN0LFxuICAgICAgICAgICAgdXJsOiAkKHVybCArICcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChpbmRleCkgPT4ge1xuICAgICAgICAgICAgICAgIHB1dFZhcignZmVubGVpLmluZGV4JywgaW5kZXgpO1xuICAgICAgICAgICAgICAgIHB1dFZhcigndHJ1ZV91cmwnLCBpbnB1dC5zcGxpdCgnIycpWzBdKT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ICAgICAgICAgICB9LCBpbmRleCksXFxuICAgICAgICAgICAgY29sX3R5cGU6ICdmbGV4X2J1dHRvbicsXFxuICAgICAgICB9KTtcXG4gICAgfSk7XFxufVxcbnNldFBhZ2VUaXRsZSgn5pCc57SiJyk7XFxuYWRkTGlzdGVuZXIoJ29uQ2xvc2UnLCAoKSA9PiB7XFxuICAgIGNsZWFyVmFyKFxcXCLlhbPplK7or41cXFwiKTtcXG59KTtcXG5pZiAoTVlfUEFHRSA9PSAxKSB7XFxuICAgIGQucHVzaCh7XFxuICAgICAgICB0aXRsZTogJ/CflI0nLFxcbiAgICAgICAgZGVzYzogJ+ivt+i+k+WFpeWFs+mUruivjScsXFxuICAgICAgICB1cmw6ICQudG9TdHJpbmcoKCkgPT4ge1xcbiAgICAgICAgICAgIHB1dFZhcign5YWz6ZSu6K+NJywgaW5wdXQpO1xcbiAgICAgICAgICAgIGlmIChpbnB1dCAhPSAnJykge1xcbiAgICAgICAgICAgICAgICB2YXIgaGlzdG9yeSA9IEpTT04ucGFyc2UocmVhZEZpbGUoJ2hpc3RvcnkudHh0JykgfHwgJ1tdJyk7XFxuICAgICAgICAgICAgICAgIGhpc3RvcnkucHVzaChpbnB1dCk7XFxuICAgICAgICAgICAgICAgIHNhdmVGaWxlKCdoaXN0b3J5LnR4dCcsIEpTT04uc3RyaW5naWZ5KGhpc3RvcnkpLCAwKTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICByZXR1cm47XFxuICAgICAgICB9KSxcXG4gICAgICAgIGNvbF90eXBlOiAnaW5wdXQnLFxcbiAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICBkZWZhdWx0VmFsdWU6IGdldFZhcign5YWz6ZSu6K+NJyksXFxuICAgICAgICB9XFxuICAgIH0pO1xcbn0gLy9sb2coJzQ0NCcpO1xcbmlmIChnZXRWYXIoJ+WFs+mUruivjScpID09ICcnKSB7XFxuICAgIGlmIChNWV9QQUdFID09IDEpIHtcXG4gICAgICAgIGxldCBtZW0gPSBKU09OLnBhcnNlKHJlYWRGaWxlKCdoaXN0b3J5LnR4dCcpIHx8ICdbXScpO1xcbiAgICAgICAgaWYgKG1lbS5sZW5ndGggPiAwKSB7XFxuICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgdGl0bGU6ICfwn5OdIOaQnOe0ouWOhuWPsicsXFxuICAgICAgICAgICAgICAgIHVybDogJChcXFwiI25vTG9hZGluZyNcXFwiKS5sYXp5UnVsZSgoKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICBjb25maXJtKHtcXG4gICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogXFxcIua4hemZpOiusOW9lVxcXCIsXFxuICAgICAgICAgICAgICAgICAgICAgICAgY29udGVudDogXFxcIuehruWumuWlveS6huWQl++8n+iusOW9leWwhuS8muS4jeWkjeWtmOWcqH5cXFwiLFxcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbmZpcm06ICgpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVsZXRlRmlsZSgnaGlzdG9yeS50eHQnKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9hc3QoJ+a4hemZpOaIkOWKn34nKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSc7XFxuICAgICAgICAgICAgICAgIH0pLFxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfMScsXFxuICAgICAgICAgICAgICAgIGV4dHJhOiB7XFxuICAgICAgICAgICAgICAgICAgICBsaW5lVmlzaWJsZTogZmFsc2VcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIH0pXFxuICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgIHRpdGxlOiBcXFwi5ZaC5ZaCfui/mOayoeaQnOe0ouWRou+9nijvv6Pilr3vv6PvvZ4pflxcXCIsXFxuICAgICAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vZW1wdHknLFxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfMScsXFxuICAgICAgICAgICAgICAgIGV4dHJhOiB7XFxuICAgICAgICAgICAgICAgICAgICBsaW5lVmlzaWJsZTogZmFsc2VcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIH0pXFxuICAgICAgICB9XFxuICAgICAgICBmb3IgKGxldCBpID0gbWVtLmxlbmd0aCAtIDE7IGkgPj0gMDsgaS0tKSB7XFxuICAgICAgICAgICAgbGV0IGl0ID0gbWVtW2ldO1xcbiAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgIHRpdGxlOiBpdCxcXG4gICAgICAgICAgICAgICAgdXJsOiAkKFxcXCIjbm9Mb2FkaW5nI1xcXCIpLmxhenlSdWxlKChpdCkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgcHV0VmFyKCflhbPplK7or40nLCBpdCk7XFxuICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcXG4gICAgICAgICAgICAgICAgfSwgaXQpLFxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogXFxcImZsZXhfYnV0dG9uXFxcIlxcbiAgICAgICAgICAgIH0pXFxuICAgICAgICB9XFxuICAgIH1cXG59IGVsc2Uge1xcbiAgICB2YXIgdHJ1ZV91cmwgPSBnZXRWYXIoJ3RydWVfdXJsX3NvdXN1bycsICdodHRwczovL2FwaTEuZmZ1ZGluZ2RhbmcuY29tOjkwMDIvYXBpL2prdW4ucGhwP3c9JykgKyBnZXRWYXIoJ+WFs+mUruivjScpICsgJyZwPScgKyBNWV9QQUdFICsgJyZzaj0xJztcXG4gICAgbG9nKCd0cnVlX3VybDonICsgdHJ1ZV91cmwpO1xcbiAgICB2YXIgaHRtbCA9IGZldGNoKHRydWVfdXJsKTtcXG4gICAgaWYgKC/or6XotYTmupDlt7Llup/lvIN8V2FybmluZy8udGVzdChodG1sKSkge1xcbiAgICAgICAgdmFyIGxpc3QgPSBbXTtcXG4gICAgfSBlbHNlIHtcXG4gICAgICAgIHZhciBsaXN0ID0gSlNPTi5wYXJzZShodG1sKS5kYXRhO1xcbiAgICB9XFxuICAgIGlmICghbGlzdCkge1xcbiAgICAgICAgbGlzdCA9IFtdO1xcbiAgICB9IC8vbG9nKGxpc3QpO1xcbiAgICBmb3IgKHZhciBsaXN0IG9mIGxpc3QpIHtcXG4gICAgICAgIGlmICgvdXJsPS8udGVzdChsaXN0LmRpemhpKSkge1xcbiAgICAgICAgICAgIHZhciB1cmxfdG1wID0gbGlzdC5kaXpoaS5zcGxpdCgndXJsPScpWzFdO1xcbiAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaCh1cmxfdG1wKSkucmVzY29udDtcXG4gICAgICAgICAgICB2YXIgdXJsID0ganNvbi52aWRlb3BhdGg7XFxuICAgICAgICAgICAgdmFyIGltZyA9IGpzb24uY292ZXJiYXNlNjQ/anNvbi5jb3ZlcmJhc2U2NC51cmw6bGlzdC50dXBpYW47XFxuICAgICAgICAgICAgdmFyIGRlc2MgPSAnJztcXG4gICAgICAgICAgICBpZiAoanNvbi5sYWJscykge1xcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBuID0gMDsgbiA8IGpzb24ubGFibHMubGVuZ3RoOyBuKyspIHtcXG4gICAgICAgICAgICAgICAgICAgIGRlc2MgPSBkZXNjICsgJ3wnICsganNvbi5sYWJsc1tuXS5uYW1lO1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICB2YXIgdXJsID0gbGlzdC5kaXpoaTtcXG4gICAgICAgICAgICB2YXIgZGVzYyA9IChsaXN0LmRpcXUgIT0gJycgPyAobGlzdC5kaXF1ICsgJ3wnKSA6ICcnKSArIChsaXN0Lnl1eWFuICE9ICcnID8gKGxpc3QueXV5YW4gKyAnfCcpIDogJycpICsgbGlzdC5sZWl4aW5nO1xcbiAgICAgICAgICAgIHZhciBpbWcgPSBsaXN0LnR1cGlhbjtcXG4gICAgICAgIH1cXG4gICAgICAgIFxcbiAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICB0aXRsZTogbGlzdC5iaWFvdGksXFxuICAgICAgICAgICAgZGVzYzogZGVzYyxcXG4gICAgICAgICAgICBpbWc6IGltZyxcXG4gICAgICAgICAgICB1cmw6IHVybCxcXG4gICAgICAgIH0pO1xcbiAgICB9XFxufVxcbnNldFJlc3VsdChkKTtcIn1dIiwiaWNvbiI6Imh0dHBzOi8vaW1nLnZpbnVhLmNuL2ltYWdlcy9PVnVaMS5wbmciLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment