xiaomianao666

小程序:YSDQ.ME

Sep 10th, 2024
788
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@YSDQ.ME@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6ImpzOk1ZX1VSTCA9IE1ZX1VSTC5zcGxpdCgnIyMnKVsxXTtcbnZhciBodG1sID0gZmV0Y2hQQyhNWV9VUkwpO1xudmFyIGxhc3QgPSBwZGZoKGh0bWwsICcubW9kdWxlLXBsYXktbGlzdC1jb250ZW50JiZhLC0xJiZUZXh0Jyk7XG5zZXRSZXN1bHQobGFzdCk7IiwidGl0bGUiOiJZU0RRLk1FIiwiYXV0aG9yIjoiZHkyMDIwJua1t+mYlOWwj+eZvSIsInVybCI6Imhpa2VyOi8vZW1wdHkjI2h0dHBzOi8vd3d3LnlzZHEubWUvdm9kc2hvdy8yLS0tLS0tZnlwYWdlLS5odG1sIiwidmVyc2lvbiI6MjAyNDA5MTAsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbk1ZX1VSTCA9IE1ZX1VSTC5zcGxpdCgnIyMnKVsxXTtcbnZhciBkID0gW107XG5jb25zdCDliIbnsbvpopzoibIgPSAnRkY2Njk5JztcbmNvbnN0IOWkp+exu+WumuS9jSA9ICdib2R5JiYubmF2YmFyLWl0ZW1zLnN3aXBlci13cmFwcGVyJztcbmNvbnN0IOaLvOaOpeWIhuexuyA9ICdib2R5JiYubW9kdWxlLWNsYXNzLWl0ZW1zJztcbi8vY29uc3Qg5bCP57G75a6a5L2NX+S4uyA9ICdib2R5JiZhOm5vdCg6bWF0Y2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1xuICAgICAgICB9KTtcbiAgICAgICAgdXBkYXRlSXRlbSgnX2ludHJvJywge1xuICAgICAgICAgICAgdGl0bGU6IHN0cm9uZygn4oinJywgJ0NDMDAzMycpLFxuICAgICAgICB9KTtcbiAgICAgICAgcHV0TXlWYXIoJ2ludHJvJywgJzEnKTtcbiAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcbiAgICB9LCDnroDku4spLFxuICAgIGNvbF90eXBlOiAndGV4dF8xJyxcbiAgICBleHRyYToge1xuICAgICAgICBpZDogJ2ludHJvJyxcbiAgICAgICAgbGluZVZpc2libGU6IGZhbHNlXG4gICAgfVxufSk7XG52YXIgaW50cm8gPSBnZXRNeVZhcignaW50cm8nLCAnMCcpO1xuZC5wdXNoKHtcbiAgICB0aXRsZTogaW50cm8gPT0gJzAnID8gc3Ryb25nKCfiiKgnLCAnMjI5OTc3JykgOiBzdHJvbmcoJ+KIpycsICdDQzAwMzMnKSxcbiAgICB1cmw6ICQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKOeugOS7iykgPT4ge1xuICAgICAgICByYygnaHR0cHM6Ly9naXRlZS5jb20vbWlzdHl3YXRlci9oaWtlcl9pbmZvL3Jhdy9tYXN0ZXIvZicsIDI0KTtcbiAgICAgICAgdmFyIGludHJvID0gZ2V0TXlWYXIoJ2ludHJvJywgJzAnKTtcbiAgICAgICAgaWYgKGludHJvID09ICcwJykge1xuICAgICAgICAgICAgdXBkYXRlSXRlbSgnaW50cm8nLCB7XG4gICAgICAgICAgICAgICAgdGl0bGU6IHNzUijnroDku4ssICc5OTY2QUEnKSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3JpY2hfdGV4dCdcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgdXBkYXRlSXRlbSgnX2ludHJvJywge1xuICAgICAgICAgICAgICAgIHRpdGxlOiBzdHJvbmcoJ+KIpycsICdDQzAwMzMnKSxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgcHV0TXlWYXIoJ2ludHJvJywgJzEnKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHVwZGF0ZUl0ZW0oJ2ludHJvJywge1xuICAgICAgICAgICAgICAgIHRpdGxlOiBzcyjnroDku4ssICc5OTY2QUEnKS5zbGljZSgwLCAxMDApICsgJ+KApicsXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICd0ZXh0XzEnXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHVwZGF0ZUl0ZW0oJ19pbnRybycsIHtcbiAgICAgICAgICAgICAgICB0aXRsZTogc3Ryb25nKCfiiKgnLCAnMjI5OTc3JylcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgcHV0TXlWYXIoJ2ludHJvJywgJzAnKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknO1xuICAgIH0sIOeugOS7iyksXG4gICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJyxcbiAgICBleHRyYToge1xuICAgICAgICBpZDogJ19pbnRybydcbiAgICB9XG59KTtcbnZhciDnur/ot68gPSAnYm9keSYmLm1vZHVsZS10YWItaXRlbXMtYm94JiZzcGFuJztcbnZhciDpgInpm4YgPSAnYm9keSYmLm1vZHVsZS1wbGF5LWxpc3QtY29udGVudCc7XG52YXIg57q/6Lev5ZCNID0gJ1RleHQnO1xudmFyIOmAiembhuWIl+ihqCA9ICdib2R5JiZhJztcbnZhciDmjpLpmaQgPSAnLiogJztcblxudmFyIHRhYnMgPSBbXTtcbnZhciBsaXN0cyA9IFtdO1xudmFyIGFydHMgPSBwZGZhKGh0bWwsIOe6v+i3ryk7XG52YXIgY29udHMgPSBwZGZhKGh0bWwsIOmAiembhik7XG5mb3IgKHZhciBpIGluIGFydHMpIHtcbiAgICB0YWJzLnB1c2gocGRmaChhcnRzW2ldLCDnur/ot6/lkI0pKTtcbn1cbnN0b3JhZ2UwLnB1dE15VmFyKCd0YWJzJywgd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i8udGVzdCh1cmxfdCkpIHtcbiAgICAgICAgICAgICAgICB1cmwgPSB1cmxfdDtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoL3FxfHFpeWl8eW91a3V8bWd0dnxiaWxpLy50ZXN0KHVybF90KSkge1xuICAgICAgICAgICAgICAgIHVybCA9ICd2aWRlbzovL2h0dHBzOi8vangueG1mbHYuY29tLz91cmw9JyArIHVybF90O1xuICAgICAgICAgICAgfSBlbHNlIGlmICgvYmZ6eW0zdTh8cnJ5cy8udGVzdCh1cmxfdCkpIHtcbiAgICAgICAgICAgICAgICB1cmwgPSAndmlkZW86Ly9odHRwczovL3p5b25lLnZxeXQuY24vcGxheWVyLz91cmw9JyArIHVybF90O1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB1cmwgPSAndmlkZW86Ly9odHRwczovL3d3dy5vZnRlbnMudG9wL211aS8/dXJsPScgKyB1cmxfdDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHVybCA9ICd2aWRlbzovLycgKyBpbnB1dDtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdXJsO1xuICAgIH0pLFxuICAgIGNvbF90eXBlOiBnZXRNeVZhcignY3R5cGUnLCAnMCcpPT0nMCcgPyAndGV4dF8zJyA6ICd0ZXh0X2NlbnRlcl8xJyxcbiAgICBleHRyYToge1xuICAgICAgICBjbHM6ICdsaXN0cydcbiAgICB9XG59KSk7XG5wdXRNeVZhcignbGlzdHNQdXNoJywgbGlzdHNQdXNoKTtcbnZhciB1cGRhdGVMaXN0ID0gJC50b1N0cmluZygoKSA9PiB7XG4gICAgZGVsZXRlSXRlbUJ5Q2xzKCdsaXN0cycpO1xuICAgIHZhciBzID0gW107XG4gICAgdmFyIG4gPSAwO1xuICAgIGZvciAodmFyIGxpc3Qgb2YgX2xpc3QpIHtcbiAgICAgICAgaWYgKHBkZmgobGlzdCwgJ2EmJlRleHQnKS5yZXBsYWNlKC8uKz8o56ysXFxkK+Wto3znrKxcXGQr6ZuGKS8sICckMScpLmxlbmd0aCA+IDEyKSB7XG4gICAgICAgICAgICBuID0gbiArIDE7XG4gICAgICAgIH1cbiAgICB9XG4gICAgaWYgKG4gPiAzKSB7XG4gICAgICAgIHB1dE15VmFyKCdjdHlwZScsICcxJylcbiAgICB9XG4gICAgZm9yICh2YXIgbGlzdCBvZiBfbGlzdCkge1xuICAgICAgICBldmFsKCdzLnB1c2goJyArIGdldE15VmFyKCdsaXN0c1B1c2gnKSArICcpOycpO1xuICAgIH1cbiAgICBjbGVhck15VmFyKCdjdHlwZScpO1xuICAgIGFkZEl0ZW1BZnRlcigndGFicycgKyAodGFicy5sZW5ndGggLSAxKSwgcyk7XG59KTtcbnB1dE15VmFyKCd1cGRhdGVMaXN0JywgdXBkYXRlTGlzdCk7XG5cbmZ1bmN0aW9uIHNldFRhYnModGFicykge1xuICAgIGQucHVzaCh7XG4gICAgICAgIHRpdGxlOiBnZXRNeVZhcignc2hzb3J0JywgJzAnKSA9PSAnMScgPyBzdHJvbmcoJ+mAhuW6jycsICdDQzAwMzMnKSA6IHN0cm9uZygn5q2j5bqPJywgJzIyOTk3NycpLFxuICAgICAgICB1cmw6ICQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKCkgPT4ge1xuICAgICAgICAgICAgcmMoJ2h0dHBzOi8vZ2l0ZWUuY29tL21pc3R5d2F0ZXIvaGlrZXJfaW5mby9yYXcvbWFzdGVyL2YnLCAyNCk7XG4gICAgICAgICAgICB2YXIgdGFicyA9IHN0b3JhZ2UwLmdldE15VmFyKCd0YWJzJyk7XG4gICAgICAgICAgICB2YXIgbGlzdHMgPSBzdG9yYWdlMC5nZXRNeVZhcignbGlzdHMnKTtcbiAgICAgICAgICAgIGxldCBjb25mID0gZ2V0TXlWYXIoJ3Noc29ydCcsICcwJyk7XG4gICAgICAgICAgICBpZiAoY29uZiA9PSAnMScpIHtcbiAgICAgICAgICAgICAgICB2YXIgX2xpc3QgPSBsaXN0c1tnZXRNeVZhcihNWV9VUkwsICcwJyldO1xuICAgICAgICAgICAgICAgIHB1dE15VmFyKCdzaHNvcnQnLCAnMCcpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB2YXIgX2xpc3QgPSBsaXN0c1tnZXRNeVZhcihNWV9VUkwsICcwJyldLnJldmVyc2UoKTtcbiAgICAgICAgICAgICAgICBwdXRNeVZhcignc2hzb3J0JywgJzEnKTtcblxuICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIHVwZGF0ZUl0ZW0oJ3Noc29ydCcsIHtcbiAgICAgICAgICAgICAgICB0aXRsZTogZ2V0TXlWYXIoJ3Noc29ydCcsICcwJykgPT0gJzEnID8gc3Ryb25nKCfpgIbluo8nLCAnQ0MwMDMzJykgOiBzdHJvbmcoJ+ato+W6jycsICcyMjk5NzcnKVxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBldmFsKGdldE15VmFyKCd1cGRhdGVMaXN0JykpO1xuICAgICAgICAgICAgcmV0dXJuICd0b2FzdDovL+WIh+aNouaOkuW6j+aIkOWKnyc7XG4gICAgICAgIH0pLFxuICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxuICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgaWQ6ICdzaHNvcnQnXG4gICAgICAgIH1cbiAgICB9KTtcbiAgICBmb3IgKHZhciBpID0gMDsgaSA8IHRhYnMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiBnZXRNeVZhcihNWV9VUkwsICcwJykgPT0gaSA/IHN0cm9uZyh0YWJzW2ldLCAnZjY3MjgwJykgOiB0YWJzW2ldLFxuICAgICAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChpKSA9PiB7XG4gICAgICAgICAgICAgICAgcmMoJ2h0dHBzOi8vZ2l0ZWUuY29tL21pc3R5d2F0ZXIvaGlrZXJfaW5mby9yYXcvbWFzdGVyL2YnLCAyNCk7XG4gICAgICAgICAgICAgICAgcHV0TXlWYXIoTVlfVVJMLCBpKTtcbiAgICAgICAgICAgICAgICB2YXIgdGFicyA9IHN0b3JhZ2UwLmdldE15VmFyKCd0YWJzJyk7XG4gICAgICAgICAgICAgICAgdmFyIGxpc3RzID0gc3RvcmFnZTAuZ2V0TXlWYXIoJ2xpc3RzJyk7XG4gICAgICAgICAgICAgICAgZm9yICh2YXIgayBpbiB0YWJzKSB7XG4gICAgICAgICAgICAgICAgICAgIHVwZGF0ZUl0ZW0oJ3RhYnMnICsgaywge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGsgPT0gaSA/IHN0cm9uZyh0YWJzW2tdLCAnZjY3MjgwJykgOiB0YWJzW2tdXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB2YXIgX2xpc3QgPSBnZXRNeVZhcignc2hzb3J0JywgJzAnKSA9PSAnMCcgPyBsaXN0c1tpXSA6IGxpc3RzW2ldLnJldmVyc2UoKTtcbiAgICAgICAgICAgICAgICBldmFsKGdldE15VmFyKCd1cGRhdGVMaXN0JykpO1xuICAgICAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSc7XG4gICAgICAgICAgICB9LCBpKSxcbiAgICAgICAgICAgIGNvbF90eXBlOiAnc2Nyb2xsX2J1dHRvbicsXG4gICAgICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgICAgIGlkOiAndGFicycgKyBpXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cbn1cblxuZnVuY3Rpb24gc2V0TGlzdHMobGlzdHMpIHtcbiAgICB2YXIgaW5kZXggPSBnZXRNeVZhcihNWV9VUkwsICcwJyk7XG4gICAgdmFyIF9saXN0ID0gZ2V0TXlWYXIoJ3Noc29ydCcsICcwJykgPT0gJzAnID8gbGlzdHNbaW5kZ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dCkpO1xuICAgICAgICB9XG4gICAgICAgIGlmICgvXFwubTN1OHxcXC5tcDR8XFwuZmx2Ly50ZXN0KHVybF90KSkge1xuICAgICAgICAgICAgdXJsID0gdXJsX3Q7XG4gICAgICAgIH0gZWxzZSBpZiAoL3FxfGlxaXlpfHlvdWt1fG1ndHZ8YmlsaS8udGVzdCh1cmxfdCkpIHtcbiAgICAgICAgICAgIHVybCA9ICd2aWRlbzovL2h0dHBzOi8vangueG1mbHYuY29tLz91cmw9JyArIHVybF90O1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdXJsID0gZXhlY3V0ZVdlYlJ1bGUoaW5wdXQsICQudG9TdHJpbmcoKGlucHV0KSA9PiB7XG4gICAgICAgICAgICAgICAgdmFyIHVybHMgPSB3aW5kb3cuX2dldFVybHMoKTtcbiAgICAgICAgICAgICAgICBmb3IgKHZhciB1cmxzIG9mIHVybHMpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKC9tM3U4fG1wNC8udGVzdCh1cmxzKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVybHM7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LCBpbnB1dCksIHtcbiAgICAgICAgICAgICAgICB1YTogJ3dpbmRvd3MnLFxuICAgICAgICAgICAgICAgIGJsb2NrUnVsZXM6IFsnYmFpZHUuKi5wbmcnLCcuanBnJ11cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgICAgdXJsID0gJ3ZpZGVvOi8vJyArIGlucHV0O1xuICAgIH1cbn1cbnJldHVybiB1cmw7Ki8iLCJwYWdlcyI6Ilt7XCJjb2xfdHlwZVwiOlwibW92aWVfM1wiLFwibmFtZVwiOlwi5Yqo5oCB5YiG57G7XCIsXCJwYXRoXCI6XCJzbVwiLFwicnVsZVwiOlwianM6XFxucmMoJ2h0dHBzOi8vZ2l0ZWUuY29t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ZiAoaW5kZXggPT09IDApIHtcXG4gICAgICAgICAgICBzdWJfY2F0ZWdvcmllcy5mb3JFYWNoKChpdGVtLCBrZXkpID0+IHtcXG4gICAgICAgICAgICAgICAgbGV0IHRpdGxlID0gcGRmaChpdGVtLCDliIbnsbvmoIfpopgpO1xcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGtleS50b1N0cmluZygpID09PSBjYXRlX3RlbXBbaW5kZXhdID8gc3Ryb25nKHRpdGxlLCDliIbnsbvpopzoibIpIDogdGl0bGUsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6ICQocGQoaXRlbSwg5YiG57G76ZO+5o6lKSArICcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChwYXJhbXMpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgbmV3X2NhdGUgPSBbXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICBwYXJhbXMuY2F0ZV90ZW1wLmZvckVhY2goKGNhdGUsIGluZGV4KSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ld19jYXRlLnB1c2goaW5kZXggPT09IDAgPyBwYXJhbXMua2V5LnRvU3RyaW5nKCkgOiAnMCcpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoJ3QnLCBKU09OLnN0cmluZ2lmeShuZXdfY2F0ZSkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKCd1cmwnLCBpbnB1dCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UodHJ1ZSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcXG4gICAgICAgICAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBjYXRlX3RlbXA6IGNhdGVfdGVtcCxcXG4gICAgICAgICAgICAgICAgICAgICAgICBrZXk6IGtleSxcXG4gICAgICAgICAgICAgICAgICAgICAgICBwYWdlOiBNWV9QQUdFLFxcbiAgICAgICAgICAgICAgICAgICAgfSksXFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2JsYW5rX2Jsb2NrJ1xcbiAgICAgICAgICAgIH0pO1xcbiAgICAgICAgfSBlbHNlIGlmIChmb2xkID09PSAnMScpIHtcXG4gICAgICAgICAgICBzdWJfY2F0ZWdvcmllcy5mb3JFYWNoKChpdGVtLCBrZXkpID0+IHtcXG4gICAgICAgICAgICAgICAgbGV0IHRpdGxlID0gcGRmaChpdGVtLCDliIbnsbvmoIfpopgpO1xcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGtleS50b1N0cmluZygpID09PSBjYXRlX3RlbXBbaW5kZXhdID8gc3Ryb25nKHRpdGxlLCDliIbnsbvpopzoibIpIDogdGl0bGUsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6ICQocGQoaXRlbSwg5YiG57G76ZO+5o6lKSArICcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChwYXJhbXMpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBwYXJhbXMuY2F0ZV90ZW1wW3BhcmFtcy5pbmRleF0gPSBwYXJhbXMua2V5LnRvU3RyaW5nKCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoJ3QnLCBKU09OLnN0cmluZ2lmeShwYXJhbXMuY2F0ZV90ZW1wKSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoJ3VybCcsIGlucHV0KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSh0cnVlKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknO1xcbiAgICAgICAgICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhdGVfdGVtcDogY2F0ZV90ZW1wLFxcbiAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4OiBpbmRleCxcXG4gICAgICAgICAgICAgICAgICAgICAgICBrZXk6IGtleSxcXG4gICAgICAgICAgICAgICAgICAgICAgICBwYWdlOiBNWV9QQUdFLFxcbiAgICAgICAgICAgICAgICAgICAgfSksXFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2JsYW5rX2Jsb2NrJ1xcbiAgICAgICAgICAgIH0pO1xcbiAgICAgICAgfVxcbiAgICB9KTtcXG59XCJ9LHtcImNvbF90eXBlXCI6XCJtb3ZpZV8zXCIsXCJuYW1lXCI6XCLkurrmnLrpqozor4FcIixcInBhdGhcIjpcIuS6uuacuumqjOivgVwiLFwicnVsZVwiOlwianM6aWYgKC/pqozor4EvLnRlc3QoaHRtbCkpIHtcXG4gICAgZC5wdXNoKHtcXG4gICAgICAgIHRpdGxlOiAn5Lq65py66aqM6K+BJyxcXG4gICAgICAgIHVybDogJCgnaGlrZXI6Ly9lbXB0eScpLnJ1bGUoKE1ZX1VSTCkgPT4ge1xcbiAgICAgICAgICAgIHZhciBkID0gW107XFxuICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICd4NV93ZWJ2aWV3X3NpbmdsZScsXFxuICAgICAgICAgICAgICAgIHVybDogTVlfVVJMLFxcbiAgICAgICAgICAgICAgICBkZXNjOiAnbGlzdCYmc2NyZWVuJyxcXG4gICAgICAgICAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICAgICAgICAgIHVhOiBNT0JJTEVfVUEsXFxuICAgICAgICAgICAgICAgICAgICBzaG93UHJvZ3Jlc3M6IGZhbHNlLFxcbiAgICAgICAgICAgICAgICAgICAganM6ICQudG9TdHJpbmcoKHUpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiBjaGVjaygpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGZiYS5nZXRWYXIoJ2NrJykpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgbm9kZXMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcucGFnZScpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgY28gPSBmYmEuZ2V0Q29va2llKHUpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAobm9kZXMgJiYgbm9kZXMubGVuZ3RoID4gMCAmJiBjbykge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy9mYmEubG9nKCdjbzo6Ojo6OicgKyBjbyk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmYmEucHV0VmFyKCdjaycsIGNvKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZiYS5wYXJzZUxhenlSdWxlKCQkJCgpLmxhenlSdWxlKCgpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiYWNrKCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KGNoZWNrLCA1MDApO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgIGNoZWNrKCk7XFxuICAgICAgICAgICAgICAgICAgICB9LCBNWV9VUkwpXFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICByZXR1cm4gc2V0UmVzdWx0KGQpO1xcbiAgICAgICAgfSwgTVlfVVJMKSxcXG4gICAgICAgIGNvbF90eXBlOiAndGV4dF8xJ1xcbiAgICB9KTtcXG59XCJ9XSIsImljb24iOiJodHRwczovL3d3dy55c2RxLm1lL214dGhlbWUvaW1hZ2VzL2xvZ29fYmxhY2sucG5nIiwicHJveHkiOiIifQ==
Add Comment
Please, Sign In to add comment