four-d/movie/js/MTDM.js
潇洒 f96825bffb
0
Signed-off-by: 潇洒 <14147370+PizazzXS@user.noreply.gitee.com>
2025-01-02 14:20:32 +00:00

1 line
8.8 KiB
JavaScript

Z2xvYmFsVGhpcy5oX29zdCA9ICdodHRwOi8vbWl0dS5qaWFqaWF5b3V0aWFuLnRvcC8nOwp2YXIga2V5ID0gQ3J5cHRvSlMuZW5jLkJhc2U2NC5wYXJzZSgiWkRBek1tTXhNamczTm1Kak5qZzBPQT09Iik7CnZhciBpdiA9IENyeXB0b0pTLmVuYy5CYXNlNjQucGFyc2UoIlpEQXpNbU14TWpnM05tSmpOamcwT0E9PSIpOwpnbG9iYWxUaGlzLkFFU19EZWNyeXB0ID0gZnVuY3Rpb24od29yZCkgewogICAgdHJ5IHsKICAgICAgICB2YXIgZGVjcnlwdCA9IENyeXB0b0pTLkFFUy5kZWNyeXB0KHdvcmQsIGtleSwgewogICAgICAgICAgICBpdjogaXYsCiAgICAgICAgICAgIG1vZGU6IENyeXB0b0pTLm1vZGUuQ0JDLAogICAgICAgICAgICBwYWRkaW5nOiBDcnlwdG9KUy5wYWQuUGtjczcsCiAgICAgICAgfSk7CiAgICAgICAgY29uc3QgZGVjcnlwdGVkVGV4dCA9IGRlY3J5cHQudG9TdHJpbmcoQ3J5cHRvSlMuZW5jLlV0ZjgpOwogICAgICAgIGlmICghZGVjcnlwdGVkVGV4dCkgewogICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoIuino+WvhuWQjueahOWGheWuueS4uuepuiIpOwogICAgICAgIH0KICAgICAgICByZXR1cm4gZGVjcnlwdGVkVGV4dDsKICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICBjb25zb2xlLmVycm9yKCLop6Plr4blpLHotKU6IiwgZSk7CiAgICAgICAgcmV0dXJuIG51bGw7CiAgICB9Cn07Cmdsb2JhbFRoaXMuQUVTX0VuY3J5cHQgPSBmdW5jdGlvbih3b3JkKSB7CiAgICB2YXIgZW5jcnlwdGVkID0gQ3J5cHRvSlMuQUVTLmVuY3J5cHQod29yZCwga2V5LCB7CiAgICAgICAgaXY6IGl2LAogICAgICAgIG1vZGU6IENyeXB0b0pTLm1vZGUuQ0JDLAogICAgICAgIHBhZGRpbmc6IENyeXB0b0pTLnBhZC5Qa2NzNwogICAgfSk7CiAgICByZXR1cm4gZW5jcnlwdGVkLnRvU3RyaW5nKCk7Cn07CgpnbG9iYWxUaGlzLnZvZDEgPSBmdW5jdGlvbih0LCBwZykgewogICAgbGV0IGh0bWwxID0gcmVxdWVzdChoX29zdCArICdhcGkucGhwL2dldGFwcGFwaS5pbmRleC90eXBlRmlsdGVyVm9kTGlzdCcsIHsKICAgICAgICBib2R5OiB7CiAgICAgICAgICAgIGFyZWE6ICflhajpg6gnLAogICAgICAgICAgICB5ZWFyOiAn5YWo6YOoJywKICAgICAgICAgICAgdHlwZV9pZDogdCwKICAgICAgICAgICAgcGFnZTogcGcsCiAgICAgICAgICAgIHNvcnQ6ICfmnIDmlrAnLAogICAgICAgICAgICBsYW5nOiAn5YWo6YOoJywKICAgICAgICAgICAgY2xhc3M6ICflhajpg6gnCiAgICAgICAgfSwKICAgICAgICBoZWFkZXJzOiB7CiAgICAgICAgICAgICdVc2VyLUFnZW50JzogJ29raHR0cC8zLjE0LjknLAogICAgICAgICAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZCcKICAgICAgICB9LAogICAgICAgICdtZXRob2QnOiAnUE9TVCcKICAgIH0sIHRydWUpOwogICAgbGV0IGh0bWwgPSBKU09OLnBhcnNlKGh0bWwxKTsKICAgIHJldHVybiAoQUVTX0RlY3J5cHQoaHRtbC5kYXRhKSk7Cn0KZ2xvYmFsVGhpcy52b2RpZHMgPSBmdW5jdGlvbihpZHMpIHsKICAgIGxldCBodG1sMSA9IGZldGNoKGhfb3N0ICsgJ2FwaS5waHAvZ2V0YXBwYXBpLmluZGV4L3ZvZERldGFpbCcsIHsKICAgICAgICBtZXRob2Q6ICdQT1NUJywKICAgICAgICBoZWFkZXJzOiB7CiAgICAgICAgICAgICdVc2VyLUFnZW50JzogJ29raHR0cC8zLjE0LjknLAogICAgICAgICAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZCcKICAgICAgICB9LAogICAgICAgIGJvZHk6IHsKICAgICAgICAgICAgdm9kX2lkOiBpZHMsCiAgICAgICAgfQogICAgfSk7CiAgICBsZXQgaHRtbCA9IEpTT04ucGFyc2UoaHRtbDEpOwogICAgY29uc3QgcmRhdGEgPSBKU09OLnBhcnNlKEFFU19EZWNyeXB0KGh0bWwuZGF0YSkpOwogICAgY29uc29sZS5sb2cocmRhdGEpOwogICAgY29uc3QgZGF0YSA9IHsKICAgICAgICB2b2RfaWQ6IGlkcywKICAgICAgICB2b2RfbmFtZTogcmRhdGEudm9kLnZvZF9uYW1lLAogICAgICAgIHZvZF9yZW1hcmtzOiByZGF0YS52b2Qudm9kX3JlbWFya3MsCiAgICAgICAgdm9kX2FjdG9yOiByZGF0YS52b2Qudm9kX2FjdG9yLAogICAgICAgIHZvZF9kaXJlY3RvcjogcmRhdGEudm9kLnZvZF9kaXJlY3RvciwKICAgICAgICB2b2RfY29udGVudDogcmRhdGEudm9kLnZvZF9jb250ZW50LAogICAgICAgIHZvZF9wbGF5X2Zyb206ICcnLAogICAgICAgIHZvZF9wbGF5X3VybDogJycKICAgIH07CgogICAgcmRhdGEudm9kX3BsYXlfbGlzdC5mb3JFYWNoKCh2YWx1ZSkgPT4gewogICAgICAgIGRhdGEudm9kX3BsYXlfZnJvbSArPSB2YWx1ZS5wbGF5ZXJfaW5mby5zaG93ICsgJyQkJCc7CiAgICAgICAgdmFsdWUudXJscy5mb3JFYWNoKCh2KSA9PiB7CiAgICAgICAgICAgIGRhdGEudm9kX3BsYXlfdXJsICs9IHYubmFtZSArICckJyArIHZhbHVlLnBsYXllcl9pbmZvLnBhcnNlICsgJ34nICsgdi51cmwgKyAnficgKyByZGF0YS52b2Qudm9kX25hbWUgKyAnficgKyB2Lm5hbWUgKyAnIyc7CiAgICAgICAgfSk7CiAgICAgICAgZGF0YS52b2RfcGxheV91cmwgKz0gJyQkJCc7CiAgICB9KTsKICAgIHJldHVybiBkYXRhOwp9Ci8v5pCc57SiCmdsb2JhbFRoaXMuc3N2b2QgPSBmdW5jdGlvbih3ZCkgewogICAgdmFyIGh0bWwxID0gZmV0Y2goaF9vc3QgKyAnYXBpLnBocC9nZXRhcHBhcGkuaW5kZXgvc2VhcmNoTGlzdCcsIHsKICAgICAgICBtZXRob2Q6ICdQT1NUJywKICAgICAgICBoZWFkZXJzOiB7CiAgICAgICAgICAgICdVc2VyLUFnZW50JzogJ29raHR0cC8zLjE0LjknLAogICAgICAgICAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZCcKICAgICAgICB9LAogICAgICAgIGJvZHk6IHsKICAgICAgICAgICAga2V5d29yZHM6IHdkLAogICAgICAgICAgICB0eXBlcGFnZV9pZDogMSwKICAgICAgICB9CiAgICB9KTsKICAgIGxldCBodG1sID0gSlNPTi5wYXJzZShodG1sMSk7CiAgICByZXR1cm4gQUVTX0RlY3J5cHQoaHRtbC5kYXRhKTsKfQovL+ino+aekApnbG9iYWxUaGlzLmp4eCA9IGZ1bmN0aW9uKGlkLCB1cmwsIG5hbWUsIGp1amkpIHsKICAgIHRyeSB7CiAgICAgICAgaWYgKGlkLmluY2x1ZGVzKCd4bWZsdicpKSB7CiAgICAgICAgICAgIHJldHVybiB7CiAgICAgICAgICAgICAgICBwYXJzZTogMSwKICAgICAgICAgICAgICAgIHVybDogaWQgKyB1cmwsCiAgICAgICAgICAgICAgICBqeDogMCwKICAgICAgICAgICAgICAgIGRhbm1ha3U6ICdodHRwOi8vMTAzLjM2LjIyMC4xNjY6OTEvZG1rdTEvdHZib3gvemgucGhwP3VybD0nICsgJyZqbT0nICsgbmFtZSArICcmanM9JyArIGp1amkgKyAnJmtleT03NDE4NTI5NjMnCiAgICAgICAgICAgIH07CiAgICAgICAgfQogICAgICAgIC8vbG9nKGlkKTsgCiAgICAgICAgaWYgKHVybC5pbmNsdWRlcygnbTN1OCcpKSB7CiAgICAgICAgICAgIHJldHVybiB7CiAgICAgICAgICAgICAgICBwYXJzZTogMCwKICAgICAgICAgICAgICAgIHVybDogdXJsLAogICAgICAgICAgICAgICAgang6IDEsCiAgICAgICAgICAgICAgICBkYW5tYWt1OiAnaHR0cDovLzEwMy4zNi4yMjAuMTY2OjkxL2Rta3UxL3R2Ym94L3poLnBocD91cmw9JyArICcmam09JyArIG5hbWUgKyAnJmpzPScgKyBqdWppICsgJyZrZXk9NzQxODUyOTYzJwogICAgICAgICAgICB9OwogICAgICAgIH0KICAgICAgICBpZiAoaWQuaW5jbHVkZXMoJ2h0dHAnKSkgewogICAgICAgICAgICBsZXQgcHVybCA9IEpTT04ucGFyc2UocmVxdWVzdChpZCArIHVybCkpLnVybDsKICAgICAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgICAgIHBhcnNlOiAwLAogICAgICAgICAgICAgICAgdXJsOiBwdXJsLAogICAgICAgICAgICAgICAgang6IDAsCiAgICAgICAgICAgICAgICBkYW5tYWt1OiAnaHR0cDovLzEwMy4zNi4yMjAuMTY2OjkxL2Rta3UxL3R2Ym94L3poLnBocD91cmw9JyArICcmam09JyArIG5hbWUgKyAnJmpzPScgKyBqdWppICsgJyZrZXk9NzQxODUyOTYzJwogICAgICAgICAgICB9OwogICAgICAgIH0KICAgICAgICBsZXQgaHRtbDEgPSByZXF1ZXN0KGhfb3N0ICsgJ2FwaS5waHAvZ2V0YXBwYXBpLmluZGV4L3ZvZFBhcnNlJywgewogICAgICAgICAgICBtZXRob2Q6ICdQT1NUJywKICAgICAgICAgICAgaGVhZGVyczogewogICAgICAgICAgICAgICAgJ1VzZXItQWdlbnQnOiAnb2todHRwLzMuMTQuOScsCiAgICAgICAgICAgICAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZCcKICAgICAgICAgICAgfSwKICAgICAgICAgICAgYm9keTogewogICAgICAgICAgICAgICAgcGFyc2VfYXBpOiBpZCwKICAgICAgICAgICAgICAgIHVybDogQUVTX0VuY3J5cHQodXJsKSwKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIGxldCBodG1sID0gQUVTX0RlY3J5cHQoSlNPTi5wYXJzZShodG1sMSkuZGF0YSk7CiAgICAgICAgY29uc29sZS5sb2coaHRtbDEpOwogICAgICAgIGxldCBkZWNyeSA9IGh0bWwucmVwbGFjZSgvXG4vZywgJycpLnJlcGxhY2UoL1xcL2csICcnKTsKICAgICAgICBsZXQgbWF0Y2hlcyA9IGRlY3J5Lm1hdGNoKC8idXJsIjoiKFteIl0rKSIvKTsKICAgICAgICBpZiAoIW1hdGNoZXMgfHwgbWF0Y2hlc1sxXSA9PT0gbnVsbCkgewogICAgICAgICAgICBtYXRjaGVzID0gZGVjcnkubWF0Y2goLyJ1cmwiOiAiKFteIl0rKSIvKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgcGFyc2U6IDAsCiAgICAgICAgICAgIHVybDogbWF0Y2hlc1sxXSwKICAgICAgICAgICAgang6IDAsCiAgICAgICAgICAgIGRhbm1ha3U6ICdodHRwOi8vMTAzLjM2LjIyMC4xNjY6OTEvZG1rdTEvdHZib3gvemgucGhwP3VybD0nICsgJyZqbT0nICsgbmFtZSArICcmanM9JyArIGp1amkgKyAnJmtleT03NDE4NTI5NjMnCiAgICAgICAgfTsKICAgIH0gY2F0Y2ggewogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIHBhcnNlOiAwLAogICAgICAgICAgICB1cmw6ICfop6PmnpDlpLHotKUnLAogICAgICAgICAgICBqeDogMAogICAgICAgIH07CiAgICB9Cn0KCnZhciBydWxlID0gewogICAgdGl0bGU6ICfnsbPlhZRb6LWEXScsCiAgICBob3N0OiAnJywKICAgIGRldGFpbFVybDogJ2Z5aWQnLAogICAgc2VhcmNoVXJsOiAnKionLAogICAgdXJsOiAnZnljbGFzcycsCiAgICBzZWFyY2hhYmxlOiAyLAogICAgcXVpY2tTZWFyY2g6IDEsCiAgICBmaWx0ZXJhYmxlOiAwLAogICAgY2xhc3NfbmFtZTogJ+eUteW9sSbnlLXop4bliacm57u86Im6JuWKqOa8qycsCiAgICBjbGFzc191cmw6ICcxJjImMyY0JywKICAgIHBsYXlfcGFyc2U6IHRydWUsCiAgICBsYXp5OiAkanMudG9TdHJpbmcoKCkgPT4gewogICAgICAgIGNvbnN0IHBhcnRzID0gaW5wdXQuc3BsaXQoJ34nKTsKICAgICAgICBpbnB1dCA9IGp4eChwYXJ0c1swXSwgcGFydHNbMV0sIHBhcnRzWzJdLCBwYXJ0c1szXSk7CiAgICB9KSwKICAgIOaOqOiNkDogJGpzLnRvU3RyaW5nKCgpID0+IHsKICAgICAgICBsZXQgZGF0YSA9IHZvZDEoMCwgMCk7CiAgICAgICAgbGV0IGJhdGEgPSBKU09OLnBhcnNlKGRhdGEpLnJlY29tbWVuZF9saXN0OwogICAgICAgIGJhdGEuZm9yRWFjaChpdCA9PiB7CiAgICAgICAgICAgIGQucHVzaCh7CiAgICAgICAgICAgICAgICB1cmw6IGl0LnZvZF9pZCwKICAgICAgICAgICAgICAgIHRpdGxlOiBpdC52b2RfbmFtZSwKICAgICAgICAgICAgICAgIGltZzogaXQudm9kX3BpYywKICAgICAgICAgICAgICAgIGRlc2M6IGl0LnZvZF9yZW1hcmtzCiAgICAgICAgICAgIH0pOwogICAgICAgIH0pOwogICAgICAgIHNldFJlc3VsdChkKTsKICAgIH0pLAogICAg5LiA57qnOiAkanMudG9TdHJpbmcoKCkgPT4gewogICAgICAgIGxldCBkYXRhID0gdm9kMShpbnB1dCwgTVlfUEFHRSk7CiAgICAgICAgbGV0IGJhdGEgPSBKU09OLnBhcnNlKGRhdGEpLnJlY29tbWVuZF9saXN0OwogICAgICAgIGJhdGEuZm9yRWFjaChpdCA9PiB7CiAgICAgICAgICAgIGQucHVzaCh7CiAgICAgICAgICAgICAgICB1cmw6IGl0LnZvZF9pZCwKICAgICAgICAgICAgICAgIHRpdGxlOiBpdC52b2RfbmFtZSwKICAgICAgICAgICAgICAgIGltZzogaXQudm9kX3BpYywKICAgICAgICAgICAgICAgIGRlc2M6IGl0LnZvZF9yZW1hcmtzCiAgICAgICAgICAgIH0pOwogICAgICAgIH0pOwogICAgICAgIHNldFJlc3VsdChkKTsKICAgIH0pLAogICAg5LqM57qnOiAkanMudG9TdHJpbmcoKCkgPT4gewogICAgICAgIGNvbnNvbGUubG9nKCLosIPor5Xkv6Hmga8yIiArIGlucHV0KTsKICAgICAgICBsZXQgZGF0YSA9IHZvZGlkcyhpbnB1dCk7CiAgICAgICAgLy9jb25zb2xlLmxvZyhkYXRhKTsKICAgICAgICBWT0QgPSBkYXRhOwogICAgfSksCiAgICDmkJzntKI6ICRqcy50b1N0cmluZygoKSA9PiB7CiAgICAgICAgbGV0IGRhdGEgPSBzc3ZvZChpbnB1dCk7CiAgICAgICAgbGV0IGJhdGEgPSBKU09OLnBhcnNlKGRhdGEpLnNlYXJjaF9saXN0OwogICAgICAgIGJhdGEuZm9yRWFjaChpdCA9PiB7CiAgICAgICAgICAgIGQucHVzaCh7CiAgICAgICAgICAgICAgICB1cmw6IGl0LnZvZF9pZCwKICAgICAgICAgICAgICAgIHRpdGxlOiBpdC52b2RfbmFtZSwKICAgICAgICAgICAgICAgIGltZzogaXQudm9kX3BpYywKICAgICAgICAgICAgICAgIGRlc2M6IGl0LnZvZF9yZW1hcmtzCiAgICAgICAgICAgIH0pOwogICAgICAgIH0pOwogICAgICAgIC8vICBjb25zb2xlLmxvZyhkYXRhKTsKICAgICAgICBzZXRSZXN1bHQoZCk7CiAgICB9KSwKfQ==