mirror of https://git.acwing.com/iduoduo/orange
1 line
6.9 KiB
JavaScript
1 line
6.9 KiB
JavaScript
dmFyIHJ1bGUgPSB7CiAgICB0aXRsZTogJ+avkuibh+eUteW9sVvkvJhdJywKICAgIGhvc3Q6ICdodHRwczovL3d3dy5kdXNoZTkuYXBwJywKICAgIHVybDogJy9zaG93L2Z5Y2xhc3MtZnlmaWx0ZXItZnlwYWdlLmh0bWwnLAogICAgZmlsdGVyX3VybDogJ3t7Zmwu57G75Z6LfX0te3tmbC7lnLDljLp9fS17e2ZsLuivreiogH19LXt7Zmwu5bm05Lu9fX0te3tmbC7mjpLluo99fScsCiAgICBzZWFyY2hVcmw6ICcvc2VhcmNoP2s9KiomcGFnZT1meXBhZ2UnLAogICAgc2VhcmNoYWJsZTogMiwKICAgIHF1aWNrU2VhcmNoOiAwLAogICAgZmlsdGVyYWJsZTogMSwKICAgIGhlYWRlcnM6IHsKICAgICAgICAnVXNlci1BZ2VudCc6ICdNT0JJTEVfVUEnLAogICAgfSwKICAgIGNsYXNzX3BhcnNlOiAnI25hdi1zd2lwZXImJi5uYXYtc3dpcGVyLXNsaWRlO2EmJlRleHQ7YSYmaHJlZjsvKFxcdyspLmh0bWwnLAogICAgY2F0ZV9leGNsdWRlOiAnTmV0ZmxpeHzku4rml6Xmm7TmlrB85LiT6aKY5YiX6KGofOaOkuihjOamnCcsCiAgICB0YWJfb3JkZXI6IFsn6LaF5riFJywgJ+iTneWFiScsICfmnoHpgJ/ok53lhYknXSwKICAgIHRhYl9leGNsdWRlOiAnNEso6auY5bOw5LiN5Y2hKScsCiAgICBwbGF5X3BhcnNlOiB0cnVlLAogICAgbGF6eTogJycsCiAgICBsaW1pdDogMjAsCiAgICDmjqjojZA6ICcubW9kdWxlLW9uZS1yb3ctYm94JiYubW9kdWxlLWJveC1pbm5lciYmLm1vZHVsZS1pdGVtOy52LWl0ZW0tdGl0bGU6ZXEoLTEpJiZUZXh0Oyo7KjsqJywKICAgIGRvdWJsZTogZmFsc2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tLTEtMS5odG1sJywKICAgIF07CiAgICBsZXQgZmlsdGVycyA9IHt9OwogICAgcGRmYSA9IGpzcC5wZGZhOwogICAgcGRmaCA9IGpzcC5wZGZoOwogICAgZm9yKGxldCB1cmwgb2YgdXJscyl7CiAgICBsZXQgZmNsYXNzID0gdXJsLm1hdGNoKC9zaG93XFwvKFxcZCspLS8pWzFdOwogICAgY29uc29sZS5sb2coZmNsYXNzKTsKICAgIGxldCBodG1sID0gcmVxdWVzdCh1cmwpOwogICAgbGV0IHRhYnMgPSBwZGZhKGh0bWwsICcuZmlsdGVyLXJvdycpOwogICAgbGV0IGRhdGEgPSBbXTsKICAgIGZvciAobGV0IHRhYiBvZiB0YWJzKSB7CiAgICAgICAgbGV0IHRpdGxlID0gcGRmaCh0YWIsICdzdHJvbmcmJlRleHQnKS5yZXBsYWNlKCc6JywnJyk7CiAgICAgICAgbGV0IGxpcyA9IHBkZmEodGFiLCAnYScpOwogICAgICAgIGxldCBfbWFwID0ge2tleTogdGl0bGUsIG5hbWU6IHRpdGxlfTsKICAgICAgICBsZXQgdmFsdWUgPSBbXTsKICAgICAgICBmb3IgKGxldCBsaSBvZiBsaXMpIHsKICAgICAgICAgICAgbGV0IG4gPSBwZGZoKGxpLCAnYSYmVGV4dCcpLnRyaW0oKTsKICAgICAgICAgICAgbGV0IHY9bjsKICAgICAgICAgICAgaWYoL+WFqOmDqHzlnLDljLp857G75Z6LLy50ZXN0KG4pKXsKICAgICAgICAgICAgICAgIHYgPSAnJzsKICAgICAgICAgICAgfWVsc2UgaWYoL+e7vOWQiC8udGVzdChuKSl7CiAgICAgICAgICAgICAgICB2ID0gJzEnOwogICAgICAgICAgICB9ZWxzZXsKICAgICAgICAgICAgICAgIHYgPSBwZGZoKGxpLCdhJiZocmVmJyk7CiAgICAgICAgICAgICAgICB0cnkgewogICAgICAgICAgICAgICAgICAgIHYgPSB2Lm1hdGNoKC8tKC4qPykxLTFcLmh0bWwvKVsxXS5yZXBsYWNlKC8tL2csJycpOwogICAgICAgICAgICAgICAgfWNhdGNoIChlKSB7CiAgICAgICAgICAgICAgICAgICAgdiA9IHYubWF0Y2goLy0oLio/KS0xXC5odG1sLylbMV0ucmVwbGFjZSgvLS9nLCcnKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIHYgPSBkZWNvZGVVUklDb21wb25lbnQodik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgdmFsdWUucHVzaCh7CiAgICAgICAgICAgICAgICAnbic6IG4sICd2JzogdgogICAgICAgICAgICB9KTsKICAgICAgICB9CiAgICAgICAgX21hcFsndmFsdWUnXSA9IHZhbHVlOwogICAgICAgIGRhdGEucHVzaChfbWFwKTsKICAgIH0KICAgIGZpbHRlcnNbZmNsYXNzXSA9IGRhdGE7CiAgICB9CiAgICBWT0RTID0gW2ZpbHRlcnNdOwogICAgY29uc29sZS5sb2coZ3ppcChKU09OLnN0cmluZ2lmeShmaWx0ZXJzKSkpOwogICAgYCwKfQ== |