Advertisement
xiaomianao666

邀您一起看:大唐兴亡三百年

Sep 5th, 2022
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥大唐兴亡三百年@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZGlzcGxheU5hbWVcIjpcIueVquiMhOWwj+ivtFwiLFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJcIixcImxpc3RUb0NsZWFyQXNzb2NpYXRlZEZLXCI6W10sXCJsaXN0VG9DbGVhclNlbGZGS1wiOltdLFwicGFnZUxpc3RcIjpbe1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuato+aWh1wiLFwicGF0aFwiOlwiY1wiLFwicnVsZVwiOlwianM6XFxudmFyIGQgPSBbXTtcXG52YXIgZGF0YSA9IEpTT04ucGFyc2UoZ2V0UmVzQ29kZSgpKTtcXG52YXIgYyA9IGRhdGEuZGF0YS5ub3ZlbF9kYXRhO1xcbmQucHVzaCh7XFxuICAgIHRpdGxlOiBcXFwiPGJpZz5cXFwiICsgYy5jaGFwdGVyX3RpdGxlICsgXFxcIjwvYmlnPlxcXCIsXFxuICAgIHVybDogXFxcIlxcXCIsXFxuICAgIGNvbF90eXBlOiBcXFwicmljaF90ZXh0XFxcIixcXG4gICAgZGVzYzogXFxcIlxcXCIsXFxuICAgIHBpY191cmw6IFxcXCJcXFwiLFxcbiAgICBleHRyYToge1xcbiAgICAgICAgY2xpY2s6IHRydWVcXG4gICAgfVxcbn0pO1xcblxcbmQucHVzaCh7XFxuICAgIHRpdGxlOiBwZGZoKGRhdGEuZGF0Y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mluZygodXJsKSA9PiB7XFxuICAgICAgICBsZXQgYyA9IHJlYWRGaWxlKFxcXCJjaGFwdGVyLmpzb25cXFwiKSB8fCBcXFwiW11cXFwiO1xcbiAgICAgICAgYyA9IEpTT04ucGFyc2UoYylcXG4gICAgICAgIGxldCBjaGUgPSB7XFxuICAgICAgICAgICAgdXJsOiB1cmwsXFxuICAgICAgICAgICAgcGFnZTogMCxcXG4gICAgICAgICAgICBjaGFwdGVyczogW11cXG4gICAgICAgIH07XFxuICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8IGMubGVuZ3RoOyBpKyspIHtcXG4gICAgICAgICAgICBpZiAoY1tpXS51cmwgPT0gY2hlLnVybCkge1xcbiAgICAgICAgICAgICAgICBjW2ldID0gY2hlO1xcbiAgICAgICAgICAgICAgICBsb2coXFxcImNsZWFyOlxcXCIgKyB1cmwpXFxuICAgICAgICAgICAgICAgIHNhdmVGaWxlKFxcXCJjaGFwdGVyLmpzb25cXFwiLCBKU09OLnN0cmluZ2lmeShjKSlcXG4gICAgICAgICAgICAgICAgYnJlYWtcXG4gICAgICAgICAgICB9XFxuICAgICAgICB9XFxuICAgIH0sIHVybCkpXFxuICAgIGZvciAobGV0IGl0IG9mIGNhY2hlcykge1xcbiAgICAgICAgaWYgKGl0LnVybCA9PSB1cmwpIHtcXG4gICAgICAgICAgICByZXR1cm4gaXQ7XFxuICAgICAgICB9XFxuICAgIH1cXG4gICAgcmV0dXJuIHtcXG4gICAgICAgIHVybDogdXJsLFxcbiAgICAgICAgcGFnZTogMCxcXG4gICAgICAgIGNoYXB0ZXJzOiBbXVxcbiAgICB9XFxufVxcblxcbmZ1bmN0aW9uIHNhdmVDYWNoZShjaGUpIHtcXG4gICAgbG9nKGNoZS5sZW5ndGgpXFxuICAgIGxldCBjID0gY2FjaGVzXFxuICAgIGlmIChjLmxlbmd0aCA+IGNmZy7nvJPlrZjkuKrmlbApIHtcXG4gICAgICAgIGMuc2hpZnQoKVxcbiAgICB9XFxuICAgIG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tcXG4gICAgICAgIHVybDogcGQoaXQsIGNmZy7liIbpobXpk77mjqUpLFxcbiAgICAgICAgb3B0aW9uczoge1xcbiAgICAgICAgICAgIGhlYWRlcnM6IGNmZy7liIbpobXor7fmsYLlpLQgfHwge31cXG4gICAgICAgIH1cXG4gICAgfSlcXG59XFxuLy9sb2codXJscylcXG5sZXQgZCA9IFtdLmNvbmNhdChjYWNoZS5jaGFwdGVycylcXG5odG1scyA9IGh0bWxzLmNvbmNhdChiYXRjaEZldGNoKHVybHMpKVxcbi8vbG9nKGh0bWxzKVxcbmZvciAobGV0IGl0IG9mIGh0bWxzKSB7XFxuICAgIGlmIChpdCA9PSBcXFwiXFxcIikge1xcbiAgICAgICAgYnJlYWtcXG4gICAgfVxcbiAgICBsZXQgbGlzdCA9IHBkZmEoaXQsIGNmZy7nq6DoioLliJfooagpXFxuICAgIGxldCB0ZW1wID0gW11cXG4gICAgZm9yIChsZXQgaWkgb2YgbGlzdCkge1xcbiAgICAgICAgdGVtcC5wdXNoKHtcXG4gICAgICAgICAgICB0aXRsZTogcGRmaChpaSwgY2ZnLueroOiKguagh+mimCkuc3BsaXQoXFxcIiDvvIhcXFwiKVswXS5zcGxpdChcXFwi77yIXFxcIilbMF0sXFxuICAgICAgICAgICAgdXJsOiBwZChpaSwgY2ZnLueroOiKgumTvuaOpSkgKyBcXFwiI2F1dG9QYWdlIyNyZWFkVGhlbWUjQHJ1bGU9anM6JC5yZXF1aXJlKCdoaWtlcjovL3BhZ2UvY29udGVudCcpXFxcIlxcbiAgICAgICAgfSlcXG4gICAgfVxcbiAgICAvL2xvZyhsaXN0Lmxlbmd0aClcXG4gICAgaWYgKGxpc3QubGVuZ3RoID09IGNmZy7kuIDpobXnq6DoioLmlbApIHtcXG4gICAgICAgIC8v56ug6IqC6b2Q5YWo55qE5omN5pS+5pys5Zyw57yT5a2YXFxuICAgICAgICBjYWNoZS5wYWdlID0gY2FjaGUucGFnZSArIDFcXG4gICAgICAgIGNhY2hlLmNoYX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JcXFxcbuWIhuexu+agh+etvu+8mlxcXCIgKyBib29rX2luZm8uY29tcGxldGVfY2F0ZWdvcnksXFxuICAgIHBpY191cmw6IGJvb2tfaW5mby50aHVtYl91cmxcXG59KTtcXG5kLnB1c2goe1xcbiAgICB0aXRsZTogJ+KAnOKAnOKAneKAnTxzbWFsbD48Zm9udCBjb2xvcj0jODcxZjc4PuaVsOaNruadpea6kOS6jue9kee7nO+8jOWmguaCqOWWnOasou+8jOivt+aUr+aMgeWumOaWuTwvZm9udD48L3NtYWxsPicsXFxuICAgIGRlc2M6ICfigJzigJzigJ3igJ08c21hbGw+PGZvbnQgY29sb3I9I2YyMGMwMD7mraTop4TliJnku4XpmZDlrabkuaDkuqTmtYHkvb/nlKjvvIzor7fkuo7lr7zlhaXlkI4yNOWwj+aXtuWGheWIoOmZpO+8jOS7u+S9lee7hOe7h+aIluS4quS6uuS4jeW+l+S7peS7u+S9leaWueW8j+aWueazleS8oOaSreatpOinhOWImeeahOaVtOS9k+aIlumDqOWIhu+8gTwvZm9udD48L3NtYWxsPicsXFxuICAgIHVybDogTVlfVVJMLFxcbiAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnXFxufSk7XFxudmFyIGxpc3QgPSBkYXRhLmRhdGEuaXRlbV9saXN0O1xcbnZhciB1cmxzID0gW11cXG5mb3IgKGxldCBpID0gMDsgaSA8IGxpc3QubGVuZ3RoOyBpKyspIHtcXG4gICAgbGV0IGluZGV4ID0gTWF0aC5mbG9vcihpIC8gMTAwKVxcbiAgICBpZiAodXJscy5sZW5ndGggPD0gaW5kZXgpIHtcXG4gICAgICAgIHVybHMucHVzaChbXSlcXG4gICAgfVxcbiAgICB1cmxzW2luZGV4XS5wdXNoKGxpc3RbaV0pXFxufVxcblxcbnZhciB1bCA9IFtdXFxuZm9yIChsZXQgaXQgb2YgdXJscykge1xcbiAgICB1bC5wdXNoKHtcXG4gICAgICAgIHVybDogY29uZmlnLmFwaSArIFxcXCIvbm92ZWwvYm9vay9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dC5sZW5ndGggPT0gY2ZnLuS4gOmhteeroOiKguaVsCkge1xcXFxuICAgICAgICAvL+eroOiKgum9kOWFqOeahOaJjeaUvuacrOWcsOe8k+WtmFxcXFxuICAgICAgICBjYWNoZS5wYWdlID0gY2FjaGUucGFnZSArIDFcXFxcbiAgICAgICAgY2FjaGUuY2hhcHRlcnMgPSBjYWNoZS5jaGFwdGVycy5jb25jYXQodGVtcClcXFxcbiAgICB9XFxcXG4gICAgZCA9IGQuY29uY2F0KHRlbXApXFxcXG59XFxcXG5cXFxcbnNhdmVDYWNoZShjYWNoZSlcXFxcbnNldFJlc3VsdChkKVxcXCJ9XVwifSIsInBpY1VybCI6Imh0dHA6Ly9wMy1ub3ZlbC5ieXRlaW1nLmNvbS9sYXJnZS9ub3ZlbC1waWMvMTNlZmE4ZTk1YWIwMTJlYzU1MmZhMGI2MmIyNzNkN2UiLCJ0aXRsZSI6IuWkp+WUkOWFtOS6oeS4ieeZvuW5tCJ9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement