Created
January 25, 2021 20:43
-
-
Save Kocal/c055a9ea3fcbc4df1d99c86270af4ca9 to your computer and use it in GitHub Desktop.
link of the source-map-analyzer (https://github.com/Kocal/vue-web-extension/issues/658)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://sokra.github.io/source-map-visualization/#base64,KGZ1bmN0aW9uKGUpe3ZhciByPXt9O2Z1bmN0aW9uIHQobil7aWYocltuXSlyZXR1cm4gcltuXS5leHBvcnRzO3ZhciBvPXJbbl09e2k6bixsOiExLGV4cG9ydHM6e319O3JldHVybiBlW25dLmNhbGwoby5leHBvcnRzLG8sby5leHBvcnRzLHQpLG8ubD0hMCxvLmV4cG9ydHN9dC5tPWUsdC5jPXIsdC5kPWZ1bmN0aW9uKGUscixuKXt0Lm8oZSxyKXx8T2JqZWN0LmRlZmluZVByb3BlcnR5KGUscix7ZW51bWVyYWJsZTohMCxnZXQ6bn0pfSx0LnI9ZnVuY3Rpb24oZSl7InVuZGVmaW5lZCIhPT10eXBlb2YgU3ltYm9sJiZTeW1ib2wudG9TdHJpbmdUYWcmJk9iamVjdC5kZWZpbmVQcm9wZXJ0eShlLFN5bWJvbC50b1N0cmluZ1RhZyx7dmFsdWU6Ik1vZHVsZSJ9KSxPYmplY3QuZGVmaW5lUHJvcGVydHkoZSwiX19lc01vZHVsZSIse3ZhbHVlOiEwfSl9LHQudD1mdW5jdGlvbihlLHIpe2lmKDEmciYmKGU9dChlKSksOCZyKXJldHVybiBlO2lmKDQmciYmIm9iamVjdCI9PT10eXBlb2YgZSYmZSYmZS5fX2VzTW9kdWxlKXJldHVybiBlO3ZhciBuPU9iamVjdC5jcmVhdGUobnVsbCk7aWYodC5yKG4pLE9iamVjdC5kZWZpbmVQcm9wZXJ0eShuLCJkZWZhdWx0Iix7ZW51bWVyYWJsZTohMCx2YWx1ZTplfSksMiZyJiYic3RyaW5nIiE9dHlwZW9mIGUpZm9y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ICAgICAgICB9LFxuICAgICAgICAgIFwiZ2V0XCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZ2V0QWxsXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDBcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIFwiYm9va21hcmtzXCI6IHtcbiAgICAgICAgICBcImNyZWF0ZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImdldFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImdldENoaWxkcmVuXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZ2V0UmVjZW50XCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZ2V0U3ViVHJlZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImdldFRyZWVcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDAsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMFxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJtb3ZlXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAyLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVtb3ZlXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVtb3ZlVHJlZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInNlYXJjaFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInVwZGF0ZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMixcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAyXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBcImJyb3dzZXJBY3Rpb25cIjoge1xuICAgICAgICAgIFwiZGlzYWJsZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJmYWxsYmFja1RvTm9DYWxsYmFja1wiOiB0cnVlXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImVuYWJsZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJmYWxsYmFja1RvTm9DYWxsYmFja1wiOiB0cnVlXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImdldEJhZGdlQmFja2dyb3VuZENvbG9yXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZ2V0QmFkZ2VUZXh0XCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZ2V0UG9wdXBcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJnZXRUaXRsZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcIm9wZW5Qb3B1cFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAwXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInNldEJhZGdlQmFja2dyb3VuZENvbG9yXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDEsXG4gICAgICAgICAgICBcImZhbGxiYWNrVG9Ob0NhbGxiYWNrXCI6IHRydWVcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwic2V0QmFkZ2VUZXh0XCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDEsXG4gICAgICAgICAgICBcImZhbGxiYWNrVG9Ob0NhbGxiYWNrXCI6IHRydWVcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwic2V0SWNvblwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInNldFBvcHVwXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDEsXG4gICAgICAgICAgICBcImZhbGxiYWNrVG9Ob0NhbGxiYWNrXCI6IHRydWVcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwic2V0VGl0bGVcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwiZmFsbGJhY2tUb05vQ2FsbGJhY2tcIjogdHJ1ZVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJicm93c2luZ0RhdGFcIjoge1xuICAgICAgICAgIFwicmVtb3ZlXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAyLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVtb3ZlQ2FjaGVcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZW1vdmVDb29raWVzXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVtb3ZlRG93bmxvYWRzXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVtb3ZlRm9ybURhdGFcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZW1vdmVIaXN0b3J5XCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVtb3ZlTG9jYWxTdG9yYWdlXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVtb3ZlUGFzc3dvcmRzXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVtb3ZlUGx1Z2luRGF0YVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInNldHRpbmdzXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDBcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIFwiY29tbWFuZHNcIjoge1xuICAgICAgICAgIFwiZ2V0QWxsXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDBcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIFwiY29udGV4dE1lbnVzXCI6IHtcbiAgICAgICAgICBcInJlbW92ZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlbW92ZUFsbFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAwXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInVwZGF0ZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMixcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAyXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBcImNvb2tpZXNcIjoge1xuICAgICAgICAgIFwiZ2V0XCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZ2V0QWxsXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZ2V0QWxsQ29va2llU3RvcmVzXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDBcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVtb3ZlXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwic2V0XCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIFwiZGV2dG9vbHNcIjoge1xuICAgICAgICAgIFwiaW5zcGVjdGVkV2luZG93XCI6IHtcbiAgICAgICAgICAgIFwiZXZhbFwiOiB7XG4gICAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgICBcIm1heEFyZ3NcIjogMixcbiAgICAgICAgICAgICAgXCJzaW5nbGVDYWxsYmFja0FyZ1wiOiBmYWxzZVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJwYW5lbHNcIjoge1xuICAgICAgICAgICAgXCJjcmVhdGVcIjoge1xuICAgICAgICAgICAgICBcIm1pbkFyZ3NcIjogMyxcbiAgICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDMsXG4gICAgICAgICAgICAgIFwic2luZ2xlQ2FsbGJhY2tBcmdcIjogdHJ1ZVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJkb3dubG9hZHNcIjoge1xuICAgICAgICAgIFwiY2FuY2VsXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZG93bmxvYWRcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJlcmFzZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImdldEZpbGVJY29uXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwib3BlblwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJmYWxsYmFja1RvTm9DYWxsYmFja1wiOiB0cnVlXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInBhdXNlXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVtb3ZlRmlsZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3VtZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInNlYXJjaFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInNob3dcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwiZmFsbGJhY2tUb05vQ2FsbGJhY2tcIjogdHJ1ZVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJleHRlbnNpb25cIjoge1xuICAgICAgICAgIFwiaXNBbGxvd2VkRmlsZVNjaGVtZUFjY2Vzc1wiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAwXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImlzQWxsb3dlZEluY29nbml0b0FjY2Vzc1wiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAwXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBcImhpc3RvcnlcIjoge1xuICAgICAgICAgIFwiYWRkVXJsXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZGVsZXRlQWxsXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDBcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZGVsZXRlUmFuZ2VcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJkZWxldGVVcmxcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJnZXRWaXNpdHNcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJzZWFyY2hcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJpMThuXCI6IHtcbiAgICAgICAgICBcImRldGVjdExhbmd1YWdlXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZ2V0QWNjZXB0TGFuZ3VhZ2VzXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDBcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIFwiaWRlbnRpdHlcIjoge1xuICAgICAgICAgIFwibGF1bmNoV2ViQXV0aEZsb3dcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJpZGxlXCI6IHtcbiAgICAgICAgICBcInF1ZXJ5U3RhdGVcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJtYW5hZ2VtZW50XCI6IHtcbiAgICAgICAgICBcImdldFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImdldEFsbFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAwXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImdldFNlbGZcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDAsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMFxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJzZXRFbmFibGVkXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAyLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwidW5pbnN0YWxsU2VsZlwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBcIm5vdGlmaWNhdGlvbnNcIjoge1xuICAgICAgICAgIFwiY2xlYXJcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJjcmVhdGVcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJnZXRBbGxcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDAsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMFxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJnZXRQZXJtaXNzaW9uTGV2ZWxcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDAsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMFxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJ1cGRhdGVcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDIsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJwYWdlQWN0aW9uXCI6IHtcbiAgICAgICAgICBcImdldFBvcHVwXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZ2V0VGl0bGVcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJoaWRlXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDEsXG4gICAgICAgICAgICBcImZhbGxiYWNrVG9Ob0NhbGxiYWNrXCI6IHRydWVcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwic2V0SWNvblwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInNldFBvcHVwXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDEsXG4gICAgICAgICAgICBcImZhbGxiYWNrVG9Ob0NhbGxiYWNrXCI6IHRydWVcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwic2V0VGl0bGVcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwiZmFsbGJhY2tUb05vQ2FsbGJhY2tcIjogdHJ1ZVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJzaG93XCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDEsXG4gICAgICAgICAgICBcImZhbGxiYWNrVG9Ob0NhbGxiYWNrXCI6IHRydWVcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIFwicGVybWlzc2lvbnNcIjoge1xuICAgICAgICAgIFwiY29udGFpbnNcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJnZXRBbGxcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDAsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMFxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZW1vdmVcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIFwicnVudGltZVwiOiB7XG4gICAgICAgICAgXCJnZXRCYWNrZ3JvdW5kUGFnZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAwXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImdldEJyb3dzZXJJbmZvXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDBcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZ2V0UGxhdGZvcm1JbmZvXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDBcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwib3Blbk9wdGlvbnNQYWdlXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDBcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVxdWVzdFVwZGF0ZUNoZWNrXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDBcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwic2VuZE1lc3NhZ2VcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogM1xuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJzZW5kTmF0aXZlTWVzc2FnZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMixcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAyXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInNldFVuaW5zdGFsbFVSTFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBcInNlc3Npb25zXCI6IHtcbiAgICAgICAgICBcImdldERldmljZXNcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDAsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJnZXRSZWNlbnRseUNsb3NlZFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3RvcmVcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDAsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJzdG9yYWdlXCI6IHtcbiAgICAgICAgICBcImxvY2FsXCI6IHtcbiAgICAgICAgICAgIFwiY2xlYXJcIjoge1xuICAgICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDBcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcImdldFwiOiB7XG4gICAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwiZ2V0Qnl0ZXNJblVzZVwiOiB7XG4gICAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwicmVtb3ZlXCI6IHtcbiAgICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJzZXRcIjoge1xuICAgICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwibWFuYWdlZFwiOiB7XG4gICAgICAgICAgICBcImdldFwiOiB7XG4gICAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwiZ2V0Qnl0ZXNJblVzZVwiOiB7XG4gICAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJzeW5jXCI6IHtcbiAgICAgICAgICAgIFwiY2xlYXJcIjoge1xuICAgICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDBcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcImdldFwiOiB7XG4gICAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwiZ2V0Qnl0ZXNJblVzZVwiOiB7XG4gICAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwicmVtb3ZlXCI6IHtcbiAgICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJzZXRcIjoge1xuICAgICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIFwidGFic1wiOiB7XG4gICAgICAgICAgXCJjYXB0dXJlVmlzaWJsZVRhYlwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAyXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImNyZWF0ZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImRldGVjdExhbmd1YWdlXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZGlzY2FyZFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImR1cGxpY2F0ZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImV4ZWN1dGVTY3JpcHRcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJnZXRcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJnZXRDdXJyZW50XCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAwLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDBcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZ2V0Wm9vbVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImdldFpvb21TZXR0aW5nc1wiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImhpZ2hsaWdodFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImluc2VydENTU1wiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAyXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcIm1vdmVcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDIsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJxdWVyeVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlbG9hZFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAyXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlbW92ZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlbW92ZUNTU1wiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAyXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInNlbmRNZXNzYWdlXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAyLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDNcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwic2V0Wm9vbVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAyXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInNldFpvb21TZXR0aW5nc1wiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAyXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInVwZGF0ZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAyXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBcInRvcFNpdGVzXCI6IHtcbiAgICAgICAgICBcImdldFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAwXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBcIndlYk5hdmlnYXRpb25cIjoge1xuICAgICAgICAgIFwiZ2V0QWxsRnJhbWVzXCI6IHtcbiAgICAgICAgICAgIFwibWluQXJnc1wiOiAxLFxuICAgICAgICAgICAgXCJtYXhBcmdzXCI6IDFcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZ2V0RnJhbWVcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDEsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJ3ZWJSZXF1ZXN0XCI6IHtcbiAgICAgICAgICBcImhhbmRsZXJCZWhhdmlvckNoYW5nZWRcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDAsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMFxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJ3aW5kb3dzXCI6IHtcbiAgICAgICAgICBcImNyZWF0ZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImdldFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAyXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImdldEFsbFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImdldEN1cnJlbnRcIjoge1xuICAgICAgICAgICAgXCJtaW5BcmdzXCI6IDAsXG4gICAgICAgICAgICBcIm1heEFyZ3NcIjogMVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJnZXRMYXN0Rm9jdXNlZFwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMCxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlbW92ZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMSxcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAxXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInVwZGF0ZVwiOiB7XG4gICAgICAgICAgICBcIm1pbkFyZ3NcIjogMixcbiAgICAgICAgICAgIFwibWF4QXJnc1wiOiAyXG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9O1xuXG4gICAgICBpZiAoT2JqZWN0LmtleXMoYXBpTWV0YWRhdGEpLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJhcGktbWV0YWRhdGEuanNvbiBoYXMgbm90IGJlZW4gaW5jbHVkZWQgaW4gYnJvd3Nlci1wb2x5ZmlsbFwiKTtcbiAgICAgIH1cblxuICAgICAgLyoqXG4gICAgICAgKiBBIFdlYWtNYXAgc3ViY2xhc3Mgd2hpY2ggY3JlYXRlcyBhbmQgc3RvcmVzIGEgdmFsdWUgZm9yIGFueSBrZXkgd2hpY2ggZG9lc1xuICAgICAgICogbm90IGV4aXN0IHdoZW4gYWNjZXNzZWQsIGJ1dCBiZWhhdmVzIGV4YWN0bHkgYXMgYW4gb3JkaW5hcnkgV2Vha01hcFxuICAgICAgICogb3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dGhlIHdyYXBwZWQgbWV0aG9kLlxuICAgICAgICpcbiAgICAgICAqIEByZXR1cm5zIHtQcm94eTxmdW5jdGlvbj59XG4gICAgICAgKiAgICAgICAgQSBQcm94eSBvYmplY3QgZm9yIHRoZSBnaXZlbiBtZXRob2QsIHdoaWNoIGludm9rZXMgdGhlIGdpdmVuIHdyYXBwZXJcbiAgICAgICAqICAgICAgICBtZXRob2QgaW4gaXRzIHBsYWNlLlxuICAgICAgICovXG4gICAgICBjb25zdCB3cmFwTWV0aG9kID0gKHRhcmdldCwgbWV0aG9kLCB3cmFwcGVyKSA9PiB7XG4gICAgICAgIHJldHVybiBuZXcgUHJveHkobWV0aG9kLCB7XG4gICAgICAgICAgYXBwbHkodGFyZ2V0TWV0aG9kLCB0aGlzT2JqLCBhcmdzKSB7XG4gICAgICAgICAgICByZXR1cm4gd3JhcHBlci5jYWxsKHRoaXNPYmosIHRhcmdldCwgLi4uYXJncyk7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgIH07XG5cbiAgICAgIGxldCBoYXNPd25Qcm9wZXJ0eSA9IEZ1bmN0aW9uLmNhbGwuYmluZChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5KTtcblxuICAgICAgLyoqXG4gICAgICAgKiBXcmFwcyBhbiBvYmplY3QgaW4gYSBQcm94eSB3aGljaCBpbnRlcmNlcHRzIGFuZCB3cmFwcyBjZXJ0YWluIG1ldGhvZHNcbiAgICAgICAqIGJhc2VkIG9uIHRoZSBnaXZlbiBgd3JhcHBlcnNgIGFuZCBgbWV0YWRhdGFgIG9iamVjdHMuXG4gICAgICAgKlxuICAgICAgICogQHBhcmFtIHtvYmplY3R9IHRhcmdldFxuICAgICAgICogICAgICAgIFRoZSB0YXJnZXQgb2JqZWN0IHRvIHdyYXAuXG4gICAgICAgKlxuICAgICAgICogQHBhcmFtIHtvYmplY3R9IFt3cmFwcGVycyA9IHt9XVxuICAgICAgICogICAgICAgIEFuIG9iamVjdCB0cmV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iamVjdD59XG4gICAgICAgKi9cbiAgICAgIGNvbnN0IHdyYXBPYmplY3QgPSAodGFyZ2V0LCB3cmFwcGVycyA9IHt9LCBtZXRhZGF0YSA9IHt9KSA9PiB7XG4gICAgICAgIGxldCBjYWNoZSA9IE9iamVjdC5jcmVhdGUobnVsbCk7XG4gICAgICAgIGxldCBoYW5kbGVycyA9IHtcbiAgICAgICAgICBoYXMocHJveHlUYXJnZXQsIHByb3ApIHtcbiAgICAgICAgICAgIHJldHVybiBwcm9wIGluIHRhcmdldCB8fCBwcm9wIGluIGNhY2hlO1xuICAgICAgICAgIH0sXG5cbiAgICAgICAgICBnZXQocHJveHlUYXJnZXQsIHByb3AsIHJlY2VpdmVyKSB7XG4gICAgICAgICAgICBpZiAocHJvcCBpbiBjYWNoZSkge1xuICAgICAgICAgICAgICByZXR1cm4gY2FjaGVbcHJvcF07XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmICghKHByb3AgaW4gdGFyZ2V0KSkge1xuICAgICAgICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBsZXQgdmFsdWUgPSB0YXJnZXRbcHJvcF07XG5cbiAgICAgICAgICAgIGlmICh0eXBlb2YgdmFsdWUgPT09IFwiZnVuY3Rpb25cIikge1xuICAgICAgICAgICAgICAvLyBUaGlzIGlzIGEgbWV0aG9kIG9uIHRoZSB1bmRlcmx5aW5nIG9iamVjdC4gQ2hlY2sgaWYgd2UgbmVlZCB0byBkb1xuICAgICAgICAgICAgICAvLyBhbnkgd3JhcHBpbmcuXG5cbiAgICAgICAgICAgICAgaWYgKHR5cGVvZiB3cmFwcGVyc1twcm9wXSA9PT0gXCJmdW5jdGlvblwiKSB7XG4gICAgICAgICAgICAgICAgLy8gV2UgaGF2ZSBhIHNwZWNpYWwtY2FzZSB3cmFwcGVyIGZvciB0aGlzIG1ldGhvZC5cbiAgICAgICAgICAgICAgICB2YWx1ZSA9IHdyYXBNZ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VuXG4gICAgICAgICAgICAgIC8vIG9mLiBDcmVhdGUgYSBzdWItb2JqZWN0IHdyYXBwZXIgZm9yIGl0IHdpdGggdGhlIGFwcHJvcHJpYXRlIGNoaWxkXG4gICAgICAgICAgICAgIC8vIG1ldGFkYXRhLlxuICAgICAgICAgICAgICB2YWx1ZSA9IHdyYXBPYmplY3QodmFsdWUsIHdyYXBwZXJzW3Byb3BdLCBtZXRhZGF0YVtwcm9wXSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAvLyBXZSBkb24ndCBuZWVkIHRvIGRvIGFueSB3cmFwcGluZyBmb3IgdGhpcyBwcm9wZXJ0eSxcbiAgICAgICAgICAgICAgLy8gc28ganVzdCBmb3J3YXJkIGFsbCBhY2Nlc3MgdG8gdGhlIHVuZGVybHlpbmcgb2JqZWN0LlxuICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2FjaGUsIHByb3AsIHtcbiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICBnZXQoKSB7XG4gICAgICAgICAgICAgICAgICByZXR1cm4gdGFyZ2V0W3Byb3BdO1xuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgc2V0KHZhbHVlKSB7XG4gICAgICAgICAgICAgICAgICB0YXJnZXRbcHJvcF0gPSB2YWx1ZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgY2FjaGVbcHJvcF0gPSB2YWx1ZTtcbiAgICAgICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICAgICAgICB9LFxuXG4gICAgICAgICAgc2V0KHByb3h5VGFyZ2V0LCBwcm9wLCB2YWx1ZSwgcmVjZWl2ZXIpIHtcbiAg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cHJvbWlzZSByZWplY3RzIChhIHdyYXBwZWQgc2VuZE1lc3NhZ2UgaGFzXG4gICAgICAgICAgLy8gdG8gdHJhbnNsYXRlIHRoZSBtZXNzYWdlIGludG8gYSByZXNvbHZlZCBwcm9taXNlIG9yIGEgcmVqZWN0ZWRcbiAgICAgICAgICAvLyBwcm9taXNlKS5cbiAgICAgICAgICBjb25zdCBzZW5kUHJvbWlzZWRSZXN1bHQgPSBwcm9taXNlID0+IHtcbiAgICAgICAgICAgIHByb21pc2UudGhlbihtc2cgPT4ge1xuICAgICAgICAgICAgICAvLyBzZW5kIHRoZSBtZXNzYWdlIHZhbHVlLlxuICAgICAgICAgICAgICBzZW5kUmVzcG9uc2UobXNnKTtcbiAgICAgICAgICAgIH0sIGVycm9yID0+IHtcbiAgICAgICAgICAgICAgLy8gU2VuZCBhIEpTT04gcmVwcmVzZW50YXRpb24gb2YgdGhlIGVycm9yIGlmIHRoZSByZWplY3RlZCB2YWx1ZVxuICAgICAgICAgICAgICAvLyBpcyBhbiBpbnN0YW5jZSBvZiBlcnJvciwgb3IgdGhlIG9iamVjdCBpdHNlbGYgb3RoZXJ3aXNlLlxuICAgICAgICAgICAgICBsZXQgbWVzc2FnZTtcbiAgICAgICAgICAgICAgaWYgKGVycm9yICYmIChlcnJvciBpbnN0YW5jZW9mIEVycm9yIHx8IHR5cGVvZiBlcnJvci5tZXNzYWdlID09PSBcInN0cmluZ1wiKSkge1xuICAgICAgICAgICAgICAgIG1lc3NhZ2UgPSBlcnJvci5tZXNzYWdlO1xuICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIG1lc3NhZ2UgPSBcIkFuIHVuZXhwZWN0ZWQgZXJyb3Igb2NjdXJyZWRcIjtcbiAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgIHNlbmRSZXNwb25zZSh7XG4gICAgICAgICAgICAgICAgX19tb3pXZWJFeHRlbnNpb25Qb2x5ZmlsbFJlamVjdF9fOiB0cnVlLFx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cyBvZiBhIGZ1bmN0aW9uIHVudGlsIHRoZSBmaXJzdCB0aW1lIGl0J3MgY2FsbGVkLCBhbmQgc2luY2UgaXQgd2lsbAogICAgLy8gbmV2ZXIgYWN0dWFsbHkgbmVlZCB0byBiZSBjYWxsZWQsIHRoaXMgYWxsb3dzIHRoZSBwb2x5ZmlsbCB0byBiZSBpbmNsdWRlZAogICAgLy8gaW4gRmlyZWZveCBuZWFybHkgZm9yIGZyZWUuCiAgICBjb25zdCB3cmFwQVBJcyA9IGV4dGVuc2lvbkFQSXMgPT4gewogICAgICAvLyBOT1RFOiBhcGlNZXRhZGF0YSBpcyBhc3NvY2lhdGVkIHRvIHRoZSBjb250ZW50IG9mIHRoZSBhcGktbWV0YWRhdGEuanNvbiBmaWxlCiAgICAgIC8vIGF0IGJ1aWxkIHRpbWUgYnkgcmVwbGFjaW5nIHRoZSBmb2xsb3dpbmcgImluY2x1ZGUiIHdpdGggdGhlIGNvbnRlbnQgb2YgdGhlCiAgICAgIC8vIEpTT04gZmlsZS4KICAgICAgY29uc3QgYXBpTWV0YWRhdGEgPSB7CiAgICAgICAgImFsYXJtcyI6IHsKICAgICAgICAgICJjbGVhciI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiY2xlYXJBbGwiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAwCiAgICAgICAgICB9LAogICAgICAgICAgImdldCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0QWxsIjogewogICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICJtYXhBcmdzIjogMAogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgImJvb2ttYXJrcyI6IHsKICAgICAgICAgICJjcmVhdGUiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgImdldCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0Q2hpbGRyZW4iOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgImdldFJlY2VudCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0U3ViVHJlZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0VHJlZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDAKICAgICAgICAgIH0sCiAgICAgICAgICAibW92ZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAyLAogICAgICAgICAgICAibWF4QXJncyI6IDIKICAgICAgICAgIH0sCiAgICAgICAgICAicmVtb3ZlIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJyZW1vdmVUcmVlIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJzZWFyY2giOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgInVwZGF0ZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAyLAogICAgICAgICAgICAibWF4QXJncyI6IDIKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgICJicm93c2VyQWN0aW9uIjogewogICAgICAgICAgImRpc2FibGUiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxLAogICAgICAgICAgICAiZmFsbGJhY2tUb05vQ2FsbGJhY2siOiB0cnVlCiAgICAgICAgICB9LAogICAgICAgICAgImVuYWJsZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDEsCiAgICAgICAgICAgICJmYWxsYmFja1RvTm9DYWxsYmFjayI6IHRydWUKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0QmFkZ2VCYWNrZ3JvdW5kQ29sb3IiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgImdldEJhZGdlVGV4dCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0UG9wdXAiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgImdldFRpdGxlIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJvcGVuUG9wdXAiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAwCiAgICAgICAgICB9LAogICAgICAgICAgInNldEJhZGdlQmFja2dyb3VuZENvbG9yIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMSwKICAgICAgICAgICAgImZhbGxiYWNrVG9Ob0NhbGxiYWNrIjogdHJ1ZQogICAgICAgICAgfSwKICAgICAgICAgICJzZXRCYWRnZVRleHQiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxLAogICAgICAgICAgICAiZmFsbGJhY2tUb05vQ2FsbGJhY2siOiB0cnVlCiAgICAgICAgICB9LAogICAgICAgICAgInNldEljb24iOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgInNldFBvcHVwIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMSwKICAgICAgICAgICAgImZhbGxiYWNrVG9Ob0NhbGxiYWNrIjogdHJ1ZQogICAgICAgICAgfSwKICAgICAgICAgICJzZXRUaXRsZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEsCiAgICAgICAgICAgICJmYWxsYmFja1RvTm9DYWxsYmFjayI6IHRydWUKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgICJicm93c2luZ0RhdGEiOiB7CiAgICAgICAgICAicmVtb3ZlIjogewogICAgICAgICAgICAibWluQXJncyI6IDIsCiAgICAgICAgICAgICJtYXhBcmdzIjogMgogICAgICAgICAgfSwKICAgICAgICAgICJyZW1vdmVDYWNoZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAicmVtb3ZlQ29va2llcyI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAicmVtb3ZlRG93bmxvYWRzIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJyZW1vdmVGb3JtRGF0YSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAicmVtb3ZlSGlzdG9yeSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAicmVtb3ZlTG9jYWxTdG9yYWdlIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJyZW1vdmVQYXNzd29yZHMiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgInJlbW92ZVBsdWdpbkRhdGEiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgInNldHRpbmdzIjogewogICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICJtYXhBcmdzIjogMAogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgImNvbW1hbmRzIjogewogICAgICAgICAgImdldEFsbCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDAKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgICJjb250ZXh0TWVudXMiOiB7CiAgICAgICAgICAicmVtb3ZlIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJyZW1vdmVBbGwiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAwCiAgICAgICAgICB9LAogICAgICAgICAgInVwZGF0ZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAyLAogICAgICAgICAgICAibWF4QXJncyI6IDIKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgICJjb29raWVzIjogewogICAgICAgICAgImdldCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0QWxsIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJnZXRBbGxDb29raWVTdG9yZXMiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAwCiAgICAgICAgICB9LAogICAgICAgICAgInJlbW92ZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAic2V0IjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgImRldnRvb2xzIjogewogICAgICAgICAgImluc3BlY3RlZFdpbmRvdyI6IHsKICAgICAgICAgICAgImV2YWwiOiB7CiAgICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAgICJtYXhBcmdzIjogMiwKICAgICAgICAgICAgICAic2luZ2xlQ2FsbGJhY2tBcmciOiBmYWxzZQogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgInBhbmVscyI6IHsKICAgICAgICAgICAgImNyZWF0ZSI6IHsKICAgICAgICAgICAgICAibWluQXJncyI6IDMsCiAgICAgICAgICAgICAgIm1heEFyZ3MiOiAzLAogICAgICAgICAgICAgICJzaW5nbGVDYWxsYmFja0FyZyI6IHRydWUKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgImRvd25sb2FkcyI6IHsKICAgICAgICAgICJjYW5jZWwiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgImRvd25sb2FkIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJlcmFzZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0RmlsZUljb24iOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAyCiAgICAgICAgICB9LAogICAgICAgICAgIm9wZW4iOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxLAogICAgICAgICAgICAiZmFsbGJhY2tUb05vQ2FsbGJhY2siOiB0cnVlCiAgICAgICAgICB9LAogICAgICAgICAgInBhdXNlIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJyZW1vdmVGaWxlIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJyZXN1bWUiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgInNlYXJjaCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAic2hvdyI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEsCiAgICAgICAgICAgICJmYWxsYmFja1RvTm9DYWxsYmFjayI6IHRydWUKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgICJleHRlbnNpb24iOiB7CiAgICAgICAgICAiaXNBbGxvd2VkRmlsZVNjaGVtZUFjY2VzcyI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDAKICAgICAgICAgIH0sCiAgICAgICAgICAiaXNBbGxvd2VkSW5jb2duaXRvQWNjZXNzIjogewogICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICJtYXhBcmdzIjogMAogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgImhpc3RvcnkiOiB7CiAgICAgICAgICAiYWRkVXJsIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJkZWxldGVBbGwiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAwCiAgICAgICAgICB9LAogICAgICAgICAgImRlbGV0ZVJhbmdlIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJkZWxldGVVcmwiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgImdldFZpc2l0cyI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAic2VhcmNoIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgImkxOG4iOiB7CiAgICAgICAgICAiZGV0ZWN0TGFuZ3VhZ2UiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgImdldEFjY2VwdExhbmd1YWdlcyI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDAKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgICJpZGVudGl0eSI6IHsKICAgICAgICAgICJsYXVuY2hXZWJBdXRoRmxvdyI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgICJpZGxlIjogewogICAgICAgICAgInF1ZXJ5U3RhdGUiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICAibWFuYWdlbWVudCI6IHsKICAgICAgICAgICJnZXQiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgImdldEFsbCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDAKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0U2VsZiI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDAKICAgICAgICAgIH0sCiAgICAgICAgICAic2V0RW5hYmxlZCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAyLAogICAgICAgICAgICAibWF4QXJncyI6IDIKICAgICAgICAgIH0sCiAgICAgICAgICAidW5pbnN0YWxsU2VsZiI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgICJub3RpZmljYXRpb25zIjogewogICAgICAgICAgImNsZWFyIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJjcmVhdGUiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAyCiAgICAgICAgICB9LAogICAgICAgICAgImdldEFsbCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDAKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0UGVybWlzc2lvbkxldmVsIjogewogICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICJtYXhBcmdzIjogMAogICAgICAgICAgfSwKICAgICAgICAgICJ1cGRhdGUiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMiwKICAgICAgICAgICAgIm1heEFyZ3MiOiAyCiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICAicGFnZUFjdGlvbiI6IHsKICAgICAgICAgICJnZXRQb3B1cCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0VGl0bGUiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgImhpZGUiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxLAogICAgICAgICAgICAiZmFsbGJhY2tUb05vQ2FsbGJhY2siOiB0cnVlCiAgICAgICAgICB9LAogICAgICAgICAgInNldEljb24iOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgInNldFBvcHVwIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMSwKICAgICAgICAgICAgImZhbGxiYWNrVG9Ob0NhbGxiYWNrIjogdHJ1ZQogICAgICAgICAgfSwKICAgICAgICAgICJzZXRUaXRsZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEsCiAgICAgICAgICAgICJmYWxsYmFja1RvTm9DYWxsYmFjayI6IHRydWUKICAgICAgICAgIH0sCiAgICAgICAgICAic2hvdyI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEsCiAgICAgICAgICAgICJmYWxsYmFja1RvTm9DYWxsYmFjayI6IHRydWUKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgICJwZXJtaXNzaW9ucyI6IHsKICAgICAgICAgICJjb250YWlucyI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0QWxsIjogewogICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICJtYXhBcmdzIjogMAogICAgICAgICAgfSwKICAgICAgICAgICJyZW1vdmUiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgInJlcXVlc3QiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICAicnVudGltZSI6IHsKICAgICAgICAgICJnZXRCYWNrZ3JvdW5kUGFnZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDAKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0QnJvd3NlckluZm8iOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAwCiAgICAgICAgICB9LAogICAgICAgICAgImdldFBsYXRmb3JtSW5mbyI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDAKICAgICAgICAgIH0sCiAgICAgICAgICAib3Blbk9wdGlvbnNQYWdlIjogewogICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICJtYXhBcmdzIjogMAogICAgICAgICAgfSwKICAgICAgICAgICJyZXF1ZXN0VXBkYXRlQ2hlY2siOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAwCiAgICAgICAgICB9LAogICAgICAgICAgInNlbmRNZXNzYWdlIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMwogICAgICAgICAgfSwKICAgICAgICAgICJzZW5kTmF0aXZlTWVzc2FnZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAyLAogICAgICAgICAgICAibWF4QXJncyI6IDIKICAgICAgICAgIH0sCiAgICAgICAgICAic2V0VW5pbnN0YWxsVVJMIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgInNlc3Npb25zIjogewogICAgICAgICAgImdldERldmljZXMiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgImdldFJlY2VudGx5Q2xvc2VkIjogewogICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJyZXN0b3JlIjogewogICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgInN0b3JhZ2UiOiB7CiAgICAgICAgICAibG9jYWwiOiB7CiAgICAgICAgICAgICJjbGVhciI6IHsKICAgICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICAgIm1heEFyZ3MiOiAwCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICJnZXQiOiB7CiAgICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgICB9LAogICAgICAgICAgICAiZ2V0Qnl0ZXNJblVzZSI6IHsKICAgICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICJyZW1vdmUiOiB7CiAgICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgICB9LAogICAgICAgICAgICAic2V0IjogewogICAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgICAgfQogICAgICAgICAgfSwKICAgICAgICAgICJtYW5hZ2VkIjogewogICAgICAgICAgICAiZ2V0IjogewogICAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgICAgfSwKICAgICAgICAgICAgImdldEJ5dGVzSW5Vc2UiOiB7CiAgICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgInN5bmMiOiB7CiAgICAgICAgICAgICJjbGVhciI6IHsKICAgICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICAgIm1heEFyZ3MiOiAwCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICJnZXQiOiB7CiAgICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgICB9LAogICAgICAgICAgICAiZ2V0Qnl0ZXNJblVzZSI6IHsKICAgICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICJyZW1vdmUiOiB7CiAgICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgICB9LAogICAgICAgICAgICAic2V0IjogewogICAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgInRhYnMiOiB7CiAgICAgICAgICAiY2FwdHVyZVZpc2libGVUYWIiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAyCiAgICAgICAgICB9LAogICAgICAgICAgImNyZWF0ZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZGV0ZWN0TGFuZ3VhZ2UiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgImRpc2NhcmQiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgImR1cGxpY2F0ZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZXhlY3V0ZVNjcmlwdCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDIKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0IjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJnZXRDdXJyZW50IjogewogICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICJtYXhBcmdzIjogMAogICAgICAgICAgfSwKICAgICAgICAgICJnZXRab29tIjogewogICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJnZXRab29tU2V0dGluZ3MiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgImhpZ2hsaWdodCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiaW5zZXJ0Q1NTIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMgogICAgICAgICAgfSwKICAgICAgICAgICJtb3ZlIjogewogICAgICAgICAgICAibWluQXJncyI6IDIsCiAgICAgICAgICAgICJtYXhBcmdzIjogMgogICAgICAgICAgfSwKICAgICAgICAgICJxdWVyeSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAicmVsb2FkIjogewogICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICJtYXhBcmdzIjogMgogICAgICAgICAgfSwKICAgICAgICAgICJyZW1vdmUiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgInJlbW92ZUNTUyI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDIKICAgICAgICAgIH0sCiAgICAgICAgICAic2VuZE1lc3NhZ2UiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMiwKICAgICAgICAgICAgIm1heEFyZ3MiOiAzCiAgICAgICAgICB9LAogICAgICAgICAgInNldFpvb20iOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAyCiAgICAgICAgICB9LAogICAgICAgICAgInNldFpvb21TZXR0aW5ncyI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDIKICAgICAgICAgIH0sCiAgICAgICAgICAidXBkYXRlIjogewogICAgICAgICAgICAibWluQXJncyI6IDEsCiAgICAgICAgICAgICJtYXhBcmdzIjogMgogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgInRvcFNpdGVzIjogewogICAgICAgICAgImdldCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDAKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgICJ3ZWJOYXZpZ2F0aW9uIjogewogICAgICAgICAgImdldEFsbEZyYW1lcyI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0RnJhbWUiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICAid2ViUmVxdWVzdCI6IHsKICAgICAgICAgICJoYW5kbGVyQmVoYXZpb3JDaGFuZ2VkIjogewogICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICJtYXhBcmdzIjogMAogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgIndpbmRvd3MiOiB7CiAgICAgICAgICAiY3JlYXRlIjogewogICAgICAgICAgICAibWluQXJncyI6IDAsCiAgICAgICAgICAgICJtYXhBcmdzIjogMQogICAgICAgICAgfSwKICAgICAgICAgICJnZXQiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMSwKICAgICAgICAgICAgIm1heEFyZ3MiOiAyCiAgICAgICAgICB9LAogICAgICAgICAgImdldEFsbCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0Q3VycmVudCI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAwLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAiZ2V0TGFzdEZvY3VzZWQiOiB7CiAgICAgICAgICAgICJtaW5BcmdzIjogMCwKICAgICAgICAgICAgIm1heEFyZ3MiOiAxCiAgICAgICAgICB9LAogICAgICAgICAgInJlbW92ZSI6IHsKICAgICAgICAgICAgIm1pbkFyZ3MiOiAxLAogICAgICAgICAgICAibWF4QXJncyI6IDEKICAgICAgICAgIH0sCiAgICAgICAgICAidXBkYXRlIjogewogICAgICAgICAgICAibWluQXJncyI6IDIsCiAgICAgICAgICAgICJtYXhBcmdzIjogMgogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfTsKCiAgICAgIGlmIChPYmplY3Qua2V5cyhhcGlNZXRhZGF0YSkubGVuZ3RoID09PSAwKSB7CiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCJhcGktbWV0YWRhdGEuanNvbiBoYXMgbm90IGJlZW4gaW5jbHVkZWQgaW4gYnJvd3Nlci1wb2x5ZmlsbCIpOwogICAgICB9CgogICAgICAvKioKICAgICAgICogQSBXZWFrTWFwIHN1YmNsYXNzIHdoaWNoIGNyZWF0ZXMgYW5kIHN0b3JlcyBhIHZhbHVlIGZvciBhbn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0oLi4uYXJncywgbWFrZUNhbGxiYWNrKHsgcmVzb2x2ZSwgcmVqZWN0IH0sIG1ldGFkYXRhKSk7CiAgICAgICAgICAgICAgfSBjYXRjaCAoY2JFcnJvcikgewogICAgICAgICAgICAgICAgY29uc29sZS53YXJuKGAke25hbWV9IEFQSSBtZXRob2QgZG9lc24ndCBzZWVtIHRvIHN1cHBvcnQgdGhlIGNhbGxiYWNrIHBhcmFtZXRlciwgYCArICJmYWxsaW5nIGJhY2sgdG8gY2FsbCBpdCB3aXRob3V0IGEgY2FsbGJhY2s6ICIsIGNiRXJyb3IpOwoKICAgICAgICAgICAgICAgIHRhcmdldFtuYW1lXSguLi5hcmdzKTsKCiAgICAgICAgICAgICAgICAvLyBVcGRhdGUgdGhlIEFQSSBtZXRob2QgbWV0YWRhdGEsIHNvIHRoYXQgdGhlIG5leHQgQVBJIGNhbGxzIHdpbGwgbm90IHRyeSB0bwogICAgICAgICAgICAgICAgLy8gdXNlIHRoZSB1bnN1cHBvcnRlZCBjYWxsYmFjayBhbnltb3JlLgogICAgICAgICAgICAgICAgbWV0YWRhdGEuZmFsbGJhY2tUb05vQ2FsbGJhY2sgPSBmYWxzZTsKICAgICAgICAgICAgICAgIG1ldGFkYXRhLm5vQ2FsbGJhY2sgPSB0cnVlOwoKICAgICAgICAgICAgICAgIHJlc29sdmUoKTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0gZWxzZSBpZiAobWV0YWRhdGEubm9DYWxsYmFjaykgewogICAgICAgICAgICAgIHRhcmdldFtuYW1lXSguLi5hcmdzKTsKICAgICAgICAgICAgICByZXNvbHZlKCk7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgdGFyZ2V0W25hbWVdKC4uLmFyZ3MsIG1ha2VDYWxsYmFjayh7IHJlc29sdmUsIHJlamVjdCB9LCBtZXRhZGF0YSkpOwogICAgICAgICAgICB9CiAgICAgICAgICB9KTsKICAgICAgICB9OwogICAgICB9OwoKICAgICAgLyo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ZShudWxsKTsKICAgICAgICBsZXQgaGFuZGxlcnMgPSB7CiAgICAgICAgICBoYXMocHJveHlUYXJnZXQsIHByb3ApIHsKICAgICAgICAgICAgcmV0dXJuIHByb3AgaW4gdGFyZ2V0IHx8IHByb3AgaW4gY2FjaGU7CiAgICAgICAgICB9LAoKICAgICAgICAgIGdldChwcm94eVRhcmdldCwgcHJvcCwgcmVjZWl2ZXIpIHsKICAgICAgICAgICAgaWYgKHByb3AgaW4gY2FjaGUpIHsKICAgICAgICAgICAgICByZXR1cm4gY2FjaGVbcHJvcF07CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIGlmICghKHByb3AgaW4gdGFyZ2V0KSkgewogICAgICAgICAgICAgIHJldHVybiB1bmRlZmluZWQ7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIGxldCB2YWx1ZSA9IHRhcmdldFtwcm9wXTsKCiAgICAgICAgICAgIGlmICh0eXBlb2YgdmFsdWUgPT09ICJmdW5jdGlvbiIpIHsKICAgICAgICAgICAgICAvLyBUaGlzIGlzIGEgbWV0aG9kIG9uIHRoZSB1bmRlcmx5aW5nIG9iamVjdC4gQ2hlY2sgaWYgd2UgbmVlZCB0byBkbwogICAgICAgICAgICAgIC8vIGFueSB3cmFwcGluZy4KCiAgICAgICAgICAgICAgaWYgKHR5cGVvZiB3cmFwcGVyc1twcm9wXSA9PT0gImZ1bmN0aW9uIikgewogICAgICAgICAgICAgICAgLy8gV2UgaGF2ZSBhIHNwZWNpYWwtY2FzZSB3cmFwcGVyIGZvciB0aGlzIG1ldGhvZC4KICAgICAgICAgICAgICAgIHZhbHVlID0gd3JhcE1ldGhvZCh0YXJnZXQsIHRhcmdldFtwcm9wXSwgd3JhcHBlcnNbcHJvcF0pOwogICAgICAgICAgICAgIH0gZWxzZSBpZiAoaGFzT3duUHJvcGVydHkobWV0YWRhdGEsIHByb3ApKSB7CiAgICAgICAgICAgICAgICAvLyBUaGlzIGlzIGFuIGFzeW5jIG1ldGhvZCB0aGF0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ZXRhZGF0YVtwcm9wXSk7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgLy8gV2UgZG9uJ3QgbmVlZCB0byBkbyBhbnkgd3JhcHBpbmcgZm9yIHRoaXMgcHJvcGVydHksCiAgICAgICAgICAgICAgLy8gc28ganVzdCBmb3J3YXJkIGFsbCBhY2Nlc3MgdG8gdGhlIHVuZGVybHlpbmcgb2JqZWN0LgogICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShjYWNoZSwgcHJvcCwgewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGdldCgpIHsKICAgICAgICAgICAgICAgICAgcmV0dXJuIHRhcmdldFtwcm9wXTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBzZXQodmFsdWUpIHsKICAgICAgICAgICAgICAgICAgdGFyZ2V0W3Byb3BdID0gdmFsdWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgfSk7CgogICAgICAgICAgICAgIHJldHVybiB2YWx1ZTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgY2FjaGVbcHJvcF0gPSB2YWx1ZTsKICAgICAgICAgICAgcmV0dXJuIHZhbHVlOwogICAgICAgICAgfSwKCiAgICAgICAgICBzZXQocHJveHlUYXJnZXQsIHByb3AsIHZhbHVlLCByZWNlaXZlcikgewogICAgICAgICAgICBpZiAocHJvcCBpbiBjYWNoZSkgewogICAgICAgICAgICAgIGNhY2hlW3Byb3BdID0gdmFsdWU7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgdGFyZ2V0W3Byb3BdID0gdmFsdWU7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICB9LAoKICAgICAgICAgIGRlZmluZVByb3BlcnR5KHByb3h5VGFyZ2V0LCBwcm9wL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YSByZXNwb25zZS4gRmFsc2Ugb3RoZXJ3aXNlLgogICAgICAgICAqLwogICAgICAgIHJldHVybiBmdW5jdGlvbiBvbk1lc3NhZ2UobWVzc2FnZSwgc2VuZGVyLCBzZW5kUmVzcG9uc2UpIHsKICAgICAgICAgIGxldCBkaWRDYWxsU2VuZFJlc3BvbnNlID0gZmFsc2U7CgogICAgICAgICAgbGV0IHdyYXBwZWRTZW5kUmVzcG9uc2U7CiAgICAgICAgICBsZXQgc2VuZFJlc3BvbnNlUHJvbWlzZSA9IG5ldyBQcm9taXNlKHJlc29sdmUgPT4gewogICAgICAgICAgICB3cmFwcGVkU2VuZFJlc3BvbnNlID0gZnVuY3Rpb24gKHJlc3BvbnNlKSB7CiAgICAgICAgICAgICAgaWYgKCFsb2dnZWRTZW5kUmVzcG9uc2VEZXByZWNhdGlvbldhcm5pbmcpIHsKICAgICAgICAgICAgICAgIGNvbnNvbGUud2FybihTRU5EX1JFU1BPTlNFX0RFUFJFQ0FUSU9OX1dBUk5JTkcsIG5ldyBFcnJvcigpLnN0YWNrKTsKICAgICAgICAgICAgICAgIGxvZ2dlZFNlbmRSZXNwb25zZURlcHJlY2F0aW9uV2FybmluZyA9IHRydWU7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIGRpZENhbGxTZW5kUmVzcG9uc2UgPSB0cnVlOwogICAgICAgICAgICAgIHJlc29sdmUocmVzcG9uc2UpOwogICAgICAgICAgICB9OwogICAgICAgICAgfSk7CgogICAgICAgICAgbGV0IHJlc3VsdDsKICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgIHJlc3VsdCA9IGxpc3RlbmVyKG1lc3NhZ2UsIHNlbmRlciwgd3JhcHBlZFNlbmRSZXNwb25zZSk7CiAgICAgICAgICB9IGNhdGNoIChlcnIpIHsKICAgICAgICAgICAgcmVzdWx0ID0gUHJvbWlzZS5yZWplY3QoZXJyKTsKICAgICAgICAgIH0KCiAgICAgICAgICBjb25zdCBpc1Jlc3VsdFRoZW5hY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VwcmVzZW50YXRpb24gb2YgdGhlIGVycm9yIGlmIHRoZSByZWplY3RlZCB2YWx1ZQogICAgICAgICAgICAgIC8vIGlzIGFuIGluc3RhbmNlIG9mIGVycm9yLCBvciB0aGUgb2JqZWN0IGl0c2VsZiBvdGhlcndpc2UuCiAgICAgICAgICAgICAgbGV0IG1lc3NhZ2U7CiAgICAgICAgICAgICAgaWYgKGVycm9yICYmIChlcnJvciBpbnN0YW5jZW9mIEVycm9yIHx8IHR5cGVvZiBlcnJvci5tZXNzYWdlID09PSAic3RyaW5nIikpIHsKICAgICAgICAgICAgICAgIG1lc3NhZ2UgPSBlcnJvci5tZXNzYWdlOwogICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICBtZXNzYWdlID0gIkFuIHVuZXhwZWN0ZWQgZXJyb3Igb2NjdXJyZWQiOwogICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgc2VuZFJlc3BvbnNlKHsKICAgICAgICAgICAgICAgIF9fbW96V2ViRXh0ZW5zaW9uUG9seWZpbGxSZWplY3RfXzogdHJ1ZSwKICAgICAgICAgICAgICAgIG1lc3NhZ2UKICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSkuY2F0Y2goZXJyID0+IHsKICAgICAgICAgICAgICAvLyBQcmludCBhbiBlcnJvciBvbiB0aGUgY29uc29sZSBpZiB1bmFibGUgdG8gc2VuZCB0aGUgcmVzcG9uc2UuCiAgICAgICAgICAgICAgY29uc29sZS5lcnJvcigiRmFpbGVkIHRvIHNlbmQgb25NZXNzYWdlIHJlamVjdGVkIHJlcGx5IiwgZXJyKTsKICAgICAgICAgICAgfSk7CiAgICAgICAgICB9OwoKICAgICAgICAgIC8vIElmIHRoZSBsaXN0ZW5lciByZXR1cm5lZCBhIFByb21pc2UsIHNlbmQgdGhlIHJlc29sdmVkIHZhbHVlIGFzIGEKICAgICAgICAgIC8vIHJlc3VsdCwgb3RoZXJ3aXNlIHdhaXQgdGhlIHByb21pc2UgcmV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AgICAgICB9IGVsc2UgewogICAgICAgICAgICByZWplY3QoZXh0ZW5zaW9uQVBJcy5ydW50aW1lLmxhc3RFcnJvcik7CiAgICAgICAgICB9CiAgICAgICAgfSBlbHNlIGlmIChyZXBseSAmJiByZXBseS5fX21veldlYkV4dGVuc2lvblBvbHlmaWxsUmVqZWN0X18pIHsKICAgICAgICAgIC8vIENvbnZlcnQgYmFjayB0aGUgSlNPTiByZXByZXNlbnRhdGlvbiBvZiB0aGUgZXJyb3IgaW50bwogICAgICAgICAgLy8gYW4gRXJyb3IgaW5zdGFuY2UuCiAgICAgICAgICByZWplY3QobmV3IEVycm9yKHJlcGx5Lm1lc3NhZ2UpKTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgcmVzb2x2ZShyZXBseSk7CiAgICAgICAgfQogICAgICB9OwoKICAgICAgY29uc3Qgd3JhcHBlZFNlbmRNZXNzYWdlID0gKG5hbWUsIG1ldGFkYXRhLCBhcGlOYW1lc3BhY2VPYmosIC4uLmFyZ3MpID0+IHsKICAgICAgICBpZiAoYXJncy5sZW5ndGggPCBtZXRhZGF0YS5taW5BcmdzKSB7CiAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYEV4cGVjdGVkIGF0IGxlYXN0ICR7bWV0YWRhdGEubWluQXJnc30gJHtwbHVyYWxpemVBcmd1bWVudHMobWV0YWRhdGEubWluQXJncyl9IGZvciAke25hbWV9KCksIGdvdCAke2FyZ3MubGVuZ3RofWApOwogICAgICAgIH0KCiAgICAgICAgaWYgKGFyZ3MubGVuZ3RoID4gbWV0YWRhdGEubWF4QXJncykgewogICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBFeHBlY3RlZCBhdCBtb3N0ICR7bWV0YWRhdGEubWF4QXJnc30gJHtwbHVyYWxpemVBcmd1bWVudHMobWV0YWRhdGEubWF4QXJncyl9IGZvciAke25hbWV9KCksIGdvdCAke2FyZ3MubGVuZ3RofWApOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHsKICAgICAgICAgIGNvbnN0IHdyYXBwZWRDYiA9IHdyYXBwZWRTZW5kTWVzc2FnZUNhbGxiYWNrLmJpbmQobnVsbCwgeyByZXNvbHZlLCByZWplY3QgfSk7CiAgICAgICAgICBhcmdzLnB1c2god3JhcHBlZENiKTsKICAgICAgICAgIGFwaU5hbWVzcGFjZU9iai5zZW5kTWVzc2FnZSguLi5hcmdzKTsKICAgICAgICB9KTsKICAgICAgfTsKCiAgICAgIGNvbnN0IHN0YXRpY1dyYXBwZXJzID0gewogICAgICAgIHJ1bnRpbWU6IHsKICAgICAgICAgIG9uTWVzc2FnZTogd3JhcEV2ZW50KG9uTWVzc2FnZVdyYXBwZXJzKSwKICAgICAgICAgIG9uTWVzc2FnZUV4dGVybmFsOiB3cmFwRXZlbnQob25NZXNzYWdlV3JhcHBlcnMpLAogICAgICAgICAgc2VuZE1lc3NhZ2U6IHdyYXBwZWRTZW5kTWVzc2FnZS5iaW5kKG51bGwsICJzZW5kTWVzc2FnZSIsIHsgbWluQXJnczogMSwgbWF4QXJnczogMyB9KQogICAgICAgIH0sCiAgICAgICAgdGFiczogewogICAgICAgICAgc2VuZE1lc3NhZ2U6IHdyYXBwZWRTZW5kTWVzc2FnZS5iaW5kKG51bGwsICJzZW5kTWVzc2FnZSIsIHsgbWluQXJnczogMiwgbWF4QXJnczogMyB9KQogICAgICAgIH0KICAgICAgfTsKICAgICAgY29uc3Qgc2V0dGluZ01ldGFkYXRhID0gewogICAgICAgIGNsZWFyOiB7IG1pbkFyZ3M6IDEsIG1heEFyZ3M6IDEgfSwKICAgICAgICBnZXQ6IHsgbWluQXJnczogMSwgbWF4QXJnczogMSB9LAogICAgICAgIHNldDogeyBtaW5BcmdzOiAxLCBtYXhBcmdzOiAxIH0KICAgICAgfTsKICAgICAgYXBpTWV0YWRhdGEucHJpdmFjeSA9IHsKICAgICAgICBuZXR3b3JrOiB7CiAgICAgICAgICBuZXR3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ID0gcmVhY3Rpb24ucmVzb2x2ZTsKICAgICAgdmFyIHJlamVjdCA9IHJlYWN0aW9uLnJlamVjdDsKICAgICAgdmFyIGRvbWFpbiA9IHJlYWN0aW9uLmRvbWFpbjsKICAgICAgdmFyIHJlc3VsdCwgdGhlbiwgZXhpdGVkOwogICAgICB0cnkgewogICAgICAgIGlmIChoYW5kbGVyKSB7CiAgICAgICAgICBpZiAoIW9rKSB7CiAgICAgICAgICAgIGlmIChzdGF0ZS5yZWplY3Rpb24gPT09IFVOSEFORExFRCkgb25IYW5kbGVVbmhhbmRsZWQoc3RhdGUpOwogICAgICAgICAgICBzdGF0ZS5yZWplY3Rpb24gPSBIQU5ETEVEOwogICAgICAgICAgfQogICAgICAgICAgaWYgKGhhbmRsZXIgPT09IHRydWUpIHJlc3VsdCA9IHZhbHVlOwogICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIGlmIChkb21haW4pIGRvbWFpbi5lbnRlcigpOwogICAgICAgICAgICByZXN1bHQgPSBoYW5kbGVyKHZhbHVlKTsgLy8gY2FuIHRocm93CiAgICAgICAgICAgIGlmIChkb21haW4pIHsKICAgICAgICAgICAgICBkb21haW4uZXhpdCgpOwogICAgICAgICAgICAgIGV4aXRlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICAgIGlmIChyZXN1bHQgPT09IHJlYWN0aW9uLnByb21pc2UpIHsKICAgICAgICAgICAgcmVqZWN0KFR5cGVFcnJvcignUHJvbWlzZS1jaGFpbiBjeWNsZScpKTsKICAgICAgICAgIH0gZWxzZSBpZiAodGhlbiA9IGlzVGhlbmFibGUocmVzdWx0KSkgewogICAgICAgICAgICB0aGVuLmNhbGwocmVzdWx0LCByZXNvbHZlLCByZWplY3QpOwogICAgICAgICAgfSBlbHNlIHJlc29sdmUocmVzdWx0KTsKICAgICAgICB9IGVsc2UgcmVqZWN0KHZhbHVlKTsKICAgICAgfSBjYXRjaCAoZXJyb3IpIHsKICAgICAgICBpZi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GVudC1zY3JpcHQuanMiCiAgfSk7Cn0pOwo=,dmFyIGdsb2JhbCA9IHJlcXVpcmUoJy4uL2ludGVybmFscy9nbG9iYWwnKTsKCm1vZHVsZS5leHBvcnRzID0gZ2xvYmFsLlByb21pc2U7Cg==, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment