Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@啊哈dj@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5ZWK5ZOIZGoiLCJhdXRob3IiOiLnvJjliIYiLCJ1cmwiOiJodHRwOi8vbS5haGFkai5jb20vdm9kLmh0bWwjI2Z5cGFnZSIsInZlcnNpb24iOjksImNvbF90eXBlIjoiY2FyZF9waWNfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoibXVzaWMiLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbnZhciBkID0gW107XG5hZGRMaXN0ZW5lcihcIm9uQ2xvc2VcIiwgJC50b1N0cmluZygoKSA9PiB7XG4gICAgY2xlYXJNeVZhcihcIm1vZGVcIik7XG4gICAgY2xlYXJNeVZhcihcInhcIik7XG59KSk7XG52YXIgaWNvbiA9ICdoaWtlcjovL2ZpbGVzL3l1YW4vaWNvbi8yLmdpZic7XG52YXIgcGljID0gJ2h0dHBzOi8va2tpbWdzLnlpc291LmNvbS9pbXM/a3Q9dXJsJmF0PW9yaSZrZXk9YUhSMGNEb3ZMM056TG1OelpHNHVibVYwTDNBX2FIUjBjSE02THk5dGJXSnBlaTV4Y0dsakxtTnVMMjF0WW1sNlgyZHBaaTgwWW1salpWYzJZblYwZUhGak1qRXdSMnM1VFhWM2VqTkxWRGhsVm01alNIVkpiRXBrV0dsamNrcHBZV3REYUhSTlYyRkVOWEJ5ZEZsNlpFRnVlRlZ0Y0hKcmEzcDJka28yUWpka1JHMXZSRU53WVRGd1lUWjJVUzgyTkRBX2QzaGZabTEwUFdkcFpnPT0mc2lnbj15eDpRM0ptSTZNUGlVaktPOXpsR1FZdWRPZ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ICcjM0NFNjhFJyk7XG4gICAgICAgIHh5ID0gJ+KAnOKAnOKAneKAnTxiPjxzcGFuIHN0eWxlPVwiY29sb3I6ICMxYWFkMTlcIj4nICsgaXRlbVswXSArICc8L3NwYW4+PC9iPic7XG4gICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICB0aXRsZTogaXRlbVswXSA9PSBnZXRNeVZhcignbW9kZScsICfop4bpopEnKSA/IHh5IDogaXRlbVswXSxcbiAgICAgICAgICAgIGltZzogaXRlbVsxXSxcbiAgICAgICAgICAgIHVybDogJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgodGEpID0+IHtcbiAgICAgICAgICAgICAgICBwdXRNeVZhcihcIm1vZGVcIiwgdGEpXG4gICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKVxuICAgICAgICAgICAgICAgIHJldHVybiBcImhpa2VyOi8vZW1wdHlcIlxuICAgICAgICAgICAgfSwgaXRlbVswXSksXG4gICAgICAgICAgICBjb2xfdHlwZTogXCJpY29uX3NtYWxsXzRcIlxuICAgICAgICB9KVxuICAgIH0pIFxuTG9hZGluZygpXG59XG5cbiAgbGV0IG1vZGUgPSBnZXRNeVZhcihcIm1vZGVcIiwgXCLop4bpopFcIik7XG4gIHN3aXRjaCAobW9kZSkge1xuICAgIGNhc2UgJ+inhumikSc6ICBcbiAgICB2YXIgbGlzdCA9IHBkZmEoZ2V0UmVzQ29kZSgpLCAnLnlpbnl1ZSYmbGknKTtcbiAgICBmb3IgKHZhciBqIGluIGxpc3QpIHtcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiBwZGZoKGxpc3Rbal0sICdkbCYmVGV4dCcpLFxuICAgICAgICAgICAgZGVzYzogcGRmaChsaXN0W2pdLCAnZGwsMSYmVGV4dCcpLFxuICAgICAgICAgICAgcGljX3VybDogcGQobGlzdFtqXSwgJ2ltZyYmc3JjJykgKyAnQFJlZmVyZXI9JyxcbiAgICAgICAgICAgIHVybDogcGQobGlzdFtqXSwgJ2EmJmhyZWYnKS5yZXBsYWNlKCcxLmh0bWwnLCAnZnlwYWdlLmh0bWwnKSArICQoJycpLnJ1bGUoKCkgPT4ge1xuICAgICAgICAgICAgICAgICQucmVxdWlyZShcImhpa2VyOi8vcGFnZS9zcGVyP3J1bGU95ZWK5ZOIZGpcIilcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH0pO1xuICAgIH0gXG4gICAgICAgIGJyZWFrXG4gICAgY2FzZSAn6Z+z5LmQJzogICBcbiB2YXIgbGlzdCA9IHBkZmEocmVxdWVzdCgnaHR0cDovL20uYWhhZGouY29tL211c2ljLmh0bWwnLCB7fSksICcueWlueXVlJiZsaScpO1xuICAgIGZvciAodmFyIGogaW4gbGlzdCkge1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IHBkZmgobGlzdFtqXSwgJ2RsJiZUZXh0JyksXG4gICAgICAgICAgICBkZXNjOiBwZGZoKGxpc3Rbal0sICdkbCwxJiZUZXh0JyksXG4gICAgICAgICAgICBwaWNfdXJsOiBwZChsaXN0W2pdLCAnaW1nJiZzcmMnKSArICdAUmVmZXJlcj0nLFxuICAgICAgICAgICAgdXJsOiBwZChsaXN0W2pdLCAnYSYmaHJlZicpLnJlcGxhY2UoJzEuaHRtbCcsICdmeXBhZ2UuaHRtbCcpICsgJCgnJykucnVsZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgJC5yZXF1aXJlKFwiaGlrZXI6Ly9wYWdlL3NwZXI/cnVsZT3llYrlk4hkalwiKVxuICAgICAgICAgICAgfSlcbiAgICAgICAgfSk7XG4gICAgfSAgIFxuICAgICAgICBicmVha1xuICAgIGNhc2UgJ+aOqOiNkCc6ICAgICBcbnZhciBodG1sID0gcmVxdWVzdCgnaHR0cDovL20uYWhhZGouY29tL3BvcC5odG1sJylcbiAgICBkLnB1c2goe1xuICAgICAgICB0aXRsZTogJzxiPicgKyBwZGZoKGh0bWwsICcudGl0X2NvbSYmVGV4dCcpKyc8Yj4nLFxuICAgICAgICBjb2xfdHlwZTogJ3JpY2hfdGV4dCcsXG4gICAgfSk7XG4gICAgdmFyIGxpc3QgPSBwZGZhKGh0bWwsICcuc2hpcGluZ19ib3gmJmxpJyk7XG4gICAgZm9yICh2YXIgaiBpbiBsaXN0KSB7XG4gICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICB0aXRsZTogcGRmaChsaXN0W2pdLCAnaDImJlRleHQnKSxcbiAgICAgICAgICAgIGRlc2M6IHBkZmgobGlzdFtqXSwgJy5zaGlwaW5nX3p6JiZUZXh0JyksXG4gICAgICAgICAgICBwaWNfdXJsOiBwZChsaXN0W2pdLCAnaW1nJiZzcmMnKSArICdAUmVmZXJlcj0nLFxuICAgICAgICAgICAgdXJsOiBwZChsaXN0W2pdLCAnYSYmaHJlZicpICsgJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgdXJsID0gcGRmaChyZXF1ZXN0KGlucHV0KSwgJ3NvdXJjZSYmc3JjJylcbiAgICAgICAgICAgICAgICByZXR1cm4gdXJsXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIGNvbF90eXBlOiAnbW92aWVfMicsXG4gICAgICAgIH0pO1xuICAgIH1cbiAgICBkLnB1c2goe1xuICAgICAgICB0aXRsZTonIDxiPiAnKyBwZGZoKGh0bWwsICcudGl0X2NvbSwxJiZUZXh0JykrJzxiPicsXG4gICAgICAgIGNvbF90eXBlOiAncmljaF90ZXh0JyxcbiAgICB9KTtcbiAgICB2YXIgbGlzdCA9IHBkZmEoaHRtbCwgJy55aW55dWUmJmxpJyk7XG4gICAgZm9yICh2YXIgaiBpbiBsaXN0KSB7XG4gICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICB0aXRsZTogcGRmaChsaXN0W2pdLCAnaDMmJlRleHQnKSxcbiAgICAgICAgICAgIGRlc2M6IHBkZmgobGlzdFtqXSwgJ2RsJiZUZXh0JyksXG4gICAgICAgICAgICBwaWNfdXJsOiBwZChsaXN0W2pdLCAnaW1nJiZzcmMnKSArICdAUmVmZXJlcj0nLFxuICAgICAgICAgICAgdXJsOiBwZChsaXN0W2pdLCAnYSYmaHJlZicpICsgJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgdXJsID0gcGRmaChyZXF1ZXN0KGlucHV0KSwgJ2F1ZGlvJiZzcmMnKVxuICAgICAgICAgICAgICAgIHJldHVybiB1cmwgKyAnI2lzTXVzaWM9dHJ1ZSMnXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIGNvbF90eXBlOiAnbW92aWVfMV9sZWZ0X3BpYycsXG4gICAgICAgIH0pO1xuICAgIH0gIFxuICAgICAgICBicmVha1xuICAgIGNhc2UgJ+S4k+i+kSc6ICAgXG52YXIgbGlzdCA9IHBkZmEocmVxdWVzdCgnaHR0cDovL20uYWhhZGouY29tL3podWFuamkvJyArIE1ZX1BBR0UgKyAnLmh0bWwnLCB7fSksICcuYWxidW0taXRlbSYmYScpO1xuICAgIGZvciAodmFyIGogaW4gbGlzdCkge1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IHBkZmgobGlzdFtqXSwgJ3NwYW4mJlRleHQnKSxcbiAgICAgICAgICAgIGRlc2M6IHBkZmgobGlzdFtqXSwgJ3VsJiZsaSw0JiZUZXh0JyksXG4gICAgICAgICAgICBwaWNfdXJsOiBwZChsaXN0W2pdLCAnaW1nJiZzcmMnKSArICdAUmVmZXJlcj0nLFxuICAgICAgICAgICAgdXJsOiBwZChsaXN0W2pdLCAnYSYmaHJlZicpLnJlcGxhY2UoJzEuaHRtbCcsICdmeXBhZ2UuaHRtbCcpICsgJCgnJykucnVsZSgoKSA9PiB7IFxuICAgICAgICAgICAgICAgICQucmVxdWlyZShcImhpa2VyOi8vcGFnZS9zcGVyP3J1bGU95ZWK5ZOIZGpcIilcbiAgICAgICAgICAgIH0pLFxuICAgIC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V5ICsgJyZwYWdlPScgKyBNWV9QQUdFKzEgKyAnLmh0bWwnOyAgIFxuICAgICAgICAgICAgdmFyIGxpc3QxID0gcGRmYShyZXF1ZXN0KHVybCx7fSksICcueWlueXVlJiZsaScpO1xuICAgICAgICAgICAgdmFyIGxpc3QyID0gcGRmYShyZXF1ZXN0KHVybDEse30pLCAnLnlpbnl1ZSYmbGknKTtcblxuICAgICAgICAgICAgdmFyIGxpc3QgPSBsaXN0MS5jb25jYXQgKGxpc3QyKVxuICAgICAgICAgICAgICAgIGZvciAodmFyIGogaW4gbGlzdCkge1xuICAgICAgICAgICAgdmFyIG5hbWVzID0gcGRmaChsaXN0W2pdLCAnZGQsMiYmVGV4dCcpO1xuICAgICAgICAgICAgICAgICAgICBpZiAobmFtZSA9PT0gJ21wMycmJm5hbWVzID09PSAnTVAzJykge1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHVybDEgPSAnaHR0cHM6Ly9tLmFoYWRqLmNvbScgKyBwZGZoKGxpc3Rbal0sICdhJiZocmVmJykgKyBsYXp5XG4gICAgICAgICAgICAgICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBwZGZoKGxpc3Rbal0sICdoMyYmVGV4dCcpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlc2M6IHBkZmgobGlzdFtqXSwgJ2RsJiZUZXh0JyksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaW1nOiBwZGZoKGxpc3Rbal0sICdpbWcmJnNyYycpLCAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiB1cmwxLCAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7IFxuICAgICAgICAgICAgICAgICAgIH0gICAgICAgICAgIFxuICAgICAgICAgICAgICAgICAgICBpZiAobmFtZSA9PT0gJ01WJyYmbmFtZXMgIT09ICdNUDMnKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgdXJsID0gJ2h0dHBzOi8vbS5haGFkai5jb20nICsgcGRmaChsaXN0W2pdLCAnYSYmaHJlZicpICsgbGF6eVxuICAgICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogcGRmaChsaXN0W2pdLCAnaDMmJlRleHQnKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZXNjOiBwZGZoKGxpc3Rbal0sICdkbCYmVGV4dCcpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGltZzogcGRmaChsaXN0W2pdLCAnaW1nJiZzcmMnKSwgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmw6IHVybFxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgfSAgICAgICAgICAgIFxuICAgc2V0UmVzdWx0KGQpO1xuICAgICAgICB9LCBzb3VyY2UubmFtZSwgbGF6eSlcbiAgICB9O1xufSkgICAgICBcbnNldFJlc3VsdChbe1xuICAgIHRpdGxlOiBcIueCueaIkeW8gOWni+iBmuaQnFwiLFxuICAgIHVybDogXCJoaWtlcjovL3NlYXJjaD9zPVwiICsgZ2V0UGFyYW0oXCJrZXlcIiksXG4gICAgZXh0cmE6IHtcbiAgICAgICAgcnVsZXM6ICQudG9TdHJpbmcoKHJ1bGVzKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gcnVsZXNcbiAgICAgICAgfSwgcnVsZXMpXG4gICAgfVxufV0pIiwiZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsImRldGFpbF9maW5kX3J1bGUiOiIiLCJzZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsInNkZXRhaWxfZmluZF9ydWxlIjoiIiwidWEiOiJtb2JpbGUiLCJwcmVSdWxlI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mhyZWYnKSArICQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKCkgPT4ge1xcbiAgICAgICAgICAgICAgICB1cmwgPSBwZGZoKHJlcXVlc3QoaW5wdXQpLCAnc291cmNlJiZzcmMnKVxcbiAgICAgICAgICAgICAgICByZXR1cm4gdXJsXFxuICAgICAgICAgICAgfSksXFxuICAgICAgICAgICAgY29sX3R5cGU6ICdtb3ZpZV8yJyxcXG4gICAgICAgIH0pO1xcbiAgICB9XFxuICAgIGQucHVzaCh7XFxuICAgICAgICB0aXRsZTonIDxiPiAnKyBwZGZoKGh0bWwsICcudGl0X2NvbSwxJiZUZXh0JykrJzxiPicsXFxuICAgICAgICBjb2xfdHlwZTogJ3JpY2hfdGV4dCcsXFxuICAgIH0pO1xcbiAgICB2YXIgbGlzdCA9IHBkZmEoaHRtbCwgJy55aW55dWUmJmxpJyk7XFxuICAgIGZvciAodmFyIGogaW4gbGlzdCkge1xcbiAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICB0aXRsZTogcGRmaChsaXN0W2pdLCAnaDMmJlRleHQnKSxcXG4gICAgICAgICAgICBkZXNjOiBwZGZoKGxpc3Rbal0sICdkbCYmVGV4dCcpLFxcbiAgICAgICAgICAgIHBpY191cmw6IHBkKGxpc3Rbal0sICdpbWcmJnNyYycpICsgJ0BSZWZlcmVyPScsXFxuICAgICAgICAgICAgdXJsOiBwZChsaXN0W2pdLCAnYSYmaHJlZicpICsgJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgoKSA9PiB7XFxuICAgICAgICAgICAgICAgIHVybCA9IHBkZmgocmVxdWVzdChpbnB1dCksICdhdWRpbyYmc3JjJylcXG4gICAgICAgICAgICAgICAgcmV0dXJuIHVybCArICcjaXNNdXNpYz10cnVlIydcXG4gICAgICAgICAgICB9KSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzFfbGVmdF9waWMnLFxcbiAgICAgICAgfSk7XFxuICAgIH1cXG59IGVsc2UgaWY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VcGRhdGUpIHtcXG4gICAgICAgIGxvZygn5pyJ5paw54mI5pysOicgKyBuZXdWZXJzaW9uICsgJyzlvZPliY06JyArIG15VmVyc2lvbik7XFxuICAgICAgICBjb25maXJtKHtcXG4gICAgICAgICAgICB0aXRsZTogJ+abtOaWsOaPkOekuicsXFxuICAgICAgICAgICAgY29udGVudDogJ+ajgOa1i+WIsOS9oOeahOinhOWImeeJiOacrOWwj+S6juacjeWKoeWZqOeJiOacrO+8jOaYr+WQpueri+WNs+abtOaWsO+8nycsXFxuICAgICAgICAgICAgY29uZmlybTogJC50b1N0cmluZygodXBsaW5rKSA9PiB7XFxuICAgICAgICAgICAgICAgIHJldHVybiBg5rW36ZiU6KeG55WM6aaW6aG16aKR6YGT6KeE5YiZ77+laG9tZV9ydWxlX3VybO+/pSR7dXBsaW5rfWBcXG4gICAgICAgICAgICB9LCB1cGxpbmspLFxcbiAgICAgICAgICAgIGNhbmNlbDogJC50b1N0cmluZygoKSA9PiB7XFxuICAgICAgICAgICAgICAgIHJldHVybiBwdXRNeVZhcigncXgnLCAnMCcpXFxuICAgICAgICAgICAgfSlcXG4gICAgICAgIH0pXFxuICAgIH1cXG59XCJ9LHtcImNvbF90eXBlXCI6XCJtb3ZpZV8zXCIsXCJuYW1lXCI6XCJsYXp5XCIsXCJwYXRoXCI6XCJsYXp5XCIsXCJydWxlXCI6XCJ2YXIgbGF6eSA9ICQoXFxcIlxcXCIpLmxhenlSdWxlKCgpID0+IHtcXG4gICAgdXJsID0gcGRmaChyZXF1ZXN0KGlucHV0KSwgJ3NvdXJjZXx8YXVkaW8mJnNyYycpXFxuICAgIGlmICgvendtdHYvLnRlc3QodXJsKSkge1xcbiAgICAgICAgcmV0dXJuIHVybFxcbiAgICB9IGVsc2Uge1xcbiAgICAgICAgcmV0dXJuIHVybCArICcjaXNNdXNpYz10cnVlIydcXG4gICAgfVxcbn0pXCJ9XSIsImljb24iOiJodHRwOi8vbS5haGFkai5jb20vcmVzL2hvbWUvaW1hZ2VzL2ljb25fMDEucG5nIiwicHJveHkiOiIifQ==
Add Comment
Please, Sign In to add comment