xiaomianao666

邀您一起看:京梦音乐

Nov 4th, 2024
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥京梦音乐@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImdtdE1vZGlmaWVkXCI6MCxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJcIixcImxpc3RUb0NsZWFyQXNzb2NpYXRlZEZLXCI6W10sXCJsaXN0VG9DbGVhclNlbGZGS1wiOltdLFwicGFnZUxpc3RcIjpbXSxcInBhcmFtc1wiOlwie1xcXCJjbHNcXFwiOlxcXCJlbGVsaXN0IOW9semfs+e7hCAjMVxcXCIsXFxcImlkXFxcIjpcXFwi5oiR55qE5Li76aG1I+S6rOaipumfs+S5kFxcXCIsXFxcIm5ld1dpbmRvd1xcXCI6dHJ1ZSxcXFwid2luZG93SWRcXFwiOlxcXCLkuqzmoqbpn7PkuZBcXFwifVwiLFwic2F2ZWRcIjpmYWxzZSxcInRpdGxlXCI6XCLmiJHnmoTkuLvpobVcIixcInZlcnNpb25cIjowLFwidXJsXCI6XCJoaWtlcjovL2VtcHR5I2Z5cGFnZSNnYW1lVGhlbWUjI25vUmVjb3JkSGlzdG9yeSM7Z2V0O1VURi04O3tVc2VyLUFnZW50QE1vemlsbGEvNS4wIChMaW51eO+8m++8myBBbmRyb2lkIDE077yb77ybIDIzMDEzUks3NUMgQnVpbGQvVUtRMS4yMzA4MDQuMDAx77yb77ybIHd2KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBWZXJzaW9uLzQuMCBDaHJvbWUvMTE4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ICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiBzZWFyY2goYXJyYXksIG5hbWUpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGFycmF5LmZpbHRlcihpdGVtID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBpdGVtLnRpdGxlLnRvTG93ZXJDYXNlKCkuaW5jbHVkZXMobmFtZS50b0xvd2VyQ2FzZSgpKSB8fCBpdGVtLnNpbmdlci50b0xvd2VyQ2FzZSgpLmluY2x1ZGVzKG5hbWUudG9Mb3dlckNhc2UoKSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHJlc3VsdHMgPSBzZWFyY2goanNvbiwgaW5wdXQpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChyZXN1bHRzLmxlbmd0aCA+IDApIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICQoXFxcImhpa2VyOi8vZW1wdHlcXFwiKS5ydWxlKChyZXN1bHRzKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRQYWdlVGl0bGUoXFxcIlxcXFx1NjQxY1xcXFx1N2QyMlxcXFx1N2VkM1xcXFx1Njc5Y1xcXCIpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGQgPSBbXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc3VsdHMuZm9yRWFjaChqID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkLnB1c2goe3RpdGxlOiBqLnRpdGxlLCBjb2xfdHlwZTogXFxcInRleHRfMVxcXCIsIGRlc2M6IGouYWxidW0gPyBqLnNpbmdlciArIFxcXCIgLS0gXFxcIiArIGouYWxidW0gOiBqLnNpbmdlciArIFxcXCIgLS0gXFxcIiArIGoudGl0bGUsIHBpYzogai5waWMsIHVybDogJChcXFwiI25vTG9hZGluZyNcXFwiKS5sYXp5UnVsZSgoaikgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkueGluZ3poaWdlLmNvbS9BUEkvUVFtdXNpY1ZJUC8/YnI9MTEmbWlkPVxcXCIgKyBqLmlkKSkuZGF0YS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdXJsID0gW2pzICsgXFxcIiNpc011c2ljPXRydWUjXFxcIl07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2ggKGUpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly94aWFvYXBpLmNuL0FQSS9tdl9zcS5waHA/bj0xJm1zZz1cXFwiICsgai50aXRsZSwge3RpbWVvdXQ6IDIwMDB9KSkudXJsO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9IFtqc29uWzNdIHx8IGpzb25bMl0gfHwganNvblsxXSB8fCBqc29uWzBdXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGxyYyA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnlhb2h1ZC5jbi9hcGkvbXVzaWMvbHJjP2tleT1hVWx5a0EzNUtnbXdQVXBlaEpLTmJGam82diZ0eXBlPXFxJm1pZD1cXFwiICsgai5pZCkpLmRhdGE7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2gge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7dXJsczogdXJsLCBseXJpYzogbHJjfSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgaiksIGV4dHJhOiB7aW5oZXJpdFRpdGxlOiBmYWxzZX19KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRSZXN1bHQoZCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLCByZXN1bHRzKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcInRvYXN0Oi8vXFxcXHU2Y2ExXFxcXHU2NzA5XFxcXHU2MjdlXFxcXHU1MjMwXFxcIjtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAsIGpzb24pLCBleHRyYToge2xvbmdDbGljazogW3t0aXRsZTogXFxcIlxcXFx1ZDgzZFxcXFx1ZGNlMFxcXFx1NTkwZFxcXFx1NTIzNlxcXFx1NTZmZVxcXFx1NzI0N1xcXFx1OTRmZVxcXFx1NjNhNVxcXCIsIGpzOiAkLnRvU3RyaW5nKChodG1sKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJjb3B5Oi8vXFxcIiArIGh0bWwuaW5mby5waWN1cmw7XFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAsIGh0bWwpfV0sIGdyYWRpZW50OiB0cnVlfX0pO1xcbiAgICAgICAgICAgICAgICAgICAganNvbi5tYXAoaiA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHt0aXRsZTogai50aXRsZSwgY29sX3R5cGU6IFxcXCJ0ZXh0XzFcXFwiLCBkZXNjOiBqLmFsYnVtID8gai5zaW5nZXIgKyBcXFwiIC0tIFxcXCIgKyBqLmFsYnVtIDogai5zaW5nZXIgKyBcXFwiIC0tIFxcXCIgKyBqLnRpdGxlLCBwaWNfdXJsOiBqLnBpYyArIFxcXCJAUmVmZXJlcj1cXFwiLCB1cmw6ICQoXFxcIiNub0xvYWRpbmcjI25vSGlzdG9yeSMjbm9SZWNvcmRIaXN0b3J5I1xcXCIpLmxhenlSdWxlKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIganMgPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwczovL2FwaS54aW5nemhpZ2UuY29tL0FQSS9RUW11c2ljVklQLz9icj0xMSZtaWQ9XFxcIiArIGouaWQpKS5kYXRhLnNyYztcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB1cmwgPSBbanMgKyBcXFwiI2lzTXVzaWM9dHJ1ZSNcXFwiXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzb24gPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwczovL3hpYW9hcGkuY24vQVBJL212X3NxLnBocD9uPTEmbXNnPVxcXCIgKyBqLnRpdGxlLCB7dGltZW91dDogMjAwMH0pKS51cmw7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdXJsID0gW2pzb25bM10gfHwganNvblsyXSB8fCBqc29uWzFdIHx8IGpzb25bMF1dO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgbHJjID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkueWFvaHVkLmNuL2FwaS9tdXNpYy9scmM/a2V5PWFVbHlrQTM1S2dtd1BVcGVoSktOYkZqbzZ2JnR5cGU9cXEmbWlkPVxcXCIgKyBqLmlkKSkuZGF0YTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXRjaCB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIEpTT04uc3RyaW5naWZ5KHt1cmxzOiB1cmwsIGx5cmljOiBscmN9KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgLCBqKSwgZXh0cmE6IHtpbmhlcml0VGl0bGU6IGZhbHNlLCBsb25nQ2xpY2s6IFt7dGl0bGU6IFxcXCJcXFxcdTRlMGJcXFxcdThmN2RcXFxcdTZiNGNcXFxcdTY2ZjJcXFwiLCBqczogJC50b1N0cmluZygoaikgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnhpbmd6aGlnZS5jb20vQVBJL1FRbXVzaWNWSVAvP2JyPTExJm1pZD1cXFwiICsgai5pZCkpLmRhdGEuc3JjO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcImRvd25sb2FkOi8vXFxcIiArIGpzb247XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICwgail9LCB7dGl0bGU6IFxcXCJcXFxcdTg5YzJcXFxcdTc3MGJNVlxcXCIsIGpzOiAkLnRvU3RyaW5nKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8veGlhb2FwaS5jbi9BUEkvbXZfc3EucGhwP249MSZtc2c9XFxcIiArIGoudGl0bGUsIHt0aW1lb3V0OiAyMDAwfSkpLnVybDtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB1cmwgPSBbanNvblszXSB8fCBqc29uWzJdIHx8IGpzb25bMV0gfHwganNvblswXV07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2ggKGUpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB1cmwgPSBbSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkuY2VuZ3VpZ3VpLmNuL2FwaS9qdWhlL2FwaS5waHA/dHlwZT1rZ212Jm49MSZtc2c9XFxcIiArIGoudGl0bGUsIHt0aW1lb3V0OiAyMDAwfSkpLmRhdGEudXJsXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gSlNP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ICAgICByZXR1cm4ge3RpdGxlOiBqLm5hbWUsIGljb246IGoucGljLCBpZDogai5pZH07XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgKTtcXG4gICAgICAgICAgICAgICAgZ2VkYW4gPSBKU09OLnBhcnNlKHJlcXVlc3QoXFxcImhpa2VyOi8vZmlsZXMvSm0vZ2VkYW4uanNvblxcXCIpKTtcXG4gICAgICAgICAgICAgICAgZ2VkYW4gPSBnZWRhbi5jb25jYXQoanNvbik7XFxuICAgICAgICAgICAgICAgIHNhdmVGaWxlKFxcXCJoaWtlcjovL2ZpbGVzL0ptL2dlZGFuLmpzb25cXFwiLCBKU09OLnN0cmluZ2lmeShnZWRhbikpO1xcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZShmYWxzZSk7XFxuICAgICAgICAgICAgICAgIHJldHVybiBcXFwidG9hc3Q6Ly9cXFxcdTVkZjJcXFxcdTZkZmJcXFxcdTUyYTBcXFwiO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgICAgICApO1xcbiAgICAgICAgfVxcbiAgICAgICAgKX0sIHt0aXRsZTogXFxcIlxcXFx1ZDgzZFxcXFx1ZGQzMCBcXFxcdTZiNGNcXFxcdTUzNTVcXFxcdTdiYTFcXFxcdTc0MDZcXFwiLCBqczogJC50b1N0cmluZygoKSA9PiB7XFxuICAgICAgICAgICAgcmV0dXJuICQoXFxcImhpa2VyOi8vZW1wdHkjbm9IaXN0b3J5IyNub1JlY29yZEhpc3RvcnkjXFxcIikucnVsZSgoKSA9PiB7XFxuICAgICAgICAgICAgICAgIHNldFBhZ2VUaXRsZShcXFwiXFxcXHU2YjRjXFxcXHU1MzU1XFxcXHU3YmExXFxcXHU3NDA2XFxcIik7XFxuICAgICAgICAgICAgICAgIGxldCBkID0gW107XFxuICAgICAgICAgICAgICAgIGQucHVzaCh7dGl0bGU6IFxcXCJcXFxcdTYzZDBcXFxcdTUzZDZpZFxcXCIsIGNvbF90eXBlOiBcXFwiaW5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FxcdTRlNTBpZFxcXCIsIHVybDogJC50b1N0cmluZygoKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICBpZiAoIWlucHV0KSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJ0b2FzdDovL1xcXFx1OGJmN1xcXFx1NjgzOVxcXFx1NjM2ZVxcXFx1NjNkMFxcXFx1NzkzYVxcXFx1OGY5M1xcXFx1NTE2NVxcXFx1NTE4NVxcXFx1NWJiOVxcXCI7XFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICBsZXQgZ2VkYW4gPSBKU09OLnBhcnNlKHJlcXVlc3QoXFxcImhpa2VyOi8vZmlsZXMvSm0vZ2VkYW4uanNvblxcXCIpKTtcXG4gICAgICAgICAgICAgICAgICAgIGxldCBuID0gaW5wdXQuc3BsaXQoXFxcIkBcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgIGRhdGEgPSB7dGl0bGU6IG5bMF0sIGljb246IG5bMV0sIGlkOiBuWzJdfTtcXG4gICAgICAgICAgICAgICAgICAgIGdlZGFuID0gZ2VkYW4uY29uY2F0KGRhdGEpO1xcbiAgICAgICAgICAgICAgICAgICAgc2F2ZUZpbGUoXFxcImhpa2VyOi8vZmlsZXMvSm0vZ2VkYW4uanNvblxcXCIsIEpTT04uc3RyaW5naWZ5KGdlZGFuKSk7XFxuICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZShmYWxzZSk7XFxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcInRvYXN0Oi8vXFxcXHU1ZGYyXFxcXHU2ZGZiXFxcXHU1MmEwXFxcIjtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICApLCBleHRyYToge3R5cGU6IFxcXCJ0ZXh0YXJlYVxcXCIsIGhlaWdodDogMn19KTtcXG4gICAgICAgICAgICAgICAgZC5wdXNoKHt0aXRsZTogXFxcIlxcXFx1NmI0Y1xcXFx1NTM1NVxc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0vZ2VkYW4uanNvblxcXCIsIEpTT04uc3RyaW5naWZ5KGdlZGFuKSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZShmYWxzZSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcInRvYXN0Oi8vXFxcXHU2NmY0XFxcXHU2NTM5XFxcXHU2MjEwXFxcXHU1MjlmflxcXCI7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLCBpbmRleCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGlucHV0ID09IFxcXCJcXFxcdTc5ZmJcXFxcdTRmNGRcXFwiKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJChcXFwiXFxcIiwgXFxcIlxcXFx1ODk4MVxcXFx1NzlmYlxcXFx1NTJhOFxcXFx1NTIzMFxcXFx1NTRlYVxcXFx1NGUyYVxcXFx1NWU4ZlxcXFx1NTNmN1xcXFx1NTI0ZFxcXFx1OTc2Mi9cXFxcdTU0MGVcXFxcdTk3NjJcXFwiKS5pbnB1dCgoaW5kZXgpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgZ2VkYW4gPSBKU09OLnBhcnNlKHJlcXVlc3QoXFxcImhpa2VyOi8vZmlsZXMvSm0vZ2VkYW4uanNvblxcXCIpKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgdGVtcCA9IGdlZGFuW2luZGV4XTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnZWRhbi5zcGxpY2UoaW5wdXQsIDAsIHRlbXApO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpbnB1dCA8IGluZGV4KSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdlZGFuLnNwbGljZShpbmRleCArIDEsIDEpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdlZGFuLnNwbGljZShpbmRleCwgMSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNhdmVGaWxlKFxcXCJoaWtlcjovL2ZpbGVzL0ptL2dlZGFuLmpzb25cXFwiLCBKU09OLnN0cmluZ2lmeShnZWRhbikpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKGZhbHNlKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcInRvYXN0Oi8vXFxcXHU3OWZiXFxcXHU0ZjRkXFxcXHU2MjEwXFxcXHU1MjlmflxcXCI7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAsIGluZGV4KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBnZWRhbiA9IEpTT04ucGFyc2UocmVxdWVzdChcXFwiaGlrZXI6Ly9maWxlcy9KbS9nZWRhbi5qc29uXFxcIikpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2VkYW4uc3BsaWNlKGluZGV4LCAxKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNhdmVGaWxlKFxcXCJoaWtlcjovL2ZpbGVzL0ptL2dlZGFuLmpzb25cXFwiLCBKU09OLnN0cmluZ2lmeShnZWRhbikpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoZmFsc2UpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJ0b2FzdDovL1xcXFx1NTIyMFxcXFx1OTY2NFxcXFx1NjIxMFxcXFx1NTI5Zn5cXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgLCBpbmRleCwgaXRlbSl9KTtcXG4gICAgICAgICAgICAgICAgICAgIGluZGV4Kys7XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgKTtcXG4gICAgICAgICAgICAgICAgc2V0UmVzdWx0KGQpO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgICAgICApO1xcbiAgICAgICAgfVxcbiAgICAgICAgKX0sIHt0aXRsZTogXFxcIlxcXFx1MjY3YlxcXFx1ZmUwZiBcXFxcdTYwNjJcXFxcdTU5MGRcXFxcdTllZDhcXFxcdThiYTRcXFwiLCBqczogJC50b1N0cmluZygoKSA9PiB7XFxuICAgICAgICAgICAgZGVsZXRlRmlsZShcXFwiaGlrZXI6Ly9maWxlcy9KbS9nZWRhbi5qc29uXFxcIik7XFxuICAgICAgICAgICAgcmVmcmVzaFBhZ2UoZmFsc2UpO1xcbiAgICAgICAgICAgIHJldHVybiBcXFwidG9hc3Q6Ly9cXFxcdTVkZjJcXFxcdTYwNjJcXFxcdTU5MGRcXFxcdTllZDhcXFxcdThiYTRcXFwiO1xcbiAgICAgICAgfVxcbiAgICAgICAgKX1dfX0pO1xcbiAgICAgICAgZC5wdXNoKHt0aXRsZTogXFxcIlxcXFx1NWMwZlxcXFx1ODJiOFxcXFx1Njk5Y1xcXFx1NTM1NVxcXCIsIGNvbF90eXBlOiBcXFwiaWNvbl8zX3JvdW5kX2ZpbGxcXFwiLCBwaWM6IFxcXCJodHRwczovL2hpa2VyZmFuc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FxcInRleHRfMVxcXCIsIGRlc2M6IGouYWxidW0gPyBqLnNpbmdlciArIFxcXCIgLS0gXFxcIiArIGouYWxidW0gOiBqLnNpbmdlciArIFxcXCIgLS0gXFxcIiArIGoudGl0bGUsIHBpY191cmw6IGoucGljICsgXFxcIkBSZWZlcmVyPVxcXCIsIHVybDogJChcXFwiI25vTG9hZGluZyMjbm9IaXN0b3J5IyNub1JlY29yZEhpc3RvcnkjXFxcIikubGF6eVJ1bGUoKGopID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqcyA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnhpbmd6aGlnZS5jb20vQVBJL05ldEVhc2VfQ2xvdWRNdXNpY19uZXcvP2JyPTUmc29uZ2lkPVxcXCIgKyBqLmlkKSkuZGF0YS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2ggKGUpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqcyA9IChcXFwiaHR0cHM6Ly9tdXNpYy4xNjMuY29tL3NvbmcvbWVkaWEvb3V0ZXIvdXJsP2lkPVxcXCIgKyBqLmlkKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgdXJsID0gW2pzICsgXFxcIiNpc011c2ljPXRydWUjXFxcIl07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgbHJjID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cDovL211c2ljLjE2My5jb20vYXBpL3NvbmcvbHlyaWM/b3M9cGMmbHY9LTEma3Y9LTEmdHY9LTEmaWQ9XFxcIiArIGouaWQpKS5scmMubHlyaWM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2gge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7dXJsczogdXJsLCBseXJpYzogbHJjfSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICwgaiksIGV4dHJhOiB7aW5oZXJpdFRpdGxlOiBmYWxzZSwgbG9uZ0NsaWNrOiBbe3RpdGxlOiBcXFwiXFxcXHU0ZTBiXFxcXHU4ZjdkXFxcXHU2YjRjXFxcXHU2NmYyXFxcIiwganM6ICQudG9TdHJpbmcoKGopID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkueGluZ3poaWdlLmNvbS9BUEkvTmV0RWFzZV9DbG91ZE11c2ljX25ldy8/YnI9NSZzb25naWQ9XFxcIiArIGouaWQpKS5kYXRhLnNyYztcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzb24gPSAoXFxcImh0dHBzOi8vbXVzaWMuMTYzLmNvbS9zb25nL21lZGlhL291dGVyL3VybD9pZD1cXFwiICsgai5pZCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJkb3dubG9hZDovL1xcXCIgKyBqc29uO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAsIGopfSwge3RpdGxlOiBcXFwiXFxcXHU4OWMyXFxcXHU3NzBiTVZcXFwiLCBqczogJC50b1N0cmluZygoaikgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnZwczAyLnRvcC9BUEkva2dfbXVzaWNfbXYucGhwP249MSZ0eXBlPWpzb24mbXNnPVxcXCIgKyBqLnRpdGxlKSkuZGF0YS51cmw7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidmlkZW86Ly9cXFwiICsganNvbjtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgLCBqKX1dfX0pO1xcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgKTtcXG4gICAgICAgICAgICAgICAgICAgIHNldFJlc3VsdChkKTtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAsIGlkKTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAgLCBnZWRhbik7XFxuICAgICAgICB9XFxuICAgICAgICApfSk7XFxuICAgICAgICBkLnB1c2goe3RpdGxlOiBnZXRJdGVtKFxcXCJrd2dkXFxcIiwgXFxcIm5ld1xcXCIpID09IFxcXCJuZXdcXFwiID8gXFxcIlxcXFx1NjcwMFxcXFx1NjViMFxcXFx1NmI0Y1xcXFx1NTM1NVxcXCIgOiBcXFwiXFxcXHU2NzAwXFxcXHU3MGVkXFxcXHU2YjRjXFxcXHU1MzU1XFxcIiwgY29sX3R5cGU6IFxcXCJpY29uXzNfcm91bmRfZmlsbFxcXCIsIHBpYzogXFxcImh0dHBzOi8vaGlrZXJmYW5zLmNvbS90dWJpYW8vbXVzaWMvODIuc3ZnXFxcIiwgdXJsOiAkKFxcXCIjbm9Mb2FkaW5nI1xcXCIpLmxhenlSdWxlKCgpID0+IHtcXG4gICAg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ywgYWxidW06IGouYWxidW0ubmFtZSwgaWQ6IGoubWlkfTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoTVlfUEFHRSA9PSAxKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGQucHVzaCh7dGl0bGU6IFxcXCJcXFwiLCBjb2xfdHlwZTogXFxcIm1vdmllXzFfdmVydGljYWxfcGljX2JsdXJcXFwiLCBkZXNjOiBcXFwiXFxcXHVkODNkXFxcXHVkZDBlXFxcXHRcXFwiICsgdHh0LCBwaWM6IGpzb25bMF0ucGljLCB1cmw6IFxcXCJoaWtlcjovL2VtcHR5XFxcIiwgZXh0cmE6IHtncmFkaWVudDogdHJ1ZX19KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAganNvbi5mb3JFYWNoKGogPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkLnB1c2goe3RpdGxlOiBqLnRpdGxlLCBjb2xfdHlwZTogXFxcInRleHRfMVxcXCIsIGRlc2M6IGouYWxidW0gPyBqLnNpbmdlciArIFxcXCIgLS0gXFxcIiArIGouYWxidW0gOiBqLnNpbmdlciArIFxcXCIgLS0gXFxcIiArIGoudGl0bGUsIHBpY191cmw6IGoucGljICsgXFxcIkBSZWZlcmVyPVxcXCIsIHVybDogJChcXFwiI25vTG9hZGluZyMjbm9IaXN0b3J5IyNub1JlY29yZEhpc3RvcnkjXFxcIikubGF6eVJ1bGUoKGopID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkueGluZ3poaWdlLmNvbS9BUEkvUVFtdXNpY1ZJUC8/YnI9MTEmbWlkPVxcXCIgKyBqLmlkKSkuZGF0YS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9IFtqcyArIFxcXCIjaXNNdXNpYz10cnVlI1xcXCJdO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2gge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly94aWFvYXBpLmNuL0FQSS9tdl9zcS5waHA/bj0xJm1zZz1cXFwiICsgai50aXRsZSwge3RpbWVvdXQ6IDIwMDB9KSkudXJsO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB1cmwgPSBbanNvblszXSB8fCBqc29uWzJdIHx8IGpzb25bMV0gfHwganNvblswXV07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBscmMgPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwczovL2FwaS55YW9odWQuY24vYXBpL211c2ljL2xyYz9rZXk9YVVseWtBMzVLZ213UFVwZWhKS05iRmpvNnYmdHlwZT1xcSZtaWQ9XFxcIiArIGouaWQpKS5kYXRhO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2gge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIEpTT04uc3RyaW5naWZ5KHt1cmxzOiB1cmwsIGx5cmljOiBscmN9KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAsIGopLCBleHRyYToge2luaGVyaXRUaXRsZTogZmFsc2UsIGxvbmdDbGljazogW3t0aXRsZTogXFxcIlxcXFx1NGUwYlxcXFx1OGY3ZFxcXFx1NmI0Y1xcXFx1NjZmMlxcXCIsIGpzOiAkLnRvU3RyaW5nKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnhpbmd6aGlnZS5jb20vQVBJL1FRbXVzaWNWSVAvP2JyPTExJm1pZD1cXFwiICsgai5pZCkpLmRhdGEuc3JjO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJkb3dubG9hZDovL1xcXCIgKyBqc29uO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgail9LCB7dGl0bGU6IFxcXCJcXFxcdTg5YzJcXFxcdTc3MGJNVlxcXCIsIGpzOiAkLnRvU3RyaW5nKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly94aWFvYXBpLmNuL0FQSS9tdl9zcS5waHA/bj0xJm1zZz1cXFwiICsgai50aXRsZSwge3RpbWVvdXQ6IDIwMDB9KSkudXJsO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB1cmwgPSBbanNvblszXSB8fCBqc29uWzJdIHx8IGpzb25bMV0gfHwganNvblswXV07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB1cmwgPSBbSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkuY2VuZ3VpZ3VpLmNuL2FwaS9qdWhlL2FwaS5waHA/dHlwZT1rZ212Jm49MSZtc2c9XFxcIiArIGoudGl0bGUsIHt0aW1lb3V0OiAyMDAwfSkpLmRhdGEudXJsXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7dXJsczogdXJsfSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLCBqKX1dfX0pO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICApO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHNldFJlc3VsdChkKTtcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICwgdHh0KTtcXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgIGlmIChpbnB1dCA9PSBcXFwiXFxcXHU1YzBmXFxcXHU4MmI4XFxcIikge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAkKFxcXCJoaWtlcjovL2VtcHR5I2ltbWVyc2l2ZVRoZW1lIyNub0hpc3RvcnkjI25vUmVjb3JkSGlzdG9yeSNcXFwiKS5ydWxlKCh0eHQpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0UGFnZVRpdGxlKFxcXCJcXFxcdTVjMGZcXFxcdTgyYjhcXFxcdTY0MWNcXFxcdTdkMjJcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGQgPSBbXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzb24gPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwOi8vbXVzaWMuMTYzLmNvbS9hcGkvc2VhcmNoL2dldC93ZWI/dHlwZT0xJm9mZnNldD0wJmxpbWl0PTkwJnM9XFxcIiArIHR4dCkpLnJlc3VsdC5zb25ncy5tYXAoaiA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgc2luZ2VyID0gai5hcnRpc3RzLm1hcChzID0+IHMubmFtZSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4ge3RpdGxlOiBqLm5hbWUsIHNpbmdlcjogc2luZ2VyWzBdLCBwaWM6IFxcXCJodHRwczovL3dhbmdodW4udG9wL3FxbXVzaWMvd3ltdXNpYy5waHA/dHlwZT1waWMmaWQ9XFxcIiArIGouaWQsIGFsYnVtOiBqLmFsYnVtLm5hbWUsIGlkOiBqLmlkLCB2aWQ6IGoubXZpZH07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKE1ZX1BBR0UgPT0gMSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHt0aXRsZTogXFxcIlxcXCIsIGNvbF90eXBlOiBcXFwibW92aWVfMV92ZXJ0aWNhbF9waWNfYmx1clxcXCIsIGRlc2M6IFxcXCJcXFxcdWQ4M2RcXFxcdWRkMGVcXFxcdFxcXCIgKyB0eHQsIHBpYzoganNvblswXS5waWMsIHVybDogXFxcImhpa2VyOi8vZW1wdHlcXFwiLCBleHRyYToge2dyYWRpZW50OiB0cnVlfX0pO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGpzb24ubWFwKGogPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHt0aXRsZTogai50aXRsZSwgY29sX3R5cGU6IFxcXCJ0ZXh0XzFcXFwiLCBwaWNfdXJsOiBqLnBpYyArIFxcXCJAUmVmZXJlcj1cXFwiLCBkZXNjOiBqLmFsYnVtID8gai5zaW5nZXIgKyBcXFwiIC0tIFxcXCIgKyBqLmFsYnVtIDogai5zaW5nZXIgKyBcXFwiIC0tIFxcXCIgKyBqLnRpdGxlLCB1cmw6ICQoXFxcIiNub0xvYWRpbmcjI25vSGlzdG9yeSMjbm9SZWNvcmRIaXN0b3J5I1xcXCIpLmxhenlSdWxlKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9hcGkueGluZ3poaWdlLmNvbS9BUEkvTmV0RWFzZV9DbG91ZE11c2ljX25ldy8/YnI9NSZzb25naWQ9XFxcIiArIGouaWQpKS5kYXRhLnNyYztcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2F0Y2ggKGUpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzID0gKFxcXCJodHRwczovL211c2ljLjE2My5jb20vc29uZy9tZWRpYS9vdXRlci91cmw/aWQ9XFxcIiArIGouaWQpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdXJsID0gW2pzICsgXFxcIiNpc011c2ljPXRydWUjXFxcIl07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGxyYyA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHA6Ly9tdXNpYy4xNjMuY29tL2FwaS9zb25nL2x5cmljP29zPXBjJmx2PS0xJmt2PS0xJnR2PS0xJmlkPVxcXCIgKyBqLmlkKSkubHJjLmx5cmljO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXRjaCB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7dXJsczogdXJsLCBseXJpYzogbHJjfSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAsIGopLCBleHRyYToge2luaGVyaXRUaXRsZTogZmFsc2UsIGxvbmdDbGljazogW3t0aXRsZTogXFxcIlxcXFx1NGUwYlxcXFx1OGY3ZFxcXFx1NmI0Y1xcXFx1NjZmMlxcXCIsIGpzOiAkLnRvU3RyaW5nKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGpzb24gPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwczovL2FwaS54aW5nemhpZ2UuY29tL0FQSS9OZXRFYXNlX0Nsb3VkTXVzaWNfbmV3Lz9icj01JnNvbmdpZD1cXFwiICsgai5pZCkpLmRhdGEuc3JjO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIganNvbiA9IChcXFwiaHR0cHM6Ly9tdXNpYy4xNjMuY29tL3NvbmcvbWVkaWEvb3V0ZXIvdXJsP2lkPVxcXCIgKyBqLmlkKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJkb3dubG9hZDovL1xcXCIgKyBqc29uO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLCBqKX0sIHt0aXRsZTogXFxcIlxcXFx1ODljMlxcXFx1NzcwYk1WXFxcIiwganM6ICQudG9TdHJpbmcoKGopID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgbmFtZSA9IHQuc3BsaXQoXFxcIiBcXFwiKVswXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnZwczAyLnRvcC9BUEkva2dfbXVzaWNfbXYucGhwP249MSZ0eXBlPWpzb24mbXNnPVxcXCIgKyBqLnRpdGxlKSkuZGF0YS51cmw7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJ2aWRlbzovL1xcXCIgKyBqc29uO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLCBqKX1dfX0pO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNldFJlc3VsdChkKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgLCB0eHQpO1xcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJChcXFwiaGlrZXI6Ly9lbXB0eSNmeXBhZ2UjaW1tZXJzaXZlVGhlbWUjI25vSGlzdG9yeSMjbm9SZWNvcmRIaXN0b3J5I1xcXCIpLnJ1bGUoKHR4dCkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRQYWdlVGl0bGUoXFxcIlxcXFx1NWMwZlxcXFx1ODNiNFxcXFx1NjQxY1xcXFx1N2QyMlxcXCIpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgZCA9IFtdO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vc2VhcmNoLmt1d28uY24vci5zP2NsaWVudD1rdCZwbj1cXFwiICsgKE1ZX1BBR0UgLSAxKSArIFxcXCImcm49MzAmdmlwdmVyPTEmZnQ9bXVzaWMmZW5jb2Rpbmc9dXRmOCZyZm9ybWF0PWpzb24mbW9iaT0xJmFsbD1cXFwiICsgdHh0KSkuYWJzbGlzdC5tYXAoaiA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgaW1nID0gKFxcXCJodHRwOi8vaW1nMS5rd2Nkbi5rdXdvLmNuL3N0YXIvYWxidW1jb3Zlci81MDBcXFwiICsgai53ZWJfYWxidW1waWNfc2hvcnQuc3BsaXQoXFxcIjEyMFxcXCIpWzFdKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB7dGl0bGU6IGouU09OR05BTUUsIHNpbmdlcjogai5BUlRJU1QsIHBpYzogaW1nLCBhbGJ1bTogai5BTEJVTSwgcmlkOiBqLkRDX1RBUkdFVElELCB2aWQ6IGoubXZwYXlpbmZvLnZpZH07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKE1ZX1BBR0UgPT0gMSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHt0aXRsZTogXFxcIlxcXCIsIHBpYzoganNvblswXS5waWMsIGNvbF90eXBlOiBcXFwibW92aWVfMV92ZXJ0aWNhbF9waWNfYmx1clxcXCIsIGRlc2M6IFxcXCJcXFxcdWQ4M2RcXFxcdWRkMGVcXFxcdFxcXCIgKyB0eCwgdXJsOiBcXFwiaGlrZXI6Ly9lbXB0eVxcXCIsIGV4dHJhOiB7Z3JhZGllbnQ6IHRydWV9fSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAganNvbi5tYXAoaiA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkLnB1c2goe3RpdGxlOiBqLnRpdGxlLCBjb2xfdHlwZTogXFxcInRleHRfMVxcXCIsIHBpYzogai5waWMgKyBcXFwiQFJlZmVyZXI9XFxcIiwgZGVzYzogai5hbGJ1bSA/IGouc2luZ2VyICsgXFxcIiAtLSBcXFwiICsgai5hbGJ1bSA6IGouc2luZ2VyICsgXFxcIiAtLSBcXFwiICsgai50aXRsZSwgdXJsOiAkKFxcXCIjbm9Mb2FkaW5nIyNub0hpc3RvcnkjI25vUmVjb3JkSGlzdG9yeSNcXFwiKS5sYXp5UnVsZSgoaikgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqcyA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnhpbmd6aGlnZS5jb20vQVBJL0t1d29fQkRfbmV3Lz9uPTEmYnI9NSZuYW1lPVxcXCIgKyBqLnRpdGxlKSkuZGF0YS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqcyA9IGZldGNoKFxcXCJodHRwczovL2FudGlzZXJ2ZXIua3V3by5jbi9hbnRpLnM/dHlwZT1jb252ZXJ0X3VybCZmb3JtYXQ9bXAzJnJpZD1cXFwiICsgai5yaWQpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgdXJsID0gW2pzICsgXFxcIiNpc011c2ljPXRydWUjXFxcIl07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGxyYyA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vbS5rdXdvLmNuL25ld2g1L3NpbmdsZXMvc29uZ2luZm9hbmRscmM/bXVzaWNJZD1cXFwiICsgai5yaWQpKS5kYXRhLmxyY2xpc3QubWFwKGQgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHMgPSAoZC50aW1lICUgNjApLnRvRml4ZWQoMikucGFkU3RhcnQoNSwgXFxcIjBcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBtID0gKChkLnRpbWUgLSBzKSAvIDYwKS50b0ZpeGVkKDApLnBhZFN0YXJ0KDIsIFxcXCIwXFxcIik7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcIltcXFwiICsgbSArIFxcXCI6XFxcIiArIHMgKyBcXFwiXVxcXCIgKyBkLmxpbmVMeXJpYztcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLmpvaW4oXFxcIlxcXFxuXFxcIik7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhdGNoIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIEpTT04uc3RyaW5naWZ5KHt1cmxzOiB1cmwsIGx5cmljOiBscmN9KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgaiksIGV4dHJhOiB7aW5oZXJpdFRpdGxlOiBmYWxzZSwgbG9uZ0NsaWNrOiBbe3RpdGxlOiBcXFwiXFxcXHU0ZTBiXFxcXHU4ZjdkXFxcXHU2YjRjXFxcXHU2NmYyXFxcIiwganM6ICQudG9TdHJpbmcoKGopID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnhpbmd6aGlnZS5jb20vQVBJL0t1d29fQkRfbmV3Lz9uPTEmYnI9NSZuYW1lPVxcXCIgKyBqLnRpdGxlKSkuZGF0YS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gZmV0Y2goXFxcImh0dHBzOi8vYW50aXNlcnZlci5rdXdvLmNuL2FudGkucz90eXBlPWNvbnZlcnRfdXJsJmZvcm1hdD1tcDMmcmlkPVxcXCIgKyBqLnJpZCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwiZG93bmxvYWQ6Ly9cXFwiICsganNvbjtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgail9LCB7dGl0bGU6IFxcXCJcXFxcdTg5YzJcXFxcdTc3MGJNVlxcXCIsIGpzOiAkLnRvU3RyaW5nKChqKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHZpZCA9PSBcXFwiMFxcXCIpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnZwczAyLnRvcC9BUEkva2dfbXVzaWNfbXYucGhwP249MSZ0eXBlPWpzb24mbXNnPVxcXCIgKyBqLnRpdGxlKSkuZGF0YS51cmw7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGh0bWwgPSBmZXRjaChcXFwiaHR0cHM6Ly9hbnltYXRjaC5rdXdvLmNuL21vYmkucz9mPXdlYiZ1c2VyPTZmMTczY2Y5YTJhOWRhNGMmc291cmNlPWt3cGxheWVyX2FyXzEwLjguMi4yXzEzOC5hcGsmdHlwZT1nZXRfdXJsX2J5X3ZpZCZxdWFsaXR5PU1QNEhWJnAycGlkPTEmdmlkPVxcXCIgKyBqLnZpZCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBhID0gaHRtbC5zcGxpdChcXFwiPVxcXCIpWzNdO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgYiA9IGEuc3BsaXQoXFxcIj9cXFwiKVswXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHVybCA9IGI7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidmlkZW86Ly9cXFwiICsgdXJsO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgail9XX19KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRSZXN1bHQoZCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICwgdHh0KTtcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAsIHR4dCl9KTtcXG4gICAgICAgIH1cXG4gICAgICAgICksIGV4dHJhOiB7ZGVmYXVsdFZhbHVlOiBnZXRJdGVtKFxcXCJzc3B0X2lucHV0XFxcIiwgXFxcIlxcXCIpfX0pO1xcbiAgICB9XFxuICAgIGxldCBrd2dkID0gZ2V0SXRlbShcXFwia3dnZFxcXCIsIFxcXCJuZXdcXFwiKTtcXG4gICAgbGV0IGh0bWwgPSAoXFxcImh0dHA6Ly93YXBpLmt1d28uY24vYXBpL3BjL2NsYXNzaWZ5L3BsYXlsaXN0L2dldFJjbVBsYXlMaXN0P2xvZ2luVWlkPTAmbG9naW5TaWQ9MCZhcHBVaWQ9NzYwMzk1NzYmJnBuPVxcXCIgKyBNWV9QQUdFICsgXFxcIiZybj0zNiZvcmRlcj1cXFwiICsga3dnZCk7XFxuICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChodG1sKSkuZGF0YTtcXG4gICAganNvbi5kYXRhLm1hcChkYXRhID0+IHtcXG4gICAgICAgIGQucHVzaCh7dGl0bGU6IG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ICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgbGV0IHVybCA9IFtqcyArIFxcXCIjaXNNdXNpYz10cnVlI1xcXCJdO1xcbiAgICAgICAgICAgICAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgbHJjID0gSlNPTi5wYXJzZShmZXRjaChcXFwiaHR0cHM6Ly9tLmt1d28uY24vbmV3aDUvc2luZ2xlcy9zb25naW5mb2FuZGxyYz9tdXNpY0lkPVxcXCIgKyBqLmlkKSkuZGF0YS5scmNsaXN0Lm1hcChkID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHMgPSAoZC50aW1lICUgNjApLnRvRml4ZWQoMikucGFkU3RhcnQoNSwgXFxcIjBcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IG0gPSAoKGQudGltZSAtIHMpIC8gNjApLnRvRml4ZWQoMCkucGFkU3RhcnQoMiwgXFxcIjBcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJbXFxcIiArIG0gKyBcXFwiOlxcXCIgKyBzICsgXFxcIl1cXFwiICsgZC5saW5lTHlyaWM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICkuam9pbihcXFwiXFxcXG5cXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgIGNhdGNoIHtcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7dXJsczogdXJsLCBseXJpYzogbHJjfSk7XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgLCBqKSwgZXh0cmE6IHtpbmhlcml0VGl0bGU6IGZhbHNlLCBsb25nQ2xpY2s6IFt7dGl0bGU6IFxcXCJcXFxcdTRlMGJcXFxcdThmN2RcXFxcdTZiNGNcXFxcdTY2ZjJcXFwiLCBqczogJC50b1N0cmluZygoaikgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgdHJ5IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goXFxcImh0dHBzOi8vYXBpLnhpbmd6aGlnZS5jb20vQVBJL0t1d29fQkRfbmV3Lz9uPTEmYnI9NSZuYW1lPVxcXCIgKyBqLnRpdGxlKSkuZGF0YS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gZmV0Y2goXFxcImh0dHBzOi8vYW50aXNlcnZlci5rdXdvLmNuL2FudGkucz90eXBlPWNvbnZlcnRfdXJsJmZvcm1hdD1tcDMmcmlkPVxcXCIgKyBqLmlkKTtcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwiZG93bmxvYWQ6Ly9cXFwiICsganNvbjtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAsIGopfSwge3RpdGxlOiBcXFwiXFxcXHU4OWMyXFxcXHU3NzBiTVZcXFwiLCBqczogJC50b1N0cmluZygoaikgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgaWYgKGoudmlkID09IFxcXCIwXFxcIikge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBuYW1lID0gdC5zcGxpdChcXFwiIFxcXCIpWzBdO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciB1cmwgPSBKU09OLnBhcnNlKGZldGNoKFxcXCJodHRwczovL2FwaS52cHMwMi50b3AvQVBJL2tnX211c2ljX212LnBocD9uPTEmdHlwZT1qc29uJm1zZz1cXFwiICsgai50aXRsZSkpLmRhdGEudXJsO1xcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgaHRtbCA9IGZldGNoKFxcXCJodHRwczovL2FueW1hdGNoLmt1d28uY24vbW9iaS5zP2Y9d2ViJnVzZXI9NmYxNzNjZjlhMmE5ZGE0YyZzb3VyY2U9a3dwbGF5ZXJfYXJfMTAuOC4yLjJfMTM4LmFwayZ0eXBlPWdldF91cmxfYnlfdmlkJnF1YWxpdHk9TVA0SFYmcDJwaWQ9MSZ2aWQ9XFxcIiArIGouaWQpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBhID0gaHRtbC5zcGxpdChcXFwiPVxcXCIpWzNdO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBiID0gYS5zcGxpdChcXFwiP1xcXCIpWzBdO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCB1cmwgPSBiO1xcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJ2aWRlbzovL1xcXCIgKyB1cmw7XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgLCBqKX1dfX0pO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgICAgICApO1xcbiAgICAgICAgICAgIHNldFJlc3VsdChkKTtcXG4gICAgICAgIH1cXG4gICAgICAgICwgZGF0YSl9KTtcXG4gICAgfVxcbiAgICApO1xcbiAgICBzZXRSZXN1bHQoZCk7XFxufVxcbikoKVwiLFwiZ3JvdXBcIjpcIuKRoOaOqOiNkFwiLFwidWFcIjpcIm1vYmlsZVwiLFwicHJlUnVsZVwiOlwiXCIsXCJwYWdlc1wiOlwiW11cIn0iLCJwaWNVcmwiOiJoaWtlcjovL2ZpbGVzL2ljb24vU3RoZW1lL3NraW5zLzEv6Z+z5LmQLnN2ZyIsInRpdGxlIjoi5Lqs5qKm6Z+z5LmQIn0=
Add Comment
Please, Sign In to add comment