Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥云边有个小卖部@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImdtdE1vZGlmaWVkXCI6MCxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJqczpcXG52YXIgaHRtbCA9IGdldFJlc0NvZGUoKTtcXG52YXIgY29udHMgPSBwZGZhKGh0bWwsICdib2R5JiYubnVtTGlzdCcpWzBdO1xcbnZhciBsaXN0ID0gcGRmYShjb250cywgJ2JvZHkmJmEnKTtcXG52YXIgdGl0bGUgPSBwZGZoKGxpc3RbbGlzdC5sZW5ndGgsIDBdLCAnYSYmVGV4dCcpO1xcbnNldFJlc3VsdChcXFwi5pu05paw6IezOiBcXFwiICsgdGl0bGUpO1wiLFwibGlzdFRvQ2xlYXJBc3NvY2lhdGVkRktcIjpbXSxcImxpc3RUb0NsZWFyU2VsZkZLXCI6W10sXCJwYWdlTGlzdFwiOlt7XCJjb2xfdHlwZVwiOlwibW92aWVfM1wiLFwibmFtZVwiOlwibGF6eVwiLFwicGF0aFwiOlwibGF6eVwiLFwicnVsZVwiOlwidmFyIGxhenkgPSAkKCcnKS5sYXp5UnVsZSgocGxheUJ0biwgTVlfSE9NRSkgPT4ge1xcbiAgICB0cnkge1xcbiAgICAgICAgbGV0IGZyb20gPSBpbnB1dC5zcGxpdChcXFwiI1xcXCIpWzFdO1xcbiAgICAgICAgdmFyIGpzcyA9IHBkZmgoZmV0Y2gocGxheUJ0biksICcuZGV0YWlsUG9zdGVySW50cm8mJnNjcmlwdCwyJiZzcmMnKVxcbiAgICAgICAgbG9nKGZldGNoKGpzcykpXFxuICAgICAgICB0cnkge1xcbiAgICAgICAgICAgIHZhciBqcyA9IGZldGNoKGpzcykubWF0Y2goL3RoaXMuUGF0aD0oLio/KTsvKVsxXS5zcGxpdCgnXFxcIicpWzFdXFxuICAgICAgICB9IGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgdmFyIGpzID0gZXZhbChmZXRjaChqc3MpLm1hdGNoKC9ldmFsKC4qKS8pWzFdKS5tYXRjaCgvdGhpcy5QYXRoPSguKj8pOy8pWzFdLnNwbGl0KCdcXFwiJylbMV1cXG4gICAgICAgIH1cXG4gICAgICAgIGlmICghanMuc3RhcnRzV2l0aChcXFwiaHR0cFxcXCIpKSB7XFxuICAgICAgICAgICAganMgPSBNWV9IT01FICsgJy8nICsganNcXG4gICAgICAgIH1cXG4gICAgICAgIC8vbG9nKGpzKVxcblxcbiAgICAgICAgdmFyIGp4ID0gcmVxdWVzdChqcyArIGZyb20gKyAnLmpzJykubWF0Y2goL3NyYz1cXFwiKC4qPyknLylbMV1cXG4gICAgICAgIHZhciB1cmxzID0ganggKyBpbnB1dFxcbiAgICAgICAgLy8gbG9nKHVybHMpXFxuICAgICAgICBpZiAoZnJvbS5pbmNsdWRlcygnbTN1OCcpKSB7XFxuICAgICAgICAgICAgdmFyIHVybCA9IHJlcXVlc3QodXJscykubWF0Y2goL3VybC4qPycoLio/KScvKVsxXTtcXG4gICAgICAgICAgICByZXR1cm4gdXJsICsgJyNpc1ZpZGVvPXRydWUjJztcXG4gICAgICAgIH1cXG4gICAgICAgIHZhciBodG1sID0gZmV0Y2godXJscywge1xcbiAgICAgICAgICAgIGhlYWRlcnM6IHtcXG4gICAgICAgICAgICAgICAgJ1JlZmVyZXInOiBwbGF5QnRuXFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfSk7XFxuICAgICAgICB2YXIgdXJsbCA9IHBkZmgoaHRtbCwgJ3NjcmlwdCwtMSYmSHRtbCcpO1xcbiAgICAgICAgbG9nKHVybGwpXFxuICAgICAgICBpZiAodXJsbC5zdGFydHNXaXRoKFxcXCJldmFsXFxcIikpIHsgXFxuICAgICAgICAgICAgdXJsbCA9IGV2YWwodXJsbC5tYXRjaCgvZXZhbCguKikvKVsxXSlcXG4gICAgICAgIH1lbHNlXFxuICAgICAgICBpZiAodXJsbC5pbmNsdWRlcyhcXFwic3dpdGNoXFxcIikpIHsgXFxuICAgICAgICAgICAgdXJsbCA9IHVybGxcXG4gICAgICAgIH1lbHNle1xcbiAgICAgICAgICAgIHVybGwgPSBldmFsKHVybGwubWF0Y2goL3ZhcltcXFxcc1xcXFxTXSo/Oy8pWzBdKTtcXG59ICAgICAgICBcXG4gICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgdmFyIGxpc3QgPSB1cmxsLm1hdGNoKC9odHRwLio/PS9nKTtcXG4gICAgICAgICAgICB2YXIgbGlzdCA9IGxpc3QuZmlsdGVyKGRhdGEgPT4ge1xcbiAgICAgICAgICAgICAgICByZXR1cm4gIWRhdGEubWF0Y2goL21vci8pXFxuICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgdmFyIHVybCA9IGxpc3QubWFwKGRhdGEgPT4gZmV0Y2goZGF0YSArIGlucHV0LCB7fSkubWF0Y2goL3ZpZGVvIHNyYz1cXFwiKC4qPylcXFwiLylbMV0pO1xcblxcbiAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7XFxuICAgICAgICAgICAgICAgIHVybHM6IHVybFxcbiAgICAgICAgICAgIH0pO1xcbiAgICAgICAgfSBjYXRjaCAoZSkge31cXG4gICAgICAgIGxvZyhsaW5lcylcXG4gICAgICAgIC8qXFxuICAgICAgICAgICAgICAgIHZhciBsaXN0ID0gT2JqZWN0LnZhbHVlcyhsaW5lcyk7XFxuICAgICAgICAgICAgICAgIHZhciB1cmwgPSBsaXN0Lm1hcChkYXRhID0+IGZldGNoKGRhdGEgKyBpbnB1dCwge30pLm1hdGNoKC92aWRlbyBzcmM9XFxcIiguKj8pXFxcIi8pWzFdKTtcXG4gICAgICAgICAgICAgICAgdmFyIG5hbWUgPSBPYmplY3Qua2V5cyhsaW5lcyk7XFxuICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7XFxuICAgICAgICAgICAgICAgICAgICBuYW1lczogbmFtZSxcXG4gICAgICAgICAgICAgICAgICAgIHVybHM6IHVybFxcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICovXFxuICAgIH0gY2F0Y2ggKGUpIHtcXG4gICAgICAgIGZ1bmN0aW9uIHg1cnVsZShqaWV4dXJsKSB7XFxuICAgICAgICAgICAgc2hvd0xvYWRpbmcoXFxcIuWKqOaAgeino+aekOinhOWImeS4re+8jOivt+eojeWAmVxcXCIpO1xcbiAgICAgICAgICAgIHZhciB2aWRlbyA9ICd3ZWJSdWxlOi8vJyArIGppZXh1cmwgKyAnQCcgKyAkLnRvU3RyaW5nKCgpID0+IHtcXG4gICAgICAgICAgICAgICAgLy9mYmEubG9nKGZiYS5nZXRVcmxzKCkpO1xcbiAgICAgICAgICAgICAgICB2YXIgdXJscyA9IF9nZXRVcmxzKCk7XFxuICAgICAgICAgICAgICAgIGlmICh3aW5kb3cuX19jb3VudCA9PSBudWxsIHx8IHdpbmRvdy5fX2NvdW50ID09IHVuZGVmaW5lZCkge1xcbiAgICAgICAgICAgICAgICAgICAgd2luZG93Ll9fY291bnQgPSAwXFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgaWYgKHdpbmRvdy5fX2NvdW50ID49IDEwKSB7XFxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gbG9jYXRpb24uaHJlZlxcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIHdpbmRvdy5fX2NvdW50ID0gd2luZG93Ll9fY291bnQgKyAxO1xcbiAgICAgICAgICAgICAgICBpZiAod2luZG93Ll9fY291bnQgPiAwICYmIHdpbmRvdy5fX2NvdW50ICE9IG51bGwgJiYgd2luZG93Ll9fY291bnQgIT0gdW5kZWZpbmVkKSB7XFxuICAgICAgICAgICAgICAgICAgICBmYmEubG9nKCfml6Xlv5fmo4DntKLnrKwnICsgd2luZG93Ll9fY291bnQgKyAn5qyhJyk7XFxuICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBpIGluIHVybHMpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAodXJsc1tpXS5tYXRjaCgvXFxcXD91cmw9fFxcXFwubTN1OHx2aWRlb19tcDR8XFxcXC5mbHZ8XFxcXC5tcDQvKSAmJiAhdXJsc1tpXS5tYXRjaCgvbW9yLykpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9IHJlcXVlc3QodXJsc1tpXSkubWF0Y2goL3ZpZGVvIHNyYz1cXFwiKC4qPylcXFwiLylbMV07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vZnlfYnJpZGdlX2FwcC5sb2codXJsc1tpXSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh1cmwgIT0gJycpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1cmwgKyAnI2lzVmlkZW89dHJ1ZSMnXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdXJsc1tpXVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgfSAvL2VuZCBmb3IgaVxcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgcmV0dXJuIHZpZGVvXFxuICAgICAgICB9XFxuICAgICAgICByZXR1cm4geDVydWxlKHVybHMpO1xcbiAgICB9XFxufSwgcGxheUJ0biwgTVlfSE9NRSk7XCJ9XSxcInNhdmVkXCI6ZmFsc2UsXCJ0aXRsZVwi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Dlr7zmvJQsXFxuICAgICAgICBwaWNfdXJsOiDlm77niYcsXFxuICAgICAgICB1cmw6IOWbvueJhyxcXG4gICAgICAgIGNvbF90eXBlOiAnbW92aWVfMV92ZXJ0aWNhbF9waWNfYmx1cicsXFxuICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgIGdyYWRpZW50OiB0cnVlXFxuICAgICAgICB9XFxuICAgIH0pO1xcblxcbiAgICBkLnB1c2goe1xcbiAgICAgICAgdGl0bGU6ICfigJjigJjigJnigJk8c21hbGw+PGZvbnQgY29sb3I9XFxcIiNmZjE0OGU4ZVxcXCI+566A5LuL77yaJyArIOeugOS7iy5zdWJzdHIoMCwgNTUpICsgJy4uLjwvZm9udD48c21hbGw+PGZvbnQgY29sb3I9XFxcInJlZFxcXCI+6K+m5oOFPC9mb250Pjwvc21hbGw+PC9zbWFsbD4nLFxcbiAgICAgICAgdXJsOiAnaGlrZXI6Ly9lbXB0eSMnICsgJ1xcXFxuJyArIOeugOS7iyArICcjbm9IaXN0b3J5IyNub1JlY29yZEhpc3RvcnkjJyArIGBAcnVsZT1qczogdmFyIGQgPSBbXTtkLnB1c2goe3RpdGxlOiflvbHniYfnroDku4vvvJonKyBNWV9VUkwuc3BsaXQoJyMnKVsxXSxjb2xfdHlwZTogJ2xvbmdfdGV4dCd9KTsgc2V0UmVzdWx0KGQpO2AsXFxuICAgICAgICBjb2xfdHlwZTogJ3RleHRfMSdcXG4gICAgfSk7XFxufSBjYXRjaCAoZSkge1xcbiAgICBkLnB1c2goe1xcbiAgICAgICAgaW1nOiBwZChodG1sLFxcbiAgICAgICAgICAgICdpbWcmJnNyYycpICsgJ0BSZWZlcmVyPScsXFxuICAgICAgICB1cmw6IE1ZX1VSTCxcXG4gICAgICAgIGNvbF90eXBlOiAnbW92aWVfMV92ZXJ0aWNhbF9waWNfYmx1cicsXFxuICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgIGdyYWRpZW50OiB0cnVlXFxuICAgICAgICB9XFxuICAgI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uc3RhcnRzV2l0aChcXFxcXFxcImh0dHBcXFxcXFxcIikpIHtcXFxcbiAgICAgICAgICAgIGpzID0gTVlfSE9NRSArICcvJyArIGpzXFxcXG4gICAgICAgIH1cXFxcbiAgICAgICAgLy9sb2coanMpXFxcXG5cXFxcbiAgICAgICAgdmFyIGp4ID0gcmVxdWVzdChqcyArIGZyb20gKyAnLmpzJykubWF0Y2goL3NyYz1cXFxcXFxcIiguKj8pJy8pWzFdXFxcXG4gICAgICAgIHZhciB1cmxzID0ganggKyBpbnB1dFxcXFxuICAgICAgICAvLyBsb2codXJscylcXFxcbiAgICAgICAgaWYgKGZyb20uaW5jbHVkZXMoJ20zdTgnKSkge1xcXFxuICAgICAgICAgICAgdmFyIHVybCA9IHJlcXVlc3QodXJscykubWF0Y2goL3VybC4qPycoLio/KScvKVsxXTtcXFxcbiAgICAgICAgICAgIHJldHVybiB1cmwgKyAnI2lzVmlkZW89dHJ1ZSMnO1xcXFxuICAgICAgICB9XFxcXG4gICAgICAgIHZhciBodG1sID0gZmV0Y2godXJscywge1xcXFxuICAgICAgICAgICAgaGVhZGVyczoge1xcXFxuICAgICAgICAgICAgICAgICdSZWZlcmVyJzogcGxheUJ0blxcXFxuICAgICAgICAgICAgfVxcXFxuICAgICAgICB9KTtcXFxcbiAgICAgICAgdmFyIHVybGwgPSBwZGZoKGh0bWwsICdzY3JpcHQsLTEmJkh0bWwnKTtcXFxcbiAgICAgICAgbG9nKHVybGwpXFxcXG4gICAgICAgIGlmICh1cmxsLnN0YXJ0c1dpdGgoXFxcXFxcXCJldmFsXFxcXFxcXCIpKSB7IFxcXFxuICAgICAgICAgICAgdXJsbCA9IGV2YWwodXJsbC5tYXRjaCgvZXZhbCguKikvKVsxXSlcXFxcbiAgICAgICAgfWVsc2VcXFxcbiAgICAgICAgaWYgKHVybGwuaW5jbHVkZXMoXFxcXFxcXCJzd2l0Y2hcXFxcXFxcIikpIHsgXFxcXG4gICAgICAgICAgICB1cmxsID0gdXJsbFxcXFxuICAgICAgICB9ZWxzZXtcXFxcbiAgICAgICAgICAgIHVybGwgPSBldmFsKHVybGwubWF0Y2goL3ZhcltcXFxcXFxcXHNcXFxcXFxcXFNdKj87LylbMF0pO1xcXFxufSAgICAgICAgXFxcXG4gICAgICAgIHRyeSB7XFxcXG4gICAgICAgICAgICB2YXIgbGlzdCA9IHVybGwubWF0Y2goL2h0dHAuKj89L2cpO1xcXFxuICAgICAgICAgICAgdmFyIGxpc3QgPSBsaXN0LmZpbHRlcihkYXRhID0+IHtcXFxcbiAgICAgICAgICAgICAgICByZXR1cm4gIWRhdGEubWF0Y2goL21vci8pXFxcXG4gICAgICAgICAgICB9KTtcXFxcbiAgICAgICAgICAgIHZhciB1cmwgPSBsaXN0Lm1hcChkYXRhID0+IGZldGNoKGRhdGEgKyBpbnB1dCwge30pLm1hdGNoKC92aWRlbyBzcmM9XFxcXFxcXCIoLio/KVxcXFxcXFwiLylbMV0pO1xcXFxuXFxcXG4gICAgICAgICAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkoe1xcXFxuICAgICAgICAgICAgICAgIHVybHM6IHVybFxcXFxuICAgICAgICAgICAgfSk7XFxcXG4gICAgICAgIH0gY2F0Y2ggKGUpIHt9XFxcXG4gICAgICAgIGxvZyhsaW5lcylcXFxcbiAgICAgICAgLypcXFxcbiAgICAgICAgICAgICAgICB2YXIgbGlzdCA9IE9iamVjdC52YWx1ZXMobGluZXMpO1xcXFxuICAgICAgICAgICAgICAgIHZhciB1cmwgPSBsaXN0Lm1hcChkYXRhID0+IGZldGNoKGRhdGEgKyBpbnB1dCwge30pLm1hdGNoKC92aWRlbyBzcmM9XFxcXFxcXCIoLio/KVxcXFxcXFwiLylbMV0pO1xcXFxuICAgICAgICAgICAgICAgIHZhciBuYW1lID0gT2JqZWN0LmtleXMobGluZXMpO1xcXFxuICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7XFxcXG4gICAgICAgICAgICAgICAgICAgIG5hbWVzOiBuYW1lLFxcXFxuICAgICAgICAgICAgICAgICAgICB1cmxzOiB1cmxcXFxcbiAgICAgICAgICAgICAgICB9KTtcXFxcbiAgICAgICAgKi9cXFxcbiAgICB9IGNhdGNoIChlKSB7XFxcXG4gICAgICAgIGZ1bmN0aW9uIHg1cnVsZShqaWV4dXJsKSB7XFxcXG4gICAgICAgICAgICBzaG93TG9hZGluZyhcXFxcXFxcIuWKqOaAgeino+aekOinhOWImeS4re+8jOivt+eojeWAmVxcXFxcXFwiKTtcXFxcbiAgICAgICAgICAgIHZhciB2aWRlbyA9ICd3ZWJSdWxlOi8vJyArIGppZXh1cmwgKyAnQCcgKyAkLnRvU3RyaW5nKCgpID0+IHtcXFxcbiAgICAgICAgICAgICAgICAvL2ZiYS5sb2coZmJhLmdldFVybHMoKSk7XFxcXG4gICAgICAgICAgICAgICAgdmFyIHVybHMgPSBfZ2V0VXJscygpO1xcXFxuICAgICAgICAgICAgICAgIGlmICh3aW5kb3cuX19jb3VudCA9PSBudWxsIHx8IHdpbmRvdy5fX2NvdW50ID09IHVuZGVmaW5lZCkge1xcXFxuICAgICAgICAgICAgICAgICAgICB3aW5kb3cuX19jb3VudCA9IDBcXFxcbiAgICAgICAgICAgICAgICB9XFxcXG4gICAgICAgICAgICAgICAgaWYgKHdpbmRvdy5fX2NvdW50ID49IDEwKSB7XFxcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBsb2NhdGlvbi5ocmVmXFxcXG4gICAgICAgICAgICAgICAgfVxcXFxuICAgICAgICAgICAgICAgIHdpbmRvdy5fX2NvdW50ID0gd2luZG93Ll9fY291bnQgKyAxO1xcXFxuICAgICAgICAgICAgICAgIGlmICh3aW5kb3cuX19jb3VudCA+IDAgJiYgd2luZG93Ll9fY291bnQgIT0gbnVsbCAmJiB3aW5kb3cuX19jb3VudCAhPSB1bmRlZmluZWQpIHtcXFxcbiAgICAgICAgICAgICAgICAgICAgZmJhLmxvZygn5pel5b+X5qOA57Si56ysJyArIHdpbmRvdy5fX2NvdW50ICsgJ+asoScpO1xcXFxuICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBpIGluIHVybHMpIHtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh1cmxzW2ldLm1hdGNoKC9cXFxcXFxcXD91cmw9fFxcXFxcXFxcLm0zdTh8dmlkZW9fbXA0fFxcXFxcXFxcLmZsdnxcXFxcXFxcXC5tcDQvKSAmJiAhdXJsc1tpXS5tYXRjaCgvbW9yLykpIHtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdXJsID0gcmVxdWVzdCh1cmxzW2ldKS5tYXRjaCgvdmlkZW8gc3JjPVxcXFxcXFwiKC4qPylcXFxcXFxcIi8pWzFdO1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vZnlfYnJpZGdlX2FwcC5sb2codXJsc1tpXSk7XFxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHVybCAhPSAnJykge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdXJsICsgJyNpc1ZpZGVvPXRydWUjJ1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1cmxzW2ldXFxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcXFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcXFxuICAgICAgICAgICAgICAgICAgICB9IC8vZW5kIGZvciBpXFxcXG4gICAgICAgICAgICAgICAgfVxcXFxuICAgICAgICAgICAgfSk7XFxcXG4gICAgICAgICAgICByZXR1cm4gdmlkZW9cXFxcbiAgICAgICAgfVxcXFxuICAgICAgICByZXR1cm4geDVydWxlKHVybHMpO1xcXFxuICAgIH1cXFxcbn0sIHBsYXlCdG4sIE1ZX0hPTUUpO1xcXCJ9XVwifSIsInBpY1VybCI6Imh0dHBzOi8vdmNvdmVyLXZ0LXBpYy5wdXVpLnFwaWMuY24vdmNvdmVyX3Z0X3BpYy8wL216YzAwMjAwZWJ6ZmM1bjE3MTQyNzU1MDI1MjUvMjYwQFJlZmVyZXI9IiwidGl0bGUiOiLkupHovrnmnInkuKrlsI/ljZbpg6gifQ==
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement