Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@光影剧场@eyJmaXJzdEhlYWRlciI6ImNsYXNzIiwibGFzdF9jaGFwdGVyX3J1bGUiOiIiLCJ0aXRsZSI6IuWFieW9seWJp+WcuiIsImF1dGhvciI6IiIsInVybCI6Imhpa2VyOi8vZW1wdHkiLCJ2ZXJzaW9uIjoyMDIyMDIxMSwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJ2aWRlbyIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxuZXZhbChKU09OLnBhcnNlKHJlcXVlc3QoJ2hpa2VyOi8vcGFnZS9jb3JlRnVuY3Rpb25zJykpLnJ1bGUpO1xudmFyIGQgPSBbXTtcbmQucHVzaCh7XG4gICAgZGVzYzogJzE4MCYmbGlzdCcsXG4gICAgdXJsOiBsb2FkRmlsZXMoJ2hpa2VyOi8vZmlsZXMvY2FjaGUvZ3lqYy9ob21lcGFnZS5odG1sJywgJ2h0dHA6Ly80OS4yMzIuMTkuMjI4L2hpa2VyL2hvbWVwYWdlLmh0bWwnKSxcbiAgICBjb2xfdHlwZTogJ3g1X3dlYnZpZXdfc2luZ2xlJ1xufSk7XG5kLnB1c2goe1xuICAgIHVybDogXCInaGlrZXI6Ly9zZWFyY2g/cz0nK2lucHV0KycmcnVsZT3lhYnlvbHliaflnLonXCIsXG4gICAgY29sX3R5cGU6ICdpbnB1dCcsXG4gICAgdGl0bGU6ICfmkJzntKInLFxuICAgIGV4dHJhOiB7XG4gICAgICAgIG9uQ2hhbmdlOiBcInB1dFZhcignbXktc2VhcmNoJyxpbnB1dClcIlxuICAgIH1cbn0pO1xuZ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eF5o6iXFxuZnVuY3Rpb24geDVydWxlKGxpbmtzLCBzcmN1cmwpIHtcXG4gICAgc2hvd0xvYWRpbmcoXFxcIuW8uuWKm+WXheaOouS4re+8jOivt+eojeetie+8gVxcXCIpO1xcbiAgICB2YXIgdmlkZW8gPSAnd2ViUnVsZTovLycgKyBsaW5rcyArICdAJyArICQudG9TdHJpbmcoKHNyY3VybCkgPT4ge1xcbiAgICAgICAgLy9mYmEubG9nKGZiYS5nZXRVcmxzKCkpO1xcbiAgICAgICAgdmFyIHVybHMgPSBfZ2V0VXJscygpO1xcbiAgICAgICAgaWYgKHdpbmRvdy5jb3VudCA9PSBudWxsIHx8IHdpbmRvdy5jb3VudCA9PSAndW5kZWZpbmVkJykge1xcbiAgICAgICAgICAgIGZiYS5sb2coJ+e9kemhteiuv+mXruW8gOWniycpO1xcbiAgICAgICAgICAgIHdpbmRvdy5jb3VudCA9IDBcXG4gICAgICAgIH1cXG4gICAgICAgIGlmICh3aW5kb3cuY291bnQgPj0gMjMpIHtcXG4gICAgICAgICAgICByZXR1cm4gc3JjdXJsXFxuICAgICAgICB9XFxuICAgICAgICB3aW5kb3cuY291bnQgPSB3aW5kb3cuY291bnQgKyAxO1xcbiAgICAgICAgaWYgKHdpbmRvdy5jb3VudCA+IDEgJiYgd2luZG93LmNvdW50IDw9IDMgJiYgd2luZG93LmNvdW50ICE9IG51bGwgJiYgd2luZG93LmNvdW50ICE9IHVuZGVmaW5lZCkge1xcbiAgICAgICAgICAgIGlmIChkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCdib2R5JykuaW5uZXJUZXh0LnNlYXJjaCgv6Kem5Y+R5LqG6Ziy55uX6ZO+fOacquaOiOadg3zmjqXlj6PpmLLnm5cvKSAhPSAtMSkge1xcbiAgICAgICAgICAgICAgICBpZiAod2luZG93LmNvdW50ID09IDIpIHtcXG4gICAgICAgICAgICAgICAgICAgIGZiYS5sb2coJ+Wwneivlei3s+mYsuebl+mqjOivgeS4gCcpO1xcbiAgICAgICAgICAgICAgICAgICAgbG9jYXRpb24uaHJlZiA9IGxvY2F0aW9uLmhyZWY7XFxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICBmYmEubG9nKCflsJ3or5Xot7PpmLLnm5fpqozor4HkuownKTtcXG4gICAgICAgICAgICAgICAgICAgIGxvY2F0aW9uLmhyZWYgPSBzcmN1cmxcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIH07XFxuICAgICAgICB9IGVsc2UgaWYgKHdpbmRvdy5jb3VudCA+IDMgJiYgd2luZG93LmNvdW50ICE9IG51bGwgJiYgd2luZG93LmNvdW50ICE9IHVuZGVmaW5lZCkge1xcbiAgICAgICAgICAgIGlmICh1cmxzLmxlbmd0aCA8IDEpIHtcXG4gICAgICAgICAgICAgICAgZmJhLmhpZGVMb2FkaW5nKCk7XFxuICAgICAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/orr/pl67lpLHotKXvvIzlj6/og73pk77mjqXlt7LlpLHmlYjjgIInO1xcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodXJscy5sZW5ndGggPT0gMSkge1xcbiAgICAgICAgICAgICAgICBmYmEubG9nKCflsJ3or5XmiZPlvIDnm7Tpk77kuI5KU09O6Kej5p6QJyk7XFxuICAgICAgICAgICAgICAgIGlmICh1cmxzWzBdLm1hdGNoKC9keWNkblxcXFwtdG9zXFxcXC5wc3RhdHB8XFxcXC5tM3U4fFxcXFwubXA0fFxcXFwuZmx2fG5ldGVhc2VcXFxcLmNvbXx2aWRlb19tcDR8dHlwZVxcXFw9bTN1OC8pICYmICF1cmxzWzBdLm1hdGNoKC9cXFxcLmh0bWx8bTN1OFxcXFwudHZ8XFxcXCZuZXh0fGFjXFxcXD1kbXxcXFxcPWh0dHB8aHR0cHNcXFxcOlxcXFwvXFxcXC9bXFxcXGRdXFxcXC5tM3U4fFxcXFw/dXJsXFxcXD1cXFxcL20zdTgvKSkge1xcbiAgICAgICAgICA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zZSB7XFxuICAgICAgICAgICAgICAgICAgICB2YXIgaHRtbCA9IGZiYS5mZXRjaChsb2NhdGlvbi5ocmVmLCB7fSk7XFxuICAgICAgICAgICAgICAgICAgICBpZiAoIS9cXFxcPC8udGVzdChodG1sKSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnBhcnNlKGh0bWwpLnVybDtcXG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgZmJhLmxvZyhsb2NhdGlvbi5ocmVmKVxcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICB9O1xcbiAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgIGZiYS5sb2coJ+e9kemhteWKoOi9veaXpeW/l+ajgOe0oicgKyB3aW5kb3cuY291bnQgKyAnJyk7XFxuICAgICAgICAgICAgICAgIGZvciAodmFyIGkgaW4gdXJscykge1xcbiAgICAgICAgICAgICAgICAgICAgaWYgKHVybHNbaV0ubWF0Y2goL21pdWVkXFxcXC5jb21cXFxcL20zfGR5Y2RuXFxcXC10b3NcXFxcLnBzdGF0cHxcXFxcLm0zdTh8XFxcXC5tcDR8XFxcXC5mbHZ8bmV0ZWFzZVxcXFwuY29tfHZpZGVvX21wNHx0eXBlXFxcXD1tM3U4LykgJiYgIXVybHNbaV0ubWF0Y2goL2h0bWx8bTN1OFxcXFwudHZ8XFxcXCZuZXh0fGFjXFxcXD1kbXxcXFxcPWh0dHB8aHR0cHNcXFxcOlxcXFwvXFxcXC9bXFxcXGRdXFxcXC5tM3U4fFxcXFw/dXJsXFxcXD1cXFxcL20zdTgvKSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGZ5X2JyaWRnZV9hcHAubG9nKHVybHNbaV0pXFxuICAgICAgICAgICAgICAgICAgICAgICAgZmJhLmhpZGVMb2FkaW5nKCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHVybHNbaV0uaW5kZXhPZignYmlsaXZpZGVvJykgIT0gLTEpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVybHNbaV0gKyAnO3tSZWZlcmVyQGh0dHBzOi8vd3d3LmJpbGliaWxpLmNvbSYmVXNlci1BZ2VudEBNb3ppbGxhLzUuMH0nO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAodXJsc1tpXS5pbmRleE9mKCd0aXRhbi5tZ3R2LmNvbScpICE9IC0xKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1cmxzW2ldICsgJyNpc1ZpZGVvPXRydWUjJyArICc7e1JlZmVyZXJAd3d3Lm1ndHYuY29tJiZVc2VyLUFnZW50QE1vemlsbGEvNS4wfSc7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICh1cmxzW2ldLmluZGV4T2YoJ2p1aGFva2FuJykgIT0gLTEpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVybHNbaV0gKyAnO3tSZWZlcmVyQGh0dHBzOi8vd3d3Lmp1aGFva2FuLmNjL30nO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAodXJsc1tpXS5pbmRleE9mKCdvamJrJykgIT0gLTEpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVybHNbaV0gKyAnO3tSZWZlcmVyQGh0dHBzOi8vdi5vamJranguY29tL30nO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAodXJsc1tpXS5pbmRleE9mKCd3a2ZpbGUnKSAhPSAtMSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdXJsc1tpXSArICc7e1JlZmVyZXJAaHR0cHM6Ly9mYW50dWFuLndrZmlsZS5jb20vfSc7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgIC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sZTogc3Ryb25nSHRtbCgn5b2x54mH566A5LuLJyArIHNtYWxsSHRtbChzbWFsbEh0bWwoJ1xcXFx05bGV5byAPj4nKSkpLFxcbiAgICAgICAgICAgICAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBpZDogJ2ludHJvVGl0bGUnICsgbW92aWVJZFxcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICAgICAgdXBkYXRlSXRlbSh7XFxuICAgICAgICAgICAgICAgICAgICB0aXRsZTogaW50cm9Db250ZW50LnN1YnN0cmluZygwLCAxMDApICsgJ+KApuKApicsXFxuICAgICAgICAgICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGlkOiAnaW50cm9Db250ZW50JyArIG1vdmllSWRcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgcHV0TXlWYXIoJ29wZW5JbnRybycgKyBtb3ZpZUlkLCAndHJ1ZScpO1xcbiAgICAgICAgICAgICAgICB1cGRhdGVJdGVtKHtcXG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOiBzdHJvbmdIdG1sKCflvbHniYfnroDku4snICsgc21hbGxIdG1sKHNtYWxsSHRtbCgnXFxcXHTmlLbotbc+PicpKSksXFxuICAgICAgICAgICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGlkOiAnaW50cm9UaXRsZScgKyBtb3ZpZUlkXFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgICAgICB1cGRhdGVJdGVtKHtcXG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOiBpbnRyb0NvbnRlbnQsXFxuICAgICAgICAgICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGlkOiAnaW50cm9Db250ZW50JyArIG1vdmllSWRcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSc7XFxuICAgICAgICB9LCBNWV9QQVJBTVMuaWQsIGpzb24uaW50cm8ucmVwbGFjZSgvXFxcXHMvZywgJycpKSxcXG4gICAgICAgIGNvbF90eXBlOiAndGV4dF9jZW50ZXJfMScsXFxuICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgIGlkOiAnaW50cm9UaXRsZScgKyBNWV9QQVJBTVMuaWRcXG4gICAgICAgIH1cXG4gICAgfSk7XFxuICAgIGQucHVzaCh7XFxuICAgICAgICB0aXRsZToganNvbi5pbnRyby5yZXBsYWNlKC9cXFxccy9nLCAnJykubGVuZ3RoIDwgMTAwID8ganNvbi5pbnRyby5yZXBsYWNlKC9cXFxccy9nLCAnJykgOiAoanNvbi5pbnRyby5yZXBsYWNlKC9cXFxccy9nLCAnJykuc3Vic3RyaW5nKDAsIDEwMCkgKyAn4oCm4oCmJyksXFxuICAgICAgICBjb2xfdHlwZTogJ3JpY2hfdGV4dCcsXFxuICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgIGlkOiAnaW50cm9Db250ZW50JyArIE1ZX1BBUkFNUy5pZFxcbiAgICAgICAgfVxcbiAgICB9KTtcXG59IGVsc2Uge1xcbiAgICBkLnB1c2goe1xcbiAgICAgICAgdGl0bGU6IHN0cm9uZ0h0bWwoJ+aaguaXoOeugOS7iycpLFxcbiAgICAgICAgdXJsOiAnaGlrZXI6Ly9lbXB0eScsXFxuICAgICAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnXFxuICAgIH0pO1xcbn1cXG5hZGRMaW5lX2JsYW5rKGQpO1xcbnZhciBhd2FyZHMgPSBnZXREb3ViYW5SZXMoJ2h0dHBzOi8vZnJvZG8uZG91YmFuLmN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cbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGl0ZW0uc3ViamVjdC50aXRsZSxcXG4gICAgICAgICAgICAgICAgICAgIGRlc2M6IGl0ZW0uc3ViamVjdC5leHRyYS5yYXRpbmdfZ3JvdXAucmF0aW5nICE9IG51bGwgPyAoaXRlbS5zdWJqZWN0LmV4dHJhLnJhdGluZ19ncm91cC5yYXRpbmcudmFsdWUgKyAn5YiGJykgOiBpdGVtLnN1YmplY3QuZXh0cmEucmF0aW5nX2dyb3VwLm51bGxfcmF0aW5nX3JlYXNvbixcXG4gICAgICAgICAgICAgICAgICAgIHBpY191cmw6IGl0ZW0uc3ViamVjdC5jb3Zlci5sYXJnZS51cmwgKyAnQFJlZmVyZXI9aHR0cHM6Ly9tLmRvdWJhbi5jb20vJyxcXG4gICAgICAgICAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vcGFnZS9tb3ZpZURldGFpbCNub0hpc3RvcnkjI2ltbWVyc2l2ZVRoZW1lIycsXFxuICAgICAgICAgICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGlkOiBpdGVtLnN1YmplY3QuaWQsXFxuICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGl0ZW0uc3ViamVjdC50aXRsZSxcXG4gICAgICAgICAgICAgICAgICAgICAgICB0YXJnZXRfdHlwZTogaXRlbS5zdWJqZWN0LnN1YnR5cGVcXG4gICAgICAgICAgICAgICAgICAgIH0sXFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzMnXFxuICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH0pO1xcbiAgICAgICAgYWRkTGluZShkKTtcXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgdGl0bGU6IHN0cm9uZ0h0bWwoJ+afpeeci+WFqOmDqOS9nOWTgScpLFxcbiAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vcGFnZS9hbGxXb3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JnZS51cmwgKyAnQFJlZmVyZXI9aHR0cHM6Ly9tLmRvdWJhbi5jb20vJyxcXG4gICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnY2FyZF9waWNfMidcXG4gICAgICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICB9XFxuICAgICAgICB9KTtcXG4gICAgICAgIGFkZExpbmUoZCk7XFxuICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgIHRpdGxlOiBzdHJvbmdIdG1sKCfmn6XnnIvlhajpg6jnhafniYcnKSxcXG4gICAgICAgICAgICB1cmw6ICdoaWtlcjovL3BhZ2UvcGhvdG9zI25vSGlzdG9yeSMnLFxcbiAgICAgICAgICAgIGV4dHJhOiB7XFxuICAgICAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vZW1wdHkvYXBpL3YyL2NlbGVicml0eS8nICsgTVlfUEFSQU1TLndpZCArICcvcGhvdG9zP3N0YXJ0PWZ5cGFnZSZjb3VudD0zMCcsXFxuICAgICAgICAgICAgICAgIGNvdW50OiAzMCxcXG4gICAgICAgICAgICAgICAgdGl0bGU6ICflhajpg6jnhafniYcnXFxuICAgICAgICAgICAgfSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnXFxuICAgICAgICB9KTtcXG4gICAgfSBlbHNlIGlmIChpdGVtLnBheWxvYWQudGl0bGUgPT0gJ+iOt+Wllue7j+WOhicpIHtcXG4gICAgICAgIGFkZExpbmVfYmxhbmsoZCk7XFxuICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgIHRpdGxlOiBzdHJvbmdIdG1sKGl0ZW0ucGF5bG9hZC50aXRsZSksXFxuICAgICAgICAgICAgZGVzYzogc3Ryb25nSHRtbCgn5YWxJyArIGl0ZW0ucGF5bG9hZC50b3RhbCArICfmrKEnKSxcXG4gICAgICAgICAgICB1cmw6ICdoaWtlcjovL2VtcHR5JyxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnXFxuICAgICAgICB9KTtcXG4gICAgICAgIGl0ZW0ucGF5bG9hZC5hd2FyZHMubWFwKChpdGVtLCBpKSA9PiB7XFxuICAgICAgICAgICAgaWYgKGkgPCA0KSB7XFxuICAgICAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgICAgICB0aXRsZTogaXRlbS5jZXJlbW9ueS50aXRsZSxcXG4gICAgICAgICAgICAgICAgICAgIGRlc2M6IGl0ZW0uaXNfd29uID8gKCfojrflvpflpZbpobk6JyArIGl0ZW0uY2VyZW1vbnkudGl0bGUpIDogKCfojrflvpflpZbpobk6JyArIGl0ZW0uY2VyZW1vbnkudGl0bGUgKyAn77yI5o+Q5ZCN77yJJyksXFxuICAgICAgICAgICAgICAgICAgICBwaWNfdXJsOiBpdGVtLmNlcmVtb255LnBpYy5sYXJnZSArICdAUmVmZXJlcj1odHRwczovL20uZG91YmFuLmNvbS8nLFxcbiAgICAgICAgICAgICAgICAgICAgdXJsOiAnaGlrZXI6Ly9lbXB0eScsXFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzFfdmVydGljYWxfcGljJ1xcbiAgICAgICAgICAgICAgICB9KVxcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH0pO1xcbiAgICAgICAgYWRkTGluZShkKTtcXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgdGl0bGU6IHN0cm9uZ0h0bWwoJ+afpeeci+WFqOmDqOiOt+Wllue7j+WOhicpLFxcbiAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vcGFnZS9hbGxBd2FyZHMjbm9IaXN0b3J5IycsXFxuICAgICAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICAgICAgdXJsOiAnaGlrZXI6Ly9lbXB0eS9hcGkvdjIvZWxlc3Nhci9hd2FyZF9yZXN1bHRfY29sbGVjdGlvbi8nICsgaXRlbS5wYXlsb2FkLmlkICsgJy9hd2FyZHM/c3RhcnQ9ZnlwY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zOi8vbS5kb3ViYW4uY29tLycsXFxuICAgICAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vcGFnZS9tb3ZpZURldGFpbCNub0hpc3RvcnkjI2ltbWVyc2l2ZVRoZW1lIycsXFxuICAgICAgICAgICAgICAgIGV4dHJhOiB7XFxuICAgICAgICAgICAgICAgICAgICBpZDogaXRlbS5pZCxcXG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOiBpdGVtLnRpdGxlLFxcbiAgICAgICAgICAgICAgICAgICAgdGFyZ2V0X3R5cGU6IGl0ZW0uc3VidHlwZVxcbiAgICAgICAgICAgICAgICB9LFxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzFfdmVydGljYWxfcGljJ1xcbiAgICAgICAgICAgIH0pO1xcbiAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICB0aXRsZTogaXRlbS5pc193b24gPyAoaXRlbS5jZXJlbW9ueS50aXRsZSArICdcXFxcdCcgKyBpdGVtLmNhdGVnb3J5LnRpdGxlKSA6IChpdGVtLmNlcmVtb255LnRpdGxlICsgJ1xcXFx0JyArIGl0ZW0uY2F0ZWdvcnkudGl0bGUgKyAn77yI5o+Q5ZCN77yJJyksXFxuICAgICAgICAgICAgICAgIHBpY191cmw6IGl0ZW0uY2VyZW1vbnkucGljLmxhcmdlICsgJ0BSZWZlcmVyPWh0dHBzOi8vbS5kb3ViYW4uY29tLycsXFxuICAgICAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vZW1wdHknLFxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2F2YXRhcidcXG4gICAgICAgICAgICB9KTtcXG4gICAgICAgIH1cXG4gICAgfSlcXG59KVxcblxcbnNldFJlc3VsdChkKTtcIn0se1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuWJp+eFp+mhtemdolwiLFwicGF0aFwiOlwicGhvdG9zXCIsXCJydWxl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FwiXFxcIixcXFwiY2xhc3NcXFwiOlxcXCJcXFwiLFxcXCJyYW5rXFxcIjpcXFwiVVxcXCIsXFxcInR5cGVcXFwiOlxcXCJcXFwifScpKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGVtcFtlWzFdXSA9IGVbMF0uaW5kZXhPZihcXFwi5YWo6YOoXFxcIikgIT0gLTEgPyBcXFwiXFxcIiA6IGVbMF07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKFxcXCJjbGFzc2xpc3RcXFwiLCBKU09OLnN0cmluZ2lmeSh0ZW1wKSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSdcXG4gICAgICAgICAgICAgICAgICAgICAgICB9LCBbaXRlbXNbaXRlbV1baV0sIGl0ZW1dKVxcbiAgICAgICAgICAgICAgICB9KVxcbiAgICAgICAgICAgIH1cXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2JsYW5rX2Jsb2NrJ1xcbiAgICAgICAgICAgIH0pXFxuICAgICAgICB9XFxuICAgICAgICBmb3IgKHIgaW4gcmFuaykge1xcbiAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgIHRpdGxlOiB0ZW1wLnJhbmsgPT0gcmFua1tyXSA/IGNvbG9ySHRtbCgnI0ZGNUQ1MCcsIHIpIDogcixcXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJyxcXG4gICAgICAgICAgICAgICAgdXJsOiAkKCdoaWtlcjogLy9lbXB0eScpXFxuICAgICAgICAgICAgICAgICAgICAubGF6eVJ1bGUoKGUpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgdGVtcCA9IEpTT04ucGFyc2UoZ2V0TXlWYXIoJ2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gcGljX3VybDogaXRlbS5jb3ZlcixcXG4gICAgICAgICAgICB1cmw6ICQoJ2h0dHBzOi8vYXBwLnhpbnBpYW5jaGFuZy5jb20vYXJ0aWNsZS8nICsgaXRlbS5pZCArICc/ZXhwYW5kPXVzZXJfc3RhdHVzJykubGF6eVJ1bGUoKCkgPT4ge1xcbiAgICAgICAgICAgICAgICB2YXIgdmlkZW9MaXN0ID0ge1xcbiAgICAgICAgICAgICAgICAgICAgdXJsczogW10sXFxuICAgICAgICAgICAgICAgICAgICBuYW1lczogW11cXG4gICAgICAgICAgICAgICAgfTtcXG4gICAgICAgICAgICAgICAgSlNPTi5wYXJzZShyZXF1ZXN0KGlucHV0KSkuZGF0YS52aWRlby5jb250ZW50LnByb2dyZXNzaXZlLm1hcCgoaXRlbSkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgdmlkZW9MaXN0LnVybHMucHVzaChpdGVtLnVybCk7XFxuICAgICAgICAgICAgICAgICAgICB2aWRlb0xpc3QubmFtZXMucHVzaChpdGVtLnByb2ZpbGUpO1xcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICAgICAgcmV0dXJuIEpTT04uc3RyaW5naWZ5KHZpZGVvTGlzdCk7XFxuICAgICAgICAgICAgfSksXFxuICAgICAgICAgICAgY29sX3R5cGU6ICdtb3ZpZV8xX2xlZnRfcGljJ1xcbiAgICAgICAgfVxcbiAgICB9KSk7XFxufSBjYXRjaCAoZSkge1xcbiAgICBzZXRSZXN1bHQoW3tcXG4gICAgICAgIHRpdGxlOiBzbWFsbEh0bWwoJ+W3sue7j+WIsOW6leS6huWTpn4nKSxcXG4gICAgICAgIHVybDogJ2hpa2VyOi8vZW1wdHknLFxcbiAgICAgICAgY29sX3R5cGU6ICd0ZXh0X2NlbnRlcl8xJ1xcbiAgICB9XSk7XFxufVwifSx7XCJjb2xfdHlwZVwiOlwibW92aWVfM1wiLFwibmFtZVwiOlwi54mH5rqQ6aG16Z2iXCIsXCJwYXRoXCI6X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Sgnc291cmNlcycgKyBNWV9QQVJBTVMuaWQsICctMScpID09IGkpIHtcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICB0aXRsZTogc3Ryb25nSHRtbChzb3VyY2VzX3RpdGxlW2ldKSxcXG4gICAgICAgICAgICAgICAgdXJsOiAnaGlrZXI6Ly9lbXB0eScsXFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF9jZW50ZXJfMSdcXG4gICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICBhZGRMaW5lKGQpO1xcbiAgICAgICAgICAgIHNldExhc3RDaGFwdGVyUnVsZSgnanM6JyArICQudG9TdHJpbmcocGFyYW0gPT4ge1xcbiAgICAgICAgICAgICAgICBzZXRSZXN1bHQoJ+abtOaWsOiHs++9nOesrCcgKyBwYXJhbSArICfpm4YnKVxcbiAgICAgICAgICAgIH0sIGl0ZW0ubGVuZ3RoKSk7XFxuICAgICAgICAgICAgaWYgKGdldEl0ZW0oJ29yZGVyJyArIE1ZX1BBUkFNUy5pZCwgJzEnKSA9PSAnLTEnKSB7XFxuICAgICAgICAgICAgICAgIHZhciBwbGF5TGlzdCA9IGl0ZW0ucmV2ZXJzZSgpO1xcbiAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgIHZhciBwbGF5TGlzdCA9IGl0ZW07XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIHBsYXlMaXN0Lm1hcCgoaXRlbSkgPT4ge1xcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICfnrKwnICsgaXRlbS5lcCArICfpm4YnLFxcbiAgICAgICAgICAgICAgICAgICAgdXJsOiAkKGl0ZW0ucGxheV9saW5rLnJlcGxhY2UoJ2h0dHBzOi8vd3d3LmRvdWJhbi5jb20vbGluazIvP3VybD0nLCAnJykuc3BsaXQoJz8nKVswXSkubGF6eVJ1bGUoKG1vdmllSWQpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXF1aXJlKCdodHRwczovL2dpdGVhLmNvbS9BSTk1Ny9IaWtlci9yYXcvbS92L1JvdXRlLmpzJyk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGdldE15VmFyKCdtb2RlJyArIG1vdmllSWQsICcwJykgPT0gJzEnKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAnZG93bmxvYWQ6Ly8nICsgYXl0bVBhcnNlKGlucHV0KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGdldE15VmFyKCdwbGF5ZXInICsgbW92aWVJZCwgJzAnKSA9PSAnMScpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICd4NVBsYXk6Ly8nICsgYXl0bVBhcnNlKGlucHV0KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gYXl0bVBhcnNlKGlucHV0KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICB9LCBNWV9QQVJBTVMuaWQpLFxcbiAgICAgICAgICAgICAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBpZDogJ2d5amMnICsgaXRlbS5wbGF5X2xpbmsucmVwbGFjZSgnaHR0cHM6Ly93d3cuZG91YmFuLmNvbS9saW5rMi8/dXJsPScsICcnKS5zcGxpdCgnPycpWzBdXFxuICAgICAgICAgICAgICAgICAgICB9LFxcbiAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICd0ZXh0XzMnXFxuICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIGFkZExpbmVfYmxhbmsoZCk7XFxuICAgICAgICB9XFxuICAgIH0pXFxuICAgIGFkZExvbmdfdGV4dChkKTtcXG59IGVsc2Uge1xcbiAgIC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