Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:网页插件¥js_url¥global_qq音乐、MV下载@base64://Ly89PT09PT09PT09dmlhLXBsdWdpbjo3PT09PT09PT09PQovLz09PT09PT09PT1xcemfs+S5kOOAgU1W5LiL6L29PT09PT09PT09PQovKgogKiBAbmFtZTogcXHpn7PkuZDjgIFNVuS4i+i9vQogKiBAQXV0aG9yOiDosLfoirHms7AKICogQHZlcnNpb246IDEuMAogKiBAZGVzY3JpcHRpb246IOiuqeS9oOWPr+S7peS4i+i9veWWnOasoueahOatjOabsuOAgU1WCiAqIEBpbmNsdWRlOiAqCiAqIEBjcmVhdGVUaW1lOiAyMDE5LTEwLTEwIDE2OjQ3OjA4CiAqIEB1cGRhdGVUaW1lOiAyMDE5LTEwLTExIDAwOjU0OjA1CiAqLwooZnVuY3Rpb24gKCkgewogIC8qIOWIpOaWreaYr+WQpuivpeaJp+ihjCAqLwogIGNvbnN0IHdoaXRlTGlzdCA9IFsneS5xcS5jb20nXTsKICBjb25zdCBob3N0bmFtZSA9IHdpbmRvdy5sb2NhdGlvbi5ob3N0bmFtZTsKICBjb25zdCBrZXkgPSBlbmNvZGVVUklDb21wb25lbnQoJ+iwt+iKseazsDpxcemfs+S5kOOAgU1W5LiL6L29OuaJp+ihjOWIpOaWrScpOwogIGNvbnN0IGNhbkxvYWQgPSB3aGl0ZUxpc3Quc29tZShrZXl3b3JkID0+IHsKICAgIGlmIChob3N0bmFtZS5tYXRjaChrZXl3b3JkKSkgewogICAgICByZXR1cm4gdHJ1ZTsKICAgIH07CiAgICByZXR1cm4gZmFsc2U7CiAgfSk7CgogIGlmICghY2FuTG9hZCB8fCB3aW5kb3dba2V5XSkgewogICAgcmV0dXJuOwogIH07CiAgd2luZG93W2tleV0gPSB0cnVlOwoKICAvKiDlvIDlp4vmiafooYzku6PnoIEgKi8KICBjbGFzcyBRUU11c2ljRG93bmxvYWQgewogICAgY29uc3RydWN0b3IoKSB7CiAg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pdHksIG1wNC51cmxzWzBdKTsKICAgICAgICAgIGRpdi5hcHBlbmRDaGlsZChtdkJ0bik7CiAgICAgICAgfSk7CiAgICAgICAgbmF2LnBhcmVudE5vZGUuaW5zZXJ0QmVmb3JlKGRpdiwgbmF2KTsKICAgICAgICBuYXYucGFyZW50Tm9kZS5yZW1vdmVDaGlsZChuYXYpOwogICAgICB9KS5jYXRjaCgoKSA9PiBjb25zb2xlLmxvZygndmlh77ya6I635Y+WbXbkuIvovb3lnLDlnYDlpLHotKUnKSk7CiAgICB9OwogICAgY3JlYXRlRG93bkJ0bih0ZXh0LCB1cmwsIGNvbG9yID0gJyMwMDAnKSB7CiAgICAgIGNvbnN0IGRpdiA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2RpdicpOwogICAgICBkaXYuc2V0QXR0cmlidXRlKCdzdHlsZScsIGAKICAgICAgICB3aWR0aDogMC42cmVtOwogICAgICAgIGhlaWdodDogMC4zcmVtOwogICAgICAgIGNvbG9yOiAke2NvbG9yfTsKICAgICAgICBsaW5lLWhlaWdodDogMC4zcmVtOwogICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjsKICAgICAgICBmb250LXNpemU6IDEycHg7CiAgICAgIGApOwogICAgICBkaXYuaW5uZXJUZXh0ID0gdGV4dDsKCiAgICAgIGRpdi5hZGRFdmVudExpc3RlbmVyKCdjbGljaycsICgpID0+IHsKICAgICAgICB3aW5kb3cub3Blbih1cmwsICdfYmxhbmsnKTsKICAgICAgfSk7CgogICAgICByZXR1cm4gZGl2OwogICAgfTsKICAgIGdldE11c2ljVXJsKCkgewogICAgICBjb25zdCB1cmwgPSB3aW5kb3cuc29uZ2xpc3RbMF0ubTRhVXJsOwogICAgICByZXR1cm4gdXJsOwogICAgfTsKICAgIGdldE12VXJsKG12SWQpIHsKICAgICAgY29uc3QgX212SWQgPSBtdklkIHx8IHdpbmRvdy5zb25nbGlzdFswXS52aWQ7CiAgICAgIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSwgcmVqZWN0KSA9PiB7CiAgICAgICAgY29uc3QgY2FsbGJhY2tOYW1lID0gJ2dldFRoZU1WSW5mbyc7CiAgICAgICAgdGhpcy5nZXRKc29ucCh7CiAgICAgICAgICB1cmw6ICdodHRwczovL3UueS5xcS5jb20vY2dpLWJpbi9tdXNpY3UuZmNnJywKICAgICAgICAgIGNhbGxiYWNrTmFtZSwKICAgICAgICAgIGRhdGE6IHsKICAgICAgICAgICAgZGF0YTogSlNPTi5zdHJpbmdpZnkoewogICAgICAgICAgICAgIGdldE12VXJsOiB7CiAgICAgICAgICAgICAgICBtb2R1bGU6ICdnb3NyZi5TdHJlYW0uTXZVcmxQcm94eScsCiAgICAgICAgICAgICAgICBtZXRob2Q6ICdHZXRNdlVybHMnLAogICAgICAgICAgICAgICAgcGFyYW06IHsKICAgICAgICAgICAgICAgICAgdmlkczogW19tdklkXSwKICAgICAgICAgICAgICAgICAgcmVxdWVzdF90eXBldDogMTAwMDEKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pLAogICAgICAgICAgICBjYWxsYmFjazogY2FsbGJhY2tOYW1lLAogICAgICAgICAgICBsb2dpblVpbjogMCwKICAgICAgICAgICAgaG9zdFVpbjogMCwKICAgICAgICAgICAgZm9ybWF0OiAnanNvbnAnLAogICAgICAgICAgICBpbkNoYXJzZXQ6ICd1dGY4JywKICAgICAgICAgICAgb3V0Q2hhcnNldDogJ0dCMjMxMicsCiAgICAgICAgICAgIG5vdGljZTogMCwKICAgICAgICAgICAgcGxhdGZvcm06ICd5cXEnLAogICAgICAgICAgICBuZWVkTmV3Q29kZTogMAogICAgICAgICAgfSwKICAgICAgICAgIHN1Y2Nlc3MocmVzKSB7CiAgICAgICAgICAgIGNvbnN0IG1wNExpc3QgPSByZXMuZ2V0TXZVcmwuZGF0YVtfbXZJZF0ubXA0OwogICAgICAgICAgICBjb25zdCBmaWxlVHlwZSA9IHsKICAgICAgICAgICAgICAnMTAnOiAn5qCH5riFbXYnLAogICAgICAgICAgICAgICcyMCc6ICfpq5jmuIVtdicsCiAgICAgICAgICAgICAgJzMwJzogJ+i2hea4hW12JywKICAgICAgICAgICAgICAnNDAnOiAnMTA4MG12JwogICAgICAgICAgICB9OwogICAgICAgICAgICBjb25zdCBtcDRzID0gW107CiAgICAgICAgICAgIG1wNExpc3QuZm9yRWFjaChtcDQgPT4gewogICAgICAgICAgICAgIGNvbnN0IGluZm8gPSB7CiAgICAgICAgICAgICAgICBxdWFsaXR5OiAn6auY5riFJywKICAgICAgICAgICAgICAgIHVybHM6IFtdCiAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgICBpZiAobXA0LmNvZGUgPT09IDApIHsKICAgICAgICAgICAgICAgIGluZm8ucXVhbGl0eSA9IGZpbGVUeXBlW21wNC5uZXdGaWxlVHlwZV07CiAgICAgICAgICAgICAgICBpbmZvLnVybHMgPSBtcDQuZnJlZWZsb3dfdXJsOwogICAgICAgICAgICAgICAgbXA0cy5wdXNoKGluZm8pOwogICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXNvbHZlKG1wNHMpOwogICAgICAgICAgfSwKICAgICAgICAgIGVycm9yKCkgewogICAgICAgICAgICByZWplY3QoKTsKICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgfSk7CiAgICB9OwogICAgLyog6I635Y+WIGpzb25wIOWHveaVsCAqLwogICAgZ2V0SnNvbnAoeyB1cmwsIGRhdGEgPSB7fSwgY2FsbGJhY2tOYW1lID0gJ2NhbGxiYWNrJywgc3VjY2VzcyA9ICgpID0+IHsgfSwgZXJyb3IgPSAoKSA9PiB7IH0sIHRpbWVvdXQgPSA1MDAwIH0pIHsKICAgICAgbGV0IHNyYyA9IHVybDsKCiAgICAgIE9iamVjdC5rZXlzKGRhdGEpLmZvckVhY2goKGtleSwgaW5kZXgpID0+IHsKICAgICAgICBjb25zdCBjb25uZWN0U3ltYm9sID0gaW5kZXggPT09IDAgPy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IGlmIChjb25kaXRpb24oKSkgewogICAgICAgICAgY2xlYXJJbnRlcnZhbCh0aW1lcklkKTsKICAgICAgICAgIHJlc29sdmUoKTsKICAgICAgICAgIHJldHVybjsKICAgICAgICB9OwogICAgICAgIHBhc3RUaW1lICs9IGludGVydmFsOwogICAgICB9LCBpbnRlcnZhbCk7CiAgICB9KTsKICB9OwoKICAvKiDnrYkgbmF2IOa4suafk+WujOWGjeWIneWni+WMliAqLwogIGNhblJ1bih7CiAgICBjb25kaXRpb24oKSB7CiAgICAgIHJldHVybiBCb29sZWFuKGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3IoJy50b3Bfb3BlcmF0aW9uX2JveCcpKTsKICAgIH0KICB9KS50aGVuKCgpID0+IHsKICAgIG5ldyBRUU11c2ljRG93bmxvYWQoKTsKICB9KS5jYXRjaCgoZXJyKSA9PiBjb25zb2xlLmxvZygnZnVjayB5b3UnLCBlcnIpKTsKfSkoKTsKLy89PT09PT09PT09dmlhLXBsdWdpbjo3PT09PT09PT09PQo=
Add Comment
Please, Sign In to add comment